joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800527fc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180052860
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18005284e
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180052847
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005281b
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18006e448]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180052870
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18006e6b0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800528a6
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800528dc
mov eax, 0xa
jmp 0x18005296b
test esi, esi
je 0x1800528fe
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005291f
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005291f
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180052919
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005291f
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180052c50
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180052c67
cmp r8b, 0x90
je 0x180052c67
cmp r8b, 0xcc
jne 0x180052c89
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180052c85
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180052c89
add edx, r10d
cmp edx, r9d
jb 0x180052c75
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180052ff0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18005303a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18006e6a8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x180053073
cmp rbx, r14
jb 0x180053070
cmp rbx, r12
jae 0x180053070
cmp qword [rbx + 8], rsi
jne 0x1800531d5
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18005305c
mov r15, rdi
cmp rdi, r14
jb 0x18005318f
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800530bf
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800530f9
cmp dword [rbp - 0x10], 0x10000
je 0x1800530c9
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800530f9
sub r15, r13
cmp r15, r14
jae 0x180053095
jmp 0x1800530f9
test r15, r15
je 0x1800530f9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005319a
cmp r15, r14
jae 0x180053084
test rbx, rbx
jmp 0x18005318d
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800531d5
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800531d5
cmp dword [rbp - 0x10], 0x10000
je 0x180053168
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x180053125
jmp 0x1800531d5
test rdi, rdi
je 0x1800531d5
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005319a
cmp rdi, r12
jbe 0x180053101
jmp 0x1800531d5
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800531a6
mov rax, qword [0x18006e6a8]
mov qword [rbx], rax
mov qword [0x18006e6a8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140004050
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400040f0
jmp 0x1400040df
jae 0x1400041b0
cmp r8, 0x201
jae 0x1400040f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004148
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000411f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001a310
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004171
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004218
mov r8d, r14d
cmp r15, r8
jne 0x1400040d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004245
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400040df
jmp 0x1400040f0
cmp rsi, r8
jb 0x14000425f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400061a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004201
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400018d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400041e9
jmp 0x140004201
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ad20
jmp 0x140004274
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b170
ud2
Function at 0x14000a970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001e170]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000a9b4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000aa1a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000aa51
test eax, eax
js 0x14000aa2b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000aa44
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140005ee0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002350
mov ecx, 7
int 0x29
ud2
Function at 0x140018690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001870a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140018700
cmp r11, r10
ja 0x1400187a1
cmp r10, rdx
ja 0x1400187b3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018702
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400186e0
jmp 0x140018777
ja 0x14001870a
mov r11, r10
cmp rax, r8
jne 0x1400186b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001877b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018750
mov r8, r10
sub ecx, r9d
jns 0x14001876e
jmp 0x14001877d
cmp r10, rdx
je 0x140018789
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001877d
xor al, 1
cmp r8, rdx
jne 0x140018730
jmp 0x14001877d
xor eax, eax
jmp 0x14001877d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002007b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ad20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b1f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b170
int3

Function at 0x140019d78
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c5fe0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c59ba
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c599e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5992
cmp qword [rbp - 0x10], 0
je 0x2fc4c5992
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5958
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c59bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5ac0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5ae8
mov eax, 0
jmp 0x2fc4c5b36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5b11
mov eax, 0
jmp 0x2fc4c5b36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5b31
mov eax, 0
jmp 0x2fc4c5b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rcx, [0x140008450]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
jmp 0x140018903

