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

Disassembly:
mov r8, qword [0x1400045f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002330
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002338
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002330
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002380
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002377
test rcx, rcx
je 0x140002330
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002368
xor eax, eax
ret

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400045f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400045f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002444
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002450
add rdx, 0x28
cmp r9, rdx
jne 0x140002430
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400045f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002482
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002490
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002482
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002482
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002482
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002507
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002517
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024ee
test ecx, ecx
jg 0x140002500
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400029b0
Capabilities:
Execute command

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call sym.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400029fb
jmp 0x140002a71
test cl, cl
je 0x140002a28
and esi, 1
je 0x140002a10
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x1400029f7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1400029d8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1400029e6
test cl, cl
je 0x140002a28
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140002a28
cmp al, 0x20
jle 0x140002a18
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [rsp + 0x5c], 1
mov r9d, 0xa
je 0x140002a56
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x1400045f0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140004220]
jmp 0x140002a28
Function at 0x2fc4ce8e0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cf9c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cf2e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4cf37a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf35e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf352
cmp qword [rbp - 0x10], 0
je 0x2fc4cf352
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf318
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf37b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cf4a8
mov eax, 0
jmp 0x2fc4cf4f6
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 0x2fc4cf4d1
mov eax, 0
jmp 0x2fc4cf4f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cf4f1
mov eax, 0
jmp 0x2fc4cf4f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf4fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cf57a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cf571
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cf571
mov rax, qword [rbp - 8]
jmp 0x2fc4cf58f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cf544
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc3c0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cd4a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ccdc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cce5a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cce3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cce32
cmp qword [rbp - 0x10], 0
je 0x2fc4cce32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4ccdf8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cce5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ccf60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4ccf88
mov eax, 0
jmp 0x2fc4ccfd6
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 0x2fc4ccfb1
mov eax, 0
jmp 0x2fc4ccfd6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4ccfd1
mov eax, 0
jmp 0x2fc4ccfd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ccfdc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cd05a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cd051
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cd051
mov rax, qword [rbp - 8]
jmp 0x2fc4cd06f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cd024
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002e58
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14001091d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001092d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140010915
lea eax, [rcx + 1]
jmp 0x14001093b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14001094e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140010934
sub eax, 3
jb 0x14001096e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400109bd
sar eax, 1
movsxd rbp, eax
jb 0x1400109a4
jmp 0x14001097c
add ebx, ebx
jne 0x14001097a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400109a4
inc ecx
add ebx, ebx
jne 0x14001098a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400109a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001099d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001098c
add ecx, 2
jmp 0x1400109a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400108d2
jmp 0x14001091d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140010a09
cmp rsi, rcx
jae 0x140010a11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400109f0
cmp al, 0x8f
ja 0x1400109f0
cmp byte [rsi - 2], 0xf
je 0x1400109f6
sub al, 0xe8
cmp al, 1
ja 0x1400109da
cmp rsi, rcx
jae 0x140010a11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400109e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140010a11
lodsb al, byte [rsi]
jmp 0x1400109f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe000]
mov eax, dword [rdi]
or eax, eax
je 0x140010a6e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10204]
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 0x140010a1e
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 0x140010a68
mov qword [rbx], rax
add rbx, 8
jmp 0x140010a3e
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 0x140010aa8
cmp al, 0xef
ja 0x140010a9a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140010a7a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140010a89
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.140010b27], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140010b27
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140010b17
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x1401cd210
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10088
call fcn.1401f1a20
sub rsp, rax
mov rax, qword [0x140230008]
xor rax, rsp
mov qword [rsp + 0x10080], rax
mov word [rsp + 0x80], 0
mov word [rsp + 0x30], 0
movzx ebp, byte [rcx]
test bpl, bpl
je 0x1401cd2e8
mov rsi, rcx
mov r14d, 0x28
lea r15, [rsp + 0x30]
xor eax, eax
lea rdi, [rsp + 0x2e]
nop dword [rax]
mov rbx, r15
mov rcx, r14
test ax, ax
je 0x1401cd2a1
mov rcx, r14
mov rax, r15
nop word cs:[rax + rax]
lea rbx, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, rbx
jne 0x1401cd290
test rcx, rcx
je 0x1401cd344
mov rcx, rbx
call fcn.140202a78
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rdi
call fcn.1402009a0
movzx ebp, byte [rsi + 1]
test bpl, bpl
je 0x1401cd2e8
inc rsi
dec r14
movzx eax, word [r15 + 2]
add r15, 2
jmp 0x1401cd270
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add eax, 0xfffeffff
cmp eax, 0xffff0000
jae 0x1401cd311
xor esi, esi
jmp 0x1401cd321
lea rcx, [rsp + 0x80]
call fcn.1401ff294
mov rsi, rax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401f1a80
mov rax, rsi
add rsp, 0x10088
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140200658
int3

