joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140027f3b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x1400371f0]
cmp rax, 3
jne 0x1400280c1
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140027fb1
cmp word [rbx], 0
je 0x14002802c
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140028041
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140027fcc
mov r14d, eax
cmp eax, 0x2726
jne 0x1400280b0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400280a7
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140027f89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400280b0
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140028080
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140027f30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140027f30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x140027f29
call fcn.140029d30
jmp 0x140027f4c

Function at 0x1400288d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002891a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002891a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002891a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002891a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002891a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002891c
xor al, al
add rsp, 0x28
ret
Function at 0x140029d90
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400033b0
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140029e1f
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140029e57
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140029e6a
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140029e87
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x1400371e8]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x140029e87
mov rcx, qword [0x1400371e8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140003300
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002e048]
test rcx, rcx
je 0x14000333b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003360
mov rcx, qword [0x14002e048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003f080], 0
jne 0x140003378
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002e048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000332e
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x14002507e]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x14003f0a0]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003444
test al, 0x10
je 0x140003344
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140003344
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x1400033f0
jmp 0x140003344
Function at 0x14000f9b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
mov r9d, dword [r10 + 0x48]
lea rcx, [rcx + 0x28]
mov r11, qword [r10]
mov r8, qword [r10 + 0x18]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14000fa8d
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rdx, qword [r10 + 8]
mov rbx, qword [r10 + 0x10]
mov rax, qword [r10 + 0x20]
mov rbp, rdx
rol rdx, 1
imul rbp, rdi
mov rsi, rbx
imul rbx, rdi
rol rsi, 7
add rdx, rsi
mov rsi, r8
imul r8, rdi
rol rsi, 0xc
add rdx, rsi
mov rsi, rax
rol rsi, 0x12
rol rbp, 0x1f
imul rax, rdi
add rdx, rsi
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
rol r8, 0x1f
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x14000faf9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
cmp r9, rcx
lea rdx, [rax + r11]
jae 0x14000fac0
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x14000fb37
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp rcx, r9
jae 0x14000fb6e
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
cmp r9, rcx
mov rdx, rax
jne 0x14000fb50
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001bae0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.14001d960
sub rsp, rax
mov eax, dword [0x14002e040]
test eax, eax
mov rsi, rcx
je 0x14001bb80
lea rdi, [0x14003d080]
xor ebx, ebx
test eax, eax
jg 0x14001bb1c
jmp 0x14001bb30
add rbx, 1
cmp dword [0x14002e040], ebx
jle 0x14001bb30
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14001bb10
jmp 0x14001bb67
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001bb45
cmp word [rsi + 2], 0x3a
je 0x14001bb67
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001bbd0
movsxd rbx, dword [0x14002e040]
cmp ebx, 0x3ff
jle 0x14001bbe8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.14001b320
test al, al
je 0x14001bc0a
movsxd rbx, dword [0x14002e040]
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
lea rdi, [0x14003d080]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002e040]
add eax, 1
mov dword [0x14002e040], eax
jmp 0x14001bb01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001bb54
xor eax, eax
jmp 0x14001bb6c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002e040], 1
mov rdx, rax
lea rax, [0x14003d080]
mov qword [rax + rbx*8], rdx
jmp 0x14001bb67
mov rcx, rbx
call fcn.140001880
nop
nop word cs:[rax + rax]
nop
Function at 0x14001cba0
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.140022980
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.140022980
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 0x14001cc10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140041164]
test esi, esi
mov rbx, rcx
jle 0x14001cd40
mov rax, qword [0x140041168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001cc5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001cce5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001cc40
mov rcx, rbx
call fcn.14001d680
test rax, rax
mov rdi, rax
je 0x14001cd62
mov rax, qword [0x140041168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001d7c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140041168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001cd47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001ccde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001ccf0
add dword [0x140041164], 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 [0x140041168]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001ccde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001cba0
nop dword [rax]
xor esi, esi
jmp 0x14001cc68
mov rax, qword [0x140041168]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14001cba0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14001cba0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001d2d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400411c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400411a0]
test rbx, rbx
je 0x14001d32c
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 0x14001d323
test rsi, rsi
je 0x14001d323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001d308
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 0x14001d540
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001d578
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001d580
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001d550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001d578
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001d580
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001d560
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001d578
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001d580
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001d680
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14001d700
Capabilities:
Parse pe header

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

Function at 0x14001d7c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400298e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001d7df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001d7e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001bb0
Capabilities:
Create process on windows

Disassembly:
push rdi
push rbx
sub rsp, 0xe8
xor eax, eax
mov r10, rdx
mov r9, rcx
mov ecx, 0xc
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x74]
lea r8, [rsp + 0x70]
mov rdi, rdx
mov rdx, qword [r10]
mov qword [rsp + 0x58], 0
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov rcx, qword [r9]
mov qword [rsp + 0x60], 0
xor r9d, r9d
mov dword [rdi], 0
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001c80
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
nop
add rsp, 0xe8
pop rbx
pop rdi
ret
mov rbx, qword [0x1400c0ea0]
mov r8d, 0x26
lea rdx, str.Failed_to_create_process._Error_code:
mov rcx, rbx
call fcn.1400b0770
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.1400762a0
mov rbx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rdi, qword [rbx + rax + 0xf0]
test rdi, rdi
je 0x140001d1a
cmp byte [rdi + 0x38], 0
je 0x140001cf0
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.140074f00
mov rcx, rax
call fcn.1400750e0
nop
add rsp, 0xe8
pop rbx
pop rdi
ret
mov rcx, rdi
call fcn.140027cc0
mov rax, qword [rdi]
mov edx, 0xa
lea rcx, [0x140028370]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001ccd
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140001ccd
call fcn.1400b6620
nop

Function at 0x14000c060
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.140015f40
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.140015f40
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 0x14000c0d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e70c4]
test esi, esi
mov rbx, rcx
jle 0x14000c200
mov rax, qword [0x1400e70c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c11b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c1a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c100
mov rcx, rbx
call fcn.14000cb40
test rax, rax
mov rdi, rax
je 0x14000c222
mov rax, qword [0x1400e70c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000cc80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e70c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c207
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c19e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c1b0
add dword [0x1400e70c4], 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 [0x1400e70c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c19e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c060
nop dword [rax]
xor esi, esi
jmp 0x14000c128
mov rax, qword [0x1400e70c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c060
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000c060
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e7120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e7100]
test rbx, rbx
je 0x14000c7ec
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 0x14000c7e3
test rsi, rsi
je 0x14000c7e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c7c8
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 0x14000ca00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000ca38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000ca40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000ca10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000ca38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000ca40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000ca20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000ca38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000ca40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000cb40
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000cbc0
Capabilities:
Parse pe header

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

Function at 0x14000cc80
Capabilities:
Parse pe header

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