joyce8/EMBER2024-capa huggingface dataset:
Function at 0x33be64e1c
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 0x33be64e9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x33be64e91
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 0x33be64e91
mov rax, qword [rbp - 8]
jmp 0x33be64eaf
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 0x33be64e64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007f90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007fdc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007fd4
cmp dword [rcx + 0x3c], edx
jl 0x140007fd4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007fd4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007fdc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1406bd1ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp], 0x4e9e8483
mov r10d, 0x25203bb9
lea r9, [r10 + r9 - 0x25203bb1]
mov r11, rbp
movsx edi, r10w
not word [rsp + rdi - 0x3bb3]
pop rdi
jmp 0x1406f8ca1

Function at 0x1406dab6d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.1406e2409
mov ebp, 0x713e128e
mov r10d, 0x939b2090
lea rdi, [r10 + rbp*8 - 0x58f4546f]
mov rcx, qword [r11 + rbp - 0x713e128e]
movsx r9d, r10b
lea r11, [r11 + rbp - 0x713e1286]
lea rax, [r10 + rdi + 0x16014cbb]
inc eax
neg rax
xchg rcx, r11
shl dil, 0xe3
mov r9, rcx
cdqe
jne 0x1406f8ca1

Function at 0x1406fc28f
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], 0xffffffffab8906a2
sbb rbx, 4
jmp fcn.140704c37
or dword [rcx - 0x46], eax
int3
mov qword [rsp + 0x10], r8
push 0x6c046624
jnp 0x1406c8c08
pop r8
xor dword [rsp + r8 - 0x6c046614], ecx
and r8, r8
mov r8, qword [rsp + r8 - 0x6c046614]
push 0x76a039a8
jp 0x1406eafd8
add byte [rsp + rdi + 0xc329c81], ah
xchg bl, ch
mov byte [rbp - 0x71], bl
jb 0x1406fc2eb
xor cl, byte [rsi + rax*4]
jmp 0x1406fc251
insd dword [rdi], dx
mov byte [0xdc5cbb91], al
sub ecx, eax
jmp 0x1406fc2c4
jl 0x1406fc319
in eax, 0x53
or ecx, dword [rdi + 0x19953770]
xor dl, spl
movabs dword [0xc00c3e21357b3911], eax
sub al, 0x36
adc dword [rsi + 0x1c], 0x4decf631
cmp byte [rdi + 0x7a], ch
jge 0x1406fc34e
sbb cl, bl
call 0x118bf4971
pop rsp
int1
cmc
mov dword [rbp + 0x68], edx
invalid
jrcxz 0x1406fc38d
cmc
in al, 0x16
jmp 0x1406fc392
out 0x3e, al
jne 0x1406fc32a
invalid
pop rbp
push rcx
and edx, dword [rcx]
enter 0xffffffffffffbd35, 0xffffffffffffff87
clc
xor cl, dl
cmp eax, 0xab533ba9
cdq
cmp al, 0x24
cmp al, byte [rbx + rax*4 - 0x7b4b534c]
ret
xor eax, 0x32f887bd
retf 0xa93d
Function at 0x140005650
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x1400280f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140028190
jmp 0x14002817f
jae 0x14002824f
cmp r8, 0x201
jae 0x140028190
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x1400281e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400281bf
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14003c350
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140028210
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400282c9
mov r8d, r13d
cmp r12, r8
jne 0x140028170
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400282fd
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002817f
jmp 0x140028190
cmp r14, r8
jb 0x140028317
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140029420
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x1400282b2
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.14000f8c0
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14002829d
jmp 0x1400282b2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14003cf60
jmp 0x14002832c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14003d340
ud2
Function at 0x14002d940
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1400a2d98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14002d978
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002d9e1
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002da15
test eax, eax
js 0x14002d9f5
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1400291f0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140026840
mov ecx, 7
int 0x29
ud2
Function at 0x14003a830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003a8aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003a8a0
cmp r11, r10
ja 0x14003a935
cmp r10, rdx
ja 0x14003a947
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003a8a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003a880
jmp 0x14003a917
ja 0x14003a8aa
mov r11, r10
cmp rax, r8
jne 0x14003a852
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003a91b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003a8f0
mov r8, r10
sub ecx, r9d
jns 0x14003a90e
jmp 0x14003a91d
cmp r10, rdx
je 0x14003a929
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003a91d
xor al, 1
cmp r8, rdx
jne 0x14003a8d0
jmp 0x14003a91d
xor eax, eax
jmp 0x14003a91d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14003ce50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003d350
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003d340
int3

