joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020d0d8
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, [0x140284d90]
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 0x14020d136
cmp word [rdx], r12w
jne 0x14020d136
or byte [rax + r8*8 + 0x38], cl
jmp 0x14020d13c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14020d297
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14020d272
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14020d175
mov rcx, r9
jmp 0x14020d198
cmp r9, rdx
jae 0x14020d1af
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 0x14020d159
jmp 0x14020d297
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 0x14020d26c
cmp dword [rsp + 0x80], edi
je 0x14020d26c
mov rdx, r14
lea r11, [0x140284d90]
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 0x14020d245
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14020d218
mov word [rbx], r12w
jmp 0x14020d293
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 0x14020d221
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14020d293
cmp word [rsp + 0x70], r12w
jne 0x14020d252
cmp rbx, rsi
je 0x14020d212
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400b6482
cmp word [rsp + 0x70], r12w
je 0x14020d297
mov word [rbx], r13w
jmp 0x14020d293
lea r11, [0x140284d90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14020d28f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14020d297
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 0x14022cc40
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1040
call fcn.1400b6662
sub rsp, rax
mov rax, qword [0x14027e3d8]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rsi, r8
movsxd rbx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x1000
call fcn.1400babbd
lea rax, str.VDIWEF
mov qword [rsp + 0x28], rsi
mov r9, qword [rax + rbx*8]
lea r8, str.__s____s___s_n
mov edx, 0x1000
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x30]
call fcn.1400b9b82
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400b8bba
add rsp, 0x1040
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001118b
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140015130
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x468]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002a0f5]
call fcn.1400116cc
nop
xor edx, edx
mov ecx, 2
call fcn.140011334
mov qword [rbp + 8], rax
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001142e
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x1400151f0
lea rdx, str.cmd.exe
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x1400151db
mov eax, dword [rbp + 0x440]
cmp dword [rbp + 0x50], eax
jne 0x1400151db
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x38]
jmp 0x1400151fd
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011627
mov dword [rbp + 0x284], eax
jmp 0x1400151a2
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ff40]
call fcn.1400115dc
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.14001134d
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x1400113c5
Capabilities:
Terminate process

