joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093f78
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.140079690
sub rsp, rax
mov rax, qword [0x1400cf068]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140091300
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140093fc7
mov rax, rbp
jmp 0x1400940cf
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1bcb70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140094ec4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1bcb70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400940cb
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 0x1400940cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140094ec4
test rax, rax
js 0x1400940cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400940cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400940bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400940bd
cmp byte [rcx], 0xd
jne 0x1400940a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400940b2
cmp byte [rcx + 1], 0xa
jne 0x1400940b2
inc rcx
jmp 0x1400940b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcf470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140094085
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400940cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140079660
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 0x140094264
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401bcb70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400942bb
cmp word [rdx], r13w
jne 0x1400942bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400942c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400943e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140094406
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400942f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140094320
cmp r9, r8
jae 0x140094330
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400942da
jmp 0x1400943e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400943da
cmp dword [rsp + 0x80], esi
je 0x1400943da
lea r8, [0x1401bcb70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400943b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140094382
mov word [rbx], r13w
jmp 0x1400943e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14009438f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400943e2
cmp word [rsp + 0x70], r13w
jne 0x1400943bf
cmp rbx, r14
je 0x14009437c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140094ecc
cmp word [rsp + 0x70], r13w
je 0x1400943e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401bcb70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400943df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400943e5
Function at 0x140097920
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 0x1400979a7
mov rsi, rbx
cmp word [rax], bp
je 0x140097966
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140097950
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009794c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009017c
mov rdi, rax
test rax, rax
je 0x140097994
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007b0c0
mov rbp, rdi
xor ecx, ecx
call fcn.14008f68c
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 0x14009a74c
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.14008ec54
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 0x14009a7ed
cmp ebx, dword [rsp + 0x30]
je 0x14009a7e6
test esi, esi
je 0x14009a7e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009a7c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009a7ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009a7ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009a7d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009a7ef
mov eax, 1
jmp 0x14009a7ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009ee10
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140094ecc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140094ecc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009ef60
cmp rax, 0xffffffffffffffff
je 0x14009ef60
xor edi, edi
test rbp, rbp
jle 0x14009ef0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008f2c8
mov rbx, rax
test rax, rax
jne 0x14009ee98
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009ef01
mov edx, 0x8000
mov ecx, r14d
call fcn.14008ccf8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400932f4
cmp eax, 0xffffffff
je 0x14009eee1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009eea8
mov edx, r15d
mov ecx, r14d
call fcn.14008ccf8
jmp 0x14009ef01
cmp byte [rsi + 0x38], dil
je 0x14009eef8
cmp dword [rsi + 0x34], 5
jne 0x14009eef8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009ef01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008f68c
jmp 0x14009ef74
jns 0x14009ef74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140094ecc
cmp rax, 0xffffffffffffffff
jne 0x14009ef2c
cmp byte [rsi + 0x30], dil
je 0x14009ef74
mov edi, dword [rsi + 0x2c]
jmp 0x14009ef74
mov ecx, r14d
call fcn.1400981f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009ef74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14009ef74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009ef6d
mov eax, dword [rsi + 0x2c]
jmp 0x14009ef72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140094ecc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400a8db0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xf8
mov esi, dword [rsp + 0x178]
mov ebp, r9d
movaps xmmword [rax - 0x48], xmm6
mov rdi, rcx
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov qword [rax + 0x10], r12
mov r12d, r8d
mov qword [rax - 0x38], r13
lea r8, [rax + 8]
mov r13, rdx
mov edx, esi
call fcn.1400a6d10
movss xmm8, dword [rsp + 0x170]
xor ebx, ebx
mov edx, esi
movss xmm9, dword [rsp + 0x168]
mov rcx, rdi
movss xmm6, dword [rsp + 0x160]
movss xmm7, dword [rsp + 0x158]
mov dword [rsp + 0x140], eax
cmp dword [rdi + 0x44], ebx
je 0x1400a8e86
xorps xmm0, xmm0
mov qword [rsp + 0x78], 1
xorps xmm1, xmm1
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x78]
mov dword [rsp + 0xa8], ebx
movups xmmword [rsp + 0x80], xmm0
movdqu xmmword [rsp + 0x90], xmm1
call fcn.1400a5c70
test eax, eax
mov r10d, ebx
mov edi, ebx
cmovne r10d, dword [rsp + 0x90]
cmovne edi, dword [rsp + 0x9c]
jmp 0x1400a8ece
call fcn.1400a4900
test eax, eax
js 0x1400a8f0a
mov r8, qword [rdi]
mov r11d, 0x100
movsxd r9, eax
movsx eax, r11w
movsx ecx, r11w
movzx edx, byte [r9 + r8 + 2]
imul edx, eax
movzx eax, byte [r9 + r8 + 3]
add dx, ax
movzx eax, byte [r9 + r8 + 9]
movsx r10d, dx
movzx edx, byte [r9 + r8 + 8]
imul edx, ecx
add dx, ax
movsx edi, dx
xorps xmm0, xmm0
cvtsi2ss xmm0, r10d
mulss xmm0, xmm7
addss xmm0, xmm9
call fcn.14000e0a0
cvttss2si r14d, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
call fcn.14002fa80
mulss xmm0, xmm6
addss xmm0, xmm8
call fcn.14000e0a0
cvttss2si r15d, xmm0
jmp 0x1400a8f10
mov r14d, ebx
mov r15d, ebx
mov eax, dword [rsp + 0x150]
test r12d, r12d
mov rsi, qword [rsp + 0x130]
mov qword [rsp + 0x70], r13
mov r13, qword [rsp + 0xf0]
mov dword [rsp + 0x60], r12d
mov r12, qword [rsp + 0x138]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], ebp
je 0x1400a8ffb
test ebp, ebp
je 0x1400a8ffb
mov ecx, 0x3eb33333
call fcn.14002fab0
mov edx, dword [rsp + 0x140]
lea rax, [rsp + 0x150]
movaps xmm1, xmm6
mov dword [rsp + 0x150], ebx
minss xmm1, xmm7
mov qword [rsp + 0x130], rbx
lea r9, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov rcx, rsi
divss xmm0, xmm1
movaps xmm2, xmm0
call fcn.1400a8a60
mov rdi, rax
test rax, rax
je 0x1400a8ffb
mov r9d, dword [rsp + 0x150]
lea rcx, [rsp + 0x60]
mov r8, qword [rsp + 0x130]
mov rdx, rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r14d
movss dword [rsp + 0x38], xmm8
movss dword [rsp + 0x30], xmm9
movss dword [rsp + 0x28], xmm6
movss dword [rsp + 0x20], xmm7
call fcn.1400a7ff0
mov rcx, qword [rsp + 0x130]
call fcn.14000d830
mov rcx, rdi
call fcn.14000d830
mov rcx, rsi
lea r11, [rsp + 0xf8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.14000d830
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b72c0]
mov dword [rax], 1
mov rax, qword [0x1400b72d0]
mov dword [rax], 1
mov rax, qword [0x1400b72e0]
mov dword [rax], 1
mov rax, qword [0x1400b7260]
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 0x140019b30
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.140093880
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 0x140019bf5
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 0x1400a4782
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140019bd6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140019bc8
test rsi, rsi
je 0x1400a4782
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019b88
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 0x140019c24
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
mov rax, qword [8]
ud2

