joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c4590
Capabilities:
Parse pe header

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

Function at 0x1401c7a2c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401c7a9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c7a9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c7a9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c7a9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c7a9b
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c7a9b
cmp dword [rcx + 0xf8], 0
je 0x1401c7a9b
mov ecx, ebx
call fcn.1401c7b4c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401c7928
nop
cmp dword [rbp + 0x20], 0
je 0x1401c7ae9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401c7af4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1401c7a2c

Function at 0x1401c7c30
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401c7a2c
Function at 0x1401cace4
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 0x1401cad14
xor eax, eax
jmp 0x1401cadd7
mov rbp, rbx
cmp word [rax], si
je 0x1401cad39
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401cad20
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401cad1c
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.1401cac04
movsxd r14, eax
test eax, eax
jne 0x1401cad77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401cad0d
mov rcx, r14
call fcn.1401cb778
mov rdi, rax
test rax, rax
jne 0x1401cad90
xor ecx, ecx
call fcn.1401c923c
jmp 0x1401cad6c
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.1401cac04
test eax, eax
jne 0x1401cadc1
mov rcx, rdi
call fcn.1401c923c
jmp 0x1401cadcb
xor ecx, ecx
call fcn.1401c923c
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 0x1401d0540
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401d0568
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401d0568
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400046b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov r8d, 0xe
lea rdx, str.128
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400048e0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400048e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400048e0
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400048e0
movzx r15d, word [rsi + 4]
lea ebx, [r15 - 1]
shl ebx, 4
add ebx, 0x16
mov ecx, ebx
call fcn.1400068bc
mov rdi, rax
xor r13d, r13d
mov dword [rax], 0x10000
lea r10d, [r13 + 1]
mov word [rax + 4], r15w
mov r8d, ebx
test r15d, r15d
je 0x1400047b2
lea rcx, [rax + 7]
lea rdx, [rsi + 7]
mov r9d, r15d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx - 1]
mov byte [rcx - 1], al
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
mov byte [rcx + 2], r13b
movzx eax, word [rdx + 3]
mov word [rcx + 3], ax
movzx eax, word [rdx + 5]
mov word [rcx + 5], ax
mov eax, dword [rdx + 7]
mov dword [rcx + 7], eax
mov dword [rcx + 0xb], r8d
add r8d, dword [rdx + 7]
lea rcx, [rcx + 0x10]
lea rdx, [rdx + 0xe]
sub r9, r10
jne 0x140004770
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r10d
mov edx, 0x40000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x88]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, r13d
test r15d, r15d
je 0x1400048d7
add rsi, 0x12
call fcn.1400011e0
mov rcx, rax
test rax, rax
je 0x1400048fa
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
movzx r8d, word [rsi]
lea rdx, [0x140029fc0]
lea rcx, [rsp + 0x90]
call fcn.140005f30
mov r8d, 3
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x1400048ac
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400048ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400048ac
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x88]
mov r8d, eax
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400048c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc edi
add rsi, 0xe
cmp edi, r15d
jl 0x140004807
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001040
int3
Function at 0x1400052f2
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx], 0
je 0x140005323
mov eax, 0x86e26c81
mov edx, 1
xor r8d, r8d
movzx r8d, word [r8 + rcx]
mov r9d, eax
rol r9d, 0x18
add r9d, r8d
xor eax, r9d
mov r8d, edx
inc edx
cmp byte [rcx + r8], 0
jne 0x140005304
ret
mov eax, 0x86e26c81
ret

Function at 0x1400053e9
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 1
cmp dword [0x140039708], 0
jne 0x140005592
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov r8, qword [rcx + 0x30]
test r8, r8
je 0x140005517
xor eax, eax
mov edx, 0xdfdfdfdf
mov rdi, r8
movsxd r8, dword [r8 + 0x3c]
mov r8d, dword [r8 + rdi + 0x88]
test r8, r8
je 0x140005472
mov r9d, dword [r8 + rdi + 0xc]
add r8, rdi
mov eax, dword [r9 + rdi]
and eax, edx
cmp eax, 0x4c44544e
jne 0x14000546f
mov rax, r8
mov r8d, dword [rdi + r9 + 4]
and r8d, edx
cmp r8d, 0x4c440e4c
jne 0x140005472
jmp 0x140005487
mov rax, r8
mov rcx, qword [rcx]
mov r8, qword [rcx + 0x30]
test r8, r8
jne 0x140005430
test rax, rax
je 0x140005517
mov r14d, dword [rax + 0x18]
mov ecx, dword [rax + 0x1c]
add rcx, rdi
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + 0x20]
add r12, rdi
mov r13d, dword [rax + 0x24]
add r13, rdi
lea ebp, [r14 - 1]
xor ebx, ebx
lea rsi, [0x140039708]
mov ecx, dword [r12 + rbp*4]
movzx eax, word [rdi + rcx]
cmp eax, 0x775a
jne 0x1400054fe
add rcx, rdi
call fcn.1400052f2
mov r15d, ebx
shl r15, 4
mov dword [r15 + rsi + 8], eax
movzx eax, word [r13 + rbp*2]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + rax*4]
mov dword [r15 + rsi + 0xc], ecx
add rcx, rdi
call fcn.140005329
mov qword [r15 + rsi + 0x10], rax
inc ebx
cmp ebx, 0x258
je 0x14000551b
dec r14d
dec rbp
test r14d, r14d
jne 0x1400054b1
mov dword [0x140039708], ebx
mov eax, ebx
dec eax
jne 0x14000552f
jmp 0x14000558d
xor eax, eax
jmp 0x140005592
mov dword [0x140039708], 0x258
mov ebx, 0x258
mov eax, 0x257
xor ecx, ecx
lea rdx, [0x140039728]
mov r8d, eax
mov r8d, r8d
inc ecx
cmp ebx, ecx
je 0x140005586
mov r9, r8
mov r10, rdx
mov r11d, dword [r10 - 0x14]
mov esi, dword [r10 - 4]
cmp r11d, esi
jbe 0x14000557d
mov edi, dword [r10 - 0x18]
mov r14, qword [r10 - 0x10]
mov ebp, dword [r10 - 8]
mov dword [r10 - 0x18], ebp
mov dword [r10 - 0x14], esi
mov rsi, qword [r10]
mov qword [r10 - 0x10], rsi
mov dword [r10 - 8], edi
mov dword [r10 - 4], r11d
mov qword [r10], r14
add r10, 0x10
dec r9
jne 0x14000554a
dec r8d
cmp ecx, eax
jne 0x14000553b
mov eax, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000c708
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012a20
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012a8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012a8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012a8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012a8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140012a8f
cmp dword [rcx + 0xf8], 0
je 0x140012a8f
mov ecx, ebx
call fcn.140012958
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012bb4
nop
cmp dword [rbp + 0x20], 0
je 0x140012add
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400129ec
int3

