joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021640
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14008f030]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 8
jb 0x14002168a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400216be
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140002b90
jmp 0x14002182d
mov ebp, 1
mov ecx, 0x208
call fcn.140048ea0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14002170d
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002171a
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x140021729
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x140021737
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x1400217b8
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002175f
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140021784
add rax, 2
test ecx, ecx
jne 0x140021770
test edx, edx
je 0x1400217b8
mov rcx, rsi
call fcn.140048ac0
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140048ea0
mov rsi, rax
jmp 0x140021700
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400217c0
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x140021803
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14004a9e0
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x140021813
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400016e0
mov rcx, rsi
call fcn.140048ac0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140048aa0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003f0c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14002b6da
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14002b6bd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14002b6a8
Function at 0x14004985c
Capabilities:
Parse pe header

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

Function at 0x140054c18
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140054c4f
call fcn.1400559b8
mov dword [rax], 0x16
call fcn.14004f414
xor eax, eax
jmp 0x140054cdd
mov rdx, r9
mov rcx, r8
call fcn.140054bb4
mov rbx, rax
test rax, rax
je 0x140054cda
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140054ae0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140054cc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005592c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140054cae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140054cbd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140061258
jmp 0x140054cda
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140054cd7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140055008
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140054e73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054e73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054e73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054e73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054e73
cmp dword [rcx + 0x84], 0xe
jbe 0x140054e73
cmp dword [rcx + 0xf8], 0
je 0x140054e73
mov ecx, ebx
call fcn.140054f24
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140054d00
nop
cmp dword [rbp + 0x20], 0
je 0x140054ec1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140054ecc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140054e04
Function at 0x140067e10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140067e97
mov rsi, rbx
cmp word [rax], bp
je 0x140067e56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140067e40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140067e3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006230c
mov rdi, rax
test rax, rax
je 0x140067e84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004a9e0
mov rbp, rdi
xor ecx, ecx
call fcn.140061258
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ad80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14005fe94
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006ae21
cmp ebx, dword [rsp + 0x30]
je 0x14006ae1a
test esi, esi
je 0x14006ae1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006adf5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006ae02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006addf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006ae06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006ae23
mov eax, 1
jmp 0x14006ae23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x142114250
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14211425d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14211426d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x142114255
lea eax, [rcx + 1]
jmp 0x14211427b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14211428e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x142114274
sub eax, 3
jb 0x1421142ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1421142fd
sar eax, 1
movsxd rbp, eax
jb 0x1421142e4
jmp 0x1421142bc
add ebx, ebx
jne 0x1421142ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1421142e4
inc ecx
add ebx, ebx
jne 0x1421142ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1421142e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1421142dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1421142cc
add ecx, 2
jmp 0x1421142e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.142114212
jmp 0x14211425d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x48d400
mov dl, 0x5f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x142114349
cmp rsi, rcx
jae 0x142114351
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x142114330
cmp al, 0x8f
ja 0x142114330
cmp byte [rsi - 2], 0xf
je 0x142114336
sub al, 0xe8
cmp al, 1
ja 0x14211431a
cmp rsi, rcx
jae 0x142114351
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x142114320
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x142114351
lodsb al, byte [rsi]
jmp 0x142114330
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2106000]
mov eax, dword [rdi]
or eax, eax
je 0x1421143ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2119b44]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14211435e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1421143a8
mov qword [rbx], rax
add rbx, 8
jmp 0x14211437e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1421143f2
cmp al, 0xef
ja 0x1421143da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1421143ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1421143c9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1421143c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.142114471], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.142114471
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x142114461
sub rsp, 0xffffffffffffff80
jmp 0x1400013d0
Function at 0x140001600
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x90], rcx
mov r12, rdx
call sub.msvcrt.dll_wcslen
mov r15, qword [rsp + 0x90]
mov rbp, rax
jmp 0x1400016a1
add rbp, 1
mov rax, rbx
sub rax, r15
sar rax, 1
sub rbp, rax
lea r10, [rbp + rbp]
lea ebp, [rdi - 1]
test r9d, r9d
jg 0x140001780
sub ebp, r9d
mov dword [rsp + 0x28], r9d
mov r8d, edi
mov rdx, rsi
movsxd rbp, ebp
mov qword [rsp + 0x38], r10
mov rcx, r13
mov qword [rsp + 0x30], r11
movzx ebp, word [rsi + rbp*2]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9d, dword [rsp + 0x28]
test r9d, r9d
je 0x140001699
mov r11, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rbx + r11*2]
call sub.msvcrt.dll_memmove
mov word [rsi + rdi*2 - 2], bp
mov rbp, r14
lea rdx, section..rdata
mov rcx, r15
call sub.msvcrt.dll_wcsstr
mov rsi, rax
test rax, rax
je 0x1400017e8
lea r13, [rax + 4]
lea rdx, section..rdata
mov rcx, r13
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x1400017e8
xor edx, edx
lea rbx, [rax + 4]
xor r8d, r8d
mov rcx, r13
mov word [rax], dx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9, rbx
sub r9, rsi
movsxd rdi, eax
sar r9, 1
not r9d
add r9d, edi
movsxd r11, r9d
lea r14, [r11 + rbp]
cmp r14, r12
jb 0x140001630
lea r12, [r12 + r12*2 + 0x30]
lea rax, [r14 + 1]
mov dword [rsp + 0x30], r9d
shr r12, 1
mov qword [rsp + 0x28], r11
cmp r14, r12
cmovae r12, rax
cmp r15, qword [rsp + 0x90]
lea rdx, [r12 + r12]
je 0x1400017b0
mov rcx, r15
call sub.msvcrt.dll_realloc
mov r11, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test rax, rax
mov rcx, rax
je 0x1400017fc
add rbp, 1
mov rax, rcx
sub rax, r15
mov r15, rcx
add rsi, rax
add rbx, rax
lea r13, [rsi + 4]
jmp 0x140001634
lea rcx, [rbx + r11*2]
mov r8, r10
mov rdx, rbx
movsxd rbp, ebp
call sub.msvcrt.dll_memmove
movzx ebp, word [rsi + rbp*2]
mov r8d, edi
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x140001699
mov rcx, rdx
call sub.msvcrt.dll_malloc
mov rcx, rax
test rax, rax
je 0x1400017fc
add rbp, 1
mov rdx, r15
lea r8, [rbp + rbp]
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
mov rcx, rax
jmp 0x14000175e
mov rax, r15
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call qword [fcn.140002db0]
mov r8, r13
lea rdx, str.Substituting__s_results_in_too_large_a_command_line_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop
Function at 0x140001830
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov rbp, rdx
lea rdx, [rsp + 0x2c]
mov rsi, r8
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov eax, dword [rsp + 0x2c]
test eax, eax
jle 0x1400018b5
mov rdi, qword [rbx]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x1400018a8
call qword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
je 0x140001874
cmp word [rdi + 2], 0x3a
je 0x1400018a8
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rdx, qword [rbx]
mov r8d, 0x1000
mov rcx, rsi
call fcn.140001550
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
jmp 0x140001890
mov ecx, 2
call qword [fcn.140002db0]
mov r8, rdi
lea rdx, str.Invalid_command_line:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop dword [rax]

