joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400418c8
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
xor eax, eax
mov word [rsp + 0x30], ax
cmp qword [rsp + 0x98], 0
je 0x14004191d
cmp qword [rsp + 0xa0], 0
je 0x14004191d
cmp qword [rsp + 0xb0], 0
jne 0x140041927
mov eax, 0xc000000d
jmp 0x140041a41
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 1
je 0x140041942
cmp dword [rsp + 0x38], 4
je 0x14004197e
jmp 0x14004198a
lea r8, [rsp + 0x48]
mov edx, 0x104
mov rcx, qword [rsp + 0xb0]
call fcn.14004247c
cmp qword [rsp + 0x48], 0
ja 0x140041968
xor eax, eax
jmp 0x140041a41
mov rax, qword [rsp + 0x48]
shl rax, 1
movzx eax, ax
add rax, 2
mov word [rsp + 0x30], ax
jmp 0x140041994
mov eax, 4
mov word [rsp + 0x30], ax
jmp 0x140041994
mov eax, 0xc0000001
jmp 0x140041a41
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0x40
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1400419f4
cmp qword [rsp + 0x40], 0
jne 0x1400419fa
mov eax, dword [rsp + 0x34]
jmp 0x140041a41
movzx eax, word [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x34]
add rsp, 0x88
ret

Function at 0x14004523c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004529b
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1400453d8
movzx eax, al
test eax, eax
je 0x14004528a
xor eax, eax
jmp 0x14004529f
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140045184
jmp 0x14004529f
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140048788
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [0x14004885c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140048833
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [rax]
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
add rsp, 0x70
pop rdi
ret

Function at 0x140048d48
Capabilities:
Access pe header

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xa8], 0
jne 0x140048d75
mov eax, 0xc000000d
jmp 0x140048eaf
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140048d94
mov eax, 0xc0000225
jmp 0x140048eaf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140048db6
mov eax, 0xc000007b
jmp 0x140048eaf
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x140048de0
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x140048eaa
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x140048ea5
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0xa0]
mov dl, byte [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140049070
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
jne 0x140048ea1
mov eax, 0xc0000225
jmp 0x140048eaf
xor eax, eax
jmp 0x140048eaf
jmp 0x140048dd2
mov eax, 0xc0000225
add rsp, 0x78
ret
Function at 0x14004915c
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x1b0
mov dword [rsp + 0x90], 0x114
lea rax, [rsp + 0x94]
mov rdi, rax
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400491a6
mov eax, dword [rsp + 0x20]
jmp 0x140049443
call fcn.14004944c
movzx eax, al
test eax, eax
je 0x1400491cd
cmp dword [rsp + 0x94], 0xa
jb 0x1400491cd
cmp dword [rsp + 0x9c], 0x37ec
jae 0x1400492ca
call fcn.14004944c
movzx eax, al
test eax, eax
je 0x140049221
mov rax, qword [0x1400bd0c8]
mov qword [0x1400bda18], rax
mov rax, qword [0x1400bd0d0]
mov qword [0x1400bda20], rax
mov qword [0x1400bda38], 0x27
mov qword [0x1400bda40], 0x1e
mov qword [0x1400bda58], 0x1ff
mov qword [0x1400bda60], 0x3ffff
call fcn.14004997c
movzx eax, al
test eax, eax
je 0x140049273
mov eax, 0xc0600000
mov qword [0x1400bda28], rax
mov eax, 0xc0000000
mov qword [0x1400bda30], rax
mov qword [0x1400bda48], 0x15
mov qword [0x1400bda50], 0xc
mov qword [0x1400bda68], 0x7ff
mov qword [0x1400bda70], 0xfffff
jmp 0x1400492c1
mov rax, qword [0x1400bd0d8]
mov qword [0x1400bda28], rax
mov rax, qword [0x1400bd0e0]
mov qword [0x1400bda30], rax
mov qword [0x1400bda48], 0x15
mov qword [0x1400bda50], 0xc
mov qword [0x1400bda68], 0x7ffffff
movabs rax, 0xfffffffff
mov qword [0x1400bda70], rax
mov eax, dword [rsp + 0x20]
jmp 0x140049443
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rdx, [0x14005ae00]
mov rcx, qword [rsp + 0x58]
call fcn.140033b18
mov rcx, rax
call fcn.14004dfc8
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140049304
mov eax, 0xc000007a
jmp 0x140049443
mov r9d, 0xa
lea r8, [0x14005c578]
mov edx, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.1400499e4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140049337
mov eax, 0xc000007a
jmp 0x140049443
mov rax, qword [rsp + 0x28]
add rax, 0xa
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shr rax, 0x27
and rax, 0x1ff
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shl rax, 0x1e
mov rcx, qword [rsp + 0x38]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
shl rax, 0x15
mov rcx, qword [rsp + 0x50]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
shl rax, 0xc
mov rcx, qword [rsp + 0x48]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [0x1400bda18], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1400bda20], rax
mov rax, qword [rsp + 0x50]
mov qword [0x1400bda28], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1400bda30], rax
mov qword [0x1400bda38], 0x27
mov qword [0x1400bda40], 0x1e
mov qword [0x1400bda48], 0x15
mov qword [0x1400bda50], 0xc
mov qword [0x1400bda58], 0x1ff
mov qword [0x1400bda60], 0x3ffff
mov qword [0x1400bda68], 0x7ffffff
movabs rax, 0xfffffffff
mov qword [0x1400bda70], rax
mov eax, dword [rsp + 0x20]
add rsp, 0x1b0
pop rdi
ret
Function at 0x1400495a0
Capabilities:
Map section object

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x60], 0
lea rdx, [0x14005ae20]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x240
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
lea r8, [rsp + 0x88]
mov edx, 0xf001f
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14004964a
mov eax, dword [rsp + 0x50]
jmp 0x14004974d
mov eax, dword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400496cf
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
jmp 0x14004974d
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xe0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0xf0]
mov r8d, eax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
call fcn.1400588c0
cmp qword [rsp + 0x60], 0
je 0x140049736
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
cmp qword [rsp + 0x58], 0
je 0x140049749
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
add rsp, 0xd8
ret
Function at 0x14004cdc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x14004cf9f
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x78]
call fcn.140028d40
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x80000005
je 0x14004ce6b
cmp dword [rsp + 0x38], 0xc0000023
jne 0x14004cf9f
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.14005864c
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14004cf9f
mov eax, dword [rsp + 0x34]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140058b80
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14004cf95
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 4], ecx
je 0x14004cf0c
mov rcx, qword [rsp + 0x40]
call fcn.14005861c
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x78]
call fcn.140026fcc
mov al, byte [rsp + 0x30]
jmp 0x14004cfb2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx]
ja 0x14004cf82
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
cmp qword [rsp + 0x88], 0
je 0x14004cf63
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
add rcx, 0xc
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call fcn.1400588c0
mov rcx, qword [rsp + 0x40]
call fcn.14005861c
mov byte [rsp + 0x31], 1
mov rcx, qword [rsp + 0x78]
call fcn.140026fcc
mov al, byte [rsp + 0x31]
jmp 0x14004cfb2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x40]
call fcn.14005861c
mov byte [rsp + 0x32], 0
mov rcx, qword [rsp + 0x78]
call fcn.140026fcc
mov al, byte [rsp + 0x32]
add rsp, 0x60
pop rdi
ret
Function at 0x14004e128
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
cmp qword [rsp + 0x80], 0
je 0x14004e162
cmp qword [rsp + 0x90], 0
je 0x14004e162
cmp qword [rsp + 0x98], 0
jne 0x14004e16c
mov eax, 0xc000000d
jmp 0x14004e283
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14004e191
mov eax, 0xc000007b
jmp 0x14004e283
mov rax, qword [rsp + 0x28]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x14004e1bb
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x14004e27e
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400588c0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x14004e279
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
xor eax, eax
jmp 0x14004e283
jmp 0x14004e1ad
mov eax, 0xc0000225
add rsp, 0x70
pop rdi
ret
Function at 0x14004e2ec
Capabilities:
Access pe header

Disassembly:
sub rsp, 0x78
cmp qword [0x1400bda80], 0
je 0x14004e306
mov rax, qword [0x1400bda80]
jmp 0x14004e44b
call fcn.14004dee0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x14004e34a
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x14004e449
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x14004e444
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x14004e444
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x14004e444
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x54494e49
je 0x14004e444
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x45474150
je 0x14004e444
mov qword [rsp + 0x38], 0
movups xmm0, xmmword [0x14005b210]
movdqu xmmword [rsp + 0x58], xmm0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x58]
call fcn.140049070
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14004e444
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 7]
mov qword [0x1400bda80], rax
mov rax, qword [0x1400bda80]
jmp 0x14004e44b
jmp 0x14004e33c
xor eax, eax
add rsp, 0x78
ret

Function at 0x14004ebe4
Capabilities:
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x20]
mov ecx, 0xc4
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x14004ec22
xor al, al
jmp 0x14004ec33
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14004ec31
mov al, 1
jmp 0x14004ec33
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14004ec3c
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0xf0]
call fcn.140028d40
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x88]
mov edx, 0x100020
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14004ed58
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 0x10
xor r9d, r9d
lea r8, [rsp + 0x88]
mov edx, 0xf001f
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14004edb1
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x3e8
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x58], 0
jne 0x14004edc1
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x14004edcc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x60], 0
jne 0x14004eddc
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14004ede7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xf0]
call fcn.140026fcc
mov rax, qword [rsp + 0x80]
add rsp, 0xe0
pop rdi
ret
Function at 0x140050fe4
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0xf8
mov dword [rsp + 0x30], 0xc0000001
lea rcx, [rsp + 0x80]
call fcn.14004c680
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rdx, [0x14005b7a0]
mov rcx, qword [rsp + 0x50]
call fcn.140026cbc
mov r8, rax
mov edx, 3
lea rcx, [rsp + 0x80]
call fcn.14004d0f4
movzx eax, al
cmp eax, 1
jne 0x140051166
mov r8d, 0x53414645
mov edx, 0x64
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140051166
mov qword [rsp + 0x60], 0x64
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x58], rax
lea rdx, [0x14005b810]
mov rcx, qword [rsp + 0x58]
call fcn.140026cbc
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x40]
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14004cdc8
movzx eax, al
test eax, eax
je 0x140051156
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
xor eax, 0x78956211
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x68], 0
movsxd rax, dword [rsp + 0x34]
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140051156
mov rax, qword [rsp + 0x38]
mov edx, dword [rax]
mov ecx, dword [rsp + 0x34]
call fcn.14003be24
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + 4], eax
jne 0x14005114e
call fcn.1400280c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0xc]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x34]
mov r8, qword [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400512b0
mov dword [rsp + 0x30], eax
jmp 0x140051156
mov dword [rsp + 0x30], 0xc0000001
mov edx, 0x53414645
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [rsp + 0x30], 0
jge 0x140051175
mov dword [rsp + 0x30], 0xc00000e5
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x80]
call fcn.14004c734
mov eax, dword [rsp + 0x48]
add rsp, 0xf8
ret

Function at 0x1400512b0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0xc0000001
mov rax, qword [rsp + 0x70]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14005134e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov qword [rcx], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret
Function at 0x1400013a0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
cmp rbx, 0xffffffffffffffff
jne 0x1400013f5
lea rcx, str.Error:_couldnt_get_handle_to_process_list.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov eax, ebx
jmp 0x140001485
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140001423
lea rcx, str.Error:_couldnt_get_handle_to_first_process.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov eax, 0xffffffff
jmp 0x140001485
lea rdx, [rsp + 0x4c]
lea rcx, str.test.exe
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001451
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001423
mov eax, 0xffffffff
jmp 0x140001485
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000146e
jmp 0x140001485
lea rcx, str.Injected.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov rdx, rbx
call fcn.140001070
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400014b0
add rsp, 0x160
pop rbx
ret

Function at 0x140001d84
Capabilities:
Parse pe header

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