joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e994
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r14d, r14d
mov rsi, r8
lea rcx, [0x140003e30]
lea r15d, [r14 + 1]
lea r8d, [r14 + 2]
xor edx, edx
mov dword [rbp + 0x30], 4
mov edi, r14d
mov ebx, r15d
call qword [sym.imp.iertutil.dll_Ordinal_172]
test eax, eax
je 0x14000ea1f
lea rax, [rbp + 0x30]
lea r9d, [r14 + 0x18]
lea r8, [0x140003e98]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
lea rdx, [0x140003e30]
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove edi, dword [rbp + 0x50]
xor edx, edx
lea rcx, [0x140003a60]
mov dword [rbp + 0x48], r14d
lea r8d, [rdx + 2]
call qword [sym.imp.iertutil.dll_Ordinal_172]
test eax, eax
je 0x14000ea9b
lea rax, [rbp - 0x10]
lea rdx, [0x140003a60]
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000ea9b
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov dword [rbp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x10]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14000eb1e
test ebx, ebx
je 0x14000eb92
lea r8d, [rdi + 2]
lea rcx, [0x140003a60]
mov edx, r15d
call qword [sym.imp.iertutil.dll_Ordinal_172]
test eax, eax
je 0x14000eb1e
lea rax, [rbp - 0x10]
lea rdx, [0x140003a60]
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000eb22
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov dword [rbp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x10]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000eb92
mov dword [rbp + 0x38], 4
lea rax, [rbp + 0x38]
test edi, edi
je 0x14000eb63
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x48]
lea rdx, [0x1400039e0]
mov qword [rsp + 0x28], rax
mov r9d, 0x18
mov r8, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
jmp 0x14000eb79
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000ebbc
mov ecx, eax
mov eax, dword [rbp + 0x48]
test ecx, ecx
mov rcx, qword [rbp + 0x58]
cmovne eax, r14d
test rcx, rcx
je 0x14000eba1
mov dword [rcx], r14d
jmp 0x14000eba1
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x14000eb9e
mov dword [rax], r15d
mov eax, dword [rbp + 0x48]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ebbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x78]
mov rdi, rdx
test rbx, rbx
je 0x14000ebe5
mov eax, dword [rbx]
mov dword [rsp + 0x60], eax
jmp 0x14000ebea
and dword [rsp + 0x60], 0
mov rsi, qword [rsp + 0x70]
mov r8, rdx
mov r9d, 0x18
lea rdx, [0x1400039e0]
mov rcx, 0xffffffff80000001
test rbx, rbx
je 0x14000ec17
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x14000ec1d
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
jbe 0x14000ec45
test rbx, rbx
je 0x14000ec74
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
jmp 0x14000ec74
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400039e0]
mov r9d, 0x18
mov r8, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ecx
add rsp, 0x40
pop rdi
ret
Function at 0x14000f7f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x140011790], rbx
je 0x14000f859
cmp rax, rbx
jne 0x14000f84c
mov edi, 1
mov r14d, edi
jmp 0x14000f85e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000f830
mov edi, 1
mov eax, dword [0x140011798]
cmp eax, edi
jne 0x14000f876
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000f8e7
mov eax, dword [0x140011798]
test eax, eax
jne 0x14000f8dc
mov dword [0x140011798], edi
lea r12, [0x140001050]
lea rbx, [0x140001038]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x14000f8ce
test eax, eax
jne 0x14000f8d2
mov rsi, qword [rbx]
test rsi, rsi
je 0x14000f8c3
mov rcx, rsi
mov rax, qword [0x1400136a0]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000f8a0
test eax, eax
je 0x14000f8e2
mov eax, 0xff
jmp 0x14000fa41
mov dword [0x140011034], edi
mov esi, 0x1f
mov eax, dword [0x140011798]
cmp eax, edi
jne 0x14000f90e
lea rdx, [0x140001030]
lea rcx, [section..text]
call sub.msvcrt.dll__initterm
mov dword [0x140011798], 2
test r14d, r14d
jne 0x14000f91d
mov rax, r15
xchg qword [0x140011790], rax
cmp qword [0x1400117b0], r15
je 0x14000f954
lea rcx, [0x1400117b0]
call fcn.14000fec0
test eax, eax
je 0x14000f954
mov rbx, qword [0x1400117b0]
mov rcx, rbx
mov rax, qword [0x1400136a0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000f96d
mov eax, 0xff
jmp 0x14000fa41
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000f9f2
cmp word [rcx], r15w
je 0x14000f986
test edx, edx
jne 0x14000f9f2
movzx eax, word [rcx]
sub ax, di
cmp ax, si
ja 0x14000f99c
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000f986
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000bfa0
mov dword [0x140011030], eax
cmp dword [0x140011050], r15d
jne 0x14000f9db
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140011034], r15d
jne 0x14000f9f0
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140011030]
jmp 0x14000fa41
cmp word [rcx], 0x22
jne 0x14000fa06
mov eax, r15d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000f976
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.140108000
add rsp, 0x28
jmp 0x14000f7f0
Function at 0x14000fac4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000fdbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000fe08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000fe00
cmp dword [rcx + 0x3c], edx
jl 0x14000fe00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000fe00
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 0x14000fe08
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000ff54
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140011008]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x14001000f
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140011008], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140011010], rax
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401c7a60]
mov dword [rax], 1
mov rax, qword [0x1401c7a70]
mov dword [rax], 1
mov rax, qword [0x1401c7a80]
mov dword [rax], 1
mov rax, qword [0x1401c79e0]
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 0x140128200
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.1401a20e0
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 0x1401282c5
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 0x1401b2ff2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401282a6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140128298
test rsi, rsi
je 0x1401b2ff2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140128258
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 0x1401282f4
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 0x140128310
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 0x1401283cd
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 0x1401b2ff8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401283ae
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401283a0
test rsi, rsi
je 0x1401b2ff8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140128360
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 0x140147230
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 [0x1401dbc50]
mov rsi, rcx
test rbx, rbx
je 0x1401472b0
mov rax, qword [0x1401c7bb0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1401472a0
mov rdx, qword [0x1401dbe88]
test rdx, rdx
je 0x1401473a0
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 0x140147281
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140128200
test rax, rax
je 0x1401473c0
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 0x1401b3092
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14014734e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140147340
test rbx, rbx
je 0x1401b3092
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 0x140147300
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.1401470c0
mov rbx, rax
mov qword [0x1401dbc50], rbx
jmp 0x140147252
lea rcx, [0x1401c4092]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1401dbe88], rax
mov rdx, rax
jmp 0x140147272
mov rbx, qword [0x1401dbc68]
test rbx, rbx
jne 0x140147391
cmp byte [0x1401dbe82], 0
je 0x140147403
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401dbc80]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1401dbc68], rax
mov rbx, rax
test rax, rax
je 0x14014740f
mov eax, dword [rax]
add eax, 1
je 0x140147391
mov dword [rbx], eax
jmp 0x140147391
mov ecx, 1
call fcn.140128e80
jmp 0x1401473d5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x140147c90
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.140128200
test rax, rax
je 0x140147de0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401b30aa
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140147d46
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140147d38
test rbx, rbx
je 0x1401b30aa
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 0x140147cf8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1401dc5c0]
mov rsi, rax
mov rax, qword [0x1401c7bb0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140147e4d
mov rdx, rbx
call fcn.1401188d0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14013b800
mov rdx, qword [rbx]
test edx, edx
js 0x140147dc2
sub rdx, 1
mov qword [rbx], rdx
je 0x140147e35
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1401dbc60]
lea rsi, [0x1401dbc60]
test bl, bl
je 0x140147e00
mov rax, qword [0x1401dbc68]
lea rsi, [0x1401dbc68]
test rax, rax
jne 0x140147dc2
cmp byte [0x1401dbe82], 0
je 0x140147e77
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401dbc80]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140147e81
mov edx, dword [rax]
add edx, 1
je 0x140147dc2
mov dword [rax], edx
jmp 0x140147dc2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140147dc2
mov rcx, qword [0x1401dc538]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140147e8c
mov rdx, rdi
call fcn.1401188d0
mov qword [0x1401dc5c0], rax
mov rcx, rax
jmp 0x140147d99
movzx ecx, bl
call fcn.140128e80
jmp 0x140147e0e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401bec73]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1401dc538], rax
mov rcx, rax
test rax, rax
je 0x1401b30aa
jmp 0x140147e60
Function at 0x14019e6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401dbc41], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14019e768
lea rdx, [0x1401c396a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14019e7d0
mov rbx, qword [0x1401dbae0]
jmp 0x14019e705
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 0x14019e700
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14019e757
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14018e6e0
mov r8, rax
cmp rdi, rbx
jne 0x14019e740
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 [0x1401dbae0], rax
mov ebx, dword [rax]
mov qword [0x1401dbae0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401dbae0], rdx
call fcn.14019d7f0
cmp eax, ebx
jne 0x14019e838
mov byte [0x1401dbc41], 1
jmp 0x14019e6e0
cmp byte [0x1401dbc40], 0
jne 0x14019e6f7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1401dc7e8], rax
call rbx
mov qword [0x1401dc7e0], rax
call rbx
mov qword [0x1401dc7d8], rax
call rbx
mov qword [0x1401dc7d0], rax
call rbx
mov qword [0x1401dc7c8], rax
call rbx
mov qword [0x1401dc7c0], rax
call rbx
mov qword [0x1401dc7b8], rax
call rbx
mov byte [0x1401dbc40], 1
mov qword [0x1401dc7b0], rax
jmp 0x14019e6f7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401a0dc0
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.1401b2550
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.1401b2550
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 0x1401a1a92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401dcca8]
test eax, eax
je 0x1401a1b2a
lea rax, [0x1401dcc80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401dccb0]
mov qword [rbp - 8], rax
jmp 0x1401a1b0e
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 0x1401a1b02
cmp qword [rbp - 0x10], 0
je 0x1401a1b02
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 0x1401a1ac8
lea rax, [0x1401dcc80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401a1b2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401a1c30
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 0x1401a1c58
mov eax, 0
jmp 0x1401a1ca6
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 0x1401a1c81
mov eax, 0
jmp 0x1401a1ca6
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 0x1401a1ca1
mov eax, 0
jmp 0x1401a1ca6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401a1cac
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 0x1401a1d2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401a1d21
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 0x1401a1d21
mov rax, qword [rbp - 8]
jmp 0x1401a1d3f
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 0x1401a1cf4
mov eax, 0
add rsp, 0x20
pop rbp
ret