Function at 0x14003bd5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bda6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bda6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bda6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bda6
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bda6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003bda8
xor al, al
add rsp, 0x28
ret
Function at 0x14003cc20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400417c0
sub rsp, rax
mov rax, qword [0x14007f400]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14003cce2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140050294
cmp rax, 1
jne 0x14003cd3e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14003ccbf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14003ccb3
cmp rcx, 1
jb 0x14003cd3e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14003cc80
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14003cd13
lea rcx, [rsp + 0x80]
call fcn.140052ec0
jmp 0x14003cd15
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400414f0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140044c80
int3
Function at 0x14003dc70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14008192e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14003dcf5
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400818c8], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1400818c8], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1400818c8], rdx
call fcn.14003b9e0
cmp eax, ebx
jne 0x14003de5d
mov byte [0x14008192e], 1
lea rdx, [0x140061520]
mov rcx, rsi
call fcn.140051d00
test eax, eax
je 0x14003dd80
cmp byte [0x14008192d], 1
je 0x14003dd80
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140082688], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140082690], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140082698], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400826a0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400826a8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400826b0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400826b8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400826c0], rax
mov byte [0x14008192d], 1
mov r8, qword [0x1400818c8]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14003dda7
inc rax
test cl, cl
jne 0x14003dd90
mov ecx, r9d
jmp 0x14003ddac
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14003ddb3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14003de18
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14003ddf5
inc rax
test cl, cl
jne 0x14003dde0
mov ecx, r9d
jmp 0x14003ddfa
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14003de01
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14003ddd0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14003de48
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14003a070
add rdi, 8
sub rbx, 1
jne 0x14003de30
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14004cad4
call fcn.140044c80
int3
Function at 0x140041080
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14007f400]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140041131
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140050294
cmp rax, 1
jne 0x140041167
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14004110d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140041100
cmp rcx, 1
jb 0x140041167
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400410d0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400414f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140044c80
int3
Function at 0x140041230
Capabilities:
Set environment variable

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0xb0
mov rax, qword [0x14007f400]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140081da0]
mov rbx, r8
mov rdi, rdx
mov r15, rcx
test rax, rax
jne 0x140041280
lea rcx, [0x140061164]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140081da0], rax
test rax, rax
je 0x14004145d
mov qword [rsp + 0xa8], rbp
lea rdx, str.environ
mov qword [rsp + 0xa0], rsi
mov rcx, rax
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call qword [sym.imp.python312.dll_PyObject_GetAttrString]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov r14, rax
test rbx, rbx
je 0x140041327
mov rdx, rbx
mov rcx, rdi
call fcn.140041080
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdx, r14
mov rcx, rbp
mov r8, rax
mov rbx, rax
call qword [sym.imp.python312.dll_PyObject_SetItem]
test eax, eax
je 0x14004130c
mov ecx, 1
call qword [sym.imp.python312.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python312.dll_Py_Exit]
int3
cmp dword [rbx], 0
jl 0x1400413f0
sub qword [rbx], 1
jne 0x1400413f0
mov rcx, rbx
jmp 0x1400413ea
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x1400413b5
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x24]
call fcn.140050294
cmp rax, 1
jne 0x140041457
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14004138d
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x140041380
cmp rcx, 1
jb 0x140041457
movzx ecx, word [rsp + 0x24]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x140041341
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.python312.dll_PyObject_DelItem]
test eax, eax
je 0x1400413f0
mov rcx, qword [r15 + 0x60]
mov qword [r15 + 0x60], r12
test rcx, rcx
je 0x1400413f0
cmp dword [rcx], r12d
jl 0x1400413f0
sub qword [rcx], 1
jne 0x1400413f0
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [r14], 0
jl 0x140041405
sub qword [r14], 1
jne 0x140041405
mov rcx, r14
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [rbp], 0
jl 0x14004141b
sub qword [rbp], 1
jne 0x14004141b
mov rcx, rbp
call qword [sym.imp.python312.dll__Py_Dealloc]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400414f0
add rsp, 0xb0
pop r15
pop rdi
pop rbx
ret
call fcn.140044c80
int3
call fcn.140044c80
int3
Function at 0x140041f24
Capabilities:
Parse pe header

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

Function at 0x140045edc
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 0x140045f4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140045f4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140045f4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140045f4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140045f4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140045f4b
cmp dword [rcx + 0xf8], 0
je 0x140045f4b
mov ecx, ebx
call fcn.140045ffc
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.140045dd8
nop
cmp dword [rbp + 0x20], 0
je 0x140045f99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140045fa4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140045edc

Function at 0x1400460e0
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 0x140045f4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140045f4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140045f4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140045f4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140045f4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140045f4b
cmp dword [rcx + 0xf8], 0
je 0x140045f4b
mov ecx, ebx
call fcn.140045ffc
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.140045dd8
nop
cmp dword [rbp + 0x20], 0
je 0x140045f99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140045fa4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140045edc
Function at 0x140057ce0
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 0x140057d67
mov rsi, rbx
cmp word [rax], bp
je 0x140057d26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140057d10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140057d0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140053398
mov rdi, rax
test rax, rax
je 0x140057d54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005e060
mov rbp, rdi
xor ecx, ecx
call fcn.140053da8
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 0x14005a46c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005a482
mov al, 1
jmp 0x14005a4e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005a493
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005a4e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140058484
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005a4e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005a4e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005a4e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005a4e2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14005de40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005de68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005de68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret