joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c310
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
mov qword [r11 - 0x38], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [r11 - 0x20], xmm1
mov r8d, 4
lea rdx, str.open
lea rcx, [r11 - 0x30]
call fcn.140001730
nop
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x88]
add r8, rdx
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.1400034d0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14000c3ae
mov rdi, qword [rax]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000c3f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c3ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c3ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e04c
movdqa xmm0, xmmword [0x140012150]
movdqu xmmword [rsp + 0x40], xmm0
xor esi, esi
mov word [rsp + 0x30], si
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000c41b
add r8, qword [rbx]
mov rdx, qword [rbx]
jmp 0x14000c421
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400034d0
cmp qword [rax + 0x18], 8
jb 0x14000c435
mov rax, qword [rax]
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000c499
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c493
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c493
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e04c
nop
mov rdx, qword [rsp + 0x90]
cmp rdx, 0x10
jb 0x14000c4dc
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c4d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c4d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e04c
movdqa xmm0, xmmword [0x140012160]
movdqu xmmword [rsp + 0x88], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000c528
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000c523
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c55e
mov rcx, r8
call fcn.14000e04c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov al, 1
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14000dff0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000ca60
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x410
call fcn.14000ee54
lea r8, [0x140012078]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x208
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [0x14001207c]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [0x140011a20]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor ebx, ebx
lea rax, [0x140017c88]
mov qword [rsp + 0x40], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov dword [0x140017e98], eax
mov ecx, ebx
sete cl
mov dword [0x140017078], ecx
test eax, eax
jne 0x14000cba6
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x14000cb50
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov dword [0x14001707c], ecx
lea rdx, str.WindowsUpdater
mov rcx, qword [0x140017c88]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, ebx
mov dword [0x140017e98], eax
test eax, eax
sete cl
mov dword [0x140017078], ecx
mov rax, qword [0x140017c88]
test rax, rax
je 0x14000cbc8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x140017078]
mov qword [0x140017c88], rbx
test ecx, ecx
setne al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000dff0
add rsp, 0x470
pop rbx
ret
Function at 0x14000cbf0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [0x140017c88]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov dword [0x140017e98], eax
test eax, eax
lea rbx, [0x140017c90]
sete cl
mov dword [0x140017074], ecx
mov edx, ecx
test eax, eax
jne 0x14000cc8d
mov rcx, qword [0x140017c88]
lea rax, [0x14001707c]
mov qword [rsp + 0x30], rax
lea r8, str.WindowsUpdater
lea rax, [0x140017080]
mov qword [rsp + 0x28], rbx
mov r9d, 2
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
mov dword [0x140017e98], eax
test eax, eax
sete cl
mov dword [0x140017074], ecx
mov edx, ecx
test edx, edx
je 0x14000ccb8
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000cca0
xor ecx, ecx
test rax, rax
setne cl
mov dword [0x140017074], ecx
mov rax, qword [0x140017c88]
test rax, rax
je 0x14000ccde
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x140017074]
mov qword [0x140017c88], 0
test ecx, ecx
setne al
add rsp, 0x40
pop rbx
ret
Function at 0x14000dc28
Capabilities:
Get geographical location

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

Function at 0x14000ebec
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140013f60], rbx
je 0x1400099cc
cmp rax, rbx
jne 0x1400099bf
mov ebx, 1
mov esi, ebx
jmp 0x1400099d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400099a4
mov ebx, 1
mov eax, dword [0x140013f68]
cmp eax, ebx
jne 0x1400099e7
mov ecx, 0x1f
call fcn.14013c000
jmp 0x140009a4c
mov eax, dword [0x140013f68]
test eax, eax
jne 0x140009a46
mov dword [0x140013f68], ebx
lea r15, [0x14000b648]
lea rdi, [0x14000b630]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009a38
test eax, eax
jne 0x140009a3c
cmp qword [rdi], 0
je 0x140009a2d
mov rax, qword [rdi]
mov rcx, qword [0x14000b610]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009a0e
test eax, eax
je 0x140009a4c
mov eax, 0xff
jmp 0x140009b28
mov dword [0x140013104], ebx
mov eax, dword [0x140013f68]
cmp eax, ebx
jne 0x140009a73
lea rdx, [0x14000b628]
lea rcx, [0x14000b618]
call sub.msvcrt.dll__initterm
mov dword [0x140013f68], 2
test esi, esi
jne 0x140009a80
xor eax, eax
xchg qword [0x140013f60], rax
cmp qword [0x140013f70], 0
je 0x140009ab4
lea rcx, [0x140013f70]
call fcn.140009d50
test eax, eax
je 0x140009ab4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013f70]
mov r9, qword [0x14000b610]
call r9
mov r8, qword [0x140013118]
mov rdx, qword [0x140013110]
mov ecx, dword [0x140013108]
call fcn.1400038d0
mov dword [0x140013100], eax
cmp dword [0x140013120], 0
jne 0x140009ae4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013104], 0
jne 0x140009af9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013100]
jmp 0x140009b28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140009de4
add rsp, 0x28
jmp 0x140009980

