joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b741
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
mov bl, ch
invalid
Function at 0x140001180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov edx, 1
mov qword [rbp - 0x38], rdx
mov rcx, rdx
call fcn.140002e60
mov r8, qword [rbp - 0x38]
mov rdx, rax
mov byte [rdx], 0xc3
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x30], rcx
call fcn.1400045d0
mov rcx, qword [rbp - 0x30]
call fcn.140003ea0
mov qword [rbp - 0x28], rax
jmp 0x1400011cf
mov rdx, qword [rbp - 0x28]
mov qword [rbp - 8], rdx
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp + 0x38]
mov r8d, 0x1000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rbp - 0x40], rax
jmp 0x140001212
mov rax, qword [rbp - 0x40]
mov qword [rbp], rax
lea rcx, [rbp - 0x20]
call fcn.1400040a0
mov qword [rbp - 0x48], rax
jmp 0x140001229
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x48]
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], r8
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x40]
mov qword [rbp + 8], rax
call rax
jmp 0x140001252
mov rcx, qword [rbp - 0x40]
xor eax, eax
mov edx, eax
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
jmp 0x140001267
mov ecx, 2
call fcn.140001d40
mov dword [rbp - 0x54], edx
mov qword [rbp - 0x50], rax
jmp 0x14000127a
mov edx, dword [rbp - 0x54]
mov rcx, qword [rbp - 0x50]
call fcn.14000f280
jmp 0x140001288
lea rcx, [rbp - 0x20]
call fcn.140002250
nop
add rsp, 0xd0
pop rbp
ret

Function at 0x1400012d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp - 0x40], rcx
call fcn.140001180
jmp 0x1400012f3
mov rcx, qword [rbp - 0x40]
call fcn.140003ea0
mov qword [rbp - 0x48], rax
jmp 0x140001302
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x38], rdx
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 0x10], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
mov r8d, 0x1000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rbp - 0x50], rax
jmp 0x140001345
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x30], rax
call fcn.1400040a0
mov qword [rbp - 0x58], rax
jmp 0x14000135c
mov rcx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x58]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], r8
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x28], rax
call rax
jmp 0x140001385
mov rcx, qword [rbp - 0x50]
xor eax, eax
mov edx, eax
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
jmp 0x14000139a
mov rcx, qword [rbp - 0x40]
call fcn.140002250
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x14000f6d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000f770
jmp 0x14000f75f
jae 0x14000f830
cmp r8, 0x201
jae 0x14000f770
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000f7c8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000f79f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400256a0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000f7f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f898
mov r8d, r14d
cmp r15, r8
jne 0x14000f750
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f8c5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000f75f
jmp 0x14000f770
cmp rsi, r8
jb 0x14000f8df
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011700
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000f881
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004610
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000f869
jmp 0x14000f881
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140026020
jmp 0x14000f8f4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140026470
ud2
Function at 0x140015d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14002ae50]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140015d74
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140015dda
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140015e11
test eax, eax
js 0x140015deb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140015e04
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140011440
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000d980
mov ecx, 7
int 0x29
ud2
Function at 0x140023a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140023aaa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140023aa0
cmp r11, r10
ja 0x140023b35
cmp r10, rdx
ja 0x140023b47
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140023aa2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140023a80
jmp 0x140023b17
ja 0x140023aaa
mov r11, r10
cmp rax, r8
jne 0x140023a52
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140023b1b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140023af0
mov r8, r10
sub ecx, r9d
jns 0x140023b0e
jmp 0x140023b1d
cmp r10, rdx
je 0x140023b29
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140023b1d
xor al, 1
cmp r8, rdx
jne 0x140023ad0
jmp 0x140023b1d
xor eax, eax
jmp 0x140023b1d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140025ec0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400264f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140026470
int3

