joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d3bf8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800d3c32
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800d3c37
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800d3c80
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180113990]
cmp byte [rcx + rax], 0
je 0x1800d3c80
dec r8
sub rdx, 1
jne 0x1800d3c66
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800edb50
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 0x1800edbbf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800edbbf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800edbbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800edbbf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800edbbf
cmp dword [rcx + 0x84], 0xe
jbe 0x1800edbbf
cmp dword [rcx + 0xf8], 0
je 0x1800edbbf
mov ecx, ebx
call fcn.1800edc70
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.1800eda4c
nop
cmp dword [rbp + 0x20], 0
je 0x1800edc0d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800edc18
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800edb50
Function at 0x1800f7988
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800f79b8
xor eax, eax
jmp 0x1800f7a7b
mov rbp, rbx
cmp word [rax], si
je 0x1800f79dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f79c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f79c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800f4998
movsxd r14, eax
test eax, eax
jne 0x1800f7a1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f79b1
mov rcx, r14
call fcn.1800eee04
mov rdi, rax
test rax, rax
jne 0x1800f7a34
xor ecx, ecx
call fcn.1800eedc8
jmp 0x1800f7a10
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800f4998
test eax, eax
jne 0x1800f7a65
mov rcx, rdi
call fcn.1800eedc8
jmp 0x1800f7a6f
xor ecx, ecx
call fcn.1800eedc8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800f7a98
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 0x1800f7b1f
mov rsi, rbx
cmp word [rax], bp
je 0x1800f7ade
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800f7ac8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800f7ac4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800eee04
mov rdi, rax
test rax, rax
je 0x1800f7b0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180100680
mov rbp, rdi
xor ecx, ecx
call fcn.1800eedc8
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 0x1800faa88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800efaf4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800fab29
cmp ebx, dword [rsp + 0x30]
je 0x1800fab22
test esi, esi
je 0x1800fab22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800faafd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800fab0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800faae7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800fab0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800fab2b
mov eax, 1
jmp 0x1800fab2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ff880
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800ff8a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800ff8a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1801013bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov ebx, edx
mov r9d, dword [rax + rcx + 0x88]
mov r11, rcx
add r9, rcx
mov r10d, dword [r9 + 0x20]
mov edi, dword [r9 + 0x1c]
mov esi, dword [r9 + 0x24]
mov r9d, dword [r9 + 0x18]
add r10, rcx
add rdi, rcx
add rsi, rcx
test r9d, r9d
je 0x18010141c
mov ecx, dword [r10]
add rcx, r11
call fcn.18010132d
cmp eax, ebx
je 0x18010142e
inc r8d
add r10, 4
cmp r8d, r9d
jb 0x180101401
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rsi + r8*2]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, dword [rdi + rcx*4]
add rax, r11
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 0xfffffaaa
movsx ecx, byte [rcx]
test ecx, ecx
je 0x1400010ac
xor eax, ecx
lea r8, [r8 + 1]
mov edx, eax
mov ecx, eax
shl ecx, 0x1f
sar ecx, 0x1f
and ecx, 0x77073096
shl edx, 0x18
sar edx, 0x1f
and edx, 0xedb88320
xor edx, ecx
mov ecx, eax
shl ecx, 0x1d
sar ecx, 0x1f
and ecx, 0x76dc419
xor edx, ecx
mov ecx, eax
shl ecx, 0x19
sar ecx, 0x1f
and ecx, 0x76dc4190
xor edx, ecx
mov ecx, eax
shl ecx, 0x1a
sar ecx, 0x1f
and ecx, 0x3b6e20c8
xor edx, ecx
mov ecx, eax
shl ecx, 0x1e
sar ecx, 0x1f
and ecx, 0xee0e612c
xor edx, ecx
mov ecx, eax
shl ecx, 0x1b
sar ecx, 0x1f
and ecx, 0x1db71064
xor edx, ecx
mov ecx, eax
shl ecx, 0x1c
sar ecx, 0x1f
and ecx, 0xedb8832
xor edx, ecx
mov ecx, eax
shr ecx, 8
mov eax, edx
xor eax, ecx
movsx ecx, byte [r8]
test ecx, ecx
jne 0x140001013
not eax
ret
Function at 0x140151cd2
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
mov rdx, qword [rbp + 0x18]
mov esi, dword [rbp + 0x10]
xor rax, rax
cmp eax, dword [rbp + 0x20]
jge 0x140151d16
mov cl, byte [rbp + 0x28]
xor byte [rax + rdx], cl
mov cl, byte [rax + rdx]
and cl, 0xf
xor ebx, ebx
mov bl, byte [rax + rdx]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [rax + rdx], cl
mov ecx, esi
add cl, al
xor byte [rax + rdx], cl
inc eax
cmp eax, dword [rbp + 0x20]
jl 0x140151ce7
pop rsi
pop rbx
pop rbp
ret 0x20