Disassembly:
jmp 0x1400184e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400114c4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019850
xor al, al
jmp 0x1400198d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019863
xor al, al
jmp 0x1400198d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001988d
xor al, al
jmp 0x1400198d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400198a1
xor al, al
jmp 0x1400198d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400198b3
xor al, al
jmp 0x1400198d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400198cf
xor al, al
jmp 0x1400198d1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001176c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
jmp 0x140015650
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x14002a0f5]
call fcn.1400116cc
nop
xor edx, edx
mov ecx, 0xf
call fcn.140011334
mov qword [rbp + 8], rax
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001142e
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x14001573a
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140015725
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2a8], rax
cmp qword [rbp + 0x2a8], 0
je 0x140015725
mov edx, 9
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011627
mov dword [rbp + 0x284], eax
jmp 0x1400156c4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fec0]
call fcn.1400115dc
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.14001134d
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret
Function at 0x140017630
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011703
movzx eax, al
test eax, eax
jne 0x140017650
mov ecx, 7
call fcn.1400115eb
nop
mov byte [rsp + 0x20], 0
call fcn.14001161d
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140017674
mov ecx, 7
call fcn.1400115eb
nop
jmp 0x1400176cc
cmp dword [0x140024b78], 0
jne 0x1400176c7
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.14001132f
test eax, eax
je 0x1400176a8
mov eax, 0xff
jmp 0x1400177d1
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011604
mov dword [0x140024b78], 2
jmp 0x1400176cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400115d2
call fcn.1400114f6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140017729
mov rcx, qword [rsp + 0x30]
call fcn.1400112a8
movzx eax, al
test eax, eax
je 0x140017729
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.140011550
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001775d
mov rcx, qword [rsp + 0x38]
call fcn.1400112a8
movzx eax, al
test eax, eax
je 0x14001775d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400116a4
nop
call fcn.140017880
mov dword [rsp + 0x28], eax
call fcn.1400114c4
movzx eax, al
test eax, eax
jne 0x14001777c
mov ecx, dword [rsp + 0x28]
call fcn.14001108c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001778b
call fcn.1400116b8
nop
xor edx, edx
mov cl, 1
call fcn.14001127b
mov eax, dword [rsp + 0x28]
jmp 0x1400177d1
add rsp, 0x68
ret
Function at 0x180001000
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x58
cmp edx, 1
je 0x180001013
mov eax, 1
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
lea rcx, str.cmd.exe
mov qword [rsp + 0x68], rsi
lea rbx, [0x18001bc60]
lea rsi, [0x18001bce0]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rsi
xor edi, edi
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
lea rcx, str.C:UsersPublicDocumentspepe2.exe
mov qword [rsp + 0x38], rdi
xor eax, eax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
movups xmmword [0x18001bc64], xmm0
mov dword [0x18001bcc4], eax
movups xmmword [0x18001bc74], xmm0
mov dword [0x18001bc60], 0x68
movups xmmword [0x18001bc84], xmm0
mov qword [0x18001bcf0], rax
movups xmmword [0x18001bc94], xmm0
movups xmmword [0x18001bca4], xmm0
movups xmmword [0x18001bcb4], xmm0
movups xmmword [0x18001bce0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18000900c
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 0x18000903c
xor eax, eax
jmp 0x1800090ff
mov rbp, rbx
cmp word [rax], si
je 0x180009061
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009048
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009044
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.180008f2c
movsxd r14, eax
test eax, eax
jne 0x18000909f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009035
mov rcx, r14
call fcn.18000a29c
mov rdi, rax
test rax, rax
jne 0x1800090b8
xor ecx, ecx
call fcn.180007564
jmp 0x180009094
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.180008f2c
test eax, eax
jne 0x1800090e9
mov rcx, rdi
call fcn.180007564
jmp 0x1800090f3
xor ecx, ecx
call fcn.180007564
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 0x18000e850
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e878
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e878
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cb6a0]
mov dword [rax], 1
mov rax, qword [0x1400cb6b0]
mov dword [rax], 1
mov rax, qword [0x1400cb6c0]
mov dword [rax], 1
mov rax, qword [0x1400cb640]
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 0x14002cc70
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.1400a69c0
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 0x14002cd35
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 0x1400b78c2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002cd16
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002cd08
test rsi, rsi
je 0x1400b78c2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002ccc8
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 0x14002cd64
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 0x14002cd80
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 0x14002ce3d
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 0x1400b78c8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002ce1e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002ce10
test rsi, rsi
je 0x1400b78c8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002cdd0
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 0x14004bc40
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 [0x1400dc5d0]
mov rsi, rcx
test rbx, rbx
je 0x14004bcc0
mov rax, qword [0x1400cb7e0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14004bcb0
mov rdx, qword [0x1400dc808]
test rdx, rdx
je 0x14004bdb0
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 0x14004bc91
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14002cc70
test rax, rax
je 0x14004bdd0
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 0x1400b7962
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14004bd5e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004bd50
test rbx, rbx
je 0x1400b7962
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 0x14004bd10
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.14004bad0
mov rbx, rax
mov qword [0x1400dc5d0], rbx
jmp 0x14004bc62
lea rcx, [0x1400c7d32]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400dc808], rax
mov rdx, rax
jmp 0x14004bc82
mov rbx, qword [0x1400dc5e8]
test rbx, rbx
jne 0x14004bda1
cmp byte [0x1400dc802], 0
je 0x14004be13
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400dc600]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400dc5e8], rax
mov rbx, rax
test rax, rax
je 0x14004be1f
mov eax, dword [rax]
add eax, 1
je 0x14004bda1
mov dword [rbx], eax
jmp 0x14004bda1
mov ecx, 1
call fcn.14002d8f0
jmp 0x14004bde5
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 0x14004c6a0
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.14002cc70
test rax, rax
je 0x14004c7f0
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 0x1400b797a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14004c756
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004c748
test rbx, rbx
je 0x1400b797a
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 0x14004c708
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400dcf40]
mov rsi, rax
mov rax, qword [0x1400cb7e0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14004c85d
mov rdx, rbx
call fcn.14001d340
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140040270
mov rdx, qword [rbx]
test edx, edx
js 0x14004c7d2
sub rdx, 1
mov qword [rbx], rdx
je 0x14004c845
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400dc5e0]
lea rsi, [0x1400dc5e0]
test bl, bl
je 0x14004c810
mov rax, qword [0x1400dc5e8]
lea rsi, [0x1400dc5e8]
test rax, rax
jne 0x14004c7d2
cmp byte [0x1400dc802], 0
je 0x14004c887
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400dc600]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004c891
mov edx, dword [rax]
add edx, 1
je 0x14004c7d2
mov dword [rax], edx
jmp 0x14004c7d2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14004c7d2
mov rcx, qword [0x1400dceb8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14004c89c
mov rdx, rdi
call fcn.14001d340
mov qword [0x1400dcf40], rax
mov rcx, rax
jmp 0x14004c7a9
movzx ecx, bl
call fcn.14002d8f0
jmp 0x14004c81e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400c2913]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400dceb8], rax
mov rcx, rax
test rax, rax
je 0x1400b797a
jmp 0x14004c870
Function at 0x1400a30e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400dc5c1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400a3188
lea rdx, [0x1400c760a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a31f0
mov rbx, qword [0x1400dc460]
jmp 0x1400a3125
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 0x1400a3120
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400a3177
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1400930e0
mov r8, rax
cmp rdi, rbx
jne 0x1400a3160
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 [0x1400dc460], rax
mov ebx, dword [rax]
mov qword [0x1400dc460], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400dc460], rdx
call fcn.1400a2210
cmp eax, ebx
jne 0x1400a3258
mov byte [0x1400dc5c1], 1
jmp 0x1400a3100
cmp byte [0x1400dc5c0], 0
jne 0x1400a3117
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400dd168], rax
call rbx
mov qword [0x1400dd160], rax
call rbx
mov qword [0x1400dd158], rax
call rbx
mov qword [0x1400dd150], rax
call rbx
mov qword [0x1400dd148], rax
call rbx
mov qword [0x1400dd140], rax
call rbx
mov qword [0x1400dd138], rax
call rbx
mov byte [0x1400dc5c0], 1
mov qword [0x1400dd130], rax
jmp 0x1400a3117
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400a56a0
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.1400b6e20
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.1400b6e20
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