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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400bc184
cmp r8d, 0xff
jne 0x1400bc0c1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400bc0ab
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xe5dd0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140098a90
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140098a90
cmp r8d, 0xfb
jne 0x1400bc0d3
lea r9, str.WILL
jmp 0x1400bc111
cmp r8d, 0xfc
jne 0x1400bc0e5
lea r9, str.WONT
jmp 0x1400bc111
cmp r8d, 0xfd
jne 0x1400bc0f7
lea r9, [0x1400e67f4]
jmp 0x1400bc111
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400bc16d
cmp r10d, 0x27
jg 0x1400bc144
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xe63f0]
test r8, r8
jne 0x1400bc154
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140098a90
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400bc12b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140098a90
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140098a90
add rsp, 0x38
ret

Function at 0x1400bc4d0
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 0x1400bc52f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140098910
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400bc060
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc6e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400bc888
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 0x1400bc745
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400bc745
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400bc745
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 0x1400bc77c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400bc7d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bc7d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bc7d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bc7d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bc7d2
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.1400bc190
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 0x1400bc834
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140098910
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400bc560
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 0x1400bc880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140098910
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400bdff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140408080]
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 0x1400be085
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 0x1400be0e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140098910
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.1400d1af0
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 0x1400be1a1
sub ecx, 1
je 0x1400be214
sub ecx, 1
je 0x1400be150
cmp ecx, 1
je 0x1400be133
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1403f1a6c]
call fcn.140098910
jmp 0x1400be214
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400bdd20
test eax, eax
je 0x1400be214
jmp 0x1400be0ba
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 0x1400be214
sub rax, rsi
cmp rax, rbp
jae 0x1400be214
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140098a90
jmp 0x1400be214
cmp r8d, 4
jle 0x1400be214
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 0x1400be214
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140098830
mov esi, eax
test eax, eax
je 0x1400be1f3
mov edx, 5
mov rcx, rbx
call fcn.1400bece0
mov eax, esi
jmp 0x1400be0ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a7110
mov rcx, r14
call fcn.1400a73f0
test eax, eax
je 0x1400be0b8
mov edx, 5
mov rcx, rbx
call fcn.1400bece0
mov eax, Ordinal_46
jmp 0x1400be0ba
Function at 0x1400d0fb0
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 [str.2._r_]
mov rdi, rax
test rax, rax
jne 0x1400d0ff2
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 0x1400d1039
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 0x1400d1092
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 0x1400d1050
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d10d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e9992]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e9993]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d10a0
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 0x1400d112c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d11b0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400d11b0
dec r8
sub rdx, 1
jne 0x1400d1196
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400d2a8c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx r8d, word [rdx]
mov rsi, rdx
mov rdx, qword [rdx + 8]
mov rdi, rcx
lea rcx, [0x0007b250]
call fcn.0005d130
xor ebx, ebx
test rdi, rdi
je 0x113a7
lea rdx, [0x0005d800]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [0x0007b238]
lea r9d, [rbx + 0x22]
mov qword [rsp + 0x30], r11
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
mov byte [rsp + 0x28], bl
and dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
js 0x113a7
mov rcx, qword [0x0007b238]
btr dword [rcx + 0x30], 7
mov rcx, qword [0x0007b238]
or dword [rcx + 0x30], 4
mov eax, 0xc0000000
mov ecx, ebx
and ecx, eax
cmp ecx, eax
je 0x1149f
lea rcx, [0x00011008]
xor edx, edx
mov qword [0x0007b240], rdi
call fcn.00012644
and qword [0x0007cb70], 0
and qword [0x0007cb50], 0
lea rax, [0x0007cb60]
lea rcx, [0x000188e4]
xor edx, edx
mov qword [0x0007cb68], rax
mov qword [0x0007cb60], rax
lea rax, [0x0007cb40]
mov qword [0x0007cb48], rax
mov qword [0x0007cb40], rax
call fcn.00012644
lea rcx, [0x0005bb4c]
lea rdx, [0x0007b650]
mov r8d, 0x208
mov rax, qword [rcx]
mov qword [rdi + 0xf0], rcx
lea rcx, [0x0007cae0]
mov qword [0x0007b648], rax
mov qword [0x0007b640], rdi
call fcn.0004f930
lea rcx, [0x0007cae0]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea r11, [0x0007b638]
xor r9d, r9d
mov qword [rsp + 0x30], r11
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rcx, qword [0x0007b638]
call qword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
lea rcx, [0x0005bad4]
xor edx, edx
call fcn.0004c570
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x117ac
Capabilities:
Register network filter via wfp api

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b8
movaps xmmword [r11 - 0x58], xmm6
mov rax, qword [0x00078100]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, qword [rsp + 0x228]
mov rbp, qword [rsp + 0x230]
mov r15, qword [0x0007b248]
or qword [r11 + 0x40], 0xffffffffffffffff
mov r14, rdx
xor edx, edx
mov r13, r8
mov rsi, rcx
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x34]
mov rdi, r9
call fcn.0005d630
and dword [rsp + 0x60], 0
xor edx, edx
lea r8d, [rdx + 0x54]
lea rcx, [rsp + 0x64]
call fcn.0005d630
and dword [rsp + 0xc0], 0
lea rcx, [rsp + 0xc4]
xor edx, edx
mov r8d, 0xc4
call fcn.0005d630
xor eax, eax
lea rdx, [rsp + 0x30]
movdqu xmm0, xmmword [r13]
mov qword [rsp + 0x28], rax
lea rax, [0x0005d870]
mov r8, rbp
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
lea rax, [0x00011f38]
mov rcx, rsi
xor r12b, r12b
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
call sub.fwpkclnt.sys_FwpsCalloutRegister0
xor edi, edi
mov esi, 0xc0220009
mov ebx, eax
cmp eax, edi
jge 0x118a5
cmp eax, esi
jne 0x11973
movdqu xmm0, xmmword [r13]
movdqu xmm1, xmmword [r14]
movdqu xmm6, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov r12b, 1
movdqu xmmword [rsp + 0x70], xmm6
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0xa0], xmm1
call sub.fwpkclnt.sys_FwpmCalloutAdd0
cmp eax, edi
mov ebx, eax
jge 0x118ef
cmp eax, esi
jne 0x11973
movdqu xmm0, xmmword [r14]
movdqu xmm1, xmmword [0x0005f430]
lea rax, [rsp + 0x238]
lea rdx, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x120], 4
mov dword [rsp + 0x140], 0x5003
movdqu xmmword [rsp + 0x100], xmm0
movdqu xmm0, xmmword [r13]
movdqu xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], edi
mov qword [rsp + 0x138], rdi
movdqu xmmword [rsp + 0x144], xmm0
movdqu xmmword [rsp + 0x110], xmm1
call sub.fwpkclnt.sys_FwpmFilterAdd0
mov ebx, eax
cmp ebx, edi
jge 0x11987
cmp r12b, dil
je 0x11987
mov ecx, dword [rbp]
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov dword [rbp], edi
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.0005cf80
movaps xmm6, xmmword [rsp + 0x1a0]
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x12644
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
mov qword [rax - 0x18], rdx
mov qword [rax - 0x20], rcx
xor ebx, ebx
lea rcx, [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rax + 0x18], rbx
mov qword [rax - 0x28], rbx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x60]
cmp eax, ebx
cmovl rcx, rbx
mov rax, rcx
add rsp, 0x40
pop rbx
ret
Function at 0x12690
Capabilities:
Check os version

