joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001d230
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x498
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0x480], rax
test rdx, rdx
jne 0x18001d268
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180043700
add rsp, 0x498
ret
mov qword [rsp + 0x4a0], rbx
lea rax, [rsp + 0x270]
mov r8, rdx
mov qword [rsp + 0x4b0], rsi
mov qword [rsp + 0x490], rdi
xor edx, edx
xor edi, edi
mov dword [rsp + 0x28], 0x104
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov ebx, edi
lea r9d, [rdi - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x18001d317
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x18001d305
mov eax, dword [rsp + 0x4c]
cmp eax, ebx
jbe 0x18001d305
mov edi, dword [rsp + 0x38]
mov ebx, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18001d2e0
mov r8d, edi
lea rdx, [0x18004cb60]
lea rcx, [rsp + 0x270]
call fcn.18001cb50
mov rdi, qword [rsp + 0x490]
lea rax, [rsp + 0x270]
mov rsi, qword [rsp + 0x4b0]
mov rbx, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180043700
add rsp, 0x498
ret

Function at 0x18001e130
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
lea rax, str.cmd.exe
movups xmmword [rsp + 0x40], xmm0
mov r8, rcx
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x44], 0x40
mov qword [r11 - 0x70], rax
call fcn.180022890
cmp qword [rax + 0x18], 0xf
jbe 0x18001e1a4
mov rax, qword [rax]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
cmp rdx, 0xf
jbe 0x18001e1e9
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e1e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001e1e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180043acc
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x18001e221
mov rcx, qword [rsp + 0xa8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180043700
add rsp, 0xc8
ret
Function at 0x18001f2c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001f35a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18001f35a
cmp dword [rsp + 0x28], esi
jne 0x18001f330
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x18001f356
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18001f330
jmp 0x18001f35a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180043700
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18001f390
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18001f3c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbp
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001f3d2
lea rbp, [rax*2 + 2]
mov dword [rsp + 0x20], 4
mov r8, rbp
mov r9d, 0x3000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
test eax, eax
je 0x18001f46c
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x18001f479
mov r8d, 0x8000
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x18001f49f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x8000
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180042210
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18004225c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov qword [0x180056d88], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180042660]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180056d40], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x18004226d
mov rcx, qword [0x180056d40]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140001008
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
lea rax, [rsp + 0x90]
mov edx, 0x105
sub rbx, rax
lea rcx, [rsp + 0x90]
xor edi, edi
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x140001078
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140001078
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001056
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140001168
movzx eax, word [rsp + 0x90]
lea rcx, [rsp + 0x90]
jmp 0x1400010ae
lea rbx, [rcx + 2]
cmp ax, 0x3a
je 0x1400010b5
movzx eax, word [rbx]
mov rcx, rbx
test ax, ax
jne 0x14000109e
jmp 0x1400010d6
mov word [rcx], di
cmp word [rbx], di
je 0x1400010d6
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x1400010de
lea rbx, [rsp + 0x90]
lea rax, [rsp + 0x30]
mov edx, 0x29
sub rbx, rax
lea rcx, [rsp + 0x30]
lea rax, [rdx + 0x7fffffd5]
test rax, rax
je 0x140001112
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140001112
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400010f0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140001168
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
test eax, eax
js 0x140001168
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x140001168
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_com_private_l1_1_0.dll_CoRegisterSurrogateEx]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400014c0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
Function at 0x140001c14
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140005620], eax
call fcn.140001920
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140005620], 0
jne case.default.0x140001c6a
mov ecx, 1
call fcn.140001920
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add dword [rax], eax
adc byte [rax], al
add byte [rax], al
sbb byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add dword [rax], eax
add dword [rax], eax
add byte [rax], al
xor byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add dword [rax], eax
or dword [rax + rax], eax
add byte [rax], cl
add byte [rax], al
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401587a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401587b0]
mov dword [rax], 1
mov rax, qword [0x1401587c0]
mov dword [rax], 1
mov rax, qword [0x140158710]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140158790]
mov dword [0x14018100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1401588a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140158880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140157d40]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1401587f0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140158800]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140181008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140158750]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1401587e0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140181028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140181020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140181020], rbp
call dbg.__main
mov rax, qword [0x140158770]
mov r8, qword [0x140181018]
mov ecx, dword [0x140181028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140181020]
call sym.main
mov ecx, dword [0x14018100c]
mov dword [0x140181010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140181008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140158800]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140158850]
mov rcx, qword [0x140158840]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140181010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140158870]
mov rcx, qword [0x140158860]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
call sym.getenv
mov qword [rbp - 8], rax
mov ebx, 0
mov esi, 0
cmp qword [rbp - 8], 0
jne 0x1400014b8
lea rax, [rbp - 0x1a]
mov qword [rbp - 0x10], rax
nop
nop
mov ebx, 1
lea rdx, [rbp - 0x1a]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x140152022]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
jmp 0x1400014de
lea rax, [rbp - 0x19]
mov qword [rbp - 0x18], rax
nop
nop
mov esi, 1
lea rcx, [rbp - 0x19]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x20]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
test sil, sil
test bl, bl
jmp 0x1400014f2
mov rax, qword [rbp + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rbp
ret
Function at 0x140004190
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140004200
jg 0x1400041c0
sub edx, 0x49
cmp dl, 1
ja 0x140004210
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp sym.d_template_args_1
cmp dl, 0x58
jne 0x140004210
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call sym.d_expression_1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140004220
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp sym.d_expr_primary
add rsp, 0x30
pop rsi
jmp sym.d_type
xor eax, eax
jmp 0x1400041fa
Function at 0x14000d670
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000d6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140181094]
mov rbx, rcx
test esi, esi
jle 0x14000d810
mov rax, qword [0x140181098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d72b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d7b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d710
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000d832
mov rax, qword [0x140181098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140181098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000d7ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000d7c0
add dword [0x140181094], 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 [0x140181098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d7ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000d738
mov rax, qword [0x140181098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ddd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140181100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401810e0]
test rbx, rbx
je 0x14000de2c
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 rsi, rsi
je 0x14000de23
test eax, eax
jne 0x14000de23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000de08
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 0x14000e040
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e058
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e060
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e070
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000e0bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000e0b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000e0bf
add rax, 0x28
cmp rax, r9
jne 0x14000e0a0
xor eax, eax
ret

Function at 0x14000e0c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000e150
mov rdx, qword [0x140158710]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000e13e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000e13e
cmp word [rax + 0x18], 0x20b
jne 0x14000e13e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000e150
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000e129
add rbx, 0x28
cmp rbx, rdi
je 0x14000e150
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000e120
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x14000e1e0
Capabilities:
Parse pe header

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