joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8450
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400a8574
cmp r8d, 0xff
jne 0x1400a84b1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400a849b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xcc920]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140084d60
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140084d60
cmp r8d, 0xfb
jne 0x1400a84c3
lea r9, str.WILL
jmp 0x1400a8501
cmp r8d, 0xfc
jne 0x1400a84d5
lea r9, str.WONT
jmp 0x1400a8501
cmp r8d, 0xfd
jne 0x1400a84e7
lea r9, [0x1400cd344]
jmp 0x1400a8501
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400a855d
cmp r10d, 0x27
jg 0x1400a8534
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xccf40]
test r8, r8
jne 0x1400a8544
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140084d60
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400a851b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140084d60
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140084d60
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a891f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140084be0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400a8450
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8ad0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a8c78
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a8b35
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a8b35
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a8b35
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400a8b6c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a8bc2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8bc2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8bc2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8bc2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8bc2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a8580
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400a8c24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140084be0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a8950
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a8c70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140084be0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400aa3e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400aa475
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400aa4d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140084be0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bdd80
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400aa591
sub ecx, 1
je 0x1400aa604
sub ecx, 1
je 0x1400aa540
cmp ecx, 1
je 0x1400aa523
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d5660]
call fcn.140084be0
jmp 0x1400aa604
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400aa110
test eax, eax
je 0x1400aa604
jmp 0x1400aa4aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400aa604
sub rax, rsi
cmp rax, rbp
jae 0x1400aa604
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140084d60
jmp 0x1400aa604
cmp r8d, 4
jle 0x1400aa604
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400aa604
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140084b00
mov esi, eax
test eax, eax
je 0x1400aa5e3
mov edx, 5
mov rcx, rbx
call fcn.1400ab0d0
mov eax, esi
jmp 0x1400aa4aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140093500
mov rcx, r14
call fcn.1400937e0
test eax, eax
je 0x1400aa4a8
mov edx, 5
mov rcx, rbx
call fcn.1400ab0d0
mov eax, Ordinal_45
jmp 0x1400aa4aa
Function at 0x1400bd3a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400bd3e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400bd429
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400bd482
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400bd440
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400bd4c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d0512]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d0513]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400bd490
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400be4c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400be50e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400be50e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400be50e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400be50e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400be50e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400be510
xor al, al
add rsp, 0x28
ret
Function at 0x140001920
Capabilities:
Open clipboard
Read clipboard data
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov dword [rsp + 0x40], eax
mov eax, 0x500e77a0
mov r13d, 0xf65d70dd
mov edi, 0xa6f016c3
mov rbp, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r14, qword [sym.imp.USER32.dll_CloseClipboard]
mov r15, qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
mov eax, 0xf65d70dd
nop
cmp eax, 0xf4886741
jle 0x1400019d0
cmp eax, 0x4d96aea1
jg 0x1400019a0
cmp eax, 0xf4886742
je 0x140001a4a
cmp eax, 0x13ff673b
je 0x14000196a
cmp eax, 0xf65d70dd
jne 0x140001970
jmp 0x140001b6d
cmp eax, 0x4d96aea2
je 0x140001a8f
cmp eax, 0x500e77a0
jne 0x140001970
cmp dword [rsp + 0x40], 0
mov eax, 0xce16a77c
cmove eax, r13d
cmp eax, 0xf4886741
jg 0x140001977
nop word [rax + rax]
cmp eax, 0xd13f7adb
jg 0x140001a10
cmp eax, 0xa6f016c3
je 0x140001af0
cmp eax, 0xce16a77c
jne 0x140001970
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
mov eax, 0xd13f7adc
cmove eax, r13d
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
cmp eax, 0xd13f7adc
je 0x140001b2b
cmp eax, 0xd64ce5cb
jne 0x140001970
mov dword [rsp + 0x24], r12d
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x24]
cmp ecx, eax
mov eax, 0xf4886742
cmovl eax, edi
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
movsxd rdx, dword [rsp + 0x34]
mov r9, qword [0x140035220]
mov rcx, qword [rsp + 0x28]
mov r8d, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x38]
call rbp
call r14
mov rcx, qword [rsp + 0x28]
call fcn.1400170d8
mov eax, 0x13ff673b
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
mov eax, dword [rsp + 0x44]
add eax, 0x32
movsxd rsi, eax
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
xor r12d, r12d
xor edx, edx
mov r8, rsi
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
call r15
mov rcx, qword [rsp + 0x28]
mov r8, rax
call fcn.140001b80
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x34], eax
mov eax, 0xd64ce5cb
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
movzx edx, byte [rcx + rax]
mov ebx, edx
not bl
and bl, 0xce
and dl, 0x31
or dl, bl
mov byte [rcx + rax], dl
mov r12d, dword [rsp + 0x24]
add r12d, 1
mov eax, 0xd64ce5cb
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [rsp + 0x44], eax
cmp qword [rsp + 0x38], 0
mov eax, 0x4d96aea2
mov ecx, 0x13ff673b
cmove eax, ecx
cmp eax, 0xf4886741
jg 0x140001977
jmp 0x1400019d0
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004420
Capabilities:
Log keystrokes
Log keystrokes via application hook
Log keystrokes via polling

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [0x140035148], rcx
mov rdi, qword [sym.imp.msvcrt.dll__time64]
xor ecx, ecx
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
shr rax, 3
movabs rcx, 0x20c49ba5e353f7cf
mul rcx
shr rdx, 4
sub esi, edx
mov dword [0x140035030], esi
xor ecx, ecx
call rdi
mov qword [0x1400350f0], rax
lea rcx, [0x1400350f0]
call qword [sym.imp.msvcrt.dll__localtime64]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [0x1400350f8], xmm0
movups xmmword [0x140035108], xmm1
mov eax, dword [rax + 0x20]
mov dword [0x140035118], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140003c80]
mov ecx, 0xd
mov r8, rax
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [0x140035080], rax
mov eax, 0xbbc43fee
lea rsi, [rsp + 0x38]
mov r14, qword [sym.imp.USER32.dll_TranslateMessage]
mov r12, qword [sym.imp.USER32.dll_DispatchMessageA]
mov r15d, 0x777d5a7
mov r13, qword [sym.imp.USER32.dll_GetMessageA]
mov ebx, 0xfe2a21ff
mov rbp, qword [sym.imp.USER32.dll_GetKeyState]
cmp eax, 0xe6408c28
jle 0x140004540
cmp eax, 0x777d5a6
jg 0x140004560
cmp eax, 0xe6408c29
je 0x14000459c
cmp eax, 0xfe2a21ff
jne 0x140004500
mov rax, qword [rsp + 0x30]
mov eax, 0xc49bf8b3
mov edi, 1
cmp eax, 0xe6408c28
jg 0x140004507
nop word cs:[rax + rax]
cmp eax, 0x9fb31167
je 0x1400045c4
cmp eax, 0xbbc43fee
je 0x1400045e5
cmp eax, 0xc49bf8b3
jne 0x140004500
jmp 0x14000461b
cmp eax, 0x777d5a7
je 0x140004604
cmp eax, 0x1a7e7b7e
jne 0x140004500
mov ecx, 0x14
call rbp
cwde
mov dword [0x1400350ac], eax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov eax, 0xe6408c29
cmp eax, 0xe6408c28
jg 0x140004507
jmp 0x140004540
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call r13
test eax, eax
mov eax, 0x9fb31167
cmove eax, ebx
cmp eax, 0xe6408c28
jg 0x140004507
jmp 0x140004540
mov rcx, rsi
call r14
mov rcx, rsi
call r12
mov eax, 0xe6408c29
cmp eax, 0xe6408c28
jg 0x140004507
jmp 0x140004540
cmp qword [rsp + 0x28], 0
mov eax, 0x1a7e7b7e
cmove eax, r15d
cmp eax, 0xe6408c28
jg 0x140004507
jmp 0x140004540
mov eax, 0xc49bf8b3
xor edi, edi
cmp eax, 0xe6408c28
jg 0x140004507
jmp 0x140004540
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140004d90
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call fcn.140010280
mov byte [rbp - 2], 0x71
mov word [rbp - 4], 0x7521
mov r9, qword [0x140035220]
lea rcx, [rbp - 4]
mov edx, 3
mov r8d, 1
call sub.msvcrt.dll_fwrite
xorps xmm0, xmm0
movaps xmmword [0x140035150], xmm0
movaps xmmword [0x140035160], xmm0
movaps xmmword [0x140035170], xmm0
movaps xmmword [0x140035180], xmm0
movaps xmmword [0x140035190], xmm0
movaps xmmword [0x1400351a0], xmm0
mov dword [0x1400351b0], 0
call fcn.140001500
lea rcx, [0x140004c40]
call fcn.140004420
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140010490
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140016ae0
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.140016ae0
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 0x140010500
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140035294]
test esi, esi
mov rbx, rcx
jle 0x140010630
mov rax, qword [0x140035298]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001054b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400105d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140010530
mov rcx, rbx
call fcn.140010f50
test rax, rax
mov rdi, rax
je 0x140010652
mov rax, qword [0x140035298]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140011090
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140035298]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010637
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400105ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400105e0
add dword [0x140035294], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140035298]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400105ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010490
nop dword [rax]
xor esi, esi
jmp 0x140010558
mov rax, qword [0x140035298]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140010490
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140010490
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010bc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140035300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400352e0]
test rbx, rbx
je 0x140010c1c
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 0x140010c13
test rsi, rsi
je 0x140010c13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010bf8
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 0x140010f50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002ddc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010f70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010f78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010f70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140010fcd
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]
cmp rcx, r8
mov rdx, r8
jb 0x140010fc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010f70
add rax, 0x28
cmp rax, r9
jne 0x140010fb0
xor eax, eax
ret