Function at 0x140025058
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
xor rbx, rbx
mov r8, qword gs:[rbx + 0x60]
mov r8, qword [r8 + 0x18]
lea r12, [r8 + 0x10]
mov r8, qword [r12]
cld
mov rdi, qword [r8 + 0x60]
mov rsi, rcx
lodsb al, byte [rsi]
test al, al
je 0x402c29
mov ah, byte [rdi]
cmp ah, 0x61
jl 0x402c0d
sub ah, 0x20
cmp ah, al
jne 0x402c19
inc rdi
inc rdi
jmp 0x402bfe
mov r8, qword [r8]
cmp r8, r12
jne 0x402bf7
xor rax, rax
jmp 0x402cd0
mov rbx, qword [r8 + 0x30]
mov r9d, dword [rbx + 0x3c]
add r9, rbx
add r9, 0x88
mov r13d, dword [r9]
test r13, r13
jne 0x402c4b
xor rax, rax
jmp 0x402cd0
lea r8, [rbx + r13]
mov r14d, dword [r9 + 4]
add r14, r13
mov ecx, dword [r8 + 0x18]
mov r10d, dword [r8 + 0x20]
add r10, rbx
dec ecx
lea r9, [r10 + rcx*4]
mov edi, dword [r9]
add rdi, rbx
mov rsi, rdx
cmpsb byte [rsi], byte [rdi]
jne 0x402c7b
mov al, byte [rdi]
test al, al
je 0x402c82
jmp 0x402c70
loop 0x402c63
xor rax, rax
jmp 0x402cd0
mov r9d, dword [r8 + 0x24]
add r9, rbx
mov cx, word [r9 + rcx*2]
mov r9d, dword [r8 + 0x1c]
add r9, rbx
mov eax, dword [r9 + rcx*4]
cmp rax, r13
jl 0x402ccd
cmp rax, r14
jae 0x402ccd
lea rsi, [rax + rbx]
lea rdi, [rsp + 0x30]
mov r12, rdi
movsb byte [rdi], byte [rsi]
cmp byte [rsi], 0x2e
jne 0x402caf
movsb byte [rdi], byte [rsi]
mov dword [rdi], 0x4c4c44
mov rcx, r12
call r15
mov rcx, r12
mov rdx, rsi
jmp 0x402be2
add rax, rbx
add rsp, 0x28
leave
ret

Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180006f90
Capabilities:
Delete service
Stop service

Disassembly:
push rdi
sub rsp, 0xb0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180006fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9d, [rdi + 0x10]
xor ecx, ecx
lea r8, str._2_Error_OpenSCManager...
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0xc0], rbx
lea rdx, str.detectme_14882280_easy_fingerprint
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x18000705b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9d, [rbx + 0x10]
xor ecx, ecx
lea r8, str._2_Error_CreateService...
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1800070ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1800070ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str._2_Error_ControlService...
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18000711f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str._2_Error_DeleteService...
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x180007174
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str._2_Error_CloseServiceHandle__1_...
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x1800071c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800203e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str._2_Error_CloseServiceHandle__2_...
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xb0
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c1d80]
mov dword [rax], 1
mov rax, qword [0x1400c1d90]
mov dword [rax], 1
mov rax, qword [0x1400c1da0]
mov dword [rax], 1
mov rax, qword [0x1400c1d20]
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 0x14001c6b0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14009f160
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 0x14001c759
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14001c71e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001c710
test rax, rax
je 0x1400b006e
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 0x14001c6f8
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 0x14001c788
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
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
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
mov rax, qword [8]
ud2

Function at 0x14001c7a0
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 0x14001c841
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14001c806
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001c7f8
test rax, rax
je 0x1400b0074
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 0x14001c7e0
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 0x14003d010
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.14001c6b0
test rax, rax
je 0x14003d140
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 0x14003d08e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003d080
test rax, rax
je 0x1400b010e
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 0x14003d070
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400d3800]
mov rsi, rax
mov rax, qword [0x1400c1ec0]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x14003d1b5
mov rdx, rbx
call fcn.14000adb0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400312a0
mov rdx, qword [rbx]
test edx, edx
js 0x14003d127
sub rdx, 1
mov qword [rbx], rdx
je 0x14003d19d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400d30c8]
lea rsi, [0x1400d30c8]
test bl, bl
je 0x14003d160
mov rax, qword [0x1400d30d0]
lea rsi, [0x1400d30d0]
test rax, rax
jne 0x14003d127
cmp byte [0x1400d32e2], 0
jne 0x14003d176
movzx ecx, bl
call fcn.14000ca00
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d30e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003d1df
mov edx, dword [rax]
add edx, 1
je 0x14003d127
mov dword [rax], edx
jmp 0x14003d127
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14003d127
mov rcx, qword [0x1400d3778]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14003d1ea
mov rdx, rdi
call fcn.14000adb0
mov qword [0x1400d3800], rax
mov rcx, rax
jmp 0x14003d0fe
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b99e3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400d3778], rax
mov rcx, rax
test rax, rax
je 0x1400b010e
jmp 0x14003d1c8
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