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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400fa984
cmp r8d, 0xff
jne 0x1400fa8c1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400fa8ab
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x145af0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400d6ec0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400d6ec0
cmp r8d, 0xfb
jne 0x1400fa8d3
lea r9, str.WILL
jmp 0x1400fa911
cmp r8d, 0xfc
jne 0x1400fa8e5
lea r9, str.WONT
jmp 0x1400fa911
cmp r8d, 0xfd
jne 0x1400fa8f7
lea r9, [0x140146514]
jmp 0x1400fa911
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400fa96d
cmp r10d, 0x27
jg 0x1400fa944
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x146110]
test r8, r8
jne 0x1400fa954
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400d6ec0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400fa92b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400d6ec0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400d6ec0
add rsp, 0x38
ret

Function at 0x1400facd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400fad2f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400d6d40
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400fa860
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400faee0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400fb088
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400faf45
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400faf45
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400faf45
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400faf7c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400fafd2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fafd2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fafd2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fafd2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fafd2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400fa990
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400fb034
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400d6d40
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400fad60
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400fb080
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400d6d40
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400fc7f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14016bc40]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400fc885
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400fc8e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400d6d40
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14010fcc0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400fc9a1
sub ecx, 1
je 0x1400fca14
sub ecx, 1
je 0x1400fc950
cmp ecx, 1
je 0x1400fc933
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140143fa0]
call fcn.1400d6d40
jmp 0x1400fca14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400fc520
test eax, eax
je 0x1400fca14
jmp 0x1400fc8ba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400fca14
sub rax, rsi
cmp rax, rbp
jae 0x1400fca14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400d6ec0
jmp 0x1400fca14
cmp r8d, 4
jle 0x1400fca14
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400fca14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400d6c60
mov esi, eax
test eax, eax
je 0x1400fc9f3
mov edx, 5
mov rcx, rbx
call fcn.1400fd4e0
mov eax, esi
jmp 0x1400fc8ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400e5740
mov rcx, r14
call fcn.1400e5a20
test eax, eax
je 0x1400fc8b8
mov edx, 5
mov rcx, rbx
call fcn.1400fd4e0
mov eax, Ordinal_45
jmp 0x1400fc8ba
Function at 0x14010f7b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14010f7f2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14010f839
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14010f892
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14010f850
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14010f8d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14014967b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14014967c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14010f8a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140110c50
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
and dword [rsp + 0x40], 0
cmp byte [0x0001f193], 0
jne 0x11a5f
xor eax, eax
jmp 0x11c34
xor edx, edx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov byte [0x0001f193], 0
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x11a9d
mov ebx, 0xc00000e5
mov dword [0x000321f0], 0xc00000e5
lea rax, [0x00017750]
jmp 0x11c2b
mov edx, dword [rsp + 0x40]
mov ecx, 1
call fcn.0001297c
mov rdi, rax
test rax, rax
je 0x11b02
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x11ae4
mov ebx, 0xc00000e5
mov dword [0x000321f0], 0xc00000e5
lea rax, [0x00017750]
jmp 0x11b18
mov eax, dword [rdi]
xor ecx, ecx
mov r8d, 0x484f4f4b
lea edx, [rax + rax*8]
shl edx, 5
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
jne 0x11b3b
lea rax, [0x000177a0]
mov dword [0x000321f0], 0xc0000017
mov ebx, 0xc0000017
mov qword [0x00023978], rax
test rdi, rdi
je 0x11c32
mov edx, 0x484f4f4b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x11c32
cmp dword [rdi], 0
jbe 0x11bb1
mov esi, 1
lea rbx, [rax + 0x10]
lea rbp, [rdi + 0x20]
mov rax, qword [rbp - 8]
lea rdx, [rbp + 0x10]
mov r8d, 0x100
mov qword [rbx - 8], rax
mov eax, dword [rbp]
mov dword [rbx], eax
movsx rax, word [rbp + 0xe]
lea rcx, [rax + rbp + 0x10]
mov qword [rbx + 0x108], rcx
lea rcx, [rbx + 4]
call fcn.00017080
cmp esi, dword [rdi]
jae 0x11b95
mov eax, esi
lea rcx, [rax + rax*8]
shl rcx, 5
add rcx, r12
mov qword [rbx - 0x10], rcx
jmp 0x11b9a
and qword [rbx - 0x10], 0
inc esi
add rbp, 0x128
add rbx, 0x120
lea eax, [rsi - 1]
cmp eax, dword [rdi]
jb 0x11b4d
lea rcx, [0x00034020]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rcx, qword [0x000321e8]
mov byte [0x00034028], al
test rcx, rcx
je 0x11bdb
mov edx, 0x484f4f4b
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x000321d8]
test rcx, rcx
je 0x11bf2
mov edx, 0x484f4f4b
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rdi]
mov dl, byte [0x00034028]
lea rcx, [0x00034020]
mov dword [0x000321e0], eax
mov qword [0x000321e8], rdi
mov qword [0x000321d8], r12
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
and dword [0x000321f0], 0
xor ebx, ebx
lea rax, [0x000174e0]
mov qword [0x00023978], rax
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x14cd0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, sym.imp.FLTMGR.SYS_FltQueryInformationFile
mov r8d, 0x64425349
mov ecx, 1
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
je 0x14d6e
jmp 0x14d35
mov edx, 0x64425349
mov rcx, rdi
add ebp, ebp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdx, rbp
mov ecx, 1
mov r8d, 0x64425349
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
cmp rax, rbx
je 0x14d51
xor r9d, r9d
mov r8d, ebp
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x14d09
cmp esi, ebx
jge 0x14d6b
cmp rdi, rbx
je 0x14d6b
mov edx, 0x64425349
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, rbx
mov rbx, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x3b834
Capabilities:
Start minifilter driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x00032688]
mov rdi, qword [rax + 0x40]
cmp byte [rdi + 0x161], 0
jne 0x3b8c7
test cl, cl
je 0x3b862
or ecx, 0xffffffff
call fcn.00042578
test eax, eax
js 0x3b8c9
mov rcx, qword [rdi + 0xf0]
call sub.FLTMGR.SYS_FltStartFiltering
mov ebx, eax
test eax, eax
jns 0x3b8a4
cmp eax, 0xc000000d
je 0x3b8a4
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x0004a1b0]
lea r8, [0x0004aa90]
lea ecx, [rdx + 0x65]
mov dword [rsp + 0x20], 0xc1
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x3b8c9
mov edx, 3
lea r9, [0x0004a1b0]
lea r8, [0x0004aad0]
lea ecx, [rdx + 0x62]
mov byte [rdi + 0x161], 1
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x40c3c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
and qword [r11 - 0x48], 0
and qword [r11 + 8], 0
mov dword [rsp + 0x40], 0x30
and qword [r11 - 0x30], 0
mov dword [rsp + 0x58], 0x200
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
and qword [r11 - 0x10], 0
lea rax, [0x00041650]
mov qword [r11 - 0x50], rax
and qword [r11 - 0x58], 0
lea r8, [r11 - 0x38]
lea rcx, [r11 + 8]
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x40cc7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 3
lea r9, [0x0004a1b0]
lea ecx, [rdx + 0x62]
lea r8, [0x0004b240]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x40cec
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x0004a1b0]
lea r8, [0x0004b270]
lea ecx, [rdx + 0x65]
mov dword [rsp + 0x20], 0x23
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
add rsp, 0x70
pop rbx
ret

