joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140005771
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140005730
mov ecx, dword [r9]
jmp 0x14000585b
cmp ecx, 0x4e0
jb 0x14000585b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140005790
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400057e0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140006ccc
Capabilities:
Parse pe header

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

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

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0xb0], 0
jne 0x406740
mov eax, 0xc000000d
jmp 0x40688b
xor ecx, ecx
call fcn.00427a40
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x40675e
mov eax, 0xc0000225
jmp 0x40688b
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x40677f
mov eax, 0xc000007b
jmp 0x40688b
mov rax, qword [rsp + 0x30]
add rax, 0x108
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x4067a9
mov rax, qword [rsp + 0x48]
add rax, 0x28
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jae 0x406886
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x60]
call sub.ntoskrnl.exe_RtlInitAnsiString
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_RtlInitAnsiString
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call sub.ntoskrnl.exe_RtlCompareString
test eax, eax
jne 0x406881
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0xa8]
movzx edx, byte [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.00427c70
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jl 0x40687b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x78]
jmp 0x40688b
jmp 0x40679b
mov eax, 0xc0000225
add rsp, 0x88
ret
Function at 0x408cb0
Capabilities:
Access pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x408d03
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
jmp 0x408e9d
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x10b
je 0x408d26
cmp dword [rsp + 0x60], 0x20b
je 0x408d35
jmp 0x408d45
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x48], rax
jmp 0x408d55
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x408d55
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
jmp 0x408e9d
lea r9, [rsp + 0x58]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x408d82
cmp dword [rsp + 0x58], 0
jne 0x408db7
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x408d9f
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x64], eax
jmp 0x408daa
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x38], eax
jmp 0x408e9d
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x58], 0
je 0x408e92
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x408e05
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
jmp 0x408e9d
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
sub rax, 8
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x50]
call fcn.00408a50
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x408e8d
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
jmp 0x408e9d
jmp 0x408dd7
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x78
ret
Function at 0x408ef0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x40904a
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8w, 0xa
mov dl, 1
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x409048
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x408f71
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x408f7e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x409048
mov rax, qword [rsp + 0x80]
shr rax, 0x20
mov ecx, dword [rsp + 0x80]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_RtlRandomEx
mov eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409010
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x408ff4
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x58], rax
jmp 0x409001
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x409048
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409030
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x60], rax
jmp 0x40903d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
jmp 0x409052
mov dword [rsp + 0x28], 0xc000007b
mov eax, dword [rsp + 0x28]
add rsp, 0x78
ret
Function at 0x40a4b0
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0xc0000001
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rdx, [0x00433ee0]
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x40a602
cmp dword [rsp + 0x40], 0xc0000004
jne 0x40a602
mov eax, dword [rsp + 0x20]
mov r8d, 0x486e7367
mov rdx, rax
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x40a5e2
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x40a5e2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp eax, 1
je 0x40a5e2
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x40], 0
je 0x40a5bd
mov rax, qword [rsp + 0x28]
add rax, 0x38
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.ntoskrnl.exe_RtlCompareUnicodeString
test eax, eax
jne 0x40a5bd
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x50]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x40], 0
jmp 0x40a5e2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40a5c9
jmp 0x40a5e2
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x40a570
cmp qword [rsp + 0x48], 0
je 0x40a602
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x40f830
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x50], 0xcc
mov dword [rsp + 0x48], 0x101
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x40f87b
xor eax, eax
jmp 0x40f952
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
je 0x40f8a8
xor eax, eax
jmp 0x40f952
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp eax, 1
je 0x40f950
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
mov eax, dword [rsp + 0x8c]
and rax, qword [rsp + 0x50]
test rax, rax
je 0x40f933
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x8c]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x40f933
mov rax, qword [rsp + 0x38]
jmp 0x40f952
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x40f8b5
xor eax, eax
add rsp, 0xa0
pop rdi
ret
Function at 0x4126e0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x41283a
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8w, 0xa
mov dl, 1
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x412838
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412761
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x41276e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x412838
mov rax, qword [rsp + 0x80]
shr rax, 0x20
mov ecx, dword [rsp + 0x80]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_RtlRandomEx
mov eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412800
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4127e4
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x58], rax
jmp 0x4127f1
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x412838
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412820
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x60], rax
jmp 0x41282d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
jmp 0x412842
mov dword [rsp + 0x28], 0xc000007b
mov eax, dword [rsp + 0x28]
add rsp, 0x78
ret
Function at 0x412850
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov dword [rsp], 1
mov eax, dword [rsp + 0x20]
and eax, 0x2000000
test eax, eax
je 0x41287c
mov dword [rsp], 1
jmp 0x412946
mov eax, dword [rsp + 0x20]
and eax, 0x20000000
test eax, eax
je 0x412913
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x4128be
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x4128ad
mov dword [rsp + 4], 4
jmp 0x4128b5
mov dword [rsp + 4], 0x40
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x412911
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x4128ef
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x4128de
mov dword [rsp + 8], 2
jmp 0x4128e6
mov dword [rsp + 8], 0x20
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x412911
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x412902
mov dword [rsp + 0xc], 2
jmp 0x41290a
mov dword [rsp + 0xc], 0x10
mov eax, dword [rsp + 0xc]
mov dword [rsp], eax
jmp 0x412946
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x412929
mov dword [rsp], 4
jmp 0x412946
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x41293f
mov dword [rsp], 2
jmp 0x412946
mov dword [rsp], 1
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x415290
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_PsGetProcessId
mov qword [rsp + 0x30], rax
mov r8d, 0x486e7367
mov edx, 0x100000
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x78], 0
jne 0x4152e8
mov eax, 0xc000000d
jmp 0x4154b4
cmp qword [rsp + 0x20], 0
jne 0x4152fa
mov eax, 0xc0000017
jmp 0x4154b4
xor r9d, r9d
mov r8d, 0x100000
mov rdx, qword [rsp + 0x20]
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x415335
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov eax, dword [rsp + 0x38]
jmp 0x4154b4
cmp dword [rsp + 0x38], 0
jl 0x415387
mov dword [rsp + 0x38], 0xc0000225
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x50], rcx
jne 0x415360
mov dword [rsp + 0x38], 0
jmp 0x415387
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x415383
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x415385
jmp 0x415387
jmp 0x415344
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
je 0x4153a0
mov dword [rsp + 0x4c], 1
jmp 0x4153a8
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x28], al
cmp dword [rsp + 0x38], 0
jl 0x415486
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0xc0000225
mov dword [rsp + 0x48], 0
jmp 0x4153e0
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x48], eax
jae 0x415486
mov eax, dword [rsp + 0x48]
imul rax, rax, 0x50
mov qword [rsp + 0x50], rax
call sub.ntoskrnl.exe_PsGetCurrentThreadId
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
cmp qword [rcx + rdx + 0x130], rax
jne 0x41541a
jmp 0x4153d6
mov eax, dword [rsp + 0x48]
imul rax, rax, 0x50
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + rax + 0x130]
call sub.ntoskrnl.exe_PsLookupThreadByThreadId
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x41547f
movzx edx, byte [rsp + 0x28]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.004151f0
movzx eax, al
test eax, eax
je 0x41547f
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov rax, qword [rsp + 0x78]
mov qword [rax], 0
jmp 0x4153d6
jmp 0x415486
cmp qword [rsp + 0x40], 0
je 0x41549d
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
jne 0x4154b0
mov dword [rsp + 0x38], 0xc0000225
mov eax, dword [rsp + 0x38]
add rsp, 0x68
ret
Function at 0x415760
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov dword [rsp + 0xc0], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x14
rep stosb byte [rdi], al
cmp qword [rsp + 0xe0], 0
je 0x415807
cmp qword [rsp + 0xe8], 0
jne 0x415811
mov eax, 0xc000000d
jmp 0x4159ed
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x200
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
mov edx, 0x100001
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_ZwCreateFile
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jge 0x4158d1
mov eax, dword [rsp + 0xc0]
jmp 0x4159ed
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ZwQueryInformationFile
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jl 0x415927
mov r8d, 0x486e7367
mov rdx, qword [rsp + 0x68]
mov ecx, 1
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov rcx, qword [rsp + 0xe8]
mov qword [rcx], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ZwReadFile
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jl 0x4159af
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x4159af
mov dword [rsp + 0xc0], 0xc000007b
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ZwClose
cmp dword [rsp + 0xc0], 0
jge 0x4159e6
mov rax, qword [rsp + 0xe8]
cmp qword [rax], 0
je 0x4159e6
mov edx, 0x486e7367
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov eax, dword [rsp + 0xc0]
add rsp, 0xd0
pop rdi
ret
Function at 0x415a00
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x48
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x415a2e
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
jmp 0x415b04
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x415b02
mov rax, qword [rsp + 0x20]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x415a79
mov rax, qword [rsp + 0x20]
add rax, 0xf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
jmp 0x415a93
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x415b02
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x50], eax
jb 0x415b00
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x50], eax
jae 0x415b00
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov edx, dword [rsp + 0x50]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
add rax, rcx
jmp 0x415b04
jmp 0x415a85
xor eax, eax
add rsp, 0x48
ret