Function at 0x140019c40
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 0x140019cfd
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 0x1400a4788
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140019cde
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140019cd0
test rsi, rsi
je 0x1400a4788
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019c90
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 0x140038b60
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 [0x1400c8130]
mov rsi, rcx
test rbx, rbx
je 0x140038be0
mov rax, qword [0x1400b7400]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140038bd0
mov rdx, qword [0x1400c8368]
test rdx, rdx
je 0x140038cd0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140038bb1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140019b30
test rax, rax
je 0x140038cf0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a4822
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140038c7e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140038c70
test rbx, rbx
je 0x1400a4822
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 0x140038c30
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.1400389f0
mov rbx, rax
mov qword [0x1400c8130], rbx
jmp 0x140038b82
lea rcx, [0x1400b3952]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400c8368], rax
mov rdx, rax
jmp 0x140038ba2
mov rbx, qword [0x1400c8148]
test rbx, rbx
jne 0x140038cc1
cmp byte [0x1400c8362], 0
je 0x140038d33
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c8160]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400c8148], rax
mov rbx, rax
test rax, rax
je 0x140038d3f
mov eax, dword [rax]
add eax, 1
je 0x140038cc1
mov dword [rbx], eax
jmp 0x140038cc1
mov ecx, 1
call fcn.14001a7b0
jmp 0x140038d05
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x1400395c0
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.140019b30
test rax, rax
je 0x140039710
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a483a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140039676
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140039668
test rbx, rbx
je 0x1400a483a
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 0x140039628
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400c8aa0]
mov rsi, rax
mov rax, qword [0x1400b7400]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14003977d
mov rdx, rbx
call fcn.14000a200
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14002d130
mov rdx, qword [rbx]
test edx, edx
js 0x1400396f2
sub rdx, 1
mov qword [rbx], rdx
je 0x140039765
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c8140]
lea rsi, [0x1400c8140]
test bl, bl
je 0x140039730
mov rax, qword [0x1400c8148]
lea rsi, [0x1400c8148]
test rax, rax
jne 0x1400396f2
cmp byte [0x1400c8362], 0
je 0x1400397a7
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c8160]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400397b1
mov edx, dword [rax]
add edx, 1
je 0x1400396f2
mov dword [rax], edx
jmp 0x1400396f2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400396f2
mov rcx, qword [0x1400c8a18]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400397bc
mov rdx, rdi
call fcn.14000a200
mov qword [0x1400c8aa0], rax
mov rcx, rax
jmp 0x1400396c9
movzx ecx, bl
call fcn.14001a7b0
jmp 0x14003973e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400ae533]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400c8a18], rax
mov rcx, rax
test rax, rax
je 0x1400a483a
jmp 0x140039790
Function at 0x14008ff90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c8121], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140090038
lea rdx, [0x1400b322a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400900a0
mov rbx, qword [0x1400c7fc0]
jmp 0x14008ffd5
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 0x14008ffd0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140090027
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14007ff90
mov r8, rax
cmp rdi, rbx
jne 0x140090010
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 [0x1400c7fc0], rax
mov ebx, dword [rax]
mov qword [0x1400c7fc0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c7fc0], rdx
call fcn.14008f0c0
cmp eax, ebx
jne 0x140090108
mov byte [0x1400c8121], 1
jmp 0x14008ffb0
cmp byte [0x1400c8120], 0
jne 0x14008ffc7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400c8cc8], rax
call rbx
mov qword [0x1400c8cc0], rax
call rbx
mov qword [0x1400c8cb8], rax
call rbx
mov qword [0x1400c8cb0], rax
call rbx
mov qword [0x1400c8ca8], rax
call rbx
mov qword [0x1400c8ca0], rax
call rbx
mov qword [0x1400c8c98], rax
call rbx
mov byte [0x1400c8120], 1
mov qword [0x1400c8c90], rax
jmp 0x14008ffc7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140092560
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.1400a3ce0
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.1400a3ce0
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