Function at 0x140151d1c
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
mov rdx, qword [rbp + 0x18]
mov esi, dword [rbp + 0x10]
xor rax, rax
cmp eax, dword [rbp + 0x20]
jge 0x140151d5d
mov ecx, esi
add cl, al
xor byte [rax + rdx], cl
mov cl, byte [rax + rdx]
and cl, 0xf
xor ebx, ebx
mov bl, byte [rax + rdx]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [rbp + 0x28]
mov byte [rax + rdx], cl
inc eax
cmp eax, dword [rbp + 0x20]
jl 0x140151d31
pop rsi
pop rbx
pop rbp
ret 0x20
Function at 0x140149cb3
Capabilities:
Encode data using xor

Disassembly:
test rax, rax
push 0xfffffffff7acf8ab
lea rsp, [rsp + 0x18]
je 0x14017016e
push rdi
jmp 0x14014c757
jmp 0x140170119
mov ebx, 0x9d15c80c
lea rbx, [0x140152db0]
mov edi, 0x71056d02
movzx edi, byte [rdx + rdi - 0x71056d02]
push 0xffffffffd6085ab4
xor edi, ecx
and edi, 0xff
dec word [rsp + 1]
mov edi, dword [rbx + rdi*4]
shr ecx, 8
xor ecx, edi
inc rdx
xor ecx, 0x52ed884
dec rax
not word [rsp + 2]
lea rsp, [rsp + 8]
jne 0x140170125
mov edi, 0xef3b9520
pop rdi
call fcn.14015f900

Function at 0x14016bb25
Capabilities:
Encode data using xor

Disassembly:
lea rsi, [0x140136370]
push 0xffffffffa2200018
mov ebx, dword [rsp + 4]
add rbx, rbx
movzx ebx, byte [rdi]
xor ebx, ebp
and ebx, 0xff
mov ebx, dword [rsi + rbx*4]
shr ebp, 8
xor ebp, ebx
shr dword [rsp + 3], 0xe1
inc rdi
xor ebp, 0xc1bb6e20
dec rcx
push 0x16071b97
lea rsp, [rsp + 0x10]
jne 0x140154367
pop rbx
push 0xfffffffffdbceb13
mov rsi, qword [rsp + 8]
lea rsp, [rsp + 0x10]
mov qword [rsp], rsi
mov esi, 0x6a3e8bb7
push rsi
add si, si
mov qword [rsp + rsi - 0x6a3e176e], rbx
and rsi, 0xffffffffe0abf617
setne sil
ja 0x140154360
mov r9, qword [rbx]
mov rdi, qword [rbx + 8]
add rbx, 8
push 0x5983d6b4
jmp 0x140156802
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.Df6_]
mov dword [rax], 1
mov rax, qword [str.Hf6_]
mov dword [rax], 1
mov rax, qword [str.Lf6_]
mov dword [rax], 1
mov rax, qword [0x14033ae20]
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 0x1402af200
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.140312310
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 0x1402af2c5
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 0x140323278
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1402af2a6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1402af298
test rsi, rsi
je 0x140323278
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1402af258
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 0x1402af2f4
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 0x1402af310
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 0x1402af3cd
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 0x14032327e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1402af3ae
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1402af3a0
test rsi, rsi
je 0x14032327e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1402af360
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 0x1402c60d0
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 [0x1403656b0]
mov rsi, rcx
test rbx, rbx
je 0x1402c6150
mov rax, qword [0x14033afd0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1402c6140
mov rdx, qword [0x1403658e8]
test rdx, rdx
je 0x1402c6248
mov rcx, rbx
mov rbx, qword [sym.imp.python310.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.python310.dll_PyNumber_InPlaceAdd]
jmp 0x1402c6121
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1402af200
test rax, rax
je 0x1402c6268
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x140323330
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1402c61ee
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402c61e0
test rbx, rbx
je 0x140323330
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 0x1402c61a0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.1402c6010
mov rbx, rax
mov qword [0x1403656b0], rbx
jmp 0x1402c60f2
lea rcx, [0x140337610]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1403658e8], rax
mov rdx, rax
jmp 0x1402c6112
mov rbx, qword [0x1403656c8]
test rbx, rbx
jne 0x1402c6236
cmp byte [0x1403658e2], 0
je 0x1402c62a6
mov rdx, 0xffffffffffffffff
lea rcx, [0x1403656e0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1403656c8], rax
mov rbx, rax
test rax, rax
je 0x1402c62b2
add qword [rax], 1
jmp 0x1402c6236
mov ecx, 1
call fcn.1402afe20
jmp 0x1402c627d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1402c7bf0
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.1402af200
test rax, rax
je 0x1402c7d50
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x14032334e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1402c7ca6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402c7c98
test rbx, rbx
je 0x14032334e
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 0x1402c7c58
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x140366020]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x14033afd0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1402c7da0
mov r8, rbx
mov rcx, rsi
call fcn.1402b2280
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1402c3900
sub qword [rbx], 1
jne 0x1402c7d34
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 [0x1403656c0]
lea rsi, [0x1403656c0]
test bl, bl
je 0x1402c7d70
mov rax, qword [0x1403656c8]
lea rsi, [0x1403656c8]
test rax, rax
jne 0x1402c7d34
cmp byte [0x1403658e2], 0
je 0x1402c7dcd
mov rdx, 0xffffffffffffffff
lea rcx, [0x1403656e0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1402c7dd7
add qword [rax], 1
jmp 0x1402c7d34
mov rdx, qword [0x140365f98]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1402c7de2
mov r8, rdi
mov rcx, rsi
call fcn.1402b2280
mov qword [0x140366020], rax
mov rdx, rax
jmp 0x1402c7cfe
movzx ecx, bl
call fcn.1402afe20
jmp 0x1402c7d7e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14033301e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140365f98], rax
mov rdx, rax
test rax, rax
je 0x14032334e
jmp 0x1402c7db3
Function at 0x140308670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1403656a9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140308718
lea rdx, [0x140336d9a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140308780
mov rbx, qword [0x140365548]
jmp 0x1403086b5
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 0x1403086b0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140308707
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1402f7aa0
mov r8, rax
cmp rdi, rbx
jne 0x1403086f0
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 [0x140365548], rax
mov ebx, dword [rax]
mov qword [0x140365548], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140365548], rdx
call fcn.1403077a0
cmp eax, ebx
jne 0x140308807
mov byte [0x1403656a9], 1
jmp 0x140308690
cmp byte [0x1403656a8], 0
jne 0x1403086a7
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x140366228], rax
call rbx
mov qword [0x140366220], rax
call rbx
mov qword [0x140366218], rax
call rbx
mov qword [0x140366210], rax
call rbx
mov qword [0x140366208], rax
call rbx
mov qword [0x140366200], rax
call rbx
mov qword [0x1403661f8], rax
call rbx
mov byte [0x1403656a8], 1
mov qword [0x1403661f0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140365540], rax
jmp 0x1403086a7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140310ff0
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.140322770
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.140322770
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 0x140311cc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1403666e8]
test eax, eax
je 0x140311d5a
lea rax, [0x1403666c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1403666f0]
mov qword [rbp - 8], rax
jmp 0x140311d3e
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 0x140311d32
cmp qword [rbp - 0x10], 0
je 0x140311d32
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 0x140311cf8
lea rax, [0x1403666c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140311d5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140311e60
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 0x140311e88
mov eax, 0
jmp 0x140311ed6
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 0x140311eb1
mov eax, 0
jmp 0x140311ed6
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 0x140311ed1
mov eax, 0
jmp 0x140311ed6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140311edc
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 0x140311f5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140311f51
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 0x140311f51
mov rax, qword [rbp - 8]
jmp 0x140311f6f
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 0x140311f24
mov eax, 0
add rsp, 0x20
pop rbp
ret