joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d55e8
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 0x1400d5618
xor eax, eax
jmp 0x1400d56db
mov rbp, rbx
cmp word [rax], si
je 0x1400d563d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d5624
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d5620
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.1400d1744
movsxd r14, eax
test eax, eax
jne 0x1400d567b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d5611
mov rcx, r14
call fcn.1400cc4b8
mov rdi, rax
test rax, rax
jne 0x1400d5694
xor ecx, ecx
call fcn.1400c8428
jmp 0x1400d5670
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.1400d1744
test eax, eax
jne 0x1400d56c5
mov rcx, rdi
call fcn.1400c8428
jmp 0x1400d56cf
xor ecx, ecx
call fcn.1400c8428
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 0x1400d56f8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d577f
mov rsi, rbx
cmp word [rax], bp
je 0x1400d573e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d5728
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d5724
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400cc4b8
mov rdi, rax
test rax, rax
je 0x1400d576c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007a420
mov rbp, rdi
xor ecx, ecx
call fcn.1400c8428
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d9a48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400c72b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400d9ae9
cmp ebx, dword [rsp + 0x30]
je 0x1400d9ae2
test esi, esi
je 0x1400d9ae2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400d9abd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400d9aca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400d9aa7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400d9ace
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400d9aeb
mov eax, 1
jmp 0x1400d9aeb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dca54
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14029b810]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400dcaab
cmp word [rdx], r13w
jne 0x1400dcaab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400dcab0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400dcbd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400dcbf6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400dcae9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400dcb10
cmp r9, r8
jae 0x1400dcb20
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400dcaca
jmp 0x1400dcbd5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dcbca
cmp dword [rsp + 0x80], esi
je 0x1400dcbca
lea r8, [0x14029b810]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400dcba2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400dcb72
mov word [rbx], r13w
jmp 0x1400dcbd2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400dcb7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400dcbd2
cmp word [rsp + 0x70], r13w
jne 0x1400dcbaf
cmp rbx, r14
je 0x1400dcb6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400dbbf0
cmp word [rsp + 0x70], r13w
je 0x1400dcbd5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14029b810]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400dcbcf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400dcbd5
Function at 0x1400e42ac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400dbbf0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400dbbf0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e43fc
cmp rax, 0xffffffffffffffff
je 0x1400e43fc
xor edi, edi
test rbp, rbp
jle 0x1400e43a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400cc518
mov rbx, rax
test rax, rax
jne 0x1400e4334
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e439d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c3110
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400c9c28
cmp eax, 0xffffffff
je 0x1400e437d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e4344
mov edx, r15d
mov ecx, r14d
call fcn.1400c3110
jmp 0x1400e439d
cmp byte [rsi + 0x38], dil
je 0x1400e4394
cmp dword [rsi + 0x34], 5
jne 0x1400e4394
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400e439d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400c8428
jmp 0x1400e4410
jns 0x1400e4410
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400dbbf0
cmp rax, 0xffffffffffffffff
jne 0x1400e43c8
cmp byte [rsi + 0x30], dil
je 0x1400e4410
mov edi, dword [rsi + 0x2c]
jmp 0x1400e4410
mov ecx, r14d
call fcn.1400d6f90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e4410
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400e4410
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e4409
mov eax, dword [rsi + 0x2c]
jmp 0x1400e440e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400dbbf0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400f1820
Capabilities:
Encrypt data using rc4 prga

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 r13
push r14
push r15
sub rsp, 0x20
mov r13d, pe_nt_image_headers64
mov r14, rdx
mov ecx, r13d
xor edi, edi
call fcn.140077cc0
mov rcx, rax
mov rbx, rax
lea rdx, [rax + 0x100]
call fcn.14004684c
xor eax, eax
mov rcx, rbx
mov byte [rcx], al
inc eax
inc rcx
cmp eax, r13d
jl 0x1400f1867
mov r11, qword [0x14029bde8]
xor r8d, r8d
mov rcx, qword [0x14029bde0]
xor r9d, r9d
sub r11, rcx
mov r10, rbx
xor esi, esi
mov rbp, r13
movzx r15d, byte [r10]
xor edx, edx
mov rax, rsi
div r11
movzx eax, byte [rdx + rcx]
mov edx, 0xffffff00
add edi, eax
add edi, r15d
and edi, 0x800000ff
jge 0x1400f18ba
dec edi
or edi, edx
inc edi
movsxd rcx, edi
inc rsi
mov al, byte [rcx + rbx]
mov byte [r10], al
inc r10
mov byte [rcx + rbx], r15b
sub rbp, 1
je 0x1400f18dc
mov rcx, qword [0x14029bde0]
jmp 0x1400f1892
mov edi, 0x48204
inc r8d
mov ecx, 0x800000ff
and r8d, ecx
jge 0x1400f18f7
dec r8d
or r8d, edx
inc r8d
movsxd r10, r8d
movzx r11d, byte [r10 + rbx]
add r9d, r11d
and r9d, ecx
jge 0x1400f1910
dec r9d
or r9d, edx
inc r9d
movsxd rcx, r9d
mov al, byte [rcx + rbx]
mov byte [r10 + rbx], al
mov byte [rcx + rbx], r11b
movzx ecx, byte [r10 + rbx]
add rcx, r11
movzx eax, cl
mov cl, byte [rax + rbx]
xor byte [r14], cl
inc r14
sub rdi, 1
jne 0x1400f18e1
test rbx, rbx
je 0x1400f1948
mov rdx, r13
mov rcx, rbx
call fcn.140078140
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x100f37ad0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100f37add
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100f37aed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100f37ad5
lea eax, [rcx + 1]
jmp 0x100f37afb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100f37b0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100f37af4
sub eax, 3
jb 0x100f37b2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100f37b7d
sar eax, 1
movsxd rbp, eax
jb 0x100f37b64
jmp 0x100f37b3c
add ebx, ebx
jne 0x100f37b3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f37b64
inc ecx
add ebx, ebx
jne 0x100f37b4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f37b64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100f37b5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100f37b4c
add ecx, 2
jmp 0x100f37b69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100f37a92
jmp 0x100f37add
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf33000]
mov eax, dword [rdi]
or eax, eax
je 0x100f37bd9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf4d86c]
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 0x100f37b89
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 0x100f37bd3
mov qword [rbx], rax
add rbx, 8
jmp 0x100f37ba9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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.100f37c5c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100f37c5c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100f37c4c
sub rsp, 0xffffffffffffff80
jmp 0x100003210
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dl, 0xe9
sbb esi, ebx
retf
pop rsp
pop rbx
cmp al, 0x2f
nop
sti
enter 0x3ae9, 0xfffffffffffffff9
sub ebx, dword [rdi]
push rbx
fild word [rsi + 0x157a5ecd]
fldenv [rdi - 0x12059078]
in al, dx
invalid
fidiv word [rbp + riz*8 - 0x73]
xlatb
mov ch, 0x41
add edi, ebp
sbb al, 0x15
invalid
jmp 0x158aee399
push 3
push r9
add ecx, dword [rbp + 0x51]
nop
jo 0x14003f69e
leave
jrcxz 0x14003f679
invalid
adc dword [0xee793833], 0xad2605dd
lodsd eax, dword es:[rsi]
push rsp
stosd dword [rdi], eax
pop rsp
invalid
sbb ebp, dword [rdi - 0x5c]
mov ch, 0xe3
movabs byte [0x4468082505f107c0], al
int1
add eax, 0x44680825
invalid
or byte [rax + 0x44], ch
int1
add eax, 0x44680825
invalid
or byte [rax + 0x44], ch
push rcx
fadd qword [rsi + 0x51]
xchg dword [rcx], edi
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14028ff00]
mov dword [rax], 1
mov rax, qword [0x14028ff10]
mov dword [rax], 1
mov rax, qword [0x14028ff20]
mov dword [rax], 1
mov rax, qword [0x14028fe80]
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 0x1401eb490
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.140265380
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 0x1401eb555
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 0x140276292
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401eb536
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401eb528
test rsi, rsi
je 0x140276292
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401eb4e8
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 0x1401eb584
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 0x1401eb5a0
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 0x1401eb65d
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 0x140276298
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401eb63e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401eb630
test rsi, rsi
je 0x140276298
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401eb5f0
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 0x14020a460
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 [0x1402b04f0]
mov rsi, rcx
test rbx, rbx
je 0x14020a4e0
mov rax, qword [0x140290050]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14020a4d0
mov rdx, qword [0x1402b0728]
test rdx, rdx
je 0x14020a5d0
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 0x14020a4b1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1401eb490
test rax, rax
je 0x14020a5f0
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 0x140276332
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14020a57e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14020a570
test rbx, rbx
je 0x140276332
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 0x14020a530
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.14020a2f0
mov rbx, rax
mov qword [0x1402b04f0], rbx
jmp 0x14020a482
lea rcx, [0x14028c56f]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1402b0728], rax
mov rdx, rax
jmp 0x14020a4a2
mov rbx, qword [0x1402b0508]
test rbx, rbx
jne 0x14020a5c1
cmp byte [0x1402b0722], 0
je 0x14020a633
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b0520]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1402b0508], rax
mov rbx, rax
test rax, rax
je 0x14020a63f
mov eax, dword [rax]
add eax, 1
je 0x14020a5c1
mov dword [rbx], eax
jmp 0x14020a5c1
mov ecx, 1
call fcn.1401ec110
jmp 0x14020a605
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14020aec0
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.1401eb490
test rax, rax
je 0x14020b010
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 0x14027634a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14020af76
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14020af68
test rbx, rbx
je 0x14027634a
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 0x14020af28
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1402b0e60]
mov rsi, rax
mov rax, qword [0x140290050]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14020b07d
mov rdx, rbx
call fcn.1401dbb60
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1401fea90
mov rdx, qword [rbx]
test edx, edx
js 0x14020aff2
sub rdx, 1
mov qword [rbx], rdx
je 0x14020b065
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402b0500]
lea rsi, [0x1402b0500]
test bl, bl
je 0x14020b030
mov rax, qword [0x1402b0508]
lea rsi, [0x1402b0508]
test rax, rax
jne 0x14020aff2
cmp byte [0x1402b0722], 0
je 0x14020b0a7
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b0520]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14020b0b1
mov edx, dword [rax]
add edx, 1
je 0x14020aff2
mov dword [rax], edx
jmp 0x14020aff2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14020aff2
mov rcx, qword [0x1402b0dd8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14020b0bc
mov rdx, rdi
call fcn.1401dbb60
mov qword [0x1402b0e60], rax
mov rcx, rax
jmp 0x14020afc9
movzx ecx, bl
call fcn.1401ec110
jmp 0x14020b03e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140287273]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1402b0dd8], rax
mov rcx, rax
test rax, rax
je 0x14027634a
jmp 0x14020b090