Function at 0x1400012f0
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
and dword [rax - 0x28], 0
mov r14d, r9d
mov ebx, r8d
mov r15, rdx
mov rbp, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x14000132f
mov ebx, dword [rsp + 0x70]
jmp 0x1400013b6
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x14000134d
mov ecx, 0x20b
cmp ax, cx
jne 0x140001326
mov rsi, qword [rdi + 0x30]
jmp 0x140001350
mov esi, dword [rdi + 0x34]
mov r8d, 5
lea r9, [rsp + 0x20]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x1400013ae
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x1400013ae
mov rdi, rbp
sub rdi, rsi
add rdi, r15
mov edx, dword [rax + 4]
test edx, edx
je 0x140001326
sub ecx, edx
lea r8, [rax + 8]
mov dword [rsp + 0x20], ecx
add edx, 0xfffffff8
mov ecx, dword [rax]
mov r9, rdi
add rcx, rbp
shr edx, 1
call fcn.1400011cc
test rax, rax
je 0x140001326
mov ecx, dword [rsp + 0x20]
test ecx, ecx
jne 0x14000137c
jmp 0x1400013b6
test byte [rdi + 0x16], 1
cmovne ebx, r14d
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400014f4
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov r14, rcx
mov rcx, rdx
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x14000168a
mov r8d, 9
lea r9, [rsp + 0x90]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rbx, rax
test rax, rax
je 0x14000168a
cmp byte [r14 + 0x58], 0
mov r12d, 0x20b
jne 0x14000161b
cmp word [rdi + 0x18], r12w
jne 0x140001567
mov rax, qword [rax]
jmp 0x140001569
mov eax, dword [rax]
test rax, rax
je 0x14000161b
and qword [rsp + 0x98], 0
lea r9, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x20], eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x14000161b
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov rcx, qword [r14]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x1400015f1
mov ecx, dword [rsp + 0x98]
mov dword [rsi + 0x202c], ecx
cmp word [rdi + 0x18], r12w
jne 0x1400015e3
mov rcx, qword [rbx]
jmp 0x1400015e5
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov dword [rax], ecx
jmp 0x140001616
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x58], rax
cmp word [rdi + 0x18], r12w
jne 0x140001609
mov rcx, qword [rbx]
jmp 0x14000160b
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov qword [rax], rcx
mov byte [r14 + 0x58], 1
movzx ecx, word [rdi + 0x18]
cmp cx, r12w
jne 0x14000162b
mov rbx, qword [rbx + 0x18]
jmp 0x14000162e
mov ebx, dword [rbx + 0xc]
cmp cx, r12w
jne 0x140001639
mov rax, qword [rbx]
jmp 0x14000163b
mov eax, dword [rbx]
test rax, rax
je 0x14000168a
cmp cx, r12w
jne 0x14000164b
mov r8, qword [rbx]
jmp 0x14000164e
mov r8d, dword [rbx]
and qword [rsp + 0x30], 0
mov r9d, 3
mov qword [rsp + 0x28], 1
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call fcn.140012900
movzx ecx, word [rdi + 0x18]
mov eax, 4
cmp cx, r12w
lea edx, [rax + 4]
cmove eax, edx
add rbx, rax
jmp 0x14000162e
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
mov r14, rdx
lea rcx, [0x1400085b0]
jmp 0x140018bd7

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rcx
mov r14, rdx
lea rcx, [0x1400085c0]
jmp 0x140018d6e
Function at 0x140001e58
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x568]
sub rsp, 0x660
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rbp + 0x550], rax
lea rcx, [0x1400086d0]
jmp 0x140018f67

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rcx
mov r15, rdx
lea rcx, [0x140008570]
jmp 0x140019645

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, rcx
mov rdi, rdx
lea rcx, [0x140008530]
jmp 0x14001993d

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rdx
test rcx, rcx
jne 0x140002af1
mov rdx, r8
mov rcx, rdi
call fcn.140002b54
jmp 0x140002b3c
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002b39
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdx, rsi
mov rcx, rdi
call fcn.140002b54
lea rcx, [rsp + 0x28]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007e50
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rdi, rcx
lea rcx, [0x1400088e0]
jmp 0x140019ac4

Function at 0x140002f0c
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
lea rcx, [0x1400088b0]
jmp 0x140019cd5

Function at 0x1400036bc
Capabilities:
Access pe header
Attach user process memory
Find process by pid
Get file attributes
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r13, rcx
mov rsi, rdx
lea rcx, [0x1400084f0]
jmp 0x14001a938
Function at 0x140004124
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
mov rdi, rcx
lea rcx, [0x140008590]
jmp 0x14001ba95

Function at 0x140005234
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov byte [rax + 0x20], r9b
mov qword [rax + 0x18], r8
mov byte [rax + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x100
mov r14, rcx
mov bl, dl
lea rcx, [0x140008890]
jmp 0x14001d69e

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [r11 - 0x48], 0
lea rdx, [r11 - 0x48]
mov rbp, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
js 0x140005948
mov rdx, qword [rbp + 0x20]
xor ecx, ecx
add rdx, 0x500
mov r8d, 0x74616731
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8, qword [rbp + 0x10]
mov rcx, rax
mov rdx, qword [rbp + 8]
mov rdi, rax
lea rbx, [rax + 0x500]
call fcn.1400080c0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
mov rax, rdi
call qword [0x140009318]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r8, qword [rbp + 0x20]
mov rdx, rbx
mov rcx, qword [rbp + 0x18]
call fcn.1400080c0
mov edx, 0x74616731
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007e50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005970
Capabilities:
Access pe header
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
lea rcx, [0x1400088f0]
jmp 0x14001e151

Function at 0x140005ba4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r15, r8
mov rdi, rdx
mov r14, rcx
lea rcx, [0x1400084c0]
jmp 0x14001e50d