Function at 0x140010fd0
Capabilities:
Parse pe header

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

Function at 0x140011090
Capabilities:
Parse pe header

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

Function at 0x140017b10
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 + 0x78], 0
mov dword [rsp + 0x87], 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 0x140017c1a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017bf2
add rax, 1
cmp rax, 0x6b
je 0x140017c0f
cmp byte [rcx + rax], 0
jne 0x140017be8
cmp eax, 0x6a
movsxd rdx, eax
je 0x140017c0f
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
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140017c03
Function at 0x140017f90
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140035e10], 1
je 0x140018008
lea rdi, [0x140035e10]
mov rcx, rdi
call fcn.140017890
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140017210
mov esi, dword [0x140035e10]
test esi, esi
jne 0x140018018
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14002a328], eax
je 0x140029516
mov dword [0x140035e10], 1
mov rcx, rbp
call fcn.140017500
test rbx, rbx
je 0x140018008
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140017c30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017fe8
mov ecx, 2
call qword [fcn.140016ae0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017fe8
call sub.msvcrt.dll_abort
nop

Function at 0x140018040
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140017d40
cmp qword [0x140038048], 0
mov rbx, rax
je 0x140018158
test rax, rax
je 0x140018158
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001b300
cmp eax, 1
je 0x140018166
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14002951c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14002a328]
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 0x14001816c
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.140017b10
nop
jmp fcn.14002951c

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

Disassembly:
sub rsp, 0x28
call fcn.140017f90
mov ecx, dword [0x14002a328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400181a0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140018040