joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4608e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x4609f9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x46090f
cmp qword [rax + 8], 0
jne 0x4609f3
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x460a1b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x460a38
test rax, rax
jne 0x460999
mov qword [rsp + 0x28], 0
lea rax, [0x004a2108]
mov qword [rsp + 0x20], rax
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.00404350
test rax, rax
je 0x460a5a
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x460a41
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x4609b3
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x4609b5
mov rcx, qword [rsi + 8]
jmp 0x4609b5
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x4609f3
test rdx, rdx
je 0x4609f3
lock dec qword [rdx]
jne 0x4609f3
lea rcx, [rsp + 0x28]
mov rsi, rax
call fcn.004181d0
mov rax, rsi
add rax, 0x10
jmp 0x460a3a
lea rcx, [0x004a2108]
call fcn.00454830
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x460904
jmp 0x46090f
lea rcx, [0x004a2108]
call fcn.00454830
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x46092e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x004a2108]
mov rdi, rax
call fcn.00454830
mov ecx, eax
mov rax, rdi
jmp 0x46098b
mov ecx, 8
mov edx, 0x18
call fcn.0047c6e0
ud2
Function at 0x494e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x494e8a
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 0x494e80
cmp r11, r10
ja 0x494f15
cmp r10, rdx
ja 0x494f27
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x494e82
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x494e60
jmp 0x494ef7
ja 0x494e8a
mov r11, r10
cmp rax, r8
jne 0x494e32
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x494efb
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 0x494ed0
mov r8, r10
sub ecx, r9d
jns 0x494eee
jmp 0x494efd
cmp r10, rdx
je 0x494f09
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x494efd
xor al, 1
cmp r8, rdx
jne 0x494eb0
jmp 0x494efd
xor eax, eax
jmp 0x494efd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x004be6b0]
call fcn.0048b790
lea r8, [0x004be6c8]
mov rcx, r11
mov rdx, r10
call fcn.00492120
lea r8, [0x004be6c8]
mov rcx, r10
call fcn.00492090
int3
Function at 0x4a0a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004d8764]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4a0bc8
mov rax, qword [0x004d8768]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4a0a8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4a0b15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4a0a70
mov rcx, rbx
call fcn.004a16e0
test rax, rax
mov r12, rax
je 0x4a0bfd
mov rax, qword [0x004d8768]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004a1810
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004d8768]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a0be0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4a0b0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4a0b70
add dword [0x004d8764], 1
cmp edi, 8
jae 0x4a0b43
test dil, 4
jne 0x4a0bb4
test edi, edi
je 0x4a0b38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4a0bcf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4a0b38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4a0b5c
jmp 0x4a0b38
add rsi, qword [0x004d8768]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4a0b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a1a10
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4a0b38
xor esi, esi
jmp 0x4a0a97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4a0b38
mov rax, qword [0x004d8768]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a1a10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a1a10
nop
nop dword [rax]

Function at 0x4a1350
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004d8a40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004d8a20]
test rbx, rbx
je 0x4a13a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4a139b
test rsi, rsi
je 0x4a139b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4a1380
lea rcx, [0x004d8a40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4a16e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c9520]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4a174d
mov rcx, r8
call fcn.004a15c0
test eax, eax
je 0x4a174d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4a174d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4a1744
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4a174f
add rax, 0x28
cmp rax, r9
jne 0x4a1730
xor eax, eax
add rsp, 0x28
ret

Function at 0x4a1a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.004a19e0
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.004a19e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530
Function at 0x140002500
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140002589
lea r8, [0x140001190]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.1400079b8
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp eax, 0xffffffff
je 0x140002589
lea r8d, [rbx + 2]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008180
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x1400025b4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
movzx eax, cx
xor ebx, ebx
test eax, eax
je 0x1400026bb
cmp eax, 1
je 0x14000264b
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400026c2
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002646
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
lea rdx, str.atedobfuscatedobfuscatedqjL
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x10]
jmp 0x1400026c2
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002646
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x140002631
call fcn.140002500
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a7640]
mov dword [rax], 1
mov rax, qword [0x1400a7650]
mov dword [rax], 1
mov rax, qword [0x1400a7660]
mov dword [rax], 1
mov rax, qword [0x1400a75e0]
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 0x140024260
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.140084ff0
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 0x140024325
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 0x140095efe
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140024306
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400242f8
test rsi, rsi
je 0x140095efe
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400242b8
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 0x140024354
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
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x140024370
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 0x14002442d
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 0x140095f04
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002440e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140024400
test rsi, rsi
je 0x140095f04
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400243c0
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 0x14003a990
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 [0x1400b7fc8]
mov rsi, rcx
test rbx, rbx
je 0x14003aa10
mov rax, qword [0x1400a7780]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14003aa00
mov rdx, qword [0x1400b8208]
test rdx, rdx
je 0x14003ab08
mov rcx, rbx
mov rbx, qword [sym.imp.python39.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.python39.dll_PyNumber_InPlaceAdd]
jmp 0x14003a9e1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140024260
test rax, rax
je 0x14003ab28
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python39.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 0x140095fa0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14003aaae
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003aaa0
test rbx, rbx
je 0x140095fa0
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 0x14003aa60
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.14003a690
mov rbx, rax
mov qword [0x1400b7fc8], rbx
jmp 0x14003a9b2
lea rcx, [0x1400a3dd0]
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov qword [0x1400b8208], rax
mov rdx, rax
jmp 0x14003a9d2
mov rbx, qword [0x1400b7fe0]
test rbx, rbx
jne 0x14003aaf6
cmp byte [0x1400b8202], 0
jne 0x14003ab47
mov ecx, 1
call fcn.1400061e0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400b8000]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [0x1400b7fe0], rax
mov rbx, rax
test rax, rax
je 0x14003ab70
add qword [rax], 1
jmp 0x14003aaf6
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14003c900
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.140024260
test rax, rax
je 0x14003ca60
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python39.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 0x140095fbe
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14003c9b6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003c9a8
test rbx, rbx
je 0x140095fbe
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 0x14003c968
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [0x1400b8720]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400a7780]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14003cab8
mov r8, rbx
mov rcx, rsi
call fcn.140027c20
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140037a30
sub qword [rbx], 1
jne 0x14003ca44
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 [0x1400b7fd8]
lea rsi, [0x1400b7fd8]
test bl, bl
je 0x14003ca80
mov rax, qword [0x1400b7fe0]
lea rsi, [0x1400b7fe0]
test rax, rax
jne 0x14003ca44
cmp byte [0x1400b8202], 0
jne 0x14003ca96
movzx ecx, bl
call fcn.1400061e0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400b8000]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003cae5
add qword [rax], 1
jmp 0x14003ca44
mov rdx, qword [0x1400b8698]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14003caf0
mov r8, rdi
mov rcx, rsi
call fcn.140027c20
mov qword [0x1400b8720], rax
mov rdx, rax
jmp 0x14003ca0e
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a0486]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x1400b8698], rax
mov rdx, rax
test rax, rax
je 0x140095fbe
jmp 0x14003cacb
Function at 0x14007b500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400b7fc1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007b588
lea rdx, [0x1400a35fa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007b5f0
mov rbx, qword [0x1400b7e68]
jmp 0x14007b545
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
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 0x14007b540
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006a7f0
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 [0x1400b7e68], rax
mov ebx, dword [rax]
mov qword [0x1400b7e68], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400b7e68], rdx
call fcn.14007a630
cmp eax, ebx
jne 0x14007b677
mov byte [0x1400b7fc1], 1
jmp 0x14007b51c
cmp byte [0x1400b7fc0], 0
jne 0x14007b533
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400b8928], rax
call rbx
mov qword [0x1400b8920], rax
call rbx
mov qword [0x1400b8918], rax
call rbx
mov qword [0x1400b8910], rax
call rbx
mov qword [0x1400b8908], rax
call rbx
mov qword [0x1400b8900], rax
call rbx
mov qword [0x1400b88f8], rax
call rbx
mov byte [0x1400b7fc0], 1
mov qword [0x1400b88f0], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400b7e60], rax
jmp 0x14007b533
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140083cd0
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.140095450
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.140095450
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