joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019b0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
movsxd rcx, dword [0x140022f50]
call fcn.140001f20
mov ebx, dword [0x140022f50]
mov rcx, rax
mov rdx, qword [0x140022f80]
mov r8d, ebx
mov rdi, rax
call fcn.1400054c0
test ebx, ebx
je 0x140001a1b
mov rcx, rdi
lea r9, str.esetisgood
xor edx, edx
mov r8d, ebx
nop dword [rax]
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 7
inc rdx
movzx eax, byte [rax + r9]
xor byte [rcx - 1], al
sub r8, 1
jne 0x140001a00
mov qword [rsp + 0x30], 0
lea rcx, str.C:UsersPubliceset.log
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9, qword [rsi + 8]
mov rdx, rdi
mov r8d, dword [0x140022f50]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001a7f
lea rcx, str._n___to_C:UsersPubliceset.log_n
call fcn.140001320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsi + 0x10]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x40
pop rdi
ret

Function at 0x14000801c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e48

Function at 0x141a6a000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x141a6a00a
jmp 0x141a6c00f
jmp fcn.141580058
Function at 0x140f6dccc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6dcd6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6dcff
pop rbp
sub rbp, 0x33
sub rbp, 0xf6dccc
sub ebp, 0xf6dccc
sub rsp, 0x20
jmp 0x140f6dd1e
mov rax, 0xf6dccc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x100cfc38
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6dd3d
test edx, esi
invalid
jmp 0x140f6dd54
jo 0x140f6dd07
sal dword [rbx + 0x383804b1], 1
cmp byte [rax - 0x47], dh
stc
xor byte [rcx], bh
cmp byte [rax], bh
jo 0x140f6dd9f
sal dword [rax - 1], 1
clc
xor byte [rax], bh
cmp byte [rax], bh
jo 0x140f6dd6f
invalid
cli
adc byte [rax], bh
cmp byte [rax], bh
jo 0x140f6dd46
fidiv dword [rax + 0x39]
stc
mov bl, 0xb9
xor al, 0x38
cmp byte [rax], bh
jo 0x140f6ddbc
shr byte [rax + 0x68], 1
jo 0x140f6dd08
invalid
iretd
cmp byte [rax - 0x39], dh
invalid
Function at 0x140001cf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14003b060]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd rbx, edx
lea r8, [0x140036198]
mov rdx, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.14000dbbc
test eax, eax
jne 0x140001d82
cmp qword [rsp + 0x20], 0
je 0x140001d82
mov rcx, rbx
mov rdi, rbx
call fcn.14000e7d8
mov rbx, rax
test rax, rax
je 0x140001d82
mov r9, qword [rsp + 0x20]
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.14000e24c
mov rcx, qword [rsp + 0x20]
call fcn.14000bfd8
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140005490
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xffffffff
call fcn.14000b884
int3