Disassembly:
sub rsp, 0x178
mov rax, qword [0x00078100]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rdx, [0x0005d8c0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test rax, rax
je 0x126e9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call rax
mov r11d, dword [rsp + 0x44]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
jmp 0x1270e
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
cmp r11d, 5
jne 0x12722
cmp eax, 1
jne 0x12780
lea rax, [0x0005d8e0]
jmp 0x12787
cmp r11d, 6
jne 0x1276f
test eax, eax
jne 0x12735
lea rax, [0x0005d8f0]
jmp 0x12787
cmp eax, 1
jne 0x12753
cmp ecx, 0x1db0
je 0x1274a
cmp ecx, 0x1db1
jne 0x12780
lea rax, [0x0005d900]
jmp 0x12787
cmp eax, 2
jne 0x12761
lea rax, [0x0005d910]
jmp 0x12787
cmp eax, 3
jne 0x12780
lea rax, [0x0005d920]
jmp 0x12787
cmp r11d, 0xa
jne 0x12780
test eax, eax
lea rax, [0x0005d930]
je 0x12787
lea rax, [0x0005d940]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.0005cf80
add rsp, 0x178
ret
Function at 0x127a8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
mov rbx, qword [0x0007b240]
xor esi, esi
lea rcx, [0x0007e540]
mov byte [rax - 0x48], sil
mov qword [rax + 0x10], rsi
xor eax, eax
mov qword [rsp + 0x41], rax
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
lea rax, [0x0007e560]
xor r8d, r8d
xor edx, edx
mov edi, esi
mov qword [0x0007e570], rsi
mov qword [0x0007e568], rax
mov qword [0x0007e560], rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
mov edx, 0x75377977
mov rcx, rbx
call qword [sym.imp.NDIS.SYS_NdisAllocateGenericObject]
mov qword [0x0007b480], rax
cmp rax, rsi
je 0x1295e
lea ebx, [rsi + 2]
lea r8, [0x0007b488]
mov ecx, ebx
mov edx, ebx
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
cmp eax, esi
jl 0x1294c
lea ecx, [rsi + 0x17]
lea r8, [0x0007b490]
mov edx, ebx
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
cmp eax, esi
jl 0x1294c
mov rcx, qword [0x0007b480]
lea eax, [rsi + 0x10]
lea rdx, [rsp + 0x40]
mov word [rsp + 0x42], ax
mov byte [rsp + 0x40], 0x80
mov byte [rsp + 0x41], 1
mov byte [rsp + 0x44], sil
mov byte [rsp + 0x45], 1
mov word [rsp + 0x46], si
mov dword [rsp + 0x48], 0x49555943
mov dword [rsp + 0x4c], esi
call qword [sym.imp.NDIS.SYS_NdisAllocateNetBufferListPool]
mov qword [0x0007b498], rax
cmp rax, rsi
je 0x1294c
lea rax, [0x000129c8]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], 0x200
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x98]
cmp rcx, rsi
je 0x1294c
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [0x0007b478]
xor r9d, r9d
mov r8, qword [r8]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x1294c
lea edi, [rsi + 1]
jmp 0x12996
mov rcx, qword [0x0007b480]
cmp rcx, rsi
je 0x1295e
call qword [sym.imp.NDIS.SYS_NdisFreeGenericObject]
mov rcx, qword [0x0007b488]
cmp rcx, rsi
je 0x1296f
call sub.fwpkclnt.sys_FwpsInjectionHandleDestroy0
mov rax, qword [0x0007b498]
cmp rax, rsi
je 0x12984
mov rcx, rax
call qword [sym.imp.NDIS.SYS_NdisFreeNetBufferListPool]
mov rcx, qword [0x0007b478]
cmp rcx, rsi
je 0x12996
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x98]
cmp rcx, rsi
je 0x129a9
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x12bc4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rbx, qword [0x0007b240]
xor eax, eax
xor esi, esi
mov qword [rsp + 0x41], rax
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
lea rax, [0x0007e4e0]
lea rcx, [0x0007e500]
xor r8d, r8d
xor edx, edx
mov byte [rsp + 0x40], sil
mov qword [0x0007e4e8], rax
mov qword [0x0007e4e0], rax
mov edi, esi
mov qword [0x0007e4c0], rsi
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
mov edx, 0x69796867
mov rcx, rbx
call qword [sym.imp.NDIS.SYS_NdisAllocateGenericObject]
mov qword [0x0007e4d0], rax
cmp rax, rsi
je 0x12d5b
lea ebx, [rsi + 1]
lea ecx, [rsi + 2]
lea r8, [0x0007e518]
mov edx, ebx
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
cmp eax, esi
jl 0x12d49
mov rcx, qword [0x0007e4d0]
lea eax, [rsi + 0x10]
lea rdx, [rsp + 0x40]
mov word [rsp + 0x42], ax
mov byte [rsp + 0x40], 0x80
mov byte [rsp + 0x41], bl
mov byte [rsp + 0x44], sil
mov byte [rsp + 0x45], bl
mov word [rsp + 0x46], si
mov dword [rsp + 0x48], 0x79747965
mov dword [rsp + 0x4c], esi
call qword [sym.imp.NDIS.SYS_NdisAllocateNetBufferListPool]
mov qword [0x0007e520], rax
cmp rax, rsi
je 0x12d49
lea rax, [0x00012dc4]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], 0x200
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x98]
cmp rcx, rsi
je 0x12d49
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [0x0007e4c8]
xor r9d, r9d
mov r8, qword [r8]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x12d49
mov edi, ebx
jmp 0x12d93
mov rcx, qword [0x0007e4d0]
cmp rcx, rsi
je 0x12d5b
call qword [sym.imp.NDIS.SYS_NdisFreeGenericObject]
mov rcx, qword [0x0007e518]
cmp rcx, rsi
je 0x12d6c
call sub.fwpkclnt.sys_FwpsInjectionHandleDestroy0
mov rax, qword [0x0007e520]
cmp rax, rsi
je 0x12d81
mov rcx, rax
call qword [sym.imp.NDIS.SYS_NdisFreeNetBufferListPool]
mov rcx, qword [0x0007e4c8]
cmp rcx, rsi
je 0x12d93
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x98]
cmp rcx, rsi
je 0x12da6
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14cf4
Capabilities:
Print debug messages

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 r12
push r13
push r14
sub rsp, 0x30
xor esi, esi
mov r14, r9
mov rbp, r8
mov r12, rdx
mov rbx, rcx
cmp rcx, rsi
je 0x14da9
cmp rdx, rsi
je 0x14da9
cmp r8, rsi
je 0x14da9
cmp r9, rsi
je 0x14da9
mov r13, qword [rsp + 0x78]
cmp r13, rsi
je 0x14da9
mov rcx, rdx
call fcn.0001cfac
or rcx, 0xffffffffffffffff
lea r9, [0x0005dce0]
xor eax, eax
mov rdi, r9
mov qword [rsp + 0x28], 0x30
repne scasb al, byte [rdi]
lea rdx, [0x0001d1b0]
mov r8, r12
not rcx
dec rcx
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call fcn.0001c9bc
cmp eax, esi
jne 0x14da9
mov rcx, rbx
call fcn.0002d440
mov edi, eax
cmp eax, esi
je 0x14ddb
mov rcx, rbp
call fcn.0001ca7c
lea rcx, [0x0005dcf0]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
mov r9, r14
mov r8, rbp
mov rdx, r12
mov rcx, rbx
call fcn.00014eac
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
mov r12, qword [rsp + 0x70]
mov dword [rbx + 0x1c0], esi
mov dword [rbx + 0x20c], 1
mov dword [rbx + 0x1c4], esi
mov dword [rbx + 0x1c], 3
mov dword [rbx + 0x20], 1
mov byte [rbx + 0x27], 1
cmp r12, rsi
je 0x14e65
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
je 0x14e65
mov qword [rbx + 0x270], rcx
inc rcx
cmp rcx, rsi
je 0x14e65
call fcn.00037798
mov qword [rbx + 0x268], rax
cmp rax, rsi
je 0x14e65
mov r8, qword [rbx + 0x270]
mov rdx, r12
mov rcx, rax
call fcn.0005d130
mov rdx, qword [rbx + 0x270]
mov rax, qword [rbx + 0x268]
mov byte [rdx + rax], sil
lea rax, [0x0001ceb0]
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x28], rax
lea rax, [0x00013bec]
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x38], rax
lea rax, [0x00013d84]
mov qword [rbx + 0x68], r13
mov qword [rbx + 0x70], r13
mov esi, 1
mov qword [rbx + 0x40], rax
jmp 0x14dba