joyce8/EMBER2024-capa huggingface dataset:
Function at 0x634247e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x63549ef0], rax
je 0x63424815
lea rcx, [0x63549f00]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [str._dBc]
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop

Function at 0x63424fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6354a504]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x63425168
mov rax, qword [0x6354a508]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6342502c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x634250b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x63425010
mov rcx, rbx
call fcn.63425c80
test rax, rax
mov r12, rax
je 0x6342519d
mov rax, qword [0x6354a508]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.63425db0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6354a508]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x63425180
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x634250ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x63425110
add dword [0x6354a504], 1
cmp edi, 8
jae 0x634250e3
test dil, 4
jne 0x63425154
test edi, edi
je 0x634250d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6342516f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x634250d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x634250fc
jmp 0x634250d8
add rsi, qword [0x6354a508]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x634250ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.63426460
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x634250d8
xor esi, esi
jmp 0x63425037
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x634250d8
mov rax, qword [0x6354a508]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.63426460
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.63426460
nop
nop dword [rax]
Function at 0x634258f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6354a7e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6354a7c0]
test rbx, rbx
je 0x63425944
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6342593b
test rsi, rsi
je 0x6342593b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x63425920
lea rcx, [0x6354a7e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x63425c80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x634f9bd0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x63425ced
mov rcx, r8
call fcn.63425b60
test eax, eax
je 0x63425ced
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x63425ced
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x63425ce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x63425cef
add rax, 0x28
cmp rax, r9
jne 0x63425cd0
xor eax, eax
add rsp, 0x28
ret

Function at 0x63426460
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x633813a0]
jmp 0x63381380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.63426420
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.63426420
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x63381390
Function at 0x14000113a
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x14000115d
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001188
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001181
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140003380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x80004005
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x30], 0
xor r9d, r9d
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x104
jae 0x1400033f4
cmp dword [rsp + 0x48], 0
jne 0x1400033fe
mov eax, 0x80004005
jmp 0x1400034d6
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003418
mov eax, 0x80004005
jmp 0x1400034d6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x290], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, str.newdev.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000344e
jmp 0x1400034bf
lea rdx, str.UpdateDriverForPlugAndPlayDevicesW
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140003471
jmp 0x1400034bf
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x290]
mov rdx, qword [rsp + 0x298]
xor ecx, ecx
call qword [rsp + 0x50]
test eax, eax
jne 0x14000349e
jmp 0x1400034bf
cmp dword [rsp + 0x4c], 0
je 0x1400034af
mov dword [rsp + 0x34], 1
jmp 0x1400034b7
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x40], 0
je 0x1400034d2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140004320
add rsp, 0x288
ret
Function at 0x1400057a0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400057d0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400057cf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400057d5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400057cf
mov eax, 0
jmp 0x1400057cf
Function at 0x140005bac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebx, dword [0x14387e5a0]
mov eax, 1
test ebx, ebx
je 0x140005bdc
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x4c], 0xb6dda3bf
mov dword [rsp + 0x48], 0xb6dd5dbd
mov dword [rsp + 0x44], 0x4a79a6ab
mov dword [rsp + 0x40], 0x4a792f8d
mov dword [rsp + 0x3c], 0x4a792f6d
mov dword [rsp + 0x38], 0x4a792f71
mov dword [rsp + 0x34], 0x4a792f75
call fcn.140005ba0
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x140005dec
mov ecx, 0
jmp 0x140005c41
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x140005c9d
mov edx, dword [rsp + 0x40]
mov r11, rax
lea edx, [rdx - 0x4a792f51]
mov edx, dword [rax + rdx]
mov edx, dword [rax + rdx + 0x88]
test edx, edx
je 0x140005c35
mov edx, edx
lea rcx, [rax + rdx]
mov edx, dword [rcx + 0xc]
add rax, rdx
mov edx, dword [rsp + 0x4c]
mov r9d, dword [rax]
or r9d, 0x20202020
sub edx, 0x4a792f51
cmp r9d, edx
jne 0x140005c35
mov edx, dword [rsp + 0x48]
mov r9d, dword [rax + 4]
or r9d, 0x20202020
lea eax, [rdx - 0x4a792f51]
cmp r9d, eax
jne 0x140005c35
jmp 0x140005ca6
test rcx, rcx
je 0x140005df6
mov r13d, dword [rcx + 0x18]
mov eax, dword [rsp + 0x3c]
lea eax, [rax - 0x4a792f51]
mov r14d, dword [rax + rcx]
add r14, r11
mov eax, dword [rsp + 0x38]
lea eax, [rax - 0x4a792f51]
mov r12d, dword [rax + rcx]
add r12, r11
mov eax, dword [rsp + 0x34]
lea eax, [rax - 0x4a792f51]
mov eax, dword [rax + rcx]
add rax, r11
test r13d, r13d
je 0x140005dd9
mov r10d, ebx
mov esi, ebx
lea r15, [0x14387e5a0]
lea rdi, [r15 - 4]
mov edx, ebx
jmp 0x140005d1d
mov r8d, 0xb586d0af
jmp 0x140005d73
add esi, 1
add r10d, 1
cmp r10d, r13d
jae 0x140005ddc
cmp esi, 0x1f3
ja 0x140005ddc
mov ebp, r10d
mov ecx, dword [r12 + rbp*4]
add rcx, r11
mov r8d, dword [rsp + 0x44]
movzx r9d, word [rcx]
sub r8d, 0x4a792f51
cmp r9d, r8d
jne 0x140005d04
cmp byte [rcx], 0
je 0x140005cf9
mov r9d, edx
mov r8d, 0xb586d0af
mov ebx, 0
mov dword [rsp + 0x2c], edx
movzx edx, word [rcx + rbx]
mov ebx, r8d
ror ebx, 8
add edx, ebx
add r8d, edx
add r9d, 1
mov ebx, r9d
cmp byte [rcx + rbx], 0
jne 0x140005d53
mov edx, dword [rsp + 0x2c]
mov ecx, esi
shl rcx, 3
lea rbx, [0x14387e5a4]
lea r9, [rcx + rbx]
mov dword [r9], r8d
movzx r8d, word [rax + rbp*2]
mov r8d, dword [r14 + r8*4]
mov dword [r9 + 4], r8d
test esi, esi
je 0x140005d01
lea r8, [rcx + r15]
lea ecx, [rsi - 1]
lea rcx, [r15 + rcx*8 + 4]
mov r9d, dword [r8 + 8]
cmp r9d, dword [rcx + 4]
jae 0x140005d01
mov ebx, dword [r8 + 4]
mov rbp, qword [rcx]
mov qword [r8 + 4], rbp
mov dword [rcx], ebx
mov dword [rcx + 4], r9d
sub r8, 8
sub rcx, 8
cmp rcx, rdi
jne 0x140005da8
jmp 0x140005d01
mov esi, r13d
mov dword [0x14387e5a0], esi
mov eax, 1
jmp 0x140005bcb
mov eax, 0
jmp 0x140005bcb
mov eax, 0
jmp 0x140005bcb
Function at 0x140005e50
Capabilities:
Execute syscall

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

