joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004480
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140008780
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400056d0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140004516
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400057b0
test rax, rax
je 0x140004516
cmp byte [rax], 0
je 0x140004516
mov rcx, rax
call fcn.14000fc9c
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008740
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008740
add rsp, 0x4038
ret

Function at 0x140004af0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400056d0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000a988
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b30
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140008780
sub rsp, rax
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400056d0
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.140011514
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.140011514
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.140011514
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.140011514
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000b93c
mov rcx, rax
call fcn.1400104d8
mov ecx, eax
call fcn.1400110c8
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000b93c
mov rcx, rax
call fcn.1400104d8
mov ecx, eax
call fcn.1400110c8
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000b93c
mov rcx, rax
call fcn.1400104d8
mov ecx, eax
call fcn.1400110c8
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004cb1
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140004cc9
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140024960]
call fcn.140001a90
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140008740
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret

Function at 0x1400054a0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [str.D:_A__FA___S_1_3_4_]
xor r9d, r9d
mov rbx, rcx
movups xmm1, xmmword [0x140024b58]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x20], 0x18
movups xmmword [rsp + 0x38], xmm0
lea edx, [r9 + 1]
mov dword [rsp + 0x30], 0
movsd xmm0, qword [0x140024b68]
lea rcx, [rsp + 0x38]
movsd qword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm1
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x14000552f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000552f
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008740
add rsp, 0x70
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008740
add rsp, 0x70
pop rbx
ret
Function at 0x1400108bc
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400108dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e260
or eax, 0xffffffff
jmp 0x1400108de
xor eax, eax
add rsp, 0x28
ret

Function at 0x140010c0c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001094b
call fcn.14000e2d0
mov dword [rax], 0x16
call fcn.140013edc
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008740
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140010912
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400109b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14001098c
cmp eax, 3
jbe 0x1400109a9
cmp eax, 8
je 0x140010999
cmp eax, 0x12
je 0x1400109a9
call fcn.14000e2d0
mov dword [rax], 0x16
jmp 0x140010922
call fcn.14000e2d0
mov dword [rax], ntohl
jmp 0x140010922
call fcn.14000e2d0
mov dword [rax], 2
jmp 0x140010922
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140010b54
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140010b54
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140010b54
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001963c
test eax, eax
jne 0x140010a17
mov rax, rdi
jmp 0x140010926
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013efc
int3
jmp 0x1400108e4
Function at 0x140010c14
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140010a89
call fcn.14000e2d0
mov dword [rax], 0x16
call fcn.140013edc
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008740
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140010a55
test rbx, rbx
je 0x140010a55
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010ae4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140010abd
cmp eax, 3
jbe 0x140010ad7
cmp eax, 8
je 0x140010aca
cmp eax, 0x12
je 0x140010ad7
call fcn.14000e2d0
mov dword [rax], 0x16
jmp 0x140010a65
call fcn.14000e2d0
mov dword [rax], ntohl
jmp 0x140010a65
call fcn.14000e2d0
mov dword [rax], 2
jmp 0x140010a65
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140010b54
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140010b54
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140010b54
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001963c
test eax, eax
je 0x140010a68
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013efc
int3
jmp 0x140010a2c

Function at 0x1400116f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011710
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e260
or eax, 0xffffffff
jmp 0x140011712
xor eax, eax
add rsp, 0x28
ret

Function at 0x140012a9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400128c8
Function at 0x140001144
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, section..text
mov rdi, rcx
mov qword [rcx + 0x70], rax
lea rbx, [0x140003030]
mov qword [rcx + 0x80], rax
lea rdx, [0x140001d30]
lea rax, [0x140001020]
mov qword [rcx + 0xe0], rax
lea rax, [0x140001230]
mov qword [rcx + 0x68], rax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor edx, edx
lea r8, [0x140001d70]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rax, [0x140003040]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
mov r8, rbx
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000121b
lea rdx, [0x140001d80]
lea rcx, [0x140003020]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [0x140003020]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x14000120e
mov rcx, qword [0x140003040]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x14000121b
mov rax, qword [rdi + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140001858
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000126c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
lea rdx, [rbp - 0x60]
mov r14, r8
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r9, rbx
lea r8, [0x140001dd0]
xor edx, edx
lea ecx, [rdi + 0x4d]
mov r15d, eax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400012ec
mov eax, 0xc0000001
jmp 0x1400013d1
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x14000136c
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x1400013c1
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140001359
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001367
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jmp 0x14000132b
mov edi, dword [rbx + 0x18]
jmp 0x1400013c1
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1400013c1
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x1400013ad
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400013bd
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jmp 0x140001383
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r14], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, r15d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001910
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001458
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r9
mov r14d, r8d
mov rdi, rdx
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400015a1
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call fcn.140001420
test al, al
je 0x140001596
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140001596
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rsi, rax
test rax, rax
jne 0x140001549
mov ebx, 0xc0000001
jmp 0x140001563
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.140001a80
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, ebx
jmp 0x1400015a6
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001910
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400015c4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r9
mov r14d, r8d
mov rdi, rdx
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000170d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call fcn.140001420
test al, al
je 0x140001702
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140001702
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rsi, rax
test rax, rax
jne 0x1400016b5
mov ebx, 0xc0000001
jmp 0x1400016cf
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.140001a80
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, ebx
jmp 0x140001712
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001910
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001834
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov qword [0x140003018], rcx
mov rdx, rcx
lea rcx, [0x140001e20]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x28
ret
Function at 0x644a0831058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.644a08311df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x644a0831089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a083106f
add dl, dl
jne 0x644a0831096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a08310f6
xor eax, eax
add dl, dl
jne 0x644a08310a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a08311ad
add dl, dl
jne 0x644a08310b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a08310c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a08310d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a08310dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x644a08310ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x644a083107e
mov eax, 1
add dl, dl
jne 0x644a0831106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a0831113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a08310fb
sub eax, ebx
mov ebx, 1
jne 0x644a083114c
mov ecx, 1
add dl, dl
jne 0x644a083112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x644a083113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a0831123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a083107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x644a0831168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x644a0831175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a083115d
cmp eax, 0x7d00
jae 0x644a083119b
cmp eax, 0x500
jb 0x644a0831196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a083107e
cmp eax, 0x7f
ja 0x644a083119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a083107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x644a08311d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x644a083107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xee8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ee81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xee8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xee806f
add dl, dl
jne 0xee8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xee80f6
xor eax, eax
add dl, dl
jne 0xee80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xee81ad
add dl, dl
jne 0xee80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xee80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xee807e
mov eax, 1
add dl, dl
jne 0xee8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xee80fb
sub eax, ebx
mov ebx, 1
jne 0xee814c
mov ecx, 1
add dl, dl
jne 0xee812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xee813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xee8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xee807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xee8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xee8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xee815d
cmp eax, 0x7d00
jae 0xee819b
cmp eax, 0x500
jb 0xee8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xee807e
cmp eax, 0x7f
ja 0xee819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xee807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xee81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xee807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140015970
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14003f400
sub rsp, rax
mov rax, qword [0x140056040]
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 0x140015a32
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400159dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400159d0
cmp rcx, 1
jb 0x140015a8a
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 0x140015a00
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400329d8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400159c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140015a63
lea rcx, [rsp + 0x80]
call fcn.1400341ac
jmp 0x140015a65
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140023950
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140028254
int3

Function at 0x140015a90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140056040]
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 0x140015aed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140015ae0
cmp rcx, 1
jb 0x140015b67
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 0x140015b03
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400329d8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140015ad0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023950
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140028254
int3