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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001b0cf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140025390]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001b213
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001b16c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001b127
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140025390]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001b213
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001b1a6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001b213
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140025390]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14001be55
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400253a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14002fd30]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140025390]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001bf6a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400253a0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001bf38
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400253a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14001bf79
lea rax, [0x1400253a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001bfb5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001c023
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x140025390]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001c06d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001c06d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400253a0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001c05f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140002656
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14002e490
mov rcx, rax
call sub.msvcrt.dll__mkdir
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140002f6e
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], rcx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
add rsp, 0x1c0
pop rbp
ret
Function at 0x140002fa4
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x30], rcx
mov rax, qword [rbp + 0x30]
add rax, 0x10
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x30]
movzx eax, byte [rax + 0x84]
test al, al
je 0x140003068
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x14], 2
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x18], 1
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x1c], 6
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x10], 1
mov rbx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x30]
lea rsi, [rax + 0x10]
mov rax, qword [rbp + 0x30]
mov edx, dword [rax + 0x80]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400affb0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.14002e490
mov r9, rbx
mov r8, rsi
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp - 4], eax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400a8570
jmp 0x1400030ee
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x14], 0
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x18], 1
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x1c], 6
mov rsi, qword [rbp + 0x30]
mov rax, qword [rbp + 0x30]
lea rdi, [rax + 0x10]
mov rax, qword [rbp + 0x30]
mov edx, dword [rax + 0x80]
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400affb0
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.14002e490
mov rbx, rax
mov rax, qword [rbp + 0x30]
add rax, 0x60
mov rcx, rax
call fcn.14002e490
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp - 4], eax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400a8570
cmp dword [rbp - 4], 0
je 0x140003107
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x1400031b9
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x30]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov ecx, dword [rax + 0xc]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax + 4]
mov r8d, ecx
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov rdx, qword [rbp + 0x30]
mov qword [rdx + 0x40], rax
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x40]
cmp rax, 0xffffffffffffffff
jne 0x14000317e
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 2
jmp 0x1400031b9
mov eax, 0
jmp 0x1400031b9
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140003362
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov dword [rbp - 8], eax
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x50]
lea rdx, [rbp - 8]
mov dword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
call rax
shr eax, 0x1f
test al, al
je 0x1400033ba
mov eax, 9
jmp 0x1400033fb
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x50]
lea rdx, [rbp - 8]
mov dword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
call rax
shr eax, 0x1f
test al, al
je 0x1400033f6
mov eax, 0xa
jmp 0x1400033fb
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140003402
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14002e490
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14002e670
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x50]
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0xffffffff
jne 0x140003465
mov eax, 6
jmp 0x14000346a
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400034ac
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14001e120
lea rax, [rbp - 0xd]
mov rcx, rax
call fcn.1400710b0
lea rdx, [rbp - 0xd]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, [0x1400c11f0]
mov rcx, rax
call fcn.1400a7dd0
lea rax, [rbp - 0xd]
mov rcx, rax
call fcn.1400710e0
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x28]
lea rdx, [rax + 0x58]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x50]
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140003543
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 7
jmp 0x14000354f
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 8
nop
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400a8570
jmp 0x140003594
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x1400038cf
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, 0
mov edx, 0
mov rax, qword [0x1400c7160]
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x14000398a
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.140071110
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x31]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.1400abd60
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.140071140
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400ab600
mov rax, qword [rbp + 0x20]
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.140003600
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400ac7c0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400ac7c0
jmp 0x140003a1d
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1400710b0
lea rdx, [rbp - 5]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400c1232]
mov rcx, rax
call fcn.1400a7dd0
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1400710e0
jmp 0x140003a1d
mov rax, qword [rbp + 0x20]
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140003a2b
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, 0
mov edx, 0
mov rax, qword [0x1400c7170]
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x140003ae6
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.140071110
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x31]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.1400abd60
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.140071140
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400ab600
mov rax, qword [rbp + 0x20]
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.140003600
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400ac7c0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400ac7c0
jmp 0x140003b79
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1400710b0
lea rdx, [rbp - 5]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400c1232]
mov rcx, rax
call fcn.1400a7dd0
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1400710e0
jmp 0x140003b79
mov rax, qword [rbp + 0x20]
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x14000d1c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400170d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400170d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000d230
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400fb0e4]
mov rbx, rcx
test esi, esi
jle 0x14000d360
mov rax, qword [0x1400fb0e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d27b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d305
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d260
mov rcx, rbx
call fcn.14000dc80
mov rdi, rax
test rax, rax
je 0x14000d382
mov rax, qword [0x1400fb0e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ddc0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400fb0e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d367
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d2fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d310
add dword [0x1400fb0e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400fb0e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d1c0
nop dword [rax]
xor esi, esi
jmp 0x14000d288
mov rax, qword [0x1400fb0e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d1c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d1c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d8f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400fb140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400fb120]
test rbx, rbx
je 0x14000d94c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000d943
test rsi, rsi
je 0x14000d943
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d928
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000dc80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c7d80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000dca0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000dca8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000dca0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000dcfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000dcf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000dca0
add rax, 0x28
cmp rax, r9
jne 0x14000dce0
xor eax, eax
ret

Function at 0x14000dd00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c7d80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000dd1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000dd28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000dd1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000ddc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c7d80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000dddf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000dde8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140019620
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140019722
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400196fa
add rax, 1
cmp rax, 0x6b
je 0x140019717
cmp byte [rcx + rax], 0
jne 0x1400196f0
movsxd rdx, eax
cmp eax, 0x6a
je 0x140019717
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001970b
Function at 0x140019ac0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400fbd60], 1
je 0x140019b38
lea rdi, [0x1400fbd60]
mov rcx, rdi
call fcn.1400193a0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140018cb0
mov esi, dword [0x1400fbd60]
test esi, esi
jne 0x140019b48
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400be178], eax
cmp eax, 0xffffffff
je 0x140019b6f
mov dword [0x1400fbd60], 1
mov rcx, rbp
call fcn.140018fa0
test rbx, rbx
je 0x140019b38
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019740
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140019b14
mov ecx, 2
call qword [fcn.1400170d0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140019b14
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x140019b80
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140019850
cmp qword [0x1400fe048], 0
mov rbx, rax
je 0x140019c90
test rax, rax
je 0x140019c90
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400192a0
cmp eax, 1
je 0x140019c9e
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140019ca3
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400be178]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140019ca3
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140019620
call sub.msvcrt.dll_abort
nop
nop dword [rax]

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

Disassembly:
sub rsp, 0x28
call fcn.140019ac0
mov ecx, dword [0x1400be178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019cd0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140019b80