joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076e58
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 0x140076e8f
call fcn.140079d70
mov dword [rax], 0x16
call fcn.1400880d4
xor eax, eax
jmp 0x140076f1d
mov rdx, r9
mov rcx, r8
call fcn.140076f40
mov rbx, rax
test rax, rax
je 0x140076f1a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140076fb0]
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 0x140076f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140079db0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140076eee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140076efd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004ecb0
jmp 0x140076f1a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140076f17
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 0x140082190
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400821b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400821b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14008c618
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.140085d34
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 0x14008c6b9
cmp ebx, dword [rsp + 0x30]
je 0x14008c6b2
test esi, esi
je 0x14008c6b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008c68d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008c69a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008c677
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008c69e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008c6bb
mov eax, 1
jmp 0x14008c6bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008d4c4
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 0x14008d54b
mov rsi, rbx
cmp word [rax], bp
je 0x14008d50a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008d4f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008d4f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002b9b0
mov rdi, rax
test rax, rax
je 0x14008d538
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006a400
mov rbp, rdi
xor ecx, ecx
call fcn.14004ecb0
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 0x14008fa4c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008fa96
call fcn.140079d90
mov dword [rax], 0xf
call fcn.140079d70
mov dword [rax], 0xd
call fcn.1400880d4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140068970
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008faa1
lea eax, [rbx + 1]
jmp 0x14008fa83
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14008fa81
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008fa83

Function at 0x14009006c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140090082
mov al, 1
jmp 0x1400900e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140090093
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400900e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140079ebc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400900e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400900e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400900e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400900e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400afa90
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400afb01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400afb0b
mov dil, 1
test bl, bl
je 0x1400afaea
cmp byte [rsi + 8], 0
je 0x1400afb06
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140068970
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1400afabd
mov rcx, qword [rsi]
jmp 0x1400afadf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400afb33
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400afb38
xor edi, edi
jmp 0x1400afaea
mov rcx, qword [rsi]
jmp 0x1400afb20
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400afb5f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400afaea
mov rcx, qword [rsi]
jmp 0x1400afb4f
Function at 0x1400afb70
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400d9368]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400afe1d
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x1400cfa80]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.14002a130
cmp byte [r15 + 0x17], 0
js 0x1400afca1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.14004bc60
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1400b1880
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1400afcc3
lea rax, [rsp + 0x110]
jmp 0x1400afccb
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140048b70
jmp 0x1400afc22
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1400afce5
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400afd7b
test bl, bl
je 0x1400afd73
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.14004f710
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140050bb0
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140050c30
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.140025d90
cmp byte [rsp + 0x107], 0
jns 0x1400afd9d
mov rcx, qword [rsp + 0xf0]
call fcn.1400675d4
cmp byte [rsp + 0x127], 0
jns 0x1400afdb4
mov rcx, qword [rsp + 0x110]
call fcn.1400675d4
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400d9368]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400afdf9
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140068970
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.140049e20
jmp 0x1400afdcb
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.1400491f0
jmp 0x1400afbc3
Function at 0x1400afea0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400fd640], 0
je 0x1400afee6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140068970
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400fd618]
test rdi, rdi
je 0x1400aff87
test byte [0x1400ee0c0], 1
je 0x1400afec9
cmp byte [rdi + 0x17], 0
jns 0x1400aff08
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400fd640], rax
inc rax
cmp rax, 1
ja 0x1400afec9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006aab0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400b0049
xor esi, esi
jmp 0x1400afec9
mov ecx, 0x18
call fcn.140067598
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14006aab0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400cfa80]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140098740
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400affef
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400b0015
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140048c70
mov qword [0x1400fd618], rdi
jmp 0x1400afef6
add rax, rax
test rax, rax
je 0x1400afff4
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400b0018
cmp rdx, 0xfffffffffffffffe
je 0x1400afff4
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1400462a0
jmp 0x1400afff4
mov rcx, qword [0x1400fd618]
lea rdx, [rsp + 0x40]
call fcn.140025950
mov rcx, qword [0x1400fd618]
call fcn.1400ad9a0
cmp word [rax], 0x5c
je 0x1400b0085
mov rcx, qword [0x1400fd618]
lea rdx, [0x1400d1f4a]
mov r8d, 1
call fcn.140048c70
mov rcx, qword [0x1400fd618]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140048c70
mov rcx, qword [0x1400fd618]
cmp byte [rcx + 0x17], 0
jns 0x1400b00ae
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400fd640], rax
inc rax
cmp rax, 1
ja 0x1400afec9
mov qword [0x1400fd640], 0
jmp 0x1400aff80
Function at 0x1400bff20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400bff33
cmp dword [0x140103758], ecx
jle 0x1400bff3a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400bff80
test edi, edi
je 0x1400bff33
cmp byte [rsi + rdi - 1], 0xa
je 0x1400bff33
lea rcx, str._nl_
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400bff80

