joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140120980
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14012098d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14012099d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140120985
lea eax, [rcx + 1]
jmp 0x1401209ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401209be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401209a4
sub eax, 3
jb 0x1401209de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140120a2d
sar eax, 1
movsxd rbp, eax
jb 0x140120a14
jmp 0x1401209ec
add ebx, ebx
jne 0x1401209ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140120a14
inc ecx
add ebx, ebx
jne 0x1401209fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140120a14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140120a0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401209fc
add ecx, 2
jmp 0x140120a19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140120942
jmp 0x14012098d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc4200
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140120a7d
cmp rsi, rcx
jae 0x140120a85
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140120a64
cmp al, 0x8f
ja 0x140120a64
cmp byte [rsi - 2], 0xf
je 0x140120a6a
sub al, 0xe8
cmp al, 1
ja 0x140120a4e
cmp rsi, rcx
jae 0x140120a85
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140120a54
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140120a85
lodsb al, byte [rsi]
jmp 0x140120a64
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11c000]
mov eax, dword [rdi]
or eax, eax
je 0x140120ae2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1204ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140120a92
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140120adc
mov qword [rbx], rax
add rbx, 8
jmp 0x140120ab2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140120b1c
cmp al, 0xef
ja 0x140120b0e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140120aee
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140120afd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140120b9b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140120b9b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140120b8b
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140002ec0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140009e00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140009e00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140008da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14009b084]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140008f30
mov rax, qword [0x14009b088]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140008dec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140008e75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140008dd0
mov rcx, rdi
call fcn.140009900
test rax, rax
mov r12, rax
je 0x140008f82
mov rax, qword [0x14009b088]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140009a40
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14009b088]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008f65
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140008e6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140008ee0
add dword [0x14009b084], 1
cmp ebx, 8
jae 0x140008ea1
test bl, 4
jne 0x140008f40
test ebx, ebx
je 0x140008e96
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140008f54
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140008e96
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140008eba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14009b088]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008d30
xor esi, esi
jmp 0x140008df7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140008e96
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140008e96
mov rax, qword [0x14009b088]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140008d30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140008d30
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140009550
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14009b0e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14009b0c0]
test rbx, rbx
je 0x1400095a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000959b
test rsi, rsi
je 0x14000959b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009580
lea rcx, [0x14009b0e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140009900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400973e0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000996f
mov rcx, r9
call fcn.1400097d0
test eax, eax
je 0x14000996f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000996d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140009964
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000996f
add rdx, 0x28
cmp rdx, r9
jne 0x140009950
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140009bc0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r13, rax
je 0x140009d12
movabs rax, 0xfffffffffffffff
mov esi, dword [rsp + 0x4c]
lea ecx, [rsi + 1]
movsxd rcx, ecx
cmp rcx, rax
ja 0x140009d1a
shl rcx, 3
xor ebx, ebx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
test esi, esi
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rax
je 0x140009cb0
mov r14, qword [r13 + rbx*8]
xor edx, edx
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r14
call rbp
movsxd rcx, eax
mov rdi, rcx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea esi, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x140009c30
movsxd rsi, esi
mov rcx, r13
xor ebx, ebx
mov qword [r12 + rsi*8], 0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call fcn.140001780
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x140009cef
jmp 0x140009cf8
call sub.libstdc_6.dll_operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x140009cf8
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x140009ce0
mov rcx, r12
call sub.libstdc_6.dll_operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x140009d00
call sub.libstdc_6.dll___cxa_throw_bad_array_new_length
nop
jmp qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub rsp, 0x28
call fcn.140008b30
mov rax, qword [0x1400974a0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x140097490]
mov r8, qword [rax]
mov rax, qword [0x140097480]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x140009bc0
Function at 0x14000fa20
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r13, rax
je 0x140009d12
movabs rax, 0xfffffffffffffff
mov esi, dword [rsp + 0x4c]
lea ecx, [rsi + 1]
movsxd rcx, ecx
cmp rcx, rax
ja 0x140009d1a
shl rcx, 3
xor ebx, ebx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
test esi, esi
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rax
je 0x140009cb0
mov r14, qword [r13 + rbx*8]
xor edx, edx
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r14
call rbp
movsxd rcx, eax
mov rdi, rcx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea esi, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x140009c30
movsxd rsi, esi
mov rcx, r13
xor ebx, ebx
mov qword [r12 + rsi*8], 0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call fcn.140001780
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x140009cef
jmp 0x140009cf8
call sub.libstdc_6.dll_operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x140009cf8
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x140009ce0
mov rcx, r12
call sub.libstdc_6.dll_operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x140009d00
call sub.libstdc_6.dll___cxa_throw_bad_array_new_length
nop
jmp qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub rsp, 0x28
call fcn.140008b30
mov rax, qword [0x1400974a0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x140097490]
mov r8, qword [rax]
mov rax, qword [0x140097480]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x140009bc0
Function at 0x1b990
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x1c8
mov rax, qword [0x000181d8]
mov qword [rsp + 0x190], rax
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x28], r12
mov r12, rdx
mov esi, r8d
mov rbp, rcx
mov rax, cr8
test al, al
je 0x1b9d0
mov eax, 1
jmp 0x1baac
lea r8, str.RegistryMACHINESystemCurrentControlSetutool
lea rdx, [0x00021b30]
lea rcx, [rsp + 0x90]
add r9, 0x1264
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1a8], rdi
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 0x20006
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0x30
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 0x40
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
mov edi, eax
js 0x1ba95
lea rcx, [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
mov rdi, qword [rsp + 0x1a8]
sets bl
mov eax, ebx
mov rbx, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x190]
call fcn.00017320
add rsp, 0x1c8
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14034d340]
mov dword [rax], 1
mov rax, qword [0x14034d350]
mov dword [rax], 1
mov rax, qword [0x14034d360]
mov dword [rax], 1
mov rax, qword [0x14034d2c0]
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 0x1402bc3b0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140327880
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 0x1402bc459
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1402bc41e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402bc410
test rax, rax
je 0x14033878e
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 0x1402bc3f8
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 0x1402bc488
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 0x1402bc4a0
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 0x1402bc541
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1402bc506
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402bc4f8
test rax, rax
je 0x140338794
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 0x1402bc4e0
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 0x1402e4fd0
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.1402bc3b0
test rax, rax
je 0x1402e5110
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.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 0x1402e504e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402e5040
test rax, rax
je 0x14033882e
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 0x1402e5030
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x140370598]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x14034d4b0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1402e5168
mov rdx, rbx
call fcn.1402a2460
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1402d95e0
sub qword [rbx], 1
jne 0x1402e50f6
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14036fe60]
lea rsi, [0x14036fe60]
test bl, bl
je 0x1402e5130
mov rax, qword [0x14036fe68]
lea rsi, [0x14036fe68]
test rax, rax
jne 0x1402e50f6
cmp byte [0x140370082], 0
jne 0x1402e5146
movzx ecx, bl
call fcn.1402a4470
mov rdx, 0xffffffffffffffff
lea rcx, [0x14036fe80]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1402e5192
add qword [rax], 1
jmp 0x1402e50f6
mov rcx, qword [0x140370510]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1402e519d
mov rdx, rdi
call fcn.1402a2460
mov qword [0x140370598], rax
mov rcx, rax
jmp 0x1402e50c3
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140345773]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140370510], rax
mov rcx, rax
test rax, rax
je 0x14033882e
jmp 0x1402e517b
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
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 qword [sym.imp.python311.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x14031cc30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14036fe49], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14031ccb8
lea rdx, [0x1403491f2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14031cd20
mov rbx, qword [0x14036fd00]
jmp 0x14031cc75
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 0x14031cc70
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.14030bde0
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 [0x14036fd00], rax
mov ebx, dword [rax]
mov qword [0x14036fd00], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14036fd00], rdx
call fcn.14031bd60
cmp eax, ebx
jne 0x14031cd88
mov byte [0x14036fe49], 1
jmp 0x14031cc4c
cmp byte [0x14036fe48], 0
jne 0x14031cc63
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1403707a8], rax
call rbx
mov qword [0x1403707a0], rax
call rbx
mov qword [0x140370798], rax
call rbx
mov qword [0x140370790], rax
call rbx
mov qword [0x140370788], rax
call rbx
mov qword [0x140370780], rax
call rbx
mov qword [0x140370778], rax
call rbx
mov byte [0x14036fe48], 1
mov qword [0x140370770], rax
jmp 0x14031cc63
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140326560
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.140337cf0
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.140337cf0
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