Function at 0x1401cd350
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rsi, rdx
mov rax, qword [0x140230008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov word [rsp + 0x30], 0
movzx ebp, byte [rcx]
test bpl, bpl
je 0x1401cd415
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
xor eax, eax
lea rbx, [rsp + 0x2e]
nop
mov r14, r12
mov rcx, r15
test ax, ax
je 0x1401cd3d1
mov rcx, r15
mov rax, r12
nop word cs:[rax + rax]
lea r14, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r14
jne 0x1401cd3c0
test rcx, rcx
je 0x1401cd446
mov rcx, r14
call fcn.140202a78
lea rcx, [r14 + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rbx
call fcn.1402009a0
movzx ebp, byte [rdi + 1]
test bpl, bpl
je 0x1401cd415
inc rdi
dec r15
movzx eax, word [r12 + 2]
add r12, 2
jmp 0x1401cd3a0
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401f1a80
nop
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140200658
int3
Function at 0x1401cf7f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebx, ecx
mov rax, qword [0x140230008]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, str.NUITKA_ONEFILE_BINARY
mov rcx, rsi
call fcn.1401cd210
test rax, rax
je 0x1401cf911
mov rcx, rax
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdi, rax
mov word [rsp + 0x30], 0
mov r15d, 0x28
lea r12, [rsp + 0x30]
mov bpl, 0x4e
xor eax, eax
lea rbx, [rsp + 0x2e]
lea r13, [0x14021f4a8]
nop word cs:[rax + rax]
mov r14, r12
mov rcx, r15
test ax, ax
je 0x1401cf8a1
mov rcx, r15
mov rax, r12
nop word cs:[rax + rax]
lea r14, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r14
jne 0x1401cf890
test rcx, rcx
je 0x1401cf983
mov rcx, r14
call fcn.140202a78
lea rcx, [r14 + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rbx
call fcn.1402009a0
cmp rsi, r13
je 0x1401cf8e9
movzx ebp, byte [rsi + 1]
inc rsi
dec r15
movzx eax, word [r12 + 2]
add r12, 2
jmp 0x1401cf870
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rcx, qword [rax + 0x1f0]
mov rdx, rdi
call fcn.1401c7860
mov rsi, rax
jmp 0x1401cf956
lea rax, [0x14023e0c0]
lea rdi, [0x14023e0b8]
test bl, bl
cmovne rdi, rax
mov rsi, qword [rdi]
test rsi, rsi
jne 0x1401cf956
mov ecx, ebx
call fcn.1401cf590
lea rcx, [0x14023deb0]
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rdi], rax
test rax, rax
je 0x1401cf97d
inc qword [rax]
mov rsi, qword [rdi]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401f1a80
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.python310.dll_PyErr_Print]
call fcn.140200658
int3
Function at 0x1401e07d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp byte [0x14023e130], 0
jne 0x1401e084e
mov edx, 3
mov r8d, 0xa
xor ecx, ecx
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]
mov qword [0x14023e128], rax
mov ebp, dword [rax]
lea rcx, [rax + 4]
mov qword [0x14023e128], rcx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14023e128], rdx
xor ecx, ecx
call fcn.1401dff70
cmp eax, ebp
jne 0x1401e0970
mov byte [0x14023e130], 1
lea rdx, [0x14021e950]
mov rcx, rbx
call fcn.1402026e0
test eax, eax
je 0x1401e08ea
cmp byte [0x14023e380], 0
jne 0x1401e08ea
mov r14, qword [sym.imp.python310.dll_PyDict_New]
call r14
mov qword [0x14023e388], rax
call r14
mov qword [0x14023e390], rax
call r14
mov qword [0x14023e398], rax
call r14
mov qword [0x14023e3a0], rax
call r14
mov qword [0x14023e3a8], rax
call r14
mov qword [0x14023e3b0], rax
call r14
mov qword [0x14023e3b8], rax
call r14
mov qword [0x14023e3c0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov ecx, 0xda0
add rcx, qword [rax + 0x10]
mov qword [0x14023e1c8], rcx
mov byte [0x14023e380], 1
mov r14, qword [0x14023e128]
mov rcx, rbx
mov rdx, r14
call fcn.1402026e0
mov ebp, eax
mov rcx, r14
call fcn.140202760
lea r8, [rax + r14]
inc r8
test ebp, ebp
je 0x1401e0950
nop word cs:[rax + rax]
mov eax, dword [r8]
lea r15, [r8 + rax]
lea r14, [r8 + rax]
add r14, 4
mov rcx, rbx
mov rdx, r14
call fcn.1402026e0
mov ebp, eax
mov rcx, r14
call fcn.140202760
lea r8, [rax + r15]
add r8, 5
test ebp, ebp
jne 0x1401e0920
movzx r9d, word [r8 + 4]
add r8, 6
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401ed080
lea rcx, str.Error__corrupted_constants_object
call fcn.1402022d4
call fcn.140200658
int3

Function at 0x1401f21f8
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401fe0fc
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 0x1401fe16b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fe16b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fe16b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fe16b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fe16b
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fe16b
cmp dword [rcx + 0xf8], 0
je 0x1401fe16b
mov ecx, ebx
call fcn.1401fe028
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.1401fe290
nop
cmp dword [rbp + 0x20], 0
je 0x1401fe1b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401fe0c8
int3

Function at 0x140202f00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140202f28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140202f28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140208988
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 0x140208a0f
mov rsi, rbx
cmp word [rax], bp
je 0x1402089ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402089b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402089b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140205bfc
mov rdi, rax
test rax, rax
je 0x1402089fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f2b20
mov rbp, rdi
xor ecx, ecx
call fcn.140204d68
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