joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb8c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007168
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000bc16
cmp byte [rbp - 0x21], r15b
je 0x14000bc11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000bc4c
call fcn.1400098c4
test eax, eax
jne 0x14000bc38
cmp byte [rbp - 0x21], r15b
je 0x14000bc30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000bc4c
cmp byte [rbp - 0x21], r15b
je 0x14000bc49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400066fc
test eax, eax
jne 0x14000bcec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007168
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000bc8b
cmp byte [rbp - 0x21], r15b
je 0x14000bcc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bcc0
call fcn.1400098c4
test eax, eax
jne 0x14000bcac
cmp byte [rbp - 0x21], r15b
je 0x14000bca5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bcc0
cmp byte [rbp - 0x21], r15b
je 0x14000bcbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400066fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bcec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bcef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bcfd
mov rcx, rdi
call fcn.140006690
cmp byte [rbp + 0x3f], r15b
je 0x14000bd0c
mov rcx, qword [rbp + 0x27]
call fcn.140006690
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000db10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000db38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000db38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001867
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x1400019db
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409eb5e1]
jmp 0x1400018cd
mov byte [0x1409eb5e1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409eb5c0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x1400019db
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x88
mov byte [rsp + 0x21], 0x7d
mov byte [rsp + 0x22], 0x8d
mov byte [rsp + 0x23], 0x75
mov byte [rsp + 0x24], 0x85
mov byte [rsp + 0x25], 0x8c
mov byte [rsp + 0x26], 0x8c
mov byte [rsp + 0x27], 0x83
mov byte [rsp + 0x28], 0x7f
mov byte [rsp + 0x29], 0x84
mov byte [rsp + 0x2a], 0x8c
mov byte [rsp + 0x2b], 0x82
mov byte [rsp + 0x2c], 0x77
mov byte [rsp + 0x2d], 0x8c
mov byte [rsp + 0x2e], 0x77
mov byte [rsp + 0x2f], 0x81
mov byte [rsp + 0x30], 0x82
mov byte [rsp + 0x31], 0x7e
mov byte [rsp + 0x32], 0x82
mov byte [rsp + 0x33], 0x74
mov byte [rsp + 0x34], 0x82
mov byte [rsp + 0x35], 0x8a
mov byte [rsp + 0x36], pe_nt_image_headers64
mov byte [rsp + 0x37], 0x75
mov byte [rsp + 0x38], 0x81
mov byte [rsp + 0x39], 0x8a
mov byte [rsp + 0x3a], 0x7c
mov byte [rsp + 0x3b], 0x8b
mov byte [rsp + 0x3c], 0x7d
mov byte [rsp + 0x3d], 0x7b
mov byte [rsp + 0x3e], 0x8c
mov byte [rsp + 0x3f], 0x76
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409eb5a0], 0
jne 0x1400019b6
mov byte [0x1409eb5e1], 1
mov eax, 0
lea rcx, [0x1409eb5c0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001995
mov byte [0x1409eb5a0], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409eb5e1], 0
je 0x14000189f
lea rax, [0x1409eb5c0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x1400019ca
jmp 0x140001898
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140005950
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005980
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000597f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005985
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000597f
mov eax, 0
jmp 0x14000597f

Function at 0x140006000
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005fb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000f610
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.140018150
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.140018150
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 0x14000f680
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409eb994]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f810
mov rax, qword [0x1409eb998]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000f6cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000f755
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000f6b0
mov rcx, rdi
call fcn.1400101e0
test rax, rax
mov r12, rax
je 0x14000f862
mov rax, qword [0x1409eb998]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140010320
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409eb998]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f845
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f74e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f7c0
add dword [0x1409eb994], 1
cmp ebx, 8
jae 0x14000f781
test bl, 4
jne 0x14000f820
test ebx, ebx
je 0x14000f776
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f834
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000f776
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000f79a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409eb998]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f74e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f610
xor esi, esi
jmp 0x14000f6d7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f776
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f776
mov rax, qword [0x1409eb998]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000f610
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000f610
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000fe30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409eba00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409eb9e0]
test rbx, rbx
je 0x14000fe84
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 0x14000fe7b
test rsi, rsi
je 0x14000fe7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fe60
lea rcx, [0x1409eba00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400101e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e5890]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001024f
mov rcx, r9
call fcn.1400100b0
test eax, eax
je 0x14001024f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001024d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140010244
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001024f
add rdx, 0x28
cmp rdx, r9
jne 0x140010230
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e1d00]
jmp 0x140011010

Function at 0x14001a610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e1d00]
jmp 0x140011010
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1406bbf30]
mov dword [rax], 1
mov rax, qword [0x1406bbf40]
mov dword [rax], 1
mov rax, qword [0x1406bbf50]
mov dword [rax], 1
mov rax, qword [0x1406bbeb0]
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 0x14062d410
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.14068ea20
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 0x14062d4d5
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 0x14069f8a2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14062d4b6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14062d4a8
test rsi, rsi
je 0x14069f8a2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14062d468
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 0x14062d504
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 0x14062d520
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 0x14062d5dd
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 0x14069f8a8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14062d5be
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14062d5b0
test rsi, rsi
je 0x14069f8a8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14062d570
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 0x140644130
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 [0x140700ad8]
mov rsi, rcx
test rbx, rbx
je 0x1406441b0
mov rax, qword [0x1406bc090]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1406441a0
mov rdx, qword [0x140700d08]
test rdx, rdx
je 0x1406442a8
mov rcx, rbx
mov rbx, qword [sym.imp.python38.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.python38.dll_PyNumber_InPlaceAdd]
jmp 0x140644181
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14062d410
test rax, rax
je 0x1406442c8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.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 0x14069f950
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14064424e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140644240
test rbx, rbx
je 0x14069f950
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 0x140644200
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x510]
call fcn.140644070
mov rbx, rax
mov qword [0x140700ad8], rbx
jmp 0x140644152
lea rcx, [0x1406b8660]
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov qword [0x140700d08], rax
mov rdx, rax
jmp 0x140644172
mov rbx, qword [0x140700af0]
test rbx, rbx
jne 0x140644296
cmp byte [0x140700d02], 0
je 0x140644306
mov rdx, 0xffffffffffffffff
lea rcx, [0x140700b00]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [0x140700af0], rax
mov rbx, rax
test rax, rax
je 0x140644312
add qword [rax], 1
jmp 0x140644296
mov ecx, 1
call fcn.14062e080
jmp 0x1406442dd
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x140646220
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.14062d410
test rax, rax
je 0x140646380
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.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 0x14069f96e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1406462d6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1406462c8
test rbx, rbx
je 0x14069f96e
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 0x140646288
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [0x140701440]
mov rsi, qword [rax + 0x510]
mov rax, qword [0x1406bc090]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1406463d0
mov r8, rbx
mov rcx, rsi
call fcn.140631210
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140641190
sub qword [rbx], 1
jne 0x140646364
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 [0x140700ae8]
lea rsi, [0x140700ae8]
test bl, bl
je 0x1406463a0
mov rax, qword [0x140700af0]
lea rsi, [0x140700af0]
test rax, rax
jne 0x140646364
cmp byte [0x140700d02], 0
je 0x1406463fd
mov rdx, 0xffffffffffffffff
lea rcx, [0x140700b00]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140646407
add qword [rax], 1
jmp 0x140646364
mov rdx, qword [0x1407013b8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x140646412
mov r8, rdi
mov rcx, rsi
call fcn.140631210
mov qword [0x140701440], rax
mov rdx, rax
jmp 0x14064632e
movzx ecx, bl
call fcn.14062e080
jmp 0x1406463ae
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1406b431e]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x1407013b8], rax
mov rdx, rax
test rax, rax
je 0x14069f96e
jmp 0x1406463e3
Function at 0x140684f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x140700ad1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140685008
lea rdx, [0x1406b7f12]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140685070
mov rbx, qword [0x140700978]
jmp 0x140684fad
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 0x140684fa8
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140684ff7
lea rbx, [rdi + rax*8]
nop
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140674300
mov r8, rax
cmp rdi, rbx
jne 0x140684fe0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
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 [0x140700978], rax
mov ebx, dword [rax]
mov qword [0x140700978], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140700978], rdx
call fcn.140684090
cmp eax, ebx
jne 0x14068510a
mov byte [0x140700ad1], 1
jmp 0x140684f82
cmp byte [0x140700ad0], 0
jne 0x140684f99
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x140700168]
call rbx
mov qword [0x140701648], rax
call rbx
mov qword [0x140701640], rax
call rbx
mov qword [0x140701638], rax
call rbx
mov qword [0x140701630], rax
call rbx
mov qword [0x140701628], rax
call rbx
mov qword [0x140701620], rax
call rbx
mov qword [0x140701618], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x140701610], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1406850e8
mov byte [0x140700ad0], 1
jmp 0x140684f99
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14068d700
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.14069edf0
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.14069edf0
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 0x14068e3d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140701aa8]
test eax, eax
je 0x14068e46a
lea rax, [0x140701a80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140701ab0]
mov qword [rbp - 8], rax
jmp 0x14068e44e
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 0x14068e442
cmp qword [rbp - 0x10], 0
je 0x14068e442
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 0x14068e408
lea rax, [0x140701a80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14068e46b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14068e570
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 0x14068e598
mov eax, 0
jmp 0x14068e5e6
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 0x14068e5c1
mov eax, 0
jmp 0x14068e5e6
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 0x14068e5e1
mov eax, 0
jmp 0x14068e5e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14068e5ec
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 0x14068e66a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14068e661
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 0x14068e661
mov rax, qword [rbp - 8]
jmp 0x14068e67f
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 0x14068e634
mov eax, 0
add rsp, 0x20
pop rbp
ret