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

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rsi, rcx
test dl, dl
je 0x140008e17
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140008ddc
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0x70], xmm0
jmp 0x140008e17
call fcn.1400169f0
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], edx
mov qword [rsp + 0x90], 1
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0x70], xmm0
test rax, rax
je 0x140008e17
lea rcx, [rsp + 0x98]
call fcn.140016a80
test bl, bl
je 0x140008eae
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_K32GetPerformanceInfo]
test eax, eax
je 0x140008eae
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0x80], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0x88], rax
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x14000b830
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x14000b910
mov rdi, rax
movsxd rax, dword [rbp - 4]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
lea r12, [rdi + rax*8]
lea rbx, [rbp - 0x40]
lea r14, [rbp - 0x20]
mov r15, rdi
jmp 0x14000b8c7
add r15, 8
mov rax, qword [rbp - 0x18]
mov rcx, r13
shl rcx, 5
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc r13
mov qword [rbp - 0x10], r13
cmp r15, r12
je 0x14000b8f6
mov rcx, r15
call fcn.1400169d0
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14001c3f0
mov r13, qword [rbp - 0x10]
cmp r13, qword [rbp - 0x20]
jne 0x14000b8a0
mov rcx, r14
call fcn.140006bc0
jmp 0x14000b8a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
jmp 0x14000b927
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140011890
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rdx + 0x28]
movzx ebx, byte [rdx + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], bl
movzx eax, byte [0x1400ce181]
mov ecx, 0x5f0
mov edx, 8
call fcn.140002310
test rax, rax
mov qword [rbp - 8], r14
je 0x140011b00
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x18], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
mov r12d, 1
lock xadd qword [0x1400ce1a8], r12
mov r14, r12
xor r14, rcx
lea r15, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r15
lea r15, [rax + r8]
rol rax, 0x15
add r14, r9
mov r13, r14
xor r13, r10
rol r14, 0x20
xor r12, r15
add r12, r13
rol r13, 0xd
xor r15, r11
xor r13, r12
rol r12, 0x20
xor r15, rax
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r15, r12
xor r13, r14
rol r14, 0x20
xor r12, r11
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
xor r14, 0xff
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
add r14, r15
rol r15, 0x10
xor r15, r14
rol r15, 0x15
xor r13, r12
add r14, r13
rol r13, 0x11
mov r12, r14
rol r12, 0x20
xor r12, r13
xor r12, r15
xor r12, r14
je 0x140011950
mov rcx, qword [rbp - 8]
mov rax, qword [rcx + 0x58]
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov rdx, qword [rbp - 0x10]
mov qword [rsi + 0x138], rdx
mov byte [rsi + 0x140], bl
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov rdx, qword [rbp - 0x18]
mov qword [rsi + 0x100], rdx
mov qword [rsi + 0x108], r12
mov qword [rsi + 0x110], rax
mov rdx, qword [rcx + 0x10]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x140011aec
test rdx, rdx
je 0x140011aec
mov rcx, qword [rcx + 0x18]
mov r8d, 1
call fcn.140002320
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.140034640
ud2
Function at 0x140019240
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x140019280
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140019320
jmp 0x14001930f
jae 0x1400193df
cmp r8, 0x201
jae 0x140019320
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140019377
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14001934f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400339d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400193a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001944b
mov r8d, r13d
cmp r12, r8
jne 0x140019300
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001947f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001930f
jmp 0x140019320
cmp r14, r8
jb 0x140019499
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14001c3f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140019434
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140002320
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14001941f
jmp 0x140019434
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140034810
jmp 0x1400194ae
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140034bc0
ud2
Function at 0x14001eed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
push 0x246c8d48
invalid
mov rsi, r8

Function at 0x140021420
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400bfa18]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140021458
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400214b6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400214e3
test eax, eax
js 0x1400214c2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400214d9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14001c090
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140017820
mov ecx, 7
int 0x29
ud2

Function at 0x140022190
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
invalid
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400ce181]
add eax, 0xabfca
mov ecx, 0x10
mov edx, 8
call fcn.140002310
dec dword [rax - 0x7b]
ror byte [rdi], 0x84
lodsb al, byte [rsi]
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
add bh, al
and al, 0x20
add byte [rax], al
add dword [rax], eax
lea r8, case.0x14001d0a7.417
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
invalid
jne 0x14002226d
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
add byte [rax - 0x7b], cl
invalid
je 0x14002222a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je case.0x14001be8e.468
mov r8, qword [rax + 0x10]
call fcn.140002320
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x20]
loopne 0x14002223c
enter 0xfffffffffffffe00, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
or edx, 2
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140034640
ud2
Function at 0x14002ed50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002edda
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002edd0
cmp r11, r10
ja 0x14002ee56
cmp r10, rdx
ja 0x14002ee68
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002edd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002edb0
jmp 0x14002ee37
ja 0x14002edda
mov r11, r10
cmp rax, r8
jne 0x14002ed77
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002ee3b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002ee10
mov r8, r10
sub ecx, r9d
jns 0x14002ee2e
jmp 0x14002ee3d
cmp r10, rdx
je 0x14002ee4a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002ee3d
xor al, 1
cmp r8, rdx
jne 0x14002edf0
jmp 0x14002ee3d
xor eax, eax
jmp 0x14002ee3d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400346d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140034c30
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140034bc0
int3

Function at 0x140030778
Capabilities:
Parse pe header

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

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret

Function at 0x140003a28
Capabilities:
Parse pe header

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

Function at 0x140008da0
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 0x140008e0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008e0f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008e0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008e0f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008e0f
cmp dword [rcx + 0x84], 0xe
jbe 0x140008e0f
cmp dword [rcx + 0xf8], 0
je 0x140008e0f
mov ecx, ebx
call fcn.140008ec0
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.140008c9c
nop
cmp dword [rbp + 0x20], 0
je 0x140008e5d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008e68
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008da0

Function at 0x140008fa4
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 0x140008e0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008e0f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008e0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008e0f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008e0f
cmp dword [rcx + 0x84], 0xe
jbe 0x140008e0f
cmp dword [rcx + 0xf8], 0
je 0x140008e0f
mov ecx, ebx
call fcn.140008ec0
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.140008c9c
nop
cmp dword [rbp + 0x20], 0
je 0x140008e5d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008e68
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008da0
Function at 0x14000c7c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000c7f4
xor eax, eax
jmp 0x14000c8b7
mov rbp, rbx
cmp word [rax], si
je 0x14000c819
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c800
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c7fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000c6e4
movsxd r14, eax
test eax, eax
jne 0x14000c857
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c7ed
mov rcx, r14
call fcn.14000ab50
mov rdi, rax
test rax, rax
jne 0x14000c870
xor ecx, ecx
call fcn.14000ad1c
jmp 0x14000c84c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000c6e4
test eax, eax
jne 0x14000c8a1
mov rcx, rdi
call fcn.14000ad1c
jmp 0x14000c8ab
xor ecx, ecx
call fcn.14000ad1c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140011e20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011e48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011e48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0073e8b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0073e8c0]
mov dword [rax], 1
mov rax, qword [0x0073e8d0]
mov dword [rax], 1
mov rax, qword [0x0073e8a0]
mov dword [rax], 1
mov rax, qword [0x0073e760]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x0073e890]
mov dword [0x00741020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0073e850]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x0073e830]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0073e710]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x437770
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x70
mov rbx, qword gs:[0x28]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x30]
mov ebp, dword [rcx + 0xd0]
inc ebp
mov dword [rcx + 0xd0], ebp
mov rbp, 1
mov byte [rax + 0xed], bpl
mov rbp, 0xfffffffffffffade
mov qword [rax + 0x10], rbp
mov rbx, qword [rax + 0x30]
mov rbp, qword [rbx + 0xa0]
mov rbx, qword [rax + 0x30]
cmp rbx, 0
je 0x4379d9
mov ebp, dword [rbp + 0x1c]
mov dword [rbx + 0x314], ebp
mov rbp, 1
mov byte [rax + 0xef], bpl
mov qword [rsp + 0x28], rax
mov rbx, qword [rax + 0x30]
mov rax, qword [rbx + 0xa0]
mov ebp, dword [rax + 0x1c]
inc ebp
mov dword [rax + 0x1c], ebp
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045a460
mov rbx, qword [rsp + 8]
mov qword [rsp + 0x18], rbx
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045a490
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
mov qword [rsp + 0x10], rdi
mov rbx, qword gs:[0x28]
mov rcx, qword [rbx]
mov qword [rcx + 0x48], rsi
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x68], 0
mov qword [rcx + 0x60], 0
xor ebp, ebp
mov qword [rcx + 0x58], rbp
mov qword [rcx + 0x50], rcx
cmp rax, 0
je 0x4379d2
mov rbp, qword [rax + 0x40]
mov qword [rax + 0x78], rbp
mov rbp, qword [rax + 0x48]
mov qword [rax + 0x80], rbp
mov rbx, qword [rax + 0x78]
mov rbp, qword [rax]
cmp rbx, rbp
jb 0x437998
mov rbx, qword [rax + 8]
mov rbp, qword [rax + 0x78]
cmp rbx, rbp
jb 0x437998
mov qword [rsp], rax
mov dword [rsp + 8], 2
mov dword [rsp + 0xc], 3
call fcn.00433100
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rcx + 0x78]
mov rbp, qword [rcx]
cmp rbx, rbp
jb 0x43796e
mov rbx, qword [rcx + 8]
mov rbp, qword [rcx + 0x78]
cmp rbx, rbp
jb 0x43796e
lea rbx, [0x005800d8]
mov qword [rsp], rbx
call fcn.004586a0
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045a460
mov rbx, qword [rsp + 8]
mov qword [rsp + 0x20], rbx
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045a490
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x20]
mov rbx, qword gs:[0x28]
mov rax, qword [rbx]
mov qword [rax + 0x48], rdx
mov qword [rax + 0x40], rcx
mov qword [rax + 0x68], 0
mov qword [rax + 0x60], 0
xor ebp, ebp
mov qword [rax + 0x58], rbp
mov qword [rax + 0x50], rax
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0xd0]
dec ebp
mov dword [rax + 0xd0], ebp
add rsp, 0x70
ret
lea rbx, [rsp + 0x30]
lea rbp, [0x00450780]
mov qword [rbx], rbp
mov rbp, qword [rsp + 0x10]
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rcx
mov qword [rsp], rbx
call fcn.004586a0
jmp 0x4378e0
mov rsi, qword [rax + 0x40]
mov rdx, qword [rax + 0x78]
lea rbx, [rsp + 0x48]
lea rbp, [0x00450620]
mov qword [rbx], rbp
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdx
mov qword [rbx + 0x20], rax
mov qword [rsp], rbx
call fcn.004586a0
mov rax, qword [rsp + 0x28]
jmp 0x4378a1
mov dword [rax], eax
jmp 0x43786d
mov dword [rbx], eax
jmp 0x4377c8