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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180041040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18002eccd
xor eax, eax
jmp 0x18002ee39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002ed07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18002ed07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18002ee39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18002ee2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002ed4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18002ed75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18002ee31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18002ede4
sub eax, 1
je 0x18002ede4
cmp eax, 2
jne 0x18002ee2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18002ee31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18002ee12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18002ee2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18002ee31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180031630
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18002fb80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180041040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18002fc53
cmp byte [rcx + 0x71], 0
je 0x18002fc53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18002fc4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18002fc14
sub eax, 1
je 0x18002fc18
cmp eax, 2
jne 0x18002fc4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180031630
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18002fc46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18002fc4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18002fbfc
xor al, al
jmp 0x18002fbfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180031630
add rsp, 0x60
pop rbx
ret
Function at 0x140008bb4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140008d4c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008d46
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008d46
cmp dword [rsp + 0x54], 4
jne 0x140008d46
cmp dword [rsp + 0x58], 0xa
jae 0x140008d46
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008d46
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008d46
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009770]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008d46
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x140008cef
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008d15
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008d26
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x140008cda
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008d46
and edi, 0x3ff
cmp edi, esi
je 0x140008d3e
cmp edi, 0xd
jne 0x140008d46
mov dword [0x14000c20c], esi
jmp 0x140008d4c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x4b
add al, 0xa5
xor al, 0x2c
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
hlt
Function at 0x1400026d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xc0000004
jne 0x140002779
cmp qword [rsp + 0x28], 0
je 0x140002736
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x30]
mov dl, 1
mov ecx, eax
call fcn.140001330
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000275a
mov dword [rsp + 0x24], 0xc000009a
jmp 0x140002779
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x24], eax
jmp 0x140002714
cmp dword [rsp + 0x24], 0
jl 0x140002788
cmp qword [rsp + 0x28], 0
jne 0x140002791
mov eax, dword [rsp + 0x24]
jmp 0x1400028d8
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400027b3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x1400028d4
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x78], rax
jb 0x1400028cf
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x38]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x1400028cf
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x28]
test rax, rax
je 0x1400028c5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x14000285c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x100
ja 0x1400028c3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x28]
mov r8, rax
mov edx, 0x100
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_strcpy_s
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400028c3
mov dword [rsp + 0x24], 0xc0000001
jmp 0x1400028cd
mov dword [rsp + 0x24], 0xc0000001
jmp 0x1400028d4
jmp 0x1400027a9
mov eax, dword [rsp + 0x24]
add rsp, 0x68
ret
Function at 0x140007360
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x14001d2d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400073b2
mov rax, qword [rsp + 0x28]
jmp 0x140007528
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400073cb
mov rax, qword [rsp + 0x28]
jmp 0x140007528
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1400073fe
mov rax, qword [rsp + 0x28]
jmp 0x140007528
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
cmp dword [rsp + rax + 0xd0], 0
jne 0x140007433
mov rax, qword [rsp + 0x28]
jmp 0x140007528
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xd0]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1400074bb
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 0x140007523
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x190]
mov rcx, rax
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140007521
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140007523
jmp 0x1400074b1
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140018ca0
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140007a30
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14001d2d0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
lea rdx, [0x140019300]
mov rcx, qword [0x14001d310]
call fcn.140011ed0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140007aa7
mov rax, qword [rsp + 0x38]
jmp 0x140007c19
mov ecx, dword [rsp + 0x40]
call fcn.14000a290
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140007ad3
mov rax, qword [rsp + 0x38]
jmp 0x140007c19
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r8, [0x140019320]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
call fcn.140007550
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140007b29
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x38]
jmp 0x140007c19
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call fcn.140007360
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140007b70
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x38]
jmp 0x140007c19
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
cmp rax, 0xc3
je 0x140007bbb
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
cmp rax, 0xb8
jne 0x140007baf
mov eax, dword [rsp + 0x24]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140007b70
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140007c09
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1030]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x1030]
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rcx]
mov ecx, dword [rcx + rdx*4]
sar ecx, 4
movsxd rcx, ecx
add rcx, qword [rax]
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140018ca0
add rsp, 0x98
ret
Function at 0x140008170
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0x2c0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400081e3
mov eax, dword [rsp + 0x30]
jmp 0x14000834e
mov qword [rsp + 0x40], 0x2c0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
lea rdx, [0x14001d010]
mov rcx, qword [rsp + 0xd0]
call fcn.1400091b0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000826c
mov r9d, 0x4000
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov eax, dword [rsp + 0x30]
jmp 0x14000834e
mov rax, qword [rsp + 0x38]
add rax, 0x190
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd8]
add rax, 8
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x104
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.1400091b0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400082ec
mov r9d, 0x4000
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov eax, dword [rsp + 0x30]
jmp 0x14000834e
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 4]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], 0x2c0
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
call fcn.140008880
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0xc0
pop rdi
ret
Function at 0x140011e00
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov ecx, dword [rsp + 0x58]
call fcn.14000a290
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
call fcn.140013680
mov eax, eax
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x20], 0
jl 0x140011e4e
cmp qword [rsp + 0x28], 0xffffffffc0000001
jne 0x140011e54
mov eax, dword [rsp + 0x20]
jmp 0x140011ec8
mov ecx, 4
call fcn.14000a290
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140011e88
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x20]
jmp 0x140011ec8
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140011ed0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x60], 0
je 0x140011f15
cmp qword [rsp + 0x58], 0
jne 0x140011f1f
mov eax, 0xc000000d
jmp 0x14001205e
lea r9, [rsp + 0x24]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x140011f94
cmp qword [rsp + 0x28], 0
je 0x140011f59
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x24]
mov dl, 1
mov ecx, eax
call fcn.140001330
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140011f75
jmp 0x140011f94
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
jmp 0x140011f37
cmp dword [rsp + 0x20], 0
jl 0x140011fa3
cmp qword [rsp + 0x28], 0
jne 0x140011fce
cmp qword [rsp + 0x28], 0
jne 0x140011fb5
mov dword [rsp + 0x20], 0xc000009a
jmp 0x140011fc5
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x20]
jmp 0x14001205e
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140012042
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x40], 0
je 0x140012029
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x38]
test eax, eax
jle 0x140012029
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x40]
call sub.ntoskrnl.exe__wcsicmp
test eax, eax
jne 0x140012029
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.140013720
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x140012042
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x140011fd8
cmp qword [rsp + 0x28], 0
je 0x14001205a
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140012440
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
call fcn.1400131c0
mov dword [rsp + 0x24], eax
call fcn.140013260
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0xc0000001
je 0x14001247b
cmp dword [rsp + 0x28], 0xc0000001
jne 0x140012485
mov eax, 0xc0000001
jmp 0x14001254a
mov ecx, dword [rsp + 0x68]
call fcn.14000a290
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400124b0
mov eax, dword [rsp + 0x20]
jmp 0x14001254a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExAcquirePushLockExclusiveEx]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.1400117a0
movzx eax, al
test eax, eax
jne 0x14001251f
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x14001254a
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.140012a70
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x140012ce0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
call fcn.14000a290
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x140012d24
mov eax, dword [rsp + 0x24]
jmp 0x140012dbc
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 4]
shl eax, 4
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 5]
or eax, ecx
mov byte [rsp + 0x20], al
call fcn.140013300
mov eax, eax
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 4]
and al, 7
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 2]
and cl, 0xf8
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 2], al
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 5]
and al, 0xf
shl al, 4
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 2]
and cl, 0xf
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 2], al
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret