joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004298
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400069d8], rbx
je 0x1400042e4
cmp rax, rbx
jne 0x1400042d7
mov ebx, 1
mov esi, ebx
jmp 0x1400042e9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400042bc
mov ebx, 1
mov eax, dword [0x1400069d0]
cmp eax, ebx
jne 0x1400042ff
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000435c
mov eax, dword [0x1400069d0]
test eax, eax
jne 0x140004356
mov dword [0x1400069d0], ebx
lea r13, [0x140001238]
lea rdi, [0x140001220]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r13
jae 0x140004348
test eax, eax
jne 0x14000434c
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000433d
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140004326
test eax, eax
je 0x14000435c
mov eax, 0xff
jmp 0x14000442d
mov dword [0x14000643c], ebx
mov eax, dword [0x1400069d0]
cmp eax, ebx
jne 0x140004383
lea rdx, [0x140001218]
lea rcx, [0x140001208]
call sub.msvcrt.dll__initterm
mov dword [0x1400069d0], 2
test esi, esi
jne 0x140004390
xor eax, eax
xchg qword [0x1400069d8], rax
cmp qword [0x1400069e0], 0
je 0x1400043b9
lea rcx, [0x1400069e0]
call fcn.1400048ec
test eax, eax
je 0x1400043b9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400069e0]
mov r8, qword [0x140006420]
mov rdx, qword [0x140006428]
mov ecx, dword [0x140006418]
call fcn.140002950
mov dword [0x140006438], eax
cmp dword [0x14000641c], 0
jne 0x1400043e9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000643c], 0
jne 0x1400043fe
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140006438]
jmp 0x14000442d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140004a00
add rsp, 0x28
jmp 0x140004298
Function at 0x140004550
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140006100]
jne 0x14000456b
rol rcx, 0x10
test cx, 0xffff
jne 0x140004567
ret 0
ror rcx, 0x10
jmp 0x140004abc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400064f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400065e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004b41
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400064f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140004b63
mov rax, qword [rsp + 0x88]
mov qword [0x1400065e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140006588], rax
mov rax, qword [0x1400065e8]
mov qword [0x140006460], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140006570], rax
mov dword [0x140006450], 0xc0000409
mov dword [0x140006454], 1
mov rax, qword [0x140006100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140006108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001298]
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, 0x88
ret

Function at 0x140004578
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140006100]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400045f5
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140004615
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140004550
add rsp, 0x540
pop rbx
ret