Function at 0x140009c3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009c88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009c80
cmp dword [rcx + 0x3c], edx
jl 0x140009c80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009c80
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 0x140009c88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002028
Capabilities:
Parse pe header

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

Disassembly:
test rcx, rcx
je 0x14000f9a2
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, rdx
mov r14, rcx
and qword [rax - 0x38], 0
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14000f917
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [0x14001bf80]
mov rdi, rax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
mov rcx, r14
call qword [0x14001bf80]
mov rdx, rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000f981
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
nop
test rbx, rbx
je 0x14000f995
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400171a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140027290], eax
call fcn.140016ef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140027290], 0
jne case.default.0x1400171fa
mov ecx, 1
call fcn.140016ef0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
js 0x1400408f7
stc
stosd dword [rdi], eax
lahf
rcl byte [rsi + 0x5f]
invalid
jle 0x140040940
adc dword [rcx + rax*4 + 0x33], eax
invalid
sbb byte [rbx - 0x603b5d4e], dh
js 0x140040975
mov bh, byte [rax + 0x17]
outsb dx, byte [rsi]
jg 0x1400408d6
out dx, eax
invalid
jmp [rdx + 0x3bf5a8ac]
invalid
Function at 0x180002350
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [0x18005c528], rax
cmp dword [rsp + 0x48], 1
jne 0x18000239a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180001fb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800027c0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
cmp qword [rax], rcx
jne 0x18000280f
xor eax, eax
jmp 0x180002872
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x60]
call fcn.180002570
movzx eax, al
test eax, eax
jne 0x18000284b
mov rax, qword [rsp + 0x20]
jmp 0x180002872
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x30], rax
jne 0x180002825
mov rax, qword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x180002880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
jmp 0x180002922
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jae 0x1800029c6
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
call fcn.180002740
test eax, eax
jne 0x1800029c1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
shl ecx, 1
mov ecx, ecx
movzx eax, word [rax + rcx]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x30]
shl ecx, 2
movsxd rcx, ecx
mov eax, dword [rax + rcx]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x1800029c6
jmp 0x180002918
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1800105f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1800100d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18001062f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x180041638]
jmp 0x180010639
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x180025910
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140034340
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140060670
sub rsp, rax
mov rax, qword [0x140079040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140034402
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400343ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400343a0
cmp rcx, 1
jb 0x14003445a
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 0x1400343d0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140053c48
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140034390
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140034433
lea rcx, [rsp + 0x80]
call fcn.14005541c
jmp 0x140034435
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140044bc0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400491b0
int3

Function at 0x140034460
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140079040]
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 0x1400344bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400344b0
cmp rcx, 1
jb 0x140034537
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 0x1400344d3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140053c48
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400344a0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140044bc0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1400491b0
int3
Function at 0x140045594
Capabilities:
Parse pe header

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

Function at 0x140049510
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 0x14004937b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004937b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004937b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004937b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004937b
cmp dword [rcx + 0x84], 0xe
jbe 0x14004937b
cmp dword [rcx + 0xf8], 0
je 0x14004937b
mov ecx, ebx
call fcn.14004942c
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.140049208
nop
cmp dword [rbp + 0x20], 0
je 0x1400493c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400493d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004930c
Function at 0x14005a144
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 0x14005a1cb
mov rsi, rbx
cmp word [rax], bp
je 0x14005a18a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005a174
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005a170
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400579cc
mov rdi, rax
test rax, rax
je 0x14005a1b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140060cd0
mov rbp, rdi
xor ecx, ecx
call fcn.140055d9c
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 0x14005dd40
Capabilities:
Get file size

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

Function at 0x140060580
Capabilities:
Parse pe header

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