joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14003f921
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14003f921
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14003f921
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x14003f9fc
cmp byte [rdx], 0xed
jne 0x14003fa05
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x14003fa05
cmp rbx, 3
jb 0x14003f961
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x14003faef
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x1400501c0]
cmp rcx, 3
jbe 0x14003fb21
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x14003fa93
test rdi, rdi
je 0x14003fa90
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x14003fa28
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x14003fa90
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x14003fa20
cmp r10b, 0xe0
jb 0x14003fa0e
cmp r10b, 0xed
jne 0x14003fa5f
cmp r8, rax
je 0x14003fa90
lea r8, [r9 + 2]
cmp r8, rax
je 0x14003fa90
cmp byte [r9 + 1], 0x9f
ja 0x14003fa8c
add r9, 3
mov r8, r9
jmp 0x14003fa20
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x14003fa20
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x14003fa20
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x14003fac2
add rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140020ae0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14003fa9b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.140020ae0
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x14003f980
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.140020ae0
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x14003f9de
Function at 0x14003fcc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140054230]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14003fd28
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14003fd35
xor edx, edx
xor eax, eax
jmp 0x14003fd5e
cmp eax, 0x103
je 0x14003fd68
test eax, eax
js 0x14003fd48
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14003fd5e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140054290]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14001bf10
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001c050
mov ecx, 7
int 0x29
ud2