Function at 0x1400bff80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400bfff7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400bfff7
add rdi, rax
test ecx, ecx
jne 0x1400bffbd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140068970
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140013500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10090
call fcn.14003c9d0
sub rsp, rax
mov rax, qword [0x140053040]
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 0x14001356d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140013560
cmp rcx, 1
jb 0x14001361a
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 0x140013590
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ffa8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140013550
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140013616
lea rcx, [rsp + 0x80]
call fcn.14003177c
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140020f20
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1400135f1
call fcn.140025824
int3

Function at 0x140013620
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140053040]
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 0x14001367d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140013670
cmp rcx, 1
jb 0x1400136f7
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 0x140013693
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ffa8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140013660
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020f20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140025824
int3
Function at 0x1400218f4
Capabilities:
Parse pe header

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

Function at 0x140025818
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 0x140025683
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140025683
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140025683
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140025683
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140025683
cmp dword [rcx + 0x84], 0xe
jbe 0x140025683
cmp dword [rcx + 0xf8], 0
je 0x140025683
mov ecx, ebx
call fcn.140025734
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.140025510
nop
cmp dword [rbp + 0x20], 0
je 0x1400256d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400256dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140025614
Function at 0x14003670c
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 0x140036793
mov rsi, rbx
cmp word [rax], bp
je 0x140036752
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003673c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140036738
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140033d2c
mov rdi, rax
test rax, rax
je 0x140036780
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003d030
mov rbp, rdi
xor ecx, ecx
call fcn.1400320fc
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 0x14003a308
Capabilities:
Get file size

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

Function at 0x14003c8e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003c908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003c908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800015b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x150
mov rsi, rcx
call fcn.180001190
test eax, eax
je 0x1800015ce
call fcn.1800010e0
call fcn.180001050
test eax, eax
je 0x1800015dc
call fcn.180001240
call fcn.1800010e0
test eax, eax
je 0x1800015ea
call fcn.180001190
call fcn.180001240
test eax, eax
je 0x1800015f8
call fcn.1800010e0
call fcn.1800010e0
test eax, eax
je 0x180001606
call fcn.180001050
call fcn.180001190
test eax, eax
je 0x180001614
call fcn.180001240
call fcn.180001240
test eax, eax
je 0x180001622
call fcn.1800010e0
call fcn.1800010e0
test eax, eax
je 0x180001630
call fcn.180001050
call fcn.1800012f0
test eax, eax
je 0x18000163e
call fcn.1800013a0
call fcn.1800013a0
test eax, eax
je 0x18000164c
call fcn.180001450
call fcn.180001450
test eax, eax
je 0x18000165a
call fcn.180001500
call fcn.180001500
test eax, eax
je 0x180001668
call fcn.1800012f0
call fcn.180001050
test eax, eax
je 0x180001676
call fcn.1800012f0
call fcn.1800010e0
test eax, eax
je 0x180001684
call fcn.1800013a0
call fcn.180001190
test eax, eax
je 0x180001692
call fcn.180001450
call fcn.180001240
test eax, eax
je 0x1800016a0
call fcn.180001500
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800016ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1800046b4
lea rdx, str.Failed_to_create_process_snapshot:__d_n
lea rcx, [rax + 0x60]
mov r8d, ebx
call fcn.1800048c8
xor eax, eax
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rsi
ret
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x160], rdi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x18000174f
nop dword [rax + rax]
lea r8, [rsp + 0x4c]
mov rax, rsi
sub r8, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001733
inc rax
test ecx, ecx
jne 0x180001720
test edx, edx
je 0x18000174b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180001710
jmp 0x18000174f
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x168]
mov eax, edi
mov rdi, qword [rsp + 0x160]
add rsp, 0x150
pop rsi
ret