Function at 0x42738
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov ebp, edx
mov esi, ecx
lea rdx, [rax - 0x18]
mov ecx, ecx
mov edi, r9d
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x42798
mov rax, qword [0x00032688]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rax + 0x40]
cmp rcx, qword [r9]
jne 0x42792
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r9d, 4
jmp 0x427db
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movzx eax, dil
test dil, dil
je 0x427bb
test eax, eax
jle 0x427af
cmp eax, 2
jle 0x427b6
cmp eax, 6
jle 0x427bb
mov eax, 0xc00000f2
jmp 0x427f4
mov r9d, edi
jmp 0x427db
lea r8, [rsp + 0x68]
mov edx, 0x1001
mov rcx, rbx
call fcn.00043a78
test eax, eax
js 0x427d8
mov r9d, dword [rsp + 0x68]
jmp 0x427db
xor r9d, r9d
mov r8, rbx
mov edx, ebp
mov ecx, esi
mov dword [rsp + 0x28], 0x1001
mov byte [rsp + 0x20], 1
call fcn.000425f4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x42c18
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rax, qword [0x00032688]
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rdi, qword [rax + 0x40]
mov edx, 0x5c
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
xor r12d, r12d
mov rbx, rax
cmp rax, r12
je 0x42d06
add rbx, 2
lea r8d, [r12 + 0xc]
lea rdx, [0x00017e40]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_wcsncmp]
cmp eax, r12d
je 0x42c8e
lea r8d, [r12 + 0xd]
lea rdx, [0x00017e60]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_wcsncmp]
cmp eax, r12d
jne 0x42d06
lea rcx, [rdi + 0x190]
call sub.FLTMGR.SYS_FltAcquirePushLockShared
movzx ebx, word [rbp + 0x14]
cmp bx, r12w
jbe 0x42cfa
movzx esi, bx
shl rsi, 2
mov eax, 0xffff
mov qword [rsp + 0x40], r12
sub rsi, 4
add bx, ax
mov rax, qword [rbp + 0x28]
lea rdx, [rsp + 0x40]
mov ecx, dword [rsi + rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, r12d
jl 0x42cf4
mov rcx, qword [rsp + 0x40]
cmp byte [rcx + 0x67a], r12b
jne 0x42cee
lock or dword [rcx + 0x67a], 0x61
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp bx, r12w
ja 0x42cab
lea rcx, [rdi + 0x190]
call sub.FLTMGR.SYS_FltReleasePushLock
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x4556c
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov r12, r8
mov r13, rdx
mov r14, rcx
xor ebx, ebx
mov rsi, rbx
mov qword [rsp + 0x78], rbx
mov qword [rax + 0x18], rbx
mov dword [r8], ebx
xor r9d, r9d
mov r8d, 0x73534649
lea rdx, [rax - 0x88]
call fcn.00047310
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x457a0
mov dword [rsp + 0xb8], 0x30
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0xd0], 0x240
lea rax, [rsp + 0x80]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rbx
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0xb8]
mov edx, 0x80100000
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x4574c
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x4574c
cmp dword [rsp + 0x98], 0xa00000
jbe 0x456c6
mov edi, 0xc00000bb
mov dword [rsp + 0x70], edi
jmp 0x4574c
mov edx, dword [rsp + 0x98]
mov ecx, 1
mov r8d, 0x64534649
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov qword [rsp + 0x78], rax
cmp rax, rbx
jne 0x456f6
mov edi, 0xc000009a
mov dword [rsp + 0x70], edi
jmp 0x4574c
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x4574c
mov eax, dword [rsp + 0x98]
mov dword [r12], eax
mov qword [r13], rsi
cmp edi, ebx
jge 0x45763
cmp rsi, rbx
je 0x45763
mov edx, 0x64534649
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x120]
cmp rcx, rbx
je 0x4577e
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x120], rbx
mov rax, qword [r14 + 8]
cmp qword [rsp + 0x88], rax
je 0x4579e
mov edx, 0x73534649
lea rcx, [rsp + 0x80]
call fcn.00044fd0
mov eax, edi
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x45ff0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx r11d, word [rsp + 0x60]
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x60]
neg r11w
lea r8, [rdi + 0x218]
sbb rdx, rdx
xor r9d, r9d
and rdx, rax
mov al, byte [rdi]
mov byte [rsp + 0x50], al
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x1005e
mov qword [rsp + 0x28], r8
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x46084
mov ecx, dword [rdi + 0x254]
mov word [rcx + rdi + 0x276], ax
jmp 0x460b6
cmp ebx, 0x80000006
je 0x460b6
mov edx, 3
lea rax, [rsp + 0x60]
lea r9, [0x0004a1b0]
lea r8, [0x0004c340]
lea ecx, [rdx + 0x62]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x46788
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x467ab
mov rcx, qword [rsp + 0x48]
call fcn.00046320
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x467bb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x2ed
lea r9, [0x0004a1b0]
lea r8, [0x0004c5f0]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x467f0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
cmp ecx, 0xc
jae 0x46818
mov rcx, rdx
call fcn.00047758
jmp 0x46885
mov ecx, ecx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x46885
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.000478c4
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x46862
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call fcn.00047e34
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x46862
mov rcx, rdi
call fcn.00047cf4
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x46878
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x46898
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rdx
mov r12d, ecx
and qword [rax - 0x30], 0
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
cmp ecx, 0xc
jae 0x468d4
mov rcx, rdx
call fcn.00047758
jmp 0x469f7
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x98]
call fcn.000477bc
test eax, eax
js 0x469f7
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x46915
mov rdx, rsi
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rdx, rdi
mov r13, qword [rsp + 0x48]
mov rcx, qword [r13 + 0x18]
call fcn.00047984
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x46952
mov dword [rsp + 0x20], 0x73505349
mov r9, rdi
mov r8b, 1
mov edx, 0x60
mov rcx, qword [r13 + 0x20]
call fcn.00047bf0
mov ebx, eax
mov dword [rsp + 0x40], eax
jmp 0x46993
test rsi, rsi
je 0x469bd
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x75505349
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
js 0x469cb
mov rcx, rdi
call fcn.00047cf4
jmp 0x469f5
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x46b
lea r9, [0x0004a1b0]
lea r8, [0x0004c690]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret