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

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

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

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002540
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 0x140002594
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025a0
add rdx, 0x28
cmp r9, rdx
jne 0x140002580
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025d2
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 0x140002635
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002648
add rdx, 0x28
cmp rdx, r10
jne 0x140002620
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002657
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002667
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000263e
test ecx, ecx
jg 0x140002650
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140027c84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400018e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000192e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000192e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000192e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000192e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000192e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001930
xor al, al
add rsp, 0x28
ret
Function at 0x1400016e1
Capabilities:
Execute syscall

Disassembly:
mov r8, r10
mov r10, 1
xor r10, r10
mov r10, 0xa
mov r10, rcx
xor eax, eax
sub r8, r10
add eax, 0x18
xor r8, r8
syscall
ret

Function at 0x140001706
Capabilities:
Execute syscall

Disassembly:
add rcx, 0xa
xor eax, eax
mov r10, rcx
add eax, 0x3a
sub r10, 0xa
sub rcx, 0xa
syscall
ret

Function at 0x14000171d
Capabilities:
Execute syscall

Disassembly:
add r10, 0x1c
xor eax, eax
mov r10, rcx
sub r10, 1
add eax, 0x50
add r10, 1
syscall
ret

Function at 0x140001734
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0xc7
syscall
ret

Function at 0x140002080
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020cc
xor al, al
add rsp, 0x28
ret
Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85b3e12
mov rbx, rcx
jne 0x140001087
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001087
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001087
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001087
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000108c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001094
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x85b3e12
mov rsi, rcx
jne 0x140001169
xor edi, edi
lea r9, [rax + 8]
xor r8d, r8d
mov dword [rax + 8], edi
lea rdx, [rax + 8]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140001169
test rbx, rbx
je 0x1400010e8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x42504946
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400010d8
test rbx, rbx
je 0x140001169
mov r8d, dword [rbx]
test r8d, r8d
je 0x14000115e
lea rdx, [rbx + 0x18]
test byte [rdx - 8], 1
je 0x140001153
cmp qword [rdx], 0x200000
jne 0x140001153
mov ecx, dword [0x140001cc0]
mov r9b, byte [0x140001cc4]
cmp dword [rdx + 8], ecx
jne 0x140001153
cmp byte [rdx + 0xc], r9b
je 0x14000117e
inc edi
add rdx, 0x20
cmp edi, r8d
jb 0x14000112c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
xor edx, edx
mov qword [rcx], rax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x14000116e
Function at 0x140001198
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x85b3e12
mov rdi, rcx
jne 0x14000125d
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x14000125d
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000125d
call fcn.140001274
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.1400014a4
test rax, rax
je 0x14000125d
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x140001240
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001684
jmp 0x140001259
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001262
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b561e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
lea rcx, [rsp + 0x30]
call fcn.1400b568e
mov byte [rsp + 0x28], 0x31
mov byte [rsp + 0x29], 0x2e
mov byte [rsp + 0x2a], 0x62
mov byte [rsp + 0x2b], 0x69
mov byte [rsp + 0x2c], 0x6e
mov byte [rsp + 0x2d], 0
mov byte [rsp + 0x20], 0x68
mov byte [rsp + 0x21], 0x65
mov byte [rsp + 0x22], 0x6c
mov byte [rsp + 0x23], 0x6c
mov byte [rsp + 0x24], 0x6f
mov byte [rsp + 0x25], 0
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [rsp + 0x30]
nop
add rsp, 0x88
ret
Function at 0x1400b5c3e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
jmp 0x1400b5cf3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1400b5d79
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call fcn.1400b5bae
test eax, eax
jne 0x1400b5d74
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
jmp 0x1400b5d7b
jmp 0x1400b5ce9
xor eax, eax
add rsp, 0x78
ret

Function at 0x1400b5d95
Capabilities:
Access peb ldr_data

Disassembly:
xor r8, r8
xor rax, rax
xor r10, r10
add r10, 0x60
mov rax, qword gs:[r10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
ret
Function at 0x140027670
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140053420
sub rsp, rax
mov rax, qword [0x14006a010]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov word [rsp + 0x30], bp
lea edi, [rbp + 0x28]
test al, al
je 0x140027722
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140046fac
cmp rax, 1
jne 0x14002777e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400276ff
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400276f3
cmp rcx, 1
jb 0x14002777e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400276c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140027753
lea rcx, [rsp + 0x80]
call fcn.1400484ec
jmp 0x140027755
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140037c10
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14003bca0
int3

Function at 0x140027790
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006a010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x4e
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140046fac
cmp rax, 1
jne 0x140027865
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002780c
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140027800
cmp rcx, 1
jb 0x140027865
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400277d1
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140037c10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14003bca0
int3
Function at 0x140032db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14006f9da], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140032e31
mov edx, 3
xor ecx, ecx
lea r8d, [rdx + 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14006ef68], rax
mov ebx, dword [rax]
add rax, 4
mov qword [0x14006ef68], rax
mov r8d, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14006ef68], rdx
call fcn.140031120
cmp eax, ebx
jne 0x140032f9d
mov byte [0x14006f9da], 1
lea rdx, [0x14005d458]
mov rcx, rsi
call fcn.1400536c0
test eax, eax
je 0x140032ebc
cmp byte [0x14006f9db], 1
je 0x140032ebc
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006fd28], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400701e8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006fa48], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006f9b0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140070238], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006fad8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400701f0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140070200], rax
mov byte [0x14006f9db], 1
mov r8, qword [0x14006ef68]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
nop dword [rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x140032ee7
inc rax
test cl, cl
jne 0x140032ed0
mov ecx, r9d
jmp 0x140032eec
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x140032ef3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140032f58
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140032f35
inc rax
test cl, cl
jne 0x140032f20
mov ecx, r9d
jmp 0x140032f3a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140032f41
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140032f10
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140032f88
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140031cd0
add rdi, 8
sub rbx, 1
jne 0x140032f70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140043adc
call fcn.14003bca0
int3

Function at 0x1400385f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038642
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038642
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038642
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038642
cmp dword [rcx + 0x84], 0xe
jbe 0x140038642
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140038644
xor al, al
add rsp, 0x28
ret
Function at 0x14003c000
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003be6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003be6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003be6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003be6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003be6b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003be6b
cmp dword [rcx + 0xf8], 0
je 0x14003be6b
mov ecx, ebx
call fcn.14003bf1c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003bcf8
nop
cmp dword [rbp + 0x20], 0
je 0x14003beb9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003bec4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003bdfc
Function at 0x14004cf00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004cf87
mov rsi, rbx
cmp word [rax], bp
je 0x14004cf46
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004cf30
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004cf2c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004ab08
mov rdi, rax
test rax, rax
je 0x14004cf74
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140039d80
mov rbp, rdi
xor ecx, ecx
call fcn.140048b58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f68c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f6a2
mov al, 1
jmp 0x14004f702
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f6b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004f700
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004d6a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f700
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004f700
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f700
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004f702
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140053330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400065b8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x14000807d]
call sub.msvcrt.dll_getenv
jmp 0x1400066eb
lea rcx, [0x140008081]
lea rdx, [0x140008079]
mov r8, rax
mov rax, qword [0x140008b15]
call rax
mov rsi, rax
lea rdi, [0x140008081]
lea r12, [0x140006a80]
push r12
push rsi
push r15
push r13
push r12
push rdi
push rbx
push r14
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov rsi, qword [rbp - 0x15]
mov edx, esi
mov word [rbp - 0x54], si
add r14, qword [rbp - 0x55]
cmp rax, qword [0x140007002]
je 0x140006783
mov r12, 0xaff7
sub ebx, dword [rbp - 0xc9]
mov ecx, esi
mov eax, ecx
mov r13, qword [rbp - 0x61]
add rcx, rbx
movzx ecx, dh
call fcn.140006855
mov dx, word [rbp - 0xa6]
mov rsi, qword [rbp - 0x4b]
mov edx, ecx
mov edx, edi
mov ecx, dword [rbp - 0xc8]
cmp r13, qword [0x14000700c]
jo 0x140006783
mov rdi, r15
test rdi, r15
jmp 0x14000679f
mov ah, 0xfd
cmp ebx, 0x6080ca68
jb 0x14000683f
mov qword [rbp - 0xa1], r8
movzx ebx, bl
cmp r11, qword [str.EOKC]
jmp 0x14000682f
add esi, 0x2cfe
mov dword [0x140007002], ecx
mov r15, qword [rbp - 0x35]
mov dword [rbp - 0x87], edx
movzx eax, bh
leave
pop r14
pop rbx
pop rdi
pop r12
pop r13
pop r15
pop rsi
ret
Function at 0x140001878
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [0x140033070]
mov ebx, 0x80000000
lea eax, [rcx + rbx]
test ebx, eax
jne 0x1400018bd
cmp ecx, 0x80010106
je 0x1400018bd
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x140033070], eax
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x1400018bd
cmp eax, 0x80010106
je 0x1400018bd
xor eax, eax
jmp 0x140001908
cmp qword [0x140038ea8], 0
mov ebx, 1
jne 0x140001906
lea rax, [0x140038ea8]
mov r8d, ebx
lea r9, [0x140021550]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x140021610]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400018ff
cmp qword [0x140038ea8], 0
jne 0x140001906
call fcn.140001910
jmp 0x1400018b9
mov eax, ebx
add rsp, 0x30
pop rbx
ret