Function at 0x140004958
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x1400049a5
cmp rcx, 0xffffffffffffffff
je 0x1400049a5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000499d
cmp dword [rcx + 0x3c], edx
jl 0x14000499d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000499d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400049a5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003c98
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003663
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140003668
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140003688
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140003673
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400051a0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140003698
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400051a0
add rsp, 0x60
pop rbx
ret
Function at 0x140005e30
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x5e53ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5e53fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5e53e5
lea eax, [rcx + 1]
jmp 0x5e540b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5e541e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5e5404
sub eax, 3
jb 0x5e543e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5e548d
sar eax, 1
movsxd rbp, eax
jb 0x5e5474
jmp 0x5e544c
add ebx, ebx
jne 0x5e544a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5e5474
inc ecx
add ebx, ebx
jne 0x5e545a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5e5474
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5e546d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5e545c
add ecx, 2
jmp 0x5e5479
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005e53a2
jmp 0x5e53ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa4c00
mov dl, 0x34
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5e54d9
cmp rsi, rcx
jae 0x5e54e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5e54c0
cmp al, 0x8f
ja 0x5e54c0
cmp byte [rsi - 2], 0xf
je 0x5e54c6
sub al, 0xe8
cmp al, 1
ja 0x5e54aa
cmp rsi, rcx
jae 0x5e54e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5e54b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5e54e1
lodsb al, byte [rsi]
jmp 0x5e54c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1e1000]
mov eax, dword [rdi]
or eax, eax
je 0x5e553e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1e5000]
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 0x5e54ee
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 0x5e5538
mov qword [rbx], rax
add rbx, 8
jmp 0x5e550e
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 0x5e5578
cmp al, 0xef
ja 0x5e556a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5e554a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5e5559
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5e55cc
sub rsp, 0xffffffffffffff80
jmp 0x46e2a0
Function at 0x14001bd20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14001fc80
sub rsp, rax
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001bde2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002ebdc
cmp rax, 1
jne 0x14001be3e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001bdbf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001bdb3
cmp rcx, 1
jb 0x14001be3e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001bd80
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001be13
lea rcx, [rsp + 0x80]
call fcn.140031784
jmp 0x14001be15
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001f9b0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e988
int3
Function at 0x14001ca80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x14005e34e], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14001cb10
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14005e130], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x14005e130], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x14005e130], rdi
call fcn.14001abb0
cmp eax, ebx
jne 0x14001ccb3
mov byte [0x14005e34e], 1
jmp 0x14001cb17
mov rdi, qword [0x14005e130]
lea rdx, [0x14003ff50]
mov rcx, rbp
call fcn.14002e630
test eax, eax
je 0x14001cbd1
cmp byte [0x14005e34d], 1
je 0x14001cbd1
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f070], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f078], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f080], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f088], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f090], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f098], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0a0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0a8], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x14005e130]
mov byte [0x14005e34d], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x140060460], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14001cbf7
inc rax
test cl, cl
jne 0x14001cbe0
mov ecx, r9d
jmp 0x14001cbfc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14001cc03
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14001cc68
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14001cc45
inc rax
test cl, cl
jne 0x14001cc30
mov ecx, r9d
jmp 0x14001cc4a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14001cc51
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14001cc20
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14001cc98
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.1400193f0
add rsi, 8
sub rbx, 1
jne 0x14001cc80
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14002b344
call fcn.14002e988
int3
Function at 0x14001f550
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14001f601
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14002ebdc
cmp rax, 1
jne 0x14001f637
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14001f5dd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14001f5d0
cmp rcx, 1
jb 0x14001f637
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f5a0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f9b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002e988
int3

Function at 0x14001f830
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14001f8df
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002ebdc
cmp rax, 1
jne 0x14001f915
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001f8bc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001f8b0
cmp rcx, 1
jb 0x14001f915
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f880
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f9b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e988
int3

Function at 0x1400203e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002042e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002042e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002042e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002042e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002042e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140020430
xor al, al
add rsp, 0x28
ret
Function at 0x140024754
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 0x1400247c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400247c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400247c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400247c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400247c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400247c3
cmp dword [rcx + 0xf8], 0
je 0x1400247c3
mov ecx, ebx
call fcn.140024874
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.140024650
nop
cmp dword [rbp + 0x20], 0
je 0x140024811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002481c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024754

Function at 0x140024958
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 0x1400247c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400247c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400247c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400247c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400247c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400247c3
cmp dword [rcx + 0xf8], 0
je 0x1400247c3
mov ecx, ebx
call fcn.140024874
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.140024650
nop
cmp dword [rbp + 0x20], 0
je 0x140024811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002481c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024754
Function at 0x1400366e0
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 0x140036767
mov rsi, rbx
cmp word [rax], bp
je 0x140036726
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140036710
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003670c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031870
mov rdi, rax
test rax, rax
je 0x140036754
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003ca60
mov rbp, rdi
xor ecx, ecx
call fcn.1400327a4
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 0x140038e6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140038e82
mov al, 1
jmp 0x140038ee2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140038e93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140038ee0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036e84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140038ee0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140038ee0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140038ee0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140038ee2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003c840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003c868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003c868
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 [0x004057a0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004057b0]
mov dword [rax], 1
mov rax, qword [0x004057c0]
mov dword [rax], 1
mov rax, qword [0x00405790]
mov dword [rax], 1
mov rax, qword [0x00405680]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405780]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00405740]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405630]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058