Function at 0x140001b20
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
mov r14, rdx
call sub.msvcrt.dll_wcscpy
test edi, edi
je 0x140001b53
js 0x140001b70
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001c5c
mov eax, dword [0x140005010]
test eax, eax
js 0x140001c46
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.imp.msvcrt.dll__waccess]
mov r13, qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r12, [0x14004a040]
jmp 0x140001b9e
mov rcx, rbx
call r13
test eax, eax
je 0x140001c5c
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rsi, rax
mov eax, dword [0x140005010]
test eax, eax
jns 0x140001bbb
mov rcx, rbx
call fcn.140001a30
test eax, eax
jne 0x140001b61
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
movsxd rsi, esi
call fcn.140001550
lea rsi, [rbx + rsi*2]
mov rcx, rbx
xor edx, edx
call rbp
xor ecx, ecx
mov word [rsi], cx
cmp eax, 0xffffffff
jne 0x140001b61
mov r8d, 0x1000
lea rdx, str.mingw_bin
mov rcx, rbx
call fcn.140001550
xor edx, edx
mov rcx, rbx
call rbp
xor edx, edx
mov word [rsi], dx
cmp eax, 0xffffffff
jne 0x140001b61
add edi, 1
jne 0x140001b90
mov ecx, 2
call qword [fcn.140002db0]
mov r8, r14
lea rdx, str.Top_level_not_found:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140001a30
mov ecx, 2
call qword [fcn.140002db0]
mov r8, r14
lea rdx, str.Invalid_executable_path:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001f80
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.140002db0
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.140002db0
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 0x140001ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004a124]
mov rbx, rcx
test esi, esi
jle 0x140002120
mov rax, qword [0x14004a128]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000203b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400020c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002020
mov rcx, rbx
call fcn.140002a40
mov rdi, rax
test rax, rax
je 0x140002142
mov rax, qword [0x14004a128]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002b80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004a128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400020be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400020d0
add dword [0x14004a124], 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 [0x14004a128]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400020be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001f80
nop dword [rax]
xor esi, esi
jmp 0x140002048
mov rax, qword [0x14004a128]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001f80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001f80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400026b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004a180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004a160]
test rbx, rbx
je 0x14000270c
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 0x140002703
test rsi, rsi
je 0x140002703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400026e8
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 0x140002a40
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002ac0
Capabilities:
Parse pe header

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

Function at 0x140002b80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006d90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002ba8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001160
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x50], 0
nop
xor edx, edx
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x50], 0
je 0x140001170
mov qword [rsp + 0x30], 0
lea rcx, str..Core.dll
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001277
mov qword [rsp + 0x58], rbx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x140001240
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
mov rsi, qword [rsp + 0x60]
je 0x140001277
lea rcx, [0x14004a218]
call fcn.1400017f0
test al, al
je 0x14000128b
lea rcx, str.pause
call fcn.14000c134
xor eax, eax
add rsp, 0x40
pop rdi
ret
lea rcx, [0x14002b470]
call fcn.1400012b0
xor eax, eax
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
lea rdx, [0x14002b480]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call fcn.14000c128
int3