joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a30
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140005b5a
mov rcx, qword [rsp + 0x58]
shr rcx, 0x14
lea r9, [rsp + 0xba]
movabs r10, 0xcccccccccccccccd
nop
sub r9, 2
mov rax, r10
mul rcx
shr rdx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov rcx, rdx
test rdx, rdx
jne 0x140005a90
lea r8, [rsp + 0xba]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140006570
nop
lea rdx, [0x140009ac0]
lea rcx, [rsp + 0x30]
call fcn.1400042a0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005b7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006cac
jmp 0x140005b7d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 7
lea rdx, str.Unknown
mov rcx, rbx
call fcn.140001910
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140006c50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x140005bb0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x38]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x200
mov r9d, 0x20019
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
xor r8d, r8d
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005c78
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.ProcessorNameString
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x140005c72
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
inc r8
cmp word [rax + r8*2], di
jne 0x140005c61
lea rdx, [rsp + 0x50]
jmp 0x140005c93
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rdx, str.Unknown_CPU
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8d, 0xb
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140001910
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140006c50
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140005f10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x48], 0x800
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
mov r8d, 0x17
lea rdx, str.Unknown_Windows_Version
call fcn.140001910
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006037
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductName
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000602c
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140005fe2
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14000601f
mov rsi, rdi
cmp rax, 7
jbe 0x140006001
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], bp
jmp 0x14000602c
lea r9, [rsp + 0x50]
mov rcx, rdi
call fcn.1400015f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140006c50
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006130
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400061d1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallDate
mov dword [rsp + 0x44], 4
mov dword [rsp + 0x40], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400061ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rdx, str.Unknown
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8d, 7
mov qword [rbx + 0x18], rdi
jmp 0x140006262
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x58]
mov edx, 0x64
lea r8, str._Y__m__d__H:_M:_S
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_wcsftime]
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140006250
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.140001910
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140006c50
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x140006430
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rbx, rcx
mov dword [rsp + 0x28], 0x101
lea rcx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
test eax, eax
je 0x1400064a1
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140006490
lea rdx, [rsp + 0x30]
jmp 0x1400064ae
mov r8d, 0xc
lea rdx, str.Unknown_User
mov rcx, rbx
call fcn.140001910
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140006c50
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140007a14
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400130e0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rcx, [0x140027010]
call fcn.1400113e3
nop
mov r8, qword [rbp + 0x1f0]
mov edx, dword [rbp + 0x1e8]
mov ecx, dword [rbp + 0x1e0]
call fcn.1400113f7
movss dword [rbp + 4], xmm0
movss xmm0, dword [rbp + 4]
ucomiss xmm0, dword [0x14001edfc]
jp 0x14001314e
jne 0x14001314e
lea rcx, str.Macierz_nieodwracalna_n
call fcn.1400111d1
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
movsxd rax, dword [rbp + 0x1e0]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_calloc]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x44], 0
jmp 0x140013178
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x1e0]
cmp dword [rbp + 0x44], eax
jge 0x1400131a6
movsxd rax, dword [rbp + 0x1e8]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_calloc]
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov qword [rdx + rcx*8], rax
jmp 0x140013170
xorps xmm0, xmm0
movss dword [rbp + 0x64], xmm0
xorps xmm0, xmm0
movss dword [rbp + 0x84], xmm0
xorps xmm0, xmm0
movss dword [rbp + 0xa4], xmm0
mov dword [rbp + 0xc4], 0
jmp 0x1400131de
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0x1e0]
cmp dword [rbp + 0xc4], eax
jge 0x1400132d4
mov dword [rbp + 0xe4], 0
jmp 0x14001320a
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x1e8]
cmp dword [rbp + 0xe4], eax
jge 0x1400132cf
mov eax, dword [rbp + 0xe4]
mov ecx, dword [rbp + 0xc4]
add ecx, eax
mov eax, ecx
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
je 0x140013244
mov dword [rbp + 0x1b4], 0xffffffff
jmp 0x14001324e
mov dword [rbp + 0x1b4], 1
cvtsi2ss xmm0, dword [rbp + 0x1b4]
movss dword [rbp + 0x1b8], xmm0
mov r8, qword [rbp + 0x1f0]
mov edx, dword [rbp + 0x1e8]
mov ecx, dword [rbp + 0x1e0]
call fcn.1400112e4
mov ecx, dword [rbp + 0xe4]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp + 0xc4]
mov r8, rax
mov edx, dword [rbp + 0x1e8]
mov ecx, dword [rbp + 0x1e0]
call fcn.14001125d
movss xmm1, dword [rbp + 0x1b8]
mulss xmm1, xmm0
movaps xmm0, xmm1
divss xmm0, dword [rbp + 4]
movsxd rax, dword [rbp + 0xc4]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rdx + rax*8]
movss dword [rax + rcx*4], xmm0
jmp 0x1400131fc
jmp 0x1400131d0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x140016e90
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]
nop
add rsp, 0x28
ret
Function at 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400181e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018200
xor al, al
jmp 0x140018281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018213
xor al, al
jmp 0x140018281
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 0x14001823d
xor al, al
jmp 0x140018281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018251
xor al, al
jmp 0x140018281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018263
xor al, al
jmp 0x140018281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001827f
xor al, al
jmp 0x140018281
mov al, 1
add rsp, 0x38
ret
Function at 0x1400160c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011415
movzx eax, al
test eax, eax
jne 0x1400160e0
mov ecx, 7
call fcn.140011375
nop
mov byte [rsp + 0x20], 0
call fcn.14001138e
mov byte [rsp + 0x21], al
cmp dword [0x140022878], 1
jne 0x140016104
mov ecx, 7
call fcn.140011375
nop
jmp 0x14001615c
cmp dword [0x140022878], 0
jne 0x140016157
mov dword [0x140022878], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.1400111d6
test eax, eax
je 0x140016138
mov eax, 0xff
jmp 0x140016261
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.140011384
mov dword [0x140022878], 2
jmp 0x14001615c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011361
call fcn.1400112fd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400161b9
mov rcx, qword [rsp + 0x30]
call fcn.14001118b
movzx eax, al
test eax, eax
je 0x1400161b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140028020]
nop
call fcn.14001132f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400161ed
mov rcx, qword [rsp + 0x38]
call fcn.14001118b
movzx eax, al
test eax, eax
je 0x1400161ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113ca
nop
call fcn.140016310
mov dword [rsp + 0x28], eax
call fcn.1400112d5
movzx eax, al
test eax, eax
jne 0x14001620c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001621b
call fcn.1400113d4
nop
xor edx, edx
mov cl, 1
call fcn.14001117c
mov eax, dword [rsp + 0x28]
jmp 0x140016261
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044c0]
mov dword [rax], 1
mov rax, qword [0x1400044d0]
mov dword [rax], 1
mov rax, qword [0x140004450]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400044a0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004570]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004400]
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 0x140001b30
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002520
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 0x14000256d
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 0x140002564
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000256f
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002600
mov rdx, qword [0x140004450]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025ee
cmp word [rax + 0x18], 0x20b
jne 0x1400025ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002600
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002600
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025d0
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 0x140002610
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002690
Capabilities:
Parse pe header

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

Function at 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004450]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002740
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002737
test rcx, rcx
je 0x1400026f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002728
xor eax, eax
ret
Function at 0x140002750
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004450]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002804
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002810
add rdx, 0x28
cmp rdx, r9
jne 0x1400027f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004450]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002842
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002850
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002842
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002842
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002842
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028b8
add rdx, 0x28
cmp r10, rdx
jne 0x140002890
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028ae
test ecx, ecx
jg 0x1400028c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009840]
mov dword [rax], 1
mov rax, qword [0x140009850]
mov dword [rax], 1
mov rax, qword [0x140009790]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009820]
mov dword [0x14000c00c], 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 [0x140009900]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400098e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140009770]
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 [sym._matherr]
call sym.__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