joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400055e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000561a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000561f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005668
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400074c0]
cmp byte [rcx + rax], 0
je 0x140005668
dec r8
sub rdx, 1
jne 0x14000564e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400059a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400056f8
mov ebx, eax
test eax, eax
jne 0x1400059d8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140005a3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005a32
test al, 0x10
je 0x140005a32
bt eax, 0xa
jae 0x140005a2b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140005a4c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140005a27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140005a27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140005a32
and dword [rsp + 0x3c], 0
jmp 0x140005a37
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000671c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006766
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006766
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006766
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006766
cmp dword [rcx + 0x84], 0xe
jbe 0x140006766
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006768
xor al, al
add rsp, 0x28
ret
Function at 0x180002350
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rbp, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800023f7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800023f7
mov r11d, dword [rbx + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0x3f88a188
lea rdx, [r11 + r9*4]
mov ecx, dword [rdx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1800023f2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800023d0
cmp r8d, 0x8c9ac8d6
je 0x1800023fc
test r9d, r9d
jne 0x1800023b0
mov rax, qword [rax]
jmp 0x180002380
mov ecx, dword [rbx + 0x24]
mov edx, dword [rbx + 0x1c]
add rcx, r10
add rdx, r10
movzx ecx, word [rcx + r9*2]
mov eax, dword [rdx + rcx*4]
mov rcx, rbp
add rax, r10
call rax
mov rcx, 0xffffffffffffffff
lea rsi, [rax + 1]
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.180011a50
mov rcx, qword gs:[0x60]
mov rdi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov r11d, dword [rdx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x1800024c5
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x1800024c5
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [rbx + r9*4]
mov r8d, dword [rdx + r10]
mov edx, 0xca8df987
add r8, r10
movzx eax, byte [r8]
inc r8
test al, al
je 0x1800024c0
nop
movsx eax, al
lea r8, [r8 + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [r8 - 1]
test al, al
jne 0x1800024a0
cmp edx, 0xb862e637
je 0x1800024ca
test r9d, r9d
jne 0x180002480
mov rcx, qword [rcx]
jmp 0x180002450
mov ecx, dword [r11 + 0x24]
mov r8, rsi
add rcx, r10
mov rdx, rbp
movzx r9d, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + r9*4]
mov rcx, rdi
add rax, r10
call rax
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002510
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800025b7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800025b7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x599ffa42
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800025b2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002590
cmp r8d, 0xe479db56
je 0x1800025bc
test r9d, r9d
jne 0x180002570
mov rax, qword [rax]
jmp 0x180002540
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
movd xmm0, dword [rsp + 0x30]
mov rax, rsi
movd xmm2, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002c30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

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 r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002d07
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002d07
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xadbb559a
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180002d02
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002ce0
cmp r8d, 0x764d5c64
je 0x180002d0c
test r9d, r9d
jne 0x180002cc0
mov rax, qword [rax]
jmp 0x180002c90
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180014cb8]
addsd xmm8, qword [0x180014cb8]
movups xmm9, xmmword [0x180014bf0]
movups xmm10, xmmword [0x18001b350]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.180002350
cmp word [rax], 0
je 0x180002d86
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180002d70
xor edx, edx
add ecx, 1
je 0x180002d8a
mov rdx, rax
jmp 0x180002d8a
xor edx, edx
mov ecx, edx
mov rax, qword [0x1800177d8]
movaps xmm0, xmmword [0x180014ee0]
mov rbx, qword [0x180017858]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001b808]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x101
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x180002e38
mov rax, qword [0x180017980]
lea r8, str.Canvas.K2_DrawText
add rax, 0x13efec8
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001b808], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x260]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001083
mov edx, dword [rdi + 0x10]
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rdx
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rdi + 8]
mov rax, qword [rsp + 0x48]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001090
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400010f1
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x38], 0
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
lea rdx, [rdi + 8]
mov r9d, 0x8000
lea r8, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001100
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov rbx, rcx
mov eax, dword [rcx]
test eax, eax
je 0x140001147
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140001147
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSectionBaseAddress]
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 0x14000114c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x140001154
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
lea rdx, [rax + 8]
mov rbp, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
js 0x1400011d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 4]
call fcn.140001c1c
test rax, rax
je 0x1400011c2
mov rbx, qword [rax + 0x30]
mov edi, dword [rax + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rax, qword [rbp + 0x208]
mov qword [rax], rbx
mov rax, qword [rbp + 0x210]
mov dword [rax], edi
jmp 0x1400011cd
mov esi, 0xc0000225
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400011f0
Capabilities:
Allocate or change rwx memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x1400012a8
cmp qword [rcx + 8], 0
je 0x1400012a8
cmp dword [rcx + 0x10], 0
je 0x1400012a8
cmp qword [rcx + 0x18], 0
je 0x1400012a8
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001245
mov eax, 0xc0000225
jmp 0x1400012ad
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 8]
or rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwProtectVirtualMemory
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
test edi, edi
js 0x140001299
mov rdx, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x40]
mov dword [rdx], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x1400012ad
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400012b8
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [rdi + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x14000141e
mov rax, qword [rdi + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x14000141e
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x14000141e
cmp rdx, rcx
ja 0x14000141e
and qword [rbp + 0x30], 0
cmp dword [rdi + 0x1c], 0
mov eax, dword [rdi]
je 0x1400013c8
test eax, eax
je 0x1400013c1
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x140001423
mov rcx, qword [rbp + 0x30]
call fcn.140001c84
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [rdi + 0x18]
xor r14d, r14d
jmp 0x1400013b8
mov rdx, qword [rdi + 0x10]
mov rcx, r15
add rdx, r14
call fcn.140001d30
test rax, rax
je 0x1400013c1
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rsi
sub rdx, rcx
mov rcx, rax
cmp rdx, rsi
cmovb r8, rdx
mov rdx, qword [rdi + 8]
add rdx, r14
call fcn.140001d0c
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rsi, rax
add r14, rax
test ebx, ebx
jne 0x1400013bd
test rax, rax
je 0x1400013bd
test rsi, rsi
jne 0x14000135c
mov eax, ebx
jmp 0x140001423
mov eax, 0xc0000001
jmp 0x140001423
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400013bd
and qword [rbp + 0x38], 0
mov ebx, dword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rdi + 8]
mov r8, rax
mov rdx, qword [rdi + 0x10]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400013bd
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001438
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [rdi + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x14000159e
mov rax, qword [rdi + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x14000159e
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x14000159e
cmp rdx, rcx
ja 0x14000159e
and qword [rbp + 0x30], 0
cmp dword [rdi + 0x1c], 0
mov eax, dword [rdi]
je 0x140001548
test eax, eax
je 0x140001541
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x1400015a3
mov rcx, qword [rbp + 0x30]
call fcn.140001c84
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [rdi + 0x18]
xor r14d, r14d
jmp 0x140001538
mov rdx, qword [rdi + 0x10]
mov rcx, r15
add rdx, r14
call fcn.140001d30
test rax, rax
je 0x140001541
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rsi
sub rdx, rcx
mov rcx, rax
cmp rdx, rsi
cmovb r8, rdx
mov rdx, qword [rdi + 8]
add rdx, r14
call fcn.140001eb8
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rsi, rax
add r14, rax
test ebx, ebx
jne 0x14000153d
test rax, rax
je 0x14000153d
test rsi, rsi
jne 0x1400014dc
mov eax, ebx
jmp 0x1400015a3
mov eax, 0xc0000001
jmp 0x1400015a3
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000153d
and qword [rbp + 0x38], 0
mov ebx, dword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rdi + 8]
mov rcx, rax
mov r8, qword [rbp + 0x30]
lea rax, [rbp + 0x38]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14000153d
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400015b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov r14, rdx
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400016a2
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140001be0
mov esi, eax
test eax, eax
jne 0x140001628
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400016a2
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140002100
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000168d
cmp esi, dword [rbp + 0x20]
jne 0x14000168d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rdi + 8]
mov rax, qword [rax + rdi]
jmp 0x1400016a4
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140001be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140001c12
cmp eax, 0x80000005
je 0x140001c12
xor eax, eax
jmp 0x140001c16
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140001f2c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov qword [rax - 0x28], rcx
mov rbp, rdx
mov dword [rax - 0x38], 0x30
xorps xmm0, xmm0
mov dword [rax - 0x20], 0x240
xor ebx, ebx
lea r8, [rax - 0x38]
mov edx, 0xf003f
mov qword [rax - 0x30], rbx
lea rcx, [rax + 8]
mov edi, r9d
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140001fb7
mov eax, dword [rsp + 0x90]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
shr ebx, 0x1f
xor bl, 1
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400111db
Capabilities:
Terminate process

Disassembly:
jmp 0x140014db0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011258
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012bc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012be0
xor al, al
jmp 0x140012c61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012bf3
xor al, al
jmp 0x140012c61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012c1d
xor al, al
jmp 0x140012c61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c31
xor al, al
jmp 0x140012c61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012c43
xor al, al
jmp 0x140012c61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012c5f
xor al, al
jmp 0x140012c61
mov al, 1
add rsp, 0x38
ret