joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e170
Capabilities:
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
test r8, r8
je 0x14004e222
test dword [rcx + 0x10], 0x100000
jne 0x14004e1a5
mov r8d, 0x1cd9
lea rdx, str.C:UserschiefDownloadsGodness_Loader_mainimguiimgui_widgets.cpp
lea rcx, str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx r9d, byte [rsi]
lea r8, [rsi + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x14004e1f2
lea r11, [0x1400550b0]
cmp r9b, 0x23
jne 0x14004e1d5
cmp byte [r8], r9b
jne 0x14004e1d5
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14004e1c2
mov rcx, qword [0x140084118]
not eax
cmp dword [rcx + 0x1d6c], eax
jne 0x14004e209
mov dword [rcx + 0x1d70], eax
cmp dword [rcx + 0x1da8], eax
jne 0x14004e2a8
mov byte [rcx + 0x1dac], 1
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140084118]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x1d18]
cmp dword [rdi + 0x108], 0
jg 0x14004e264
mov r8d, 0x6d1
lea rdx, str.C:UserschiefDownloadsGodness_Loader_mainimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x140084118]
movsxd rax, dword [rdi + 0x108]
xor edx, edx
mov r8, qword [rdi + 0x110]
mov rcx, rsi
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1400093d0
mov rdi, qword [rsp + 0x38]
cmp dword [rbx + 0x1d6c], eax
jne 0x14004e294
mov dword [rbx + 0x1d70], eax
cmp dword [rbx + 0x1da8], eax
jne 0x14004e2a3
mov byte [rbx + 0x1dac], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x14005163c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400516c0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140054830]
cmp byte [rcx + rax], 0
je 0x1400516c0
dec r8
sub rdx, 1
jne 0x1400516a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14005297c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140014f20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c50
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c63
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012c8d
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012ca1
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012cb3
xor al, al
jmp 0x140012cd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012ccf
xor al, al
jmp 0x140012cd1
mov al, 1
add rsp, 0x38
ret
Function at 0x140014dc0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movzx r13d, r9b
mov r12d, r8d
mov ebp, edx
mov rbx, rcx
xor edi, edi
mov qword [rcx], rdi
mov dword [rcx + 8], 0x4b
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 1
lea rax, [0x1400886f4]
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rdi
mov dword [rcx + 0x34], edi
mov dword [rcx + 0x38], 0x4c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, ebp
cmp ebp, eax
cmove edx, edi
lea ecx, [rdi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x40], rax
mov dword [rbx + 0x48], ebp
mov byte [rbx + 0x4c], dil
movzx ecx, byte [rsp + 0x90]
mov byte [rbx + 0x4d], cl
cmp rax, 0xffffffffffffffff
je 0x140014f76
test ebp, ebp
je 0x140014e66
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebp, eax
je 0x140014e66
xor r14b, r14b
jmp 0x140014e69
mov r14b, 1
mov dword [rsp + 0x20], 0x1c
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x40]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140014f27
cmp dword [rsp + 0x20], 0x10
jb 0x140014f09
cmp dword [rsp + 0x2c], ebp
jne 0x140014f09
test r14b, r14b
je 0x140014eab
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x28]
cmp r8d, eax
je 0x140014f09
jmp 0x140014eb0
mov r8d, dword [rsp + 0x28]
mov ecx, r12d
or ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x140014f09
mov rdi, qword [rbx + 0x10]
inc rdi
mov rcx, qword [rbx + 0x18]
shr rcx, 1
cmp rdi, rcx
jbe 0x140014ee1
mov rcx, rbx
call fcn.140010fc0
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + rdi*8]
test rcx, rcx
je 0x140014ef8
mov qword [rcx], rsi
lea rdx, [rsp + 0x28]
lea rcx, [rbx + 0x20]
call fcn.140015130
mov qword [rax], rsi
mov dword [rsp + 0x20], 0x1c
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x40]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140014e87
test r13b, r13b
je 0x140014f76
cmp qword [rbx + 0x40], 0xffffffffffffffff
je 0x140014f76
cmp byte [rbx + 0x4c], 0
jne 0x140014f76
mov rdi, qword [rbx]
mov rax, qword [rbx + 0x10]
lea rcx, [rdi + rax*8]
cmp rdi, rcx
je 0x140014f76
nop dword [rax]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
or byte [rbx + 0x4c], al
add rdi, 8
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
cmp rdi, rcx
jne 0x140014f50
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140015040
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp qword [rcx + 0x40], 0xffffffffffffffff
je 0x1400150d9
cmp byte [rcx + 0x4c], 0
je 0x1400150a1
cmp byte [rcx + 0x4d], 0
je 0x1400150a1
mov rdi, qword [rcx]
mov rax, qword [rcx + 0x10]
lea rcx, [rdi + rax*8]
cmp rdi, rcx
je 0x14001509a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
sete al
or byte [rbx + 0x4c], al
add rdi, 8
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
cmp rdi, rcx
jne 0x140015074
movzx eax, byte [rbx + 0x4c]
mov byte [rbx + 0x4d], al
mov rdi, qword [rbx]
mov rax, qword [rbx + 0x10]
lea rcx, [rdi + rax*8]
cmp rdi, rcx
je 0x1400150ce
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
cmp rdi, rcx
jne 0x1400150b1
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x20]
lea rax, [0x1400886f4]
cmp rcx, rax
je 0x1400150ff
mov r9d, 0x424
lea r8, str.C:_buildoutputunityunityRuntimeCoreContainershash_set.h
mov edx, dword [rbx + 0x38]
call fcn.1400027a0
nop
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007a10
Function at 0x140020420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, r8
mov rdi, rdx
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
cmp qword [rdx + 0x18], 8
jb 0x140020461
mov rdx, qword [rdx]
mov rcx, qword [rdi + 0x10]
lea rax, [rdx + rcx*2]
jmp 0x140020469
mov rax, qword [rdx + 0x10]
lea rax, [rdx + rax*2]
mov ecx, 0x5c
cmp rdx, rax
je 0x140020485
cmp word [rdx], 0x2f
jne 0x14002047c
mov word [rdx], cx
add rdx, 2
cmp rdx, rax
jne 0x140020473
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020492
mov rbx, qword [rdi]
mov edx, ecx
mov rcx, rbx
call fcn.140045338
mov rsi, rax
test rax, rax
je 0x1400204aa
add rsi, 2
jmp 0x1400204ad
mov rsi, rbx
mov r13, qword [r15 + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r13
cmp rax, 1
jb 0x140020632
cmp qword [r15 + 0x18], 8
jb 0x1400204d5
mov r15, qword [r15]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
lea rbp, [r13 + 1]
mov ebx, 7
lea r12, [rsp + 0x28]
cmp rbp, rbx
jbe 0x140020525
mov rbx, rbp
or rbx, 7
cmp rbx, rcx
jbe 0x140020503
mov rbx, rcx
jmp 0x14002050f
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.140014940
mov r12, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbx
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r15
mov rcx, r12
call fcn.140043700
mov eax, 0x5c
mov word [rbx + r12], ax
xor ebx, ebx
mov word [r12 + rbp*2], bx
mov dword [rsp + 0x20], 2
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], 0
jne 0x140020565
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14002c320
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov dword [rsp + 0x20], 7
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400205ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
cmp rdx, 0x1000
jb 0x1400205e5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020638
mov rcx, r8
call fcn.14003f8c0
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1400205f7
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002060f
test al, 0x10
jne 0x14002060f
mov rcx, r14
call fcn.140020640
nop
mov rcx, rdi
call fcn.140012400
mov rax, r14
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400119b0
int3
call fcn.14004df0c
int3
Function at 0x1400212f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rdx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140021349
xor dil, dil
jmp 0x1400213cb
mov dword [rsp + 0x80], r14d
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [rsp + 0x80], 0
je 0x140021373
xor dil, dil
jmp 0x1400213cb
mov rsi, qword [rdi + 8]
sub rsi, qword [rdi]
lea rdx, [rsi + rbp]
mov rcx, rdi
call fcn.14002dea0
mov dword [rsp + 0x88], r14d
mov rdx, qword [rdi]
add rdx, rsi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400213c8
mov edx, dword [rsp + 0x88]
add rdx, rsi
mov rcx, rdi
call fcn.14002dea0
xor dil, dil
jmp 0x1400213cb
mov dil, 1
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400213de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140030990
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rcx], rdx
mov rbx, rcx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], r8
mov byte [rcx + 0x40], 0
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x1400326b0]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140032930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
movaps xmmword [rax - 0x38], xmm6
mov r14, rcx
lea rdi, [rcx + 8]
mov qword [rax + 8], rdi
mov rcx, rdi
call fcn.140011d70
nop
mov rcx, qword [r14 + 0xa0]
call fcn.1400335b0
movaps xmm6, xmm0
lea rcx, [r14 + 0x40]
cmp qword [rcx + 0x18], 8
jb 0x14003297f
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1400329a2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebp, ebp
jmp 0x140032aad
xor ebp, ebp
mov qword [rsp + 0x480], rbp
lea r9, [rsp + 0x480]
lea r8, [0x1400337c0]
lea edx, [rbp + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov rdx, qword [rsp + 0x480]
mov rcx, rbx
test rdx, rdx
je 0x140032aa7
lea r8d, [rbp + 0xe]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
test rax, rax
je 0x140032aa7
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140032aa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140032aa4
mov dword [rsp + 0x20], ebp
lea edx, [rbp + 1]
mov r9d, 0x100
mov r8d, r9d
mov rcx, rax
call qword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, ax
lea r8d, [rbp + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
mov rcx, rbx
test rax, rax
je 0x140032aa7
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140032aa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rcx, rbx
test rax, rax
je 0x140032aa7
mulss xmm6, dword [0x14008b134]
cvttss2si esi, xmm6
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x30000
lea r8d, [rbp + 1]
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov rbp, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [r14 + 0x80]
cmp qword [rax + 0x18], 8
jb 0x140032abe
mov rax, qword [rax]
lea r9, [r14 + 0x60]
cmp qword [r9 + 0x18], 8
jb 0x140032acc
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
lea r8, str._s____s
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.140014d00
lea r9, [rsp + 0x40]
mov r8, rbp
mov edx, 0x501
mov rcx, qword [r14 + 0xa0]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, rdi
call fcn.140011d80
nop
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140036c00
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140036d22
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [rdi + 0x40], 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov qword [rsp + 0x28], rax
lea rdx, str.CancelSynchronousIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140036cd2
nop dword [rax]
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x140036ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140036ca8
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140036ca8
mov edx, 0x3e8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140036c70
mov edx, 0xffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x40]
jmp 0x140036d07
mov edx, 0x3e8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140036cb7
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003b010
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call fcn.140010790
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14003b045
mov edx, eax
lea rcx, str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.140002720
mov edi, 1
jmp 0x14003b111
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x140033900]
call fcn.14004df84
mov edx, 2
mov ecx, edx
call fcn.140048da8
lea rdx, [0x140032180]
mov ecx, 0x16
call fcn.14005120c
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, qword [str.__console]
call fcn.140021270
test al, al
je 0x14003b0b5
call fcn.1400203a0
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, qword [str.__wait_for_debugger]
call fcn.140021270
test al, al
je 0x14003b0d2
call fcn.140022e10
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, str.__attach
call fcn.140021270
mov rdx, rbx
mov ecx, dword [rsp + 0x20]
test al, al
je 0x14003b10a
call fcn.14001de50
mov edi, eax
test eax, eax
js 0x14003b111
mov rdx, rbx
mov ecx, dword [rsp + 0x20]
call fcn.140035c80
jmp 0x14003b111
call fcn.140035570
mov edi, eax
call fcn.140010680
nop
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400031e0
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.140004c60
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.140004c60
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 0x140003250
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003380
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000329b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003325
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003280
mov rcx, rbx
call fcn.140003ca0
mov rdi, rax
test rax, rax
je 0x1400033a2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003de0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003387
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000331e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003330
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000331e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400031e0
nop dword [rax]
xor esi, esi
jmp 0x1400032a8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400031e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400031e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000396c
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 0x140003963
test rsi, rsi
je 0x140003963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003948
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 0x140003ca0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003d20
Capabilities:
Parse pe header

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

Function at 0x140003de0
Capabilities:
Parse pe header

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