Function at 0x14000f460
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140017fa0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140017fa0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000f4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1438881f4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f660
mov rax, qword [0x1438881f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000f51c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000f5a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000f500
mov rcx, rdi
call fcn.140010030
test rax, rax
mov r12, rax
je 0x14000f6b2
mov rax, qword [0x1438881f8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140010170
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1438881f8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f695
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f59e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f610
add dword [0x1438881f4], 1
cmp ebx, 8
jae 0x14000f5d1
test bl, 4
jne 0x14000f670
test ebx, ebx
je 0x14000f5c6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f684
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000f5c6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000f5ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1438881f8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f460
xor esi, esi
jmp 0x14000f527
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f5c6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f5c6
mov rax, qword [0x1438881f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000f460
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000f460
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000fc80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x143888260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x143888240]
test rbx, rbx
je 0x14000fcd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000fccb
test rsi, rsi
je 0x14000fccb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fcb0
lea rcx, [0x143888260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140010030
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x143883130]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001009f
mov rcx, r9
call fcn.14000ff00
test eax, eax
je 0x14001009f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001009d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140010094
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001009f
add rdx, 0x28
cmp rdx, r9
jne 0x140010080
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14387f700]
jmp 0x140010e60

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

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400da120]
mov dword [rax], 1
mov rax, qword [0x1400da130]
mov dword [rax], 1
mov rax, qword [0x1400da140]
mov dword [rax], 1
mov rax, qword [0x1400da0c0]
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 0x140052c50
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.1400b5d40
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 0x140052d15
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 0x1400c6c48
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140052cf6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140052ce8
test rsi, rsi
je 0x1400c6c48
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140052ca8
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 0x140052d44
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 0x140052d60
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 0x140052e1d
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 0x1400c6c4e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140052dfe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140052df0
test rsi, rsi
je 0x1400c6c4e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140052db0
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 0x140069b20
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 [0x1400ec030]
mov rsi, rcx
test rbx, rbx
je 0x140069ba0
mov rax, qword [0x1400da270]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140069b90
mov rdx, qword [0x1400ec268]
test rdx, rdx
je 0x140069c98
mov rcx, rbx
mov rbx, qword [sym.imp.python310.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.python310.dll_PyNumber_InPlaceAdd]
jmp 0x140069b71
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140052c50
test rax, rax
je 0x140069cb8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x1400c6d00
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140069c3e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140069c30
test rbx, rbx
je 0x1400c6d00
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 0x140069bf0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.140069a60
mov rbx, rax
mov qword [0x1400ec030], rbx
jmp 0x140069b42
lea rcx, [0x1400d68b0]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1400ec268], rax
mov rdx, rax
jmp 0x140069b62
mov rbx, qword [0x1400ec048]
test rbx, rbx
jne 0x140069c86
cmp byte [0x1400ec262], 0
je 0x140069cf6
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400ec060]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1400ec048], rax
mov rbx, rax
test rax, rax
je 0x140069d02
add qword [rax], 1
jmp 0x140069c86
mov ecx, 1
call fcn.140053870
jmp 0x140069ccd
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop