joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041cd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140114654]
cmp ecx, 0xffffffff
je 0x140041d99
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140041d99
mov eax, dword [0x140119248]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140041da3
mov rbx, qword [0x140119240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140041de9
mov rax, qword [0x140117a30]
inc rax
xor ecx, ecx
lea rdx, [0x140117a40]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140041df6
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140117a30], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140041e0b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140041e10
jmp 0x140041cfa
lea rcx, [0x140119248]
call fcn.140076910
cmp dword [0x140119248], 0xffffffff
jne 0x140041d1f
mov ecx, 8
call fcn.1400767bc
mov rbx, rax
mov rcx, rax
call fcn.14005f120
mov qword [0x140119240], rbx
lea rcx, [0x140119248]
call fcn.1400769a8
jmp 0x140041d1f
mov rcx, rbx
call fcn.14005f130
jmp 0x140041d37
inc rcx
cmp rcx, 0x100
jne 0x140041d4a
jmp 0x140041d7f
int3

Function at 0x140041e10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140077c90
sub rsp, rax
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140114654]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140041ec4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140041f02
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140079e10
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007682c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140079760
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140077cf0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140049fc0
test al, al
je 0x140041f05
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140041f08
mov eax, 0xffffffff
lock cmpxchg dword [0x140114654], ecx
je 0x140041e48
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140114654]
mov dword [rsp + 0x2c], ecx
jmp 0x140041e48
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140049fc0
test al, al
je 0x140041f2d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140041f2d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140041edb
int3
Function at 0x1400431d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140119290]
cmp rdi, 1
jbe 0x1400431f9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140066650
lea rcx, [0x140119290]
call fcn.1400369e0
test al, al
je 0x14004323e
xorps xmm0, xmm0
movups xmmword [0x140119298], xmm0
lea rbx, [0x140119290]
lea rdi, [0x140119298]
mov rcx, rdi
xor edx, edx
call fcn.140042020
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140036aa0
jmp 0x1400431e7
mov rdi, qword [0x140119290]
jmp 0x1400431e7

Function at 0x140043c70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140119328]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140043cab
movzx eax, word [0x1401192f8]
cmp eax, 9
jne 0x140043cf3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140119328]
call fcn.140076910
cmp dword [0x140119328], 0xffffffff
jne 0x140043c95
xorps xmm0, xmm0
movups xmmword [0x140119318], xmm0
movups xmmword [0x140119308], xmm0
movups xmmword [0x1401192f8], xmm0
lea rcx, [0x1401192f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140119328]
call fcn.1400769a8
jmp 0x140043c95
test eax, eax
je 0x140043ca6
cmp eax, 6
jne 0x140043d03
mov eax, 2
jmp 0x140043ca6
cmp eax, 0xc
jne 0x140043d0f
mov eax, 3
jmp 0x140043ca6
mov eax, 4
jmp 0x140043ca6

Function at 0x140044460
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14004454e
cmp qword [rsi], 0
jne 0x14004454e
cmp dword [rsi + 0x14], 0
jne 0x14004454e
cmp qword [rsi + 8], 0
jne 0x14004454e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400444d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140044520
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400444c8
mov qword [rsi], r14
call fcn.14005aa10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14004450a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140044536
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140044502
mov qword [rsi + 8], r14
call fcn.14005aa10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14005aa10
mov rcx, qword [rsi]
call fcn.140061fb0
mov qword [rsi], 0
jmp 0x1400444b6
call fcn.14005aa10
mov rcx, qword [rsi + 8]
call fcn.140061fb0
mov qword [rsi + 8], 0
jmp 0x1400444ef
mov rcx, rsi
call fcn.1400cb9a0
mov rax, qword [rsi]
jmp 0x14004449a
Function at 0x140045250
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140046480
test al, al
jne 0x1400452d8
call fcn.140046450
movzx edx, al
mov ecx, esi
call fcn.14003bff0
mov eax, dword [0x140119368]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400452a7
movsxd rdx, esi
inc rdx
lea rcx, [0x140119358]
add rsp, 0x20
pop rsi
jmp fcn.140066650
lea rcx, [0x140119368]
call fcn.140076910
cmp dword [0x140119368], 0xffffffff
jne 0x140045290
lea rcx, [0x140119358]
xor edx, edx
call fcn.140042020
lea rcx, [0x140119368]
call fcn.1400769a8
jmp 0x140045290
mov edx, 3
jmp 0x140045268

Function at 0x1400452e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14003bff0
mov eax, dword [0x140119368]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140045324
movsxd rdx, esi
inc rdx
lea rcx, [0x140119358]
add rsp, 0x20
pop rsi
jmp fcn.140066650
lea rcx, [0x140119368]
call fcn.140076910
cmp dword [0x140119368], 0xffffffff
jne 0x14004530d
lea rcx, [0x140119358]
xor edx, edx
call fcn.140042020
lea rcx, [0x140119368]
call fcn.1400769a8
jmp 0x14004530d
Function at 0x140047ac0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140047af3
mov rax, qword [rsi + 8]
test rax, rax
je 0x140047beb
mov eax, ebx
not eax
test eax, 0x300
je 0x140047beb
cmp edi, 2
lea rax, [0x14011caf0]
lea rcx, [0x14011ccf0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140047beb
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x140047beb
cmp byte [0x14011cae0], 0
setne al
bt ebx, 8
jb 0x140047beb
shr ebx, 9
and ebx, 1
or bl, al
je 0x140047beb
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140047c47
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x140047bd8
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14008eae8
test eax, eax
je 0x140047c0a
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140047bb8
cmp dword [rsp + 0x2c], 0
jne 0x140047c4f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140077cf0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140047c18
test ecx, ecx
jne 0x140047bd8
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140047c78
cmp dword [rsp + 0x2c], 2
jne 0x140047c89
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140047c89
mov r14, rsi
jmp 0x140047b9b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140047c5b
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400c0720
jmp 0x140047beb
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140047ca2
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140047c8f
jmp 0x140047ca5
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x140047bdf

Function at 0x140049ed0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14011ddf8], 0
jne 0x140049f0d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140049f00
mov dword [rdi], eax
mov dword [0x14011de00], eax
mov qword [0x14011ddf8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x140049fc0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140049fd5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14004acd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14011de38]
cmp rdi, 1
jbe 0x14004acf9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140066650
lea rcx, [0x14011de38]
call fcn.1400369e0
test al, al
je 0x14004ad3e
xorps xmm0, xmm0
movups xmmword [0x14011de40], xmm0
lea rbx, [0x14011de38]
lea rdi, [0x14011de40]
mov rcx, rdi
xor edx, edx
call fcn.140042020
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140036aa0
jmp 0x14004ace7
mov rdi, qword [0x14011de38]
jmp 0x14004ace7

Function at 0x14004bb70
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x14004bcb3
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x14004bcac
cmp r14, rax
ja 0x14004bcb8
lea rcx, [r14*8]
call fcn.1400767bc
shl rbx, 3
add rbx, rax
je 0x14004bcbd
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x14004bc09
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x14004bc95
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14004bc1d
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x14004bc7f
add r14, 0xfffffffffffffff8
test r14, r14
je 0x14004bce9
mov rcx, qword [r14]
test rcx, rcx
je 0x14004bc73
lock dec dword [rcx + 8]
je 0x14004bd15
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x14004bc58
test rdi, rdi
je 0x14004bca2
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400767f8
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x14004bc7f
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14004bbed
call fcn.14008b5d0
call fcn.1400a9540
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400a9eb0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400a9eb0
mov edx, 1
call fcn.140051870
jmp 0x14004bc73
Function at 0x140052520
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140052642
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140052678
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 3
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140052680
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140052684
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14005268a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14005257c
xor eax, eax
jmp 0x140052611
mov dl, byte [r8 + 0x19]
jmp 0x140052671
cmp byte [r8 + 0x1a], 0
je 0x140052675
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140052675
cmp ecx, 0x666f736f
jne 0x140052675
cmp edx, 0x76482074
jne 0x140052675
mov byte [r8 + 0x19], 1
jmp 0x140052675