Function at 0x140012a20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012a20
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012a8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012a8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012a8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012a8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140012a8f
cmp dword [rcx + 0xf8], 0
je 0x140012a8f
mov ecx, ebx
call fcn.140012958
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012bb4
nop
cmp dword [rbp + 0x20], 0
je 0x140012add
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400129ec
int3

Function at 0x140014100
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014128
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014128
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001a74c
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 0x14001a77c
xor eax, eax
jmp 0x14001a83f
mov rbp, rbx
cmp word [rax], si
je 0x14001a7a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a788
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a784
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.14001a66c
movsxd r14, eax
test eax, eax
jne 0x14001a7df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a775
mov rcx, r14
call fcn.140017078
mov rdi, rax
test rax, rax
jne 0x14001a7f8
xor ecx, ecx
call fcn.1400160e0
jmp 0x14001a7d4
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.14001a66c
test eax, eax
jne 0x14001a829
mov rcx, rdi
call fcn.1400160e0
jmp 0x14001a833
xor ecx, ecx
call fcn.1400160e0
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 0x14001f644
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f65a
mov al, 1
jmp 0x14001f6ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f66b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f6b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001aca4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f6b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f6b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f6b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f6ba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021b40
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001558c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140021bca
cmp byte [rbp - 0x21], r15b
je 0x140021bc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021c00
call fcn.1400145c4
test eax, eax
jne 0x140021bec
cmp byte [rbp - 0x21], r15b
je 0x140021be4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021c00
cmp byte [rbp - 0x21], r15b
je 0x140021bfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019b1c
test eax, eax
jne 0x140021ca0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001558c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021c3f
cmp byte [rbp - 0x21], r15b
je 0x140021c74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021c74
call fcn.1400145c4
test eax, eax
jne 0x140021c60
cmp byte [rbp - 0x21], r15b
je 0x140021c59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021c74
cmp byte [rbp - 0x21], r15b
je 0x140021c71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019b1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021ca0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021ca3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021cb1
mov rcx, rdi
call fcn.1400160e0
cmp byte [rbp + 0x3f], r15b
je 0x140021cc0
mov rcx, qword [rbp + 0x27]
call fcn.1400160e0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140129fa0]
mov dword [rax], 1
mov rax, qword [0x140129fb0]
mov dword [rax], 1
mov rax, qword [0x140129fc0]
mov dword [rax], 1
mov rax, qword [0x140129f40]
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 0x14008a510
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.1401042a0
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 0x14008a5d5
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 0x1401151a2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14008a5b6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14008a5a8
test rsi, rsi
je 0x1401151a2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14008a568
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 0x14008a604
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 0x14008a620
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 0x14008a6dd
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 0x1401151a8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14008a6be
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14008a6b0
test rsi, rsi
je 0x1401151a8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14008a670
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 0x1400a94e0
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 [0x14013d090]
mov rsi, rcx
test rbx, rbx
je 0x1400a9560
mov rax, qword [0x14012a0f0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400a9550
mov rdx, qword [0x14013d2c8]
test rdx, rdx
je 0x1400a9650
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 0x1400a9531
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14008a510
test rax, rax
je 0x1400a9670
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 0x140115242
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400a95fe
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400a95f0
test rbx, rbx
je 0x140115242
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 0x1400a95b0
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.1400a9370
mov rbx, rax
mov qword [0x14013d090], rbx
jmp 0x1400a9502
lea rcx, [0x140126632]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x14013d2c8], rax
mov rdx, rax
jmp 0x1400a9522
mov rbx, qword [0x14013d0a8]
test rbx, rbx
jne 0x1400a9641
cmp byte [0x14013d2c2], 0
je 0x1400a96b3
mov rdx, 0xffffffffffffffff
lea rcx, [0x14013d0c0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x14013d0a8], rax
mov rbx, rax
test rax, rax
je 0x1400a96bf
mov eax, dword [rax]
add eax, 1
je 0x1400a9641
mov dword [rbx], eax
jmp 0x1400a9641
mov ecx, 1
call fcn.14008b190
jmp 0x1400a9685
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]