joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cf40
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, qword [0x14030a930]
movss xmm0, dword [0x140086814]
comiss xmm0, dword [rdi + 0x4218]
ja 0x14001d1de
cmp qword [rdi + 0x4210], 0
mov qword [rsp + 0x50], rsi
jne 0x14001cfce
mov r10d, 0xffffffff
lea r8, [0x140062b31]
mov ecx, r10d
lea r11, [0x140062f50]
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14001cfa3
cmp byte [r8], r9b
jne 0x14001cfa3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001cf90
not ecx
call fcn.140011780
mov qword [rdi + 0x4210], rax
mov rax, qword [rdi + 0x4090]
xor edx, edx
mov dword [rsp + 0x28], 0x7f7fffff
mov dword [rsp + 0x2c], 0x7f7fffff
movups xmm0, xmmword [rsp + 0x20]
mov rcx, qword [rax]
mov eax, dword [rdi + 0x3f90]
or eax, 0x10
movss xmm2, dword [rcx + 0xc]
movss xmm1, dword [rcx + 0x10]
mulss xmm1, dword [0x140086820]
mov dword [rdi + 0x3f90], eax
or eax, 1
mulss xmm2, dword [0x140086820]
mov qword [rdi + 0x3fe0], rdx
mov qword [rdi + 0x3fe8], rdx
lea rdx, [rsp + 0x40]
movss xmm0, xmm2
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm1
shufps xmm0, xmm0, 0xe1
movups xmmword [rdi + 0x3fcc], xmm0
movss xmm1, dword [rcx + 0x10]
movss xmm2, dword [rcx + 0xc]
mulss xmm1, dword [0x14008683c]
mulss xmm2, dword [0x14008683c]
addss xmm1, dword [rcx + 8]
addss xmm2, dword [rcx + 4]
mov dword [rdi + 0x3f90], eax
mov ecx, 2
mov dword [rdi + 0x3fa8], 0x3f000000
movss dword [rdi + 0x3fa4], xmm1
mov dword [rdi + 0x3fac], 0x3f000000
movss dword [rdi + 0x3fa0], xmm2
mov dword [rdi + 0x3f94], 1
movss xmm0, dword [rdi + 0x37e8]
movss xmm1, dword [rdi + 0x37ec]
addss xmm0, xmm0
addss xmm1, xmm1
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
call fcn.140009b40
xor edx, edx
lea rcx, str.NavWindowingList
mov r8d, 0xc1347
call fcn.140013ef0
mov eax, dword [rdi + 0x3e40]
sub eax, 1
movsxd rsi, eax
js 0x14001d1ca
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rax, qword [rdi + 0x3e48]
mov rbx, qword [rax + rsi*8]
cmp byte [rbx + 0x97], 0
je 0x14001d1bb
cmp rbx, qword [rbx + 0x360]
jne 0x14001d1bb
test dword [rbx + 0xc], 0x80000
jne 0x14001d1bb
mov r8, qword [rbx]
mov rcx, r8
cmp r8, 0xffffffffffffffff
jae 0x14001d162
nop
movzx edx, byte [rcx]
test dl, dl
je 0x14001d15d
lea rax, [rcx + 1]
cmp dl, 0x23
jne 0x14001d154
cmp byte [rax], dl
je 0x14001d15d
mov rcx, rax
cmp rax, 0xffffffffffffffff
jb 0x14001d140
cmp r8, rcx
jne 0x14001d19b
mov eax, dword [rbx + 0xc]
bt eax, 0x1a
jae 0x14001d174
lea r8, str._Popup_
jmp 0x14001d19b
bt eax, 0xa
jae 0x14001d194
lea rdx, str.MainMenuBar
mov rcx, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
lea r8, str._Main_menu_bar_
test eax, eax
je 0x14001d19b
lea r8, str._Untitled_
cmp qword [rdi + 0x4200], rbx
lea r9, [rsp + 0x40]
mov rcx, r8
mov qword [rsp + 0x40], 0
sete dl
call fcn.14003ca40
sub rsi, 1
jns 0x14001d100
mov rbx, qword [rsp + 0x48]
call fcn.140016210
mov ecx, 1
call fcn.140009bd0
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001d437
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001d3ea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001f430
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400097c0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14030a940]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001d43f
mov rcx, rbx
call fcn.1400097c0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d9b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14030a930]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001da13
mov qword [rsp], rbx
lea rbx, [0x140062f50]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001d9f3
cmp byte [r8], r9b
jne 0x14001d9f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001d9e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001da47
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001da4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001da34
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140045220
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm1, xmm1
mov rdi, rcx
cvtss2sd xmm1, xmm2
lea rcx, [rsp + 0x38]
mov rbx, r9
mov rsi, rdx
call fcn.1400422d0
cmp qword [rsp + 0x50], 0xf
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x58]
cmova r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400452c3
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400452be
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400452be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef5c
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005eba0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004aea0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x14004bcb0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, qword [0x14030a930]
lea rcx, str.Auth
xor edx, edx
mov rax, qword [rbx + 0x3e90]
mov byte [rax + 0x98], 1
mov rax, qword [rbx + 0x3e90]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [rax + 0x68]
movss xmm1, dword [rax + 0x18]
subss xmm1, dword [rax + 0x64]
mov byte [rax + 0x121], 1
addss xmm0, dword [0x140086948]
addss xmm1, dword [0x140086954]
movss dword [rax + 0xe4], xmm0
movss xmm0, dword [0x14030a974]
subss xmm0, dword [0x140086920]
movss dword [rax + 0xe0], xmm1
mov rax, qword [rbx + 0x3e90]
movss dword [r11 + 8], xmm0
movss xmm0, dword [0x14030a970]
mov byte [rax + 0x98], 1
mov r8, qword [rbx + 0x3e90]
movss dword [r11 + 0xc], xmm0
movsxd rax, dword [r8 + 0xd0]
mov r8, qword [r8 + 0xd8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1400090c0
mov edi, eax
cmp dword [rbx + 0x3ec4], eax
jne 0x14004bd8e
lea r8, str.Auth
mov edx, 0xb
mov ecx, eax
call fcn.14001e7c0
xor esi, esi
lea r8, [rsp + 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, edi
lea rcx, str.Auth
call fcn.1400110e0
movabs rcx, 0xd1f63ce86af0eb66
mov qword [rsp + 0x38], rsi
movabs rax, 0xc192c959f5ac7826
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x80], rax
lea rbx, [0x14030a980]
mov rax, qword [rsp + 0x80]
mov r9d, 0x80
mov qword [rsp + 0x40], rax
mov r8, rbx
mov qword [rsp + 0x80], rcx
xor edx, edx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
movabs rax, 0xc192c959f5d51d6d
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
xorps xmm0, xmmword [rsp + 0x50]
mov dword [rsp + 0x28], esi
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x80], rsi
call fcn.140039590
mov rcx, qword [0x14030a930]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx + 0x3e90]
mov byte [rax + 0x98], 1
mov rax, qword [rcx + 0x3e90]
movss xmm0, dword [rax + 0x18]
subss xmm0, dword [rax + 0x64]
mov byte [rax + 0x121], 1
addss xmm0, dword [0x140086904]
movss dword [rax + 0xe0], xmm0
mov rax, qword [rcx + 0x3e90]
mov byte [rax + 0x98], 1
mov rax, qword [rcx + 0x3e90]
lea rcx, str.Authenticate
mov dword [rsp + 0x80], 0x42c80000
mov dword [rsp + 0x84], 0x41c80000
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [rax + 0x68]
mov byte [rax + 0x121], 1
addss xmm0, dword [0x140086938]
movss dword [rax + 0xe4], xmm0
call fcn.140034360
test al, al
je 0x14004bf63
xorps xmm0, xmm0
mov qword [rsp + 0x60], rsi
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], sil
jne 0x14004bf30
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140004a70
lea rcx, [rsp + 0x50]
call fcn.14004ba80
cmp byte [0x14030a942], 1
jne 0x14004bf79
mov dword [0x14030bea8], 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
jmp fcn.1400113b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14005ddd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14005de31
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14005ddf0
mov ecx, dword [r9]
jmp 0x14005df1b
cmp ecx, 0x4e0
jb 0x14005df1b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14005de50
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14005dea0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14005e378
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1400619c0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005e3b2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005e3b7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005e400
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400618c0]
cmp byte [rcx + rax], 0
je 0x14005e400
dec r8
sub rdx, 1
jne 0x14005e3e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14005f9b4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012e90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014200
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014213
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001423d
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014251
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014263
xor al, al
jmp 0x140014281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001427f
xor al, al
jmp 0x140014281
mov al, 1
add rsp, 0x38
ret
Function at 0x1400120d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011398
movzx eax, al
test eax, eax
jne 0x1400120f0
mov ecx, 7
call fcn.140011316
nop
mov byte [rsp + 0x20], 0
call fcn.14001132a
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012114
mov ecx, 7
call fcn.140011316
nop
jmp 0x14001216c
cmp dword [0x14001d868], 0
jne 0x140012167
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x140012148
mov eax, 0xff
jmp 0x140012271
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011320
mov dword [0x14001d868], 2
jmp 0x14001216c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011302
call fcn.14001129e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400121c9
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400121c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112d0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400121fd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400121fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011357
nop
call fcn.140012320
mov dword [rsp + 0x28], eax
call fcn.14001127b
movzx eax, al
test eax, eax
jne 0x14001221c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001222b
call fcn.140011361
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140012271
add rsp, 0x68
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1402e6740]
mov dword [rax], 1
mov rax, qword [0x1402e6750]
mov dword [rax], 1
mov rax, qword [0x1402e6760]
mov dword [rax], 1
mov rax, qword [0x1402e66c0]
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 0x140243c70
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.1402bdb20
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 0x140243d35
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 0x1402cea32
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140243d16
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140243d08
test rsi, rsi
je 0x1402cea32
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140243cc8
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 0x140243d64
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 0x140243d80
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 0x140243e3d
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 0x1402cea38
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140243e1e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140243e10
test rsi, rsi
je 0x1402cea38
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140243dd0
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 0x140262c40
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 [0x140311f70]
mov rsi, rcx
test rbx, rbx
je 0x140262cc0
mov rax, qword [0x1402e6890]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140262cb0
mov rdx, qword [0x1403121a8]
test rdx, rdx
je 0x140262db0
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 0x140262c91
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140243c70
test rax, rax
je 0x140262dd0
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 0x1402cead2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140262d5e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140262d50
test rbx, rbx
je 0x1402cead2
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 0x140262d10
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.140262ad0
mov rbx, rax
mov qword [0x140311f70], rbx
jmp 0x140262c62
lea rcx, [0x1402e2d92]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1403121a8], rax
mov rdx, rax
jmp 0x140262c82
mov rbx, qword [0x140311f88]
test rbx, rbx
jne 0x140262da1
cmp byte [0x1403121a2], 0
je 0x140262e13
mov rdx, 0xffffffffffffffff
lea rcx, [0x140311fa0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x140311f88], rax
mov rbx, rax
test rax, rax
je 0x140262e1f
mov eax, dword [rax]
add eax, 1
je 0x140262da1
mov dword [rbx], eax
jmp 0x140262da1
mov ecx, 1
call fcn.1402448f0
jmp 0x140262de5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]