Function at 0x140052920
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005295c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140052966
add rdi, rbx
sub rsi, rbx
jne 0x14005293a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400565e0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x140056733
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x14005672c
cmp r14, rax
ja 0x140056738
lea rcx, [r14*8]
call fcn.1400767bc
shl rbx, 3
add rbx, rax
je 0x14005673d
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rbx], rcx
mov qword [rdi], 0
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x140056701
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14005668b
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x14005670c
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140056769
mov rcx, qword [r14]
mov rax, qword [0x1401085e0]
and rax, rcx
cmp rax, qword [0x1401085c8]
je 0x1400566fa
mov qword [r14], 0
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400566c6
jmp 0x14005670c
call fcn.14005bfd0
jmp 0x1400566e5
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x14005671b
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400767f8
xor eax, eax
jmp 0x14005665d
call fcn.14008b5d0
call fcn.1400a9540
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400a9eb0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400a9eb0
int3
Function at 0x14005f050
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14005f097
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005f0b1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005f08f
mov qword [rsi], rdi
call fcn.14005aa10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14005f0c7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005aa10
mov rcx, qword [rsi]
call fcn.140061fb0
mov qword [rsi], 0
jmp 0x14005f07d
int3
Function at 0x14005f6d0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14005f1b0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140117538]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005f72e
jnp 0x14005f794
ucomisd xmm0, xmm6
jne 0x14005f73a
jnp 0x14005f8a9
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f0280]
subpd xmm1, xmmword [0x1400f0290]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f04e8]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077cf0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140117548]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f8b0
mov eax, dword [0x140117558]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f8ea
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140117550]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f04e0]
ucomisd xmm2, xmm1
ja 0x14005f72e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140117540]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f0280]
subpd xmm0, xmmword [0x1400f0290]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140117538], xmm0
jmp 0x14005f72e
xor eax, eax
jmp 0x14005f76c
lea rcx, [0x140117548]
call fcn.140076910
cmp dword [0x140117548], 0xffffffff
jne 0x14005f7dd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140117540], rdx
lea rcx, [0x140117548]
call fcn.1400769a8
jmp 0x14005f7dd
lea rcx, [0x140117558]
call fcn.140076910
cmp dword [0x140117558], 0xffffffff
jne 0x14005f802
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140117550], rax
lea rcx, [0x140117558]
call fcn.1400769a8
jmp 0x14005f802
Function at 0x140066610
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140114654]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140066644
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140066644
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14006663e

Function at 0x140066650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140114654]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006668e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140066687
call fcn.140041e10
jmp 0x14006666e

Function at 0x140067340
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401192e0]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400673a0
lea rsi, [0x1401192d8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140077cf0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401192e0]
call fcn.140076910
cmp dword [0x1401192e0], 0xffffffff
jne 0x14006737c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140079e10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400767bc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140119328]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067460
lea r8, [0x1401192f8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140043d20
mov qword [0x1401192d8], rsi
lea rcx, [0x1401192e0]
call fcn.1400769a8
jmp 0x14006737c
lea rcx, [0x140119328]
call fcn.140076910
cmp dword [0x140119328], 0xffffffff
jne 0x140067431
xorps xmm0, xmm0
movups xmmword [0x140119318], xmm0
movups xmmword [0x140119308], xmm0
movups xmmword [0x1401192f8], xmm0
lea rcx, [0x1401192f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140119328]
call fcn.1400769a8
jmp 0x140067431