Function at 0x140040370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], r8
mov r15, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
test r14, r14
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0x138], rdx
je case.0x14003ff7a.5
movzx eax, byte [r14 + r15 - 1]
cmp al, 0x2f
setne cl
cmp al, 0x5c
setne r12b
and r12b, cl
lea rcx, [rbp + 0xc0]
mov rdx, r15
mov r8, r14
call fcn.14001ff00
movzx r13d, byte [rbp + 0xc0]
movzx ebp, byte [rbp + 0xc0]
Function at 0x14004c000
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14004cdc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14004cdc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14004c070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005c174]
mov rbx, rcx
test esi, esi
jle 0x14004c1a0
mov rax, qword [0x14005c178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004c0bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004c145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004c0a0
mov rcx, rbx
call fcn.14004cae0
mov rdi, rax
test rax, rax
je 0x14004c1c2
mov rax, qword [0x14005c178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004cc20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005c178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004c1a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004c13e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004c150
add dword [0x14005c174], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14005c178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004c13e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004c000
nop dword [rax]
xor esi, esi
jmp 0x14004c0c8
mov rax, qword [0x14005c178]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004c000
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004c000
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004c750
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005c1e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005c1c0]
test rbx, rbx
je 0x14004c7ac
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14004c7a3
test eax, eax
jne 0x14004c7a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004c788
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14004cae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140055660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14004cb00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14004cb08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14004cb00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004cb5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14004cb54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14004cb00
add rax, 0x28
cmp rax, r9
jne 0x14004cb40
xor eax, eax
ret

Function at 0x14004cb60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140055660]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14004cb7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14004cb88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14004cb7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14004cc20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140055660]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004cc3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004cc48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1403585c0]
mov dword [rax], 1
mov rax, qword [0x1403585d0]
mov dword [rax], 1
mov rax, qword [0x1403585e0]
mov dword [rax], 1
mov rax, qword [0x140358560]
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 0x1402c72e0
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.140331ef0
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 0x1402c73a5
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 0x140342df2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1402c7386
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1402c7378
test rsi, rsi
je 0x140342df2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1402c7338
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 0x1402c73d4
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 0x1402c73f0
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 0x1402c74ad
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 0x140342df8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1402c748e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1402c7480
test rsi, rsi
je 0x140342df8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1402c7440
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 0x1402f0f40
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 [0x14037bcc8]
mov rsi, rcx
test rbx, rbx
je 0x1402f0fc0
mov rax, qword [0x140358730]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1402f0fb0
mov rdx, qword [0x14037bf08]
test rdx, rdx
je 0x1402f10b8
mov rcx, rbx
mov rbx, qword [sym.imp.python311.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.python311.dll_PyNumber_InPlaceAdd]
jmp 0x1402f0f91
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1402c72e0
test rax, rax
je 0x1402f10d8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.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 0x140342e98
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1402f105e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402f1050
test rbx, rbx
je 0x140342e98
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 0x1402f1010
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f8]
call fcn.1402f0df0
mov rbx, rax
mov qword [0x14037bcc8], rbx
jmp 0x1402f0f62
lea rcx, [0x140354c48]
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov qword [0x14037bf08], rax
mov rdx, rax
jmp 0x1402f0f82
mov rbx, qword [0x14037bce0]
test rbx, rbx
jne 0x1402f10a6
cmp byte [0x14037bf02], 0
je 0x1402f1116
mov rdx, 0xffffffffffffffff
lea rcx, [0x14037bd00]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [0x14037bce0], rax
mov rbx, rax
test rax, rax
je 0x1402f1122
add qword [rax], 1
jmp 0x1402f10a6
mov ecx, 1
call fcn.1402c7f00
jmp 0x1402f10ed
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1402f2870
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.1402c72e0
test rax, rax
je 0x1402f29c8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.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 0x140342eb6
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1402f2926
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402f2918
test rbx, rbx
je 0x140342eb6
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 0x1402f28d8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x14037c640]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x140358730]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1402f2a18
mov rdx, rbx
call fcn.1402ada80
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1402e49d0
sub qword [rbx], 1
jne 0x1402f29b1
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14037bcd8]
lea rsi, [0x14037bcd8]
test bl, bl
je 0x1402f29e8
mov rax, qword [0x14037bce0]
lea rsi, [0x14037bce0]
test rax, rax
jne 0x1402f29b1
cmp byte [0x14037bf02], 0
je 0x1402f2a42
mov rdx, 0xffffffffffffffff
lea rcx, [0x14037bd00]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1402f2a4c
add qword [rax], 1
jmp 0x1402f29b1
mov rcx, qword [0x14037c5b8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1402f2a57
mov rdx, rdi
call fcn.1402ada80
mov qword [0x14037c640], rax
mov rcx, rax
jmp 0x1402f297e
movzx ecx, bl
call fcn.1402c7f00
jmp 0x1402f29f6
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14034ff9b]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14037c5b8], rax
mov rcx, rax
test rax, rax
je 0x140342eb6
jmp 0x1402f2a2b
Function at 0x140328280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14037bcc1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140328328
lea rdx, [0x140354372]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140328390
mov rbx, qword [0x14037bb60]
jmp 0x1403282c5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1403282c0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140328317
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140317660
mov r8, rax
cmp rdi, rbx
jne 0x140328300
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
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]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14037bb60], rax
mov ebx, dword [rax]
mov qword [0x14037bb60], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14037bb60], rdx
call fcn.1403273b0
cmp eax, ebx
jne 0x1403283f8
mov byte [0x14037bcc1], 1
jmp 0x1403282a0
cmp byte [0x14037bcc0], 0
jne 0x1403282b7
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14037c868], rax
call rbx
mov qword [0x14037c860], rax
call rbx
mov qword [0x14037c858], rax
call rbx
mov qword [0x14037c850], rax
call rbx
mov qword [0x14037c848], rax
call rbx
mov qword [0x14037c840], rax
call rbx
mov qword [0x14037c838], rax
call rbx
mov byte [0x14037bcc0], 1
mov qword [0x14037c830], rax
jmp 0x1403282b7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140330bd0
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 fcn.140342350
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140342350
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1403318a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14037cd28]
test eax, eax
je 0x14033193a
lea rax, [0x14037cd00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14037cd30]
mov qword [rbp - 8], rax
jmp 0x14033191e
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 0x140331912
cmp qword [rbp - 0x10], 0
je 0x140331912
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 0x1403318d8
lea rax, [0x14037cd00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14033193b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140331a40
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 0x140331a68
mov eax, 0
jmp 0x140331ab6
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 0x140331a91
mov eax, 0
jmp 0x140331ab6
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 0x140331ab1
mov eax, 0
jmp 0x140331ab6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140331abc
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 0x140331b3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140331b31
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 0x140331b31
mov rax, qword [rbp - 8]
jmp 0x140331b4f
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 0x140331b04
mov eax, 0
add rsp, 0x20
pop rbp
ret