Function at 0x140002190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rsi, edx
mov ecx, 0x20000
call fcn.14000b9f8
mov rdi, rsi
test esi, esi
jle 0x1400021cd
call fcn.14000b9cc
cdq
lea rbx, [rbx + 1]
idiv esi
inc dl
xor byte [rbx - 1], dl
sub rdi, 1
jne 0x1400021b6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400021e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003b060]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov ebx, edi
cmp ecx, 2
setg bl
mov dword [rsp + 0x40], edi
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x20], 0xf
mov byte [rsp + 0x20], dil
xor r8d, r8d
lea rdx, [0x14003611b]
lea rcx, [r11 - 0x38]
call fcn.140003b90
nop
lea rcx, [rsp + 0x20]
call fcn.140001fc0
movsxd rsi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140002284
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000227f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000238b
call fcn.1400054b0
lea edx, [rbx + 1]
lea rcx, [rsp + 0x20]
call fcn.140001d90
cmp qword [rax + 0x18], 0x10
jb 0x14000229b
mov rax, qword [rax]
mov edx, esi
mov rcx, rax
call fcn.140001cf0
mov rbp, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400022e5
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002385
call fcn.1400054b0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
lea rcx, [0x14003611b]
call fcn.140001080
mov r9d, 4
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140007300
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, esi
mov rcx, rbx
call fcn.140002190
call rbx
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005490
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14000e760
int3
call fcn.14000e760
int3
Function at 0x1400027a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400027c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000283c
mov rdi, r14
mov rcx, rbx
call fcn.1400037d0
test rax, rax
jle 0x140002814
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140007300
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000282c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002834
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400027d6
sub r14, rdi
jmp 0x140002929
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002853
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002855
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000288a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140007300
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002926
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400028c5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140002901
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e24c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14000293f
cmp rbp, rax
ja 0x1400028d1
mov r8, rdi
test rdi, rdi
je 0x140002926
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e24c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140002929
Function at 0x140002d10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003b060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002d3d
xor eax, eax
jmp 0x140002e83
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002d77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002d77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002e83
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002e76
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002dba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002dc9
movsx ecx, dil
jmp 0x140002e1d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140002e37
sub eax, 1
je 0x140002e37
cmp eax, 2
jne 0x140002e76
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000b8a8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002e7b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002e64
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000da74
cmp rsi, rax
jne 0x140002e76
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140002e7b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005490
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000b884
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000b717
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b717
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b717
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b717
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b717
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b717
cmp dword [rcx + 0xf8], 0
je 0x14000b717
mov ecx, ebx
call fcn.14000b7b8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000b5a8
cmp dword [rbp + 0x20], 0
je 0x14000b764
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b76c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000b6b0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c0860]
mov dword [rax], 1
mov rax, qword [0x1400c0870]
mov dword [rax], 1
mov rax, qword [0x1400c0880]
mov dword [rax], 1
mov rax, qword [0x1400c07e0]
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 0x1400213b0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14009b280
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140021475
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400ac192
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140021456
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140021448
test rsi, rsi
je 0x1400ac192
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140021408
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400214a4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400214c0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14002157d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400ac198
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002155e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140021550
test rsi, rsi
je 0x1400ac198
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140021510
mov rdx, qword [rsp + 0xd8]
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 0x1400403e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400d24f0]
mov rsi, rcx
test rbx, rbx
je 0x140040460
mov rax, qword [0x1400c09a0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140040450
mov rdx, qword [0x1400d2728]
test rdx, rdx
je 0x140040550
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140040431
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400213b0
test rax, rax
je 0x140040570
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400ac232
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400404fe
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400404f0
test rbx, rbx
je 0x1400ac232
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400404b0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140040270
mov rbx, rax
mov qword [0x1400d24f0], rbx
jmp 0x140040402
lea rcx, [0x1400bceb2]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400d2728], rax
mov rdx, rax
jmp 0x140040422
mov rbx, qword [0x1400d2508]
test rbx, rbx
jne 0x140040541
cmp byte [0x1400d2722], 0
je 0x1400405b3
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d2520]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400d2508], rax
mov rbx, rax
test rax, rax
je 0x1400405bf
mov eax, dword [rax]
add eax, 1
je 0x140040541
mov dword [rbx], eax
jmp 0x140040541
mov ecx, 1
call fcn.140022030
jmp 0x140040585
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x140040e40
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.1400213b0
test rax, rax
je 0x140040f90
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400ac24a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140040ef6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140040ee8
test rbx, rbx
je 0x1400ac24a
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140040ea8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400d2e60]
mov rsi, rax
mov rax, qword [0x1400c09a0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140040ffd
mov rdx, rbx
call fcn.140011a80
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400349b0
mov rdx, qword [rbx]
test edx, edx
js 0x140040f72
sub rdx, 1
mov qword [rbx], rdx
je 0x140040fe5
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400d2500]
lea rsi, [0x1400d2500]
test bl, bl
je 0x140040fb0
mov rax, qword [0x1400d2508]
lea rsi, [0x1400d2508]
test rax, rax
jne 0x140040f72
cmp byte [0x1400d2722], 0
je 0x140041027
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d2520]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140041031
mov edx, dword [rax]
add edx, 1
je 0x140040f72
mov dword [rax], edx
jmp 0x140040f72
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140040f72
mov rcx, qword [0x1400d2dd8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14004103c
mov rdx, rdi
call fcn.140011a80
mov qword [0x1400d2e60], rax
mov rcx, rax
jmp 0x140040f49
movzx ecx, bl
call fcn.140022030
jmp 0x140040fbe
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b7a93]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400d2dd8], rax
mov rcx, rax
test rax, rax
je 0x1400ac24a
jmp 0x140041010
Function at 0x140097870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d24e1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140097918
lea rdx, [0x1400bc78a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140097980
mov rbx, qword [0x1400d2380]
jmp 0x1400978b5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
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 0x1400978b0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140097907
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140087890
mov r8, rax
cmp rdi, rbx
jne 0x1400978f0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
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 [0x1400d2380], rax
mov ebx, dword [rax]
mov qword [0x1400d2380], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400d2380], rdx
call fcn.1400969a0
cmp eax, ebx
jne 0x1400979e8
mov byte [0x1400d24e1], 1
jmp 0x140097890
cmp byte [0x1400d24e0], 0
jne 0x1400978a7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400d3088], rax
call rbx
mov qword [0x1400d3080], rax
call rbx
mov qword [0x1400d3078], rax
call rbx
mov qword [0x1400d3070], rax
call rbx
mov qword [0x1400d3068], rax
call rbx
mov qword [0x1400d3060], rax
call rbx
mov qword [0x1400d3058], rax
call rbx
mov byte [0x1400d24e0], 1
mov qword [0x1400d3050], rax
jmp 0x1400978a7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140099f60
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.1400ab6f0
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.1400ab6f0
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