joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140027440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140027450]
mov dword [rax], 1
mov rax, qword [0x140027460]
mov dword [rax], 1
mov rax, qword [0x1400273c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140027430]
mov dword [0x14002a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140027500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400274e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400273a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov r13d, dword [rcx + rax + 0x88]
add r13, rcx
mov rsi, rcx
mov rbp, rdx
mov edi, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edi, edi
je 0x140001520
xor ebx, ebx
lea r12, [rcx + rax]
jmp 0x1400014e1
add rbx, 1
cmp rbx, rdi
je 0x140001520
mov edx, dword [r12 + rbx*4]
mov rcx, rbp
add rdx, rsi
call sym.strcmp
test eax, eax
jne 0x1400014d8
mov eax, dword [r13 + 0x24]
lea rdx, [rsi + rbx*2]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx + rax]
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a0c4]
mov rbx, rcx
test esi, esi
jle 0x140001aa0
mov rax, qword [0x14002a0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ac2
mov rax, qword [0x14002a0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a50
add dword [0x14002a0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14002a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019c8
mov rax, qword [0x14002a0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a100]
test rbx, rbx
je 0x1400020ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400020a3
test eax, eax
jne 0x1400020a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002088
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000233d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002334
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000233f
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023d0
mov rdx, qword [0x1400273c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023be
cmp word [rax + 0x18], 0x20b
jne 0x1400023be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400023d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400273c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000245d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002400
add rax, 0x28
cmp rax, r9
jne 0x140002440
xor eax, eax
ret

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400273c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000247f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002488
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000247f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400273c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002510
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002507
test rcx, rcx
je 0x1400024c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400024f8
xor eax, eax
ret
Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400273c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000253f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002548
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400273c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002580
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002580
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400025c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400025f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400273c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002612
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002620
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002612
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002612
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002612
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002675
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002688
add rdx, 0x28
cmp r10, rdx
jne 0x140002660
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002697
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000267e
test ecx, ecx
jg 0x140002690
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004578
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [r12 + 0x138]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rbx
mov edx, 0xff
call fcn.140021890
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.1400211b0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
xor ebx, ebx
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
xor r9d, r9d
movzx r8d, si
mov rdx, rbp
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbx
call qword [rax]
test eax, eax
je 0x14000468c
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x14004bd80]
mov al, 1
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
jmp 0x14000468e
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140007424
Capabilities:
Check for time delay via queryperformancecounter

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 r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.140021890
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.1400211b0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
lea edi, [r14 + 1]
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000753e
cmp eax, 0x102
je 0x14000752c
cmp eax, 0xffffffff
jne 0x14000753a
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1400075a4
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r12 + 0x140]
sub rcx, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rcx
divsd xmm0, qword [0x14004bd80]
mov ecx, edi
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], ecx
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1400093cc
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x48
lea rax, [rbp + 0x28]
mov rsi, 0xffffffff80000000
lea rdx, str..iad
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000940c
mov rcx, qword [rbp + 0x28]
jmp 0x1400094f8
lea r8, [rbp + 0x20]
lea rdx, str..iad
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.Counsellor
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x20]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.Counsellor
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x18]
lea rdx, str.Counsellor
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x18]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, str.ProsperousSherard_Date_Tools_Upgrader_File
mov dword [rsp + 0x20], gethostbyname
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x30]
lea rdx, str.Shell
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x18]
lea rdx, str.Open
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, str.Command
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.wscript.exe___E:vbscript___1_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 0x10]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.wscript.exe___E:vbscript___1_
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x14000add8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, str.21:00:34
call fcn.14002479c
call fcn.1400247b4
mov r11d, eax
mov eax, 0x30c30c31
imul r11d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x15
sub r11d, edx
imul r11d, r11d, 0x2ee0
movsxd rbx, r11d
call fcn.1400247b4
mov r8d, dword [0x7ffe0014]
movsxd rcx, eax
mov dword [rsp + 0x60], r8d
movabs rdi, 0xfe624e212ac18000
mov qword [rsp + 0x68], rcx
mov ecx, dword [0x7ffe001c]
movabs r11, 0x624dd2f1a9fbe77
mov dword [rsp + 0x64], ecx
mov rax, r11
mov r9, qword [rsp + 0x60]
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x60], r8d
mov rcx, qword [rsp + 0x60]
add r9, rdi
add rcx, rdi
mul r9
sub r9, rdx
mov rax, r11
shr r9, 1
add r9, rdx
shr r9, 9
add r9, rbx
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rcx, r9
jae 0x14000aed5
mov r8d, 0x7ffe0014
lea r10d, [r8 + 8]
inc qword [rsp + 0x68]
mov eax, dword [r8]
mov dword [rsp + 0x60], eax
mov eax, dword [r10]
mov dword [rsp + 0x64], eax
mov rax, r11
mov rcx, qword [rsp + 0x60]
add rcx, rdi
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rcx, r9
jb 0x14000aea2
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r11d, word [rsp + 0x3e]
movzx eax, word [rsp + 0x4e]
movzx ecx, word [rsp + 0x4c]
sub eax, r11d
movd xmm1, eax
movzx eax, word [rsp + 0x3c]
sub ecx, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
divsd xmm1, qword [0x14004bd80]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [0x14004c908]
comisd xmm0, xmm1
ja 0x14000afa0
call fcn.14000a1c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140008efc]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
call fcn.140009508
call fcn.14000a9b0
call fcn.1400086e0
call fcn.14000abbc
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401c5880]
mov dword [rax], 1
mov rax, qword [0x1401c5890]
mov dword [rax], 1
mov rax, qword [0x1401c58a0]
mov dword [rax], 1
mov rax, qword [0x1401c5800]
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 0x140125490
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.14019f330
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 0x140125555
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 0x1401b0242
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140125536
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140125528
test rsi, rsi
je 0x1401b0242
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401254e8
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 0x140125584
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 0x1401255a0
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 0x14012565d
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 0x1401b0248
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14012563e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140125630
test rsi, rsi
je 0x1401b0248
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401255f0
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 0x140144460
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 [0x1401dd2b0]
mov rsi, rcx
test rbx, rbx
je 0x1401444e0
mov rax, qword [0x1401c59d0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1401444d0
mov rdx, qword [0x1401dd4e8]
test rdx, rdx
je 0x1401445d0
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 0x1401444b1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140125490
test rax, rax
je 0x1401445f0
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 0x1401b02e2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14014457e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140144570
test rbx, rbx
je 0x1401b02e2
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 0x140144530
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.1401442f0
mov rbx, rax
mov qword [0x1401dd2b0], rbx
jmp 0x140144482
lea rcx, [0x1401c1ee7]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1401dd4e8], rax
mov rdx, rax
jmp 0x1401444a2
mov rbx, qword [0x1401dd2c8]
test rbx, rbx
jne 0x1401445c1
cmp byte [0x1401dd4e2], 0
je 0x140144633
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401dd2e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1401dd2c8], rax
mov rbx, rax
test rax, rax
je 0x14014463f
mov eax, dword [rax]
add eax, 1
je 0x1401445c1
mov dword [rbx], eax
jmp 0x1401445c1
mov ecx, 1
call fcn.140126110
jmp 0x140144605
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop