joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ec0e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov r8, rdx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400ebdd0
mov rbx, rax
mov r8, qword [rax]
test r8, r8
jne 0x1400ec179
movzx r8d, byte [rax + 8]
movabs rdx, 0x100000001b3
movzx ecx, byte [rbx + 9]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rbx + 0xa]
imul r8, rdx
xor r8, rcx
imul r8, rdx
xor r8, rax
movzx eax, byte [rbx + 0xb]
imul r8, rdx
xor r8, rax
movzx eax, byte [rbx + 0xc]
imul r8, rdx
xor r8, rax
movzx eax, byte [rbx + 0xd]
imul r8, rdx
xor r8, rax
movzx eax, byte [rbx + 0xe]
imul r8, rdx
xor r8, rax
movzx eax, byte [rbx + 0xf]
imul r8, rdx
xor r8, rax
imul r8, rdx
jmp 0x1400ec1be
mov rbx, qword [rax + 8]
lea rdx, [0x140157e98]
mov r9, rbx
lea rcx, [rsp + 0x40]
call fcn.140023a60
movabs rax, 0xffffffff00000000
mov rcx, rbx
and rcx, rax
mov eax, ebx
or rcx, rax
movabs rax, 0x9ddfea08eb382d69
add rcx, qword [rsp + 0x40]
mul rcx
mov r8, rax
xor r8, rdx
xor r8, qword [rdi + 0x10]
movabs rax, 0x9e3779b97f4a7c15
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x48]
dec rcx
imul rax, r8
shr rax, 0x20
and rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x1400fb800
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.1400fb930
cmp dword [rbx + 0x28], eax
jge 0x1400fb81c
call fcn.1400fb950
test al, al
jne 0x1400fb82c
mov rcx, qword [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x20
pop rbx
ret

Function at 0x1400fbe40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r10, r8
mov r11, rdx
mov rbx, rcx
cmp r8, 0x10
jbe 0x140019c7b
cmp r8, 0x400
jbe 0x140019c68
add rsp, 0x20
pop rbx
jmp fcn.1400fbe40
mov rdx, r10
mov rcx, r11
call fcn.1400fbef0
mov rdx, rax
jmp 0x140019cfb
cmp r10, 8
jbe 0x140019ca9
movabs rax, 0x622015f714c7d297
sub rbx, rax
mov rax, qword [rdx]
rol rax, 0xb
add rax, rbx
xor rbx, qword [rdx + r8 - 8]
mul rbx
xor rax, rdx
add rsp, 0x20
pop rbx
ret
cmp r10, 4
jb 0x140019cc7
mov edx, dword [rdx + r8 - 4]
mov eax, dword [r11]
shl r10b, 3
lea ecx, [r10 + 0xe0]
shl rdx, cl
jmp 0x140019cf8
test r10, r10
je 0x140019d15
movzx r9d, byte [rdx + r10 - 1]
movzx eax, byte [r11]
shr r8, 1
shl r10b, 3
movzx edx, byte [r8 + rdx]
lea ecx, [r10 + 0xf8]
shl r9d, cl
movzx ecx, r8b
shl cl, 3
shl edx, cl
or edx, r9d
or rdx, rax
lea rcx, [rdx + rbx]
movabs rax, 0x9ddfea08eb382d69
mul rcx
xor rax, rdx
add rsp, 0x20
pop rbx
ret
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp r8, 0x400
jb 0x1400fbec4
mov qword [rsp + 0x30], rbx
mov rbx, r8
shr rbx, 0xa
imul rax, rbx, 0xfffffffffffffc00
mov qword [rsp + 0x38], r14
movabs r14, 0x9ddfea08eb382d69
add rbp, rax
nop word [rax + rax]
mov edx, 0x400
mov rcx, rsi
call fcn.1400fbef0
add rsi, 0x400
lea rcx, [rdi + rax]
mov rax, r14
mul rcx
mov rdi, rax
xor rdi, rdx
sub rbx, 1
jne 0x1400fbe90
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp 0x140019c40

Function at 0x14010a1c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
xor edx, edx
call fcn.1401128d0
xor esi, esi
mov dword [rdi + 0x124], ebx
lea rcx, [rsp + 0x20]
mov dword [rdi + 0x120], esi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x24]
cmp edx, dword [rsp + 0x48]
cmovb edx, dword [rsp + 0x48]
mov eax, edx
mov qword [rdi + 0x128], rax
mov eax, 0x10
nop
add rax, rax
cmp rax, 0x20
jb 0x14010a210
mov qword [rdi + 0x130], rax
lea rcx, [rdi + 0x30]
add rax, rax
mov qword [rdi + 8], rsi
mov qword [rdi + 0x138], rax
xor edx, edx
lea rax, [rdi + 8]
mov dword [rdi + 0x140], esi
xor rax, 0xffffffffb37cc16a
mov qword [rdi + 0x18], rdi
mov r8d, pe_nt_image_headers64
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x28], esi
call fcn.14011adb0
mov rbx, qword [rsp + 0x60]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14010e190
Capabilities:
Encode data using xor

Disassembly:
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x14010e19d
mov rax, qword [rcx]
mov r9, qword [rcx + 0x10]
add r9, rax
cmp rax, r9
jae 0x14010e1d4
nop dword [rax]
movzx r8d, byte [rax]
cmp r8b, 0x41
setae dl
cmp r8b, 0x5a
setbe cl
and dl, cl
shl dl, 5
xor dl, r8b
mov byte [rax], dl
inc rax
cmp rax, r9
jb 0x14010e1b0
ret

Function at 0x1401235bc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401929a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14012361a
cmp word [rdx], r12w
jne 0x14012361a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140123620
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14012377b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140123756
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140123659
mov rcx, r9
jmp 0x14012367c
cmp r9, rdx
jae 0x140123693
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14012363d
jmp 0x14012377b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140123750
cmp dword [rsp + 0x80], edi
je 0x140123750
mov rdx, r14
lea r11, [0x1401929a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140123729
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401236fc
mov word [rbx], r12w
jmp 0x140123777
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140123705
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140123777
cmp word [rsp + 0x70], r12w
jne 0x140123736
cmp rbx, rsi
je 0x1401236f6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140134da8
cmp word [rsp + 0x70], r12w
je 0x14012377b
mov word [rbx], r13w
jmp 0x140123777
lea r11, [0x1401929a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140123773
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14012377b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140128ac8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401288b8

Function at 0x140133b04
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.14011ef20
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140133b8e
cmp byte [rbp - 0x21], r15b
je 0x140133b89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140133bc4
call fcn.14013401c
test eax, eax
jne 0x140133bb0
cmp byte [rbp - 0x21], r15b
je 0x140133ba8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140133bc4
cmp byte [rbp - 0x21], r15b
je 0x140133bc1
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.140123040
test eax, eax
jne 0x140133c64
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14011ef20
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140133c03
cmp byte [rbp - 0x21], r15b
je 0x140133c38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140133c38
call fcn.14013401c
test eax, eax
jne 0x140133c24
cmp byte [rbp - 0x21], r15b
je 0x140133c1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140133c38
cmp byte [rbp - 0x21], r15b
je 0x140133c35
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.140123040
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140133c64
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140133c67
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140133c75
mov rcx, rdi
call fcn.140131238
cmp byte [rbp + 0x3f], r15b
je 0x140133c84
mov rcx, qword [rbp + 0x27]
call fcn.140131238
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 0x140136078
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401360aa
call fcn.140122e94
mov dword [rax], 0x16
call fcn.14011ee88
jmp 0x1401361c9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401361c9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401361c9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401360d9
lock or dword [rcx + 0x14], 0x10
jmp 0x1401361c9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401360ed
call fcn.140136774
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140132414
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140123a68
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401361b7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140136182
mov rcx, rsi
call fcn.140132414
cmp eax, edi
je 0x14013616d
mov rcx, rsi
call fcn.140132414
cmp eax, 0xfffffffe
je 0x14013616d
mov rcx, rsi
call fcn.140132414
movsxd rbx, eax
lea r14, [0x1401929a0]
mov rcx, rsi
sar rbx, 6
call fcn.140132414
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140136174
lea rdx, [0x14018b2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140136182
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401361a6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401361a6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401361a6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401361cc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401364f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140118d40
sub rsp, rax
mov rax, qword [0x14018ac88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140132414
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140136543
mov rax, rbp
jmp 0x14013664b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140010000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1829a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140134da0
mov r13, rax
lea rax, [0x140010000]
mov rcx, qword [rax + rbx*8 + 0x1829a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140136647
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140136647
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140134da0
test rax, rax
js 0x140136647
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140136647
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140136639
lea r8, [0x140010000]
cmp rcx, rdx
jae 0x140136639
cmp byte [rcx], 0xd
jne 0x14013661f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14013662e
cmp byte [rcx + 1], 0xa
jne 0x14013662e
inc rcx
jmp 0x14013662e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x17ad90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140136601
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013664b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140118430
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140138ad8
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 0x140138b08
xor eax, eax
jmp 0x140138bcb
mov rbp, rbx
cmp word [rax], si
je 0x140138b2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140138b14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140138b10
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.140133ca4
movsxd r14, eax
test eax, eax
jne 0x140138b6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140138b01
mov rcx, r14
call fcn.140131274
mov rdi, rax
test rax, rax
jne 0x140138b84
xor ecx, ecx
call fcn.140131238
jmp 0x140138b60
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.140133ca4
test eax, eax
jne 0x140138bb5
mov rcx, rdi
call fcn.140131238
jmp 0x140138bbf
xor ecx, ecx
call fcn.140131238
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 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b3ba0]
mov dword [rax], 1
mov rax, qword [0x1400b3bb0]
mov dword [rax], 1
mov rax, qword [0x1400b3bc0]
mov dword [rax], 1
mov rax, qword [0x1400b3b40]
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 0x14002e450
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400908f0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14002e4f9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002e4be
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002e4b0
test rax, rax
je 0x1400a17ee
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14002e498
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002e528
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14002e540
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14002e5e1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14002e5a6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002e598
test rax, rax
je 0x1400a17f4
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14002e580
mov rdx, r14
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 0x1400459c0
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.14002e450
test rax, rax
je 0x140045b00
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x140045a3e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140045a30
test rax, rax
je 0x1400a1896
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140045a20
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [0x1400c5e38]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400b3ce0]
mov rbx, qword [rax + 0x1b8]
test rdx, rdx
je 0x140045b58
mov r8, rbx
mov rcx, rsi
call fcn.140031cc0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140041680
sub qword [rbx], 1
jne 0x140045ae9
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 [0x1400c5700]
lea rsi, [0x1400c5700]
test bl, bl
je 0x140045b20
mov rax, qword [0x1400c5708]
lea rsi, [0x1400c5708]
test rax, rax
jne 0x140045ae9
cmp byte [0x1400c5922], 0
jne 0x140045b36
movzx ecx, bl
call fcn.140010880
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c5720]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140045b85
add qword [rax], 1
jmp 0x140045ae9
mov rdx, qword [0x1400c5db0]
mov rdi, qword [rax + 0x1a8]
test rdx, rdx
je 0x140045b90
mov r8, rdi
mov rcx, rsi
call fcn.140031cc0
mov qword [0x1400c5e38], rax
mov rdx, rax
jmp 0x140045ab3
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400ac586]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x1400c5db0], rax
mov rdx, rax
test rax, rax
je 0x1400a1896
jmp 0x140045b6b
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 qword [sym.imp.python39.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x140085b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c56e9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140085bb8
lea rdx, [0x1400afb82]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140085c20
mov rbx, qword [0x1400c55a8]
jmp 0x140085b75
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 0x140085b70
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.140074e20
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 [0x1400c55a8], rax
mov ebx, dword [rax]
mov qword [0x1400c55a8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c55a8], rdx
call fcn.140084c60
cmp eax, ebx
jne 0x140085ca7
mov byte [0x1400c56e9], 1
jmp 0x140085b4c
cmp byte [0x1400c56e8], 0
jne 0x140085b63
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400c6028], rax
call rbx
mov qword [0x1400c6020], rax
call rbx
mov qword [0x1400c6018], rax
call rbx
mov qword [0x1400c6010], rax
call rbx
mov qword [0x1400c6008], rax
call rbx
mov qword [0x1400c6000], rax
call rbx
mov qword [0x1400c5ff8], rax
call rbx
mov byte [0x1400c56e8], 1
mov qword [0x1400c5ff0], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400c55a0], rax
jmp 0x140085b63
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14008f5d0
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.1400a0d50
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.1400a0d50
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