joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ab5c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140102040]
xor rax, rsp
mov qword [rbp + 0x1a8], rax
mov eax, 1
lea rdx, str.SeTcbPrivilege
mov r12, r8
mov dword [rbp + 0x190], eax
mov r15d, ecx
mov dword [rbp + 0x194], eax
lea r8, [rbp + 0x198]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14005ad1f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005ad1f
xor r14d, r14d
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rax
mov ebx, 0x490
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14005ad0c
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14005acfe
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14005acf9
lea r8, [rsp + 0x30]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005acf0
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x14005ace5
cmp dword [rbp + 0x180], 0
je 0x14005ace5
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x188]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x184]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14005ace5
cmp dword [rbp + 0x184], r15d
jne 0x14005ace5
mov rcx, qword [rsp + 0x30]
mov r14d, 1
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov dword [rsp + 0x20], 2
lea r9d, [r14 + 1]
lea edx, [r14 + 3]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14005acdd
xor ebx, ebx
jmp 0x14005ace5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x14005ad14
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005abfe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005ad27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x1a8]
xor rcx, rsp
call fcn.140063600
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14005aea0
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140102040]
xor rax, rsp
mov qword [rbp], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005afd7
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x74]
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x78]
lea edx, [rdi + 0x1a]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14005af13
mov ebx, dword [rbp - 0x74]
mov edi, 1
jmp 0x14005af1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14005afdf
cmp dword [rbp - 0x78], 0
je 0x14005af3b
xor ebx, ebx
jmp 0x14005afdf
lea rcx, [rsp + 0x68]
call fcn.14005ad54
mov ebx, eax
test eax, eax
jne 0x14005afdf
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], ebx
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14005afc2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005afdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140063600
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400633dc
Capabilities:
Get geographical location

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

Function at 0x1400642fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064346
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140064346
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140064346
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140064346
cmp dword [rcx + 0x84], 0xe
jbe 0x140064346
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140064348
xor al, al
add rsp, 0x28
ret
Function at 0x140076490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2d8]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140065090
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400764e6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14007653d
mov ebp, 0x4b0000
jmp 0x14007654b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400675d0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140076561
mov eax, r12d
jmp 0x14007656a
mov edx, edi
mov ecx, ebp
call fcn.1400675d0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140076586
shl esi, 0x10
mov ecx, esi
jmp 0x140076675
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400765e4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140065090
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400765d4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400674a0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140065090
add ebx, eax
jmp 0x14007667e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400765f1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140076630
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140065090
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140076635
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400674a0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140065090
add ebx, eax
jmp 0x14007667e
cmp eax, r12d
jge 0x14007666e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140065090
sub ebp, eax
sub r15d, esi
je 0x14007666e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400674a0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140065090
add ebx, eax
jmp 0x14007667e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140065090
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
call fcn.140065090
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400aee90
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

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
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1400aefdb
movzx r10d, r14w
mov edi, r14d
mov r8, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + r8]
call fcn.1400af350
test al, al
jne 0x1400af076
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400aef6b
cmp edx, dword [rbx + 0x60]
jl 0x1400aef6b
cmp edx, dword [rbx + 0x64]
jg 0x1400aef6b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400aef6b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400aef6b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400aef8e
test byte [r9 + 0x18], 8
je 0x1400aef8e
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400aef9f
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400afd10
test al, al
jne 0x1400af076
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400aefc2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1400aeef4
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400af07a
test rdx, rdx
je 0x1400af07a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400af018
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400af01b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400af036
dec r11d
add r11d, eax
jmp 0x1400af04d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400affe0
test al, al
jne 0x1400af076
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400affe0
test al, al
jne 0x1400af076
mov rdx, qword [rsi]
add di, bp
jne 0x1400af000
jmp 0x1400af07e
mov al, 1
jmp 0x1400af089
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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
Function at 0x1400370b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10090
call fcn.140063d20
sub rsp, rax
mov rax, qword [0x14007b040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x80], ax
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], ax
mov edi, 0x28
mov dl, 0x4e
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14003711d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140037110
cmp rcx, 1
jb 0x1400371ca
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140037140
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400572f8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140037100
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400371c6
lea rcx, [rsp + 0x80]
call fcn.140058acc
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140048270
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1400371a1
call fcn.14004c860
int3

Function at 0x1400371d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14007b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14003722d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140037220
cmp rcx, 1
jb 0x1400372a7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140037243
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400572f8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140037210
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140048270
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14004c860
int3
Function at 0x140048c44
Capabilities:
Parse pe header

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

Function at 0x14004cbc0
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 0x14004ca2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004ca2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ca2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004ca2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004ca2b
cmp dword [rcx + 0x84], 0xe
jbe 0x14004ca2b
cmp dword [rcx + 0xf8], 0
je 0x14004ca2b
mov ecx, ebx
call fcn.14004cadc
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.14004c8b8
nop
cmp dword [rbp + 0x20], 0
je 0x14004ca79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004ca84
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004c9bc
Function at 0x14005da5c
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 0x14005dae3
mov rsi, rbx
cmp word [rax], bp
je 0x14005daa2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005da8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005da88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005b07c
mov rdi, rax
test rax, rax
je 0x14005dad0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140064380
mov rbp, rdi
xor ecx, ecx
call fcn.14005944c
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 0x140061658
Capabilities:
Get file size

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

Function at 0x140063c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140063c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140063c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400010ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____FindResourceW_Failed_With_Error_:__d__n
call fcn.140001010
lea eax, [rbx - 1]
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400010db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LoadResource_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140001113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LockResource_Failed_With_Error_:__d__n
call fcn.140001010
lea eax, [rdi - 1]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140001148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SizeofResource_Failed_With_Error_:__d__n
call fcn.140001010
mov rdi, qword [rsp + 0x38]
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rdx, rdi
mov qword [rsp + 0x30], rsi
lea rcx, str._i__pPayloadAddress_var_:_0x_p__n
call fcn.140001010
mov rdx, rbx
lea rcx, str._i__sPayloadSize_var_:__lld__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400011a4
mov rdx, rax
lea rcx, str.Address_:_0x_p_n
call fcn.140001010
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140001ab4
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414b86
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430ac0
xorps xmm15, xmm15
mov r14, qword [0x00599480]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414a4b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414a60
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x414a85
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414a99
cmp rbx, 0x1000
jae 0x414a55
nop dword [rax]
jmp 0x414b09
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x414aad
xor edx, edx
jmp 0x414b00
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430ac0
xorps xmm15, xmm15
mov r14, qword [0x00599480]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x414a8f
jmp 0x414a74
call fcn.0045fcc0
xorps xmm15, xmm15
mov r14, qword [0x00599480]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435000
lea rax, [0x004ad73d]
mov ebx, 0x18
call fcn.00435900
mov rax, qword [rsp + 0x38]
call fcn.00435600
lea rax, [0x004ad7fd]
mov ebx, 0x19
call fcn.00435900
mov rax, qword [rsp + 0x30]
nop
call fcn.00435600
call fcn.00435260
call fcn.00435080
lea rax, [0x004af9b4]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.004336c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c120
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004149e0