joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aa120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1800eb080]
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 0x1800aa1b5
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 0x1800aa216
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180084670
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.1800bdca0
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 0x1800aa2d1
sub ecx, 1
je 0x1800aa344
sub ecx, 1
je 0x1800aa280
cmp ecx, 1
je 0x1800aa263
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800d1ae4]
call fcn.180084670
jmp 0x1800aa344
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800a9e50
test eax, eax
je 0x1800aa344
jmp 0x1800aa1ea
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 0x1800aa344
sub rax, rsi
cmp rax, rbp
jae 0x1800aa344
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1800847f0
jmp 0x1800aa344
cmp r8d, 4
jle 0x1800aa344
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 0x1800aa344
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180084590
mov esi, eax
test eax, eax
je 0x1800aa323
mov edx, 5
mov rcx, rbx
call fcn.1800aae10
mov eax, esi
jmp 0x1800aa1ea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.180093070
mov rcx, r14
call fcn.180093350
test eax, eax
je 0x1800aa1e8
mov edx, 5
mov rcx, rbx
call fcn.1800aae10
mov eax, Ordinal_45
jmp 0x1800aa1ea
Function at 0x1800bd0e0
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 [0x1800eb020]
mov rdi, rax
test rax, rax
jne 0x1800bd122
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 0x1800bd169
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 0x1800bd1c2
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 0x1800bd180
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800bd203
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800d132b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800d132c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800bd1d0
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 0x1800bd220
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 0x1800bd2a4
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 0x1800bd2a4
dec r8
sub rdx, 1
jne 0x1800bd28a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18000ddfc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, edx
mov rbx, rcx
test rcx, rcx
je 0x18000de6c
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov edi, dword [rax + rcx + 0x88]
movsxd r12, dword [rax + rcx + 0x8c]
add rdi, rcx
mov ebp, dword [rdi + 0x20]
mov esi, dword [rdi + 0x24]
add rbp, rcx
add rsi, rcx
cmp dword [rdi + 0x18], r14d
jbe 0x18000de6c
mov ecx, dword [rbp]
or edx, 0xffffffff
add rcx, rbx
call fcn.18000d320
cmp eax, r15d
je 0x18000de87
inc r14d
add rbp, 4
add rsi, 2
cmp r14d, dword [rdi + 0x18]
jb 0x18000de48
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rsi]
test eax, eax
js 0x18000de6c
mov ecx, dword [rdi + 0x1c]
add rcx, rbx
mov r8d, dword [rcx + rax*4]
add r8, rbx
cmp r8, rdi
jbe 0x18000df51
lea rax, [rdi + r12]
cmp r8, rax
jae 0x18000df51
mov al, byte [r8]
xor edx, edx
cmp al, 0x2e
je 0x18000ded4
lea r9, [rsp + 0x20]
mov rcx, r8
sub r9, r8
mov byte [r9 + rcx], al
inc rcx
inc edx
mov al, byte [rcx]
cmp al, 0x2e
jne 0x18000dec5
lea ecx, [rdx + 1]
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0x2e
movsxd rax, ecx
movsxd rbx, ecx
mov byte [rsp + rax + 0x20], 0x64
inc ecx
add rbx, r8
movsxd rax, ecx
mov byte [rsp + rax + 0x20], 0x6c
lea eax, [rcx + 1]
xor ecx, ecx
cmp byte [rbx], 0x23
cdqe
mov dword [rsp + 0x70], ecx
mov word [rsp + rax + 0x20], 0x6c
jne 0x18000df35
inc rbx
mov al, byte [rbx]
test al, al
je 0x18000df30
lea ecx, [rcx + rcx*4]
movsx eax, al
inc rbx
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
mov al, byte [rbx]
test al, al
jne 0x18000df17
mov dword [rsp + 0x70], ecx
lea rbx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [0x180020f48]
mov rdx, rbx
mov rcx, rax
call qword [0x180020f40]
jmp 0x18000de6e
mov rax, r8
jmp 0x18000de6e

Function at 0x18000df5c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x18000dff6
mov r15d, 0x3f
xor r14d, r14d
cmp word [rbx + 0x58], r15w
jae 0x18000dfee
mov r8, qword [rbx + 0x60]
mov esi, r14d
mov rcx, r14
cmp word [r8], r14w
je 0x18000dfcf
movsxd rax, esi
cmp rax, r15
jae 0x18000dfcf
mov al, byte [r8 + rcx*2]
inc rcx
inc esi
mov byte [rsp + rcx + 0x1f], al
mov r8, qword [rbx + 0x60]
cmp word [r8 + rcx*2], r14w
jne 0x18000dfaf
mov byte [rsp + rcx + 0x20], r14b
lea rcx, [rsp + 0x20]
call fcn.18000dcd8
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18000d320
cmp ebp, eax
je 0x18000e012
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x18000df98
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x18000dff8
Function at 0x18000eb4c
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
and dword [0x180023138], 0
mov edx, 0xd26f2a4
xor ecx, ecx
call fcn.18000e0ec
call rax
lea rcx, [0x18001f7e0]
xor dword [rcx], eax
lea rdx, [0x18001f824]
add rcx, 4
cmp rcx, rdx
jl 0x18000eb6c
add rsp, 0x28
ret

Function at 0x180010908
Capabilities:
Encode data using xor

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, 0x20
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
call fcn.18000d568
movsxd r14, eax
mov rcx, r14
call fcn.18000c828
cmp byte [rdi], 0
mov rcx, rbp
mov rsi, rax
je 0x180010964
mov rdx, rax
sub rdx, rdi
mov al, byte [rdi]
xor al, byte [rcx]
inc rcx
mov byte [rdx + rdi], al
inc rdi
cmp byte [rcx], 0
cmove rcx, rbp
cmp byte [rdi], 0
jne 0x18001094b
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call fcn.1800109c0
mov rcx, rsi
call fcn.18000ca90
movsxd rdx, dword [rbx + 8]
mov rax, rdx
test edx, edx
jle 0x180010999
mov rcx, qword [rbx]
cmp byte [rcx + rax - 1], 0x3d
jne 0x180010999
dec rax
dec edx
test rax, rax
jg 0x180010988
mov rcx, rbx
call fcn.18000d89c
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x18001321c
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbp, dword [rcx + 0x3c]
mov r13d, edx
xor edx, edx
add rbp, rcx
mov r12, rcx
mov r15d, edx
movzx eax, word [rbp + 0x14]
cmp dx, word [rbp + 6]
jae 0x180013341
lea r14, [rbp + 0x3c]
add r14, rax
mov ecx, dword [r14 - 0x14]
test r13d, r13d
jne 0x1800132fe
mov eax, dword [r14]
lea esi, [r13 + 1]
and eax, 0xe0000000
cmp eax, 0x20000000
je 0x1800132d2
cmp eax, 0x40000000
je 0x1800132cb
cmp eax, 0x60000000
je 0x1800132c4
cmp eax, 0x80000000
je 0x1800132bd
cmp eax, 0xa0000000
je 0x1800132b6
cmp eax, 0xc0000000
je 0x1800132af
cmp eax, 0xe0000000
jne 0x1800132d7
lea esi, [r13 + 0x40]
jmp 0x1800132d7
mov esi, 4
jmp 0x1800132d7
mov esi, 0x80
jmp 0x1800132d7
mov esi, 8
jmp 0x1800132d7
mov esi, 0x20
jmp 0x1800132d7
mov esi, 2
jmp 0x1800132d7
mov esi, 0x10
test dword [r14], 0x4000000
je 0x1800132e4
bts esi, 9
test ecx, ecx
jne 0x180013305
test byte [r14], 0x40
je 0x1800132f3
mov ecx, dword [rbp + 0x20]
jmp 0x180013301
test byte [r14], 0x80
je 0x18001332d
mov ecx, dword [rbp + 0x24]
jmp 0x180013301
mov esi, r13d
test ecx, ecx
je 0x18001332d
mov edi, dword [r14 - 0x18]
mov ebx, dword [r14 - 0x1c]
mov edx, 0x72d1864
xor ecx, ecx
add rdi, r12
call fcn.18000e0ec
lea r9, [rsp + 0x50]
mov r8d, esi
mov edx, ebx
mov rcx, rdi
call rax
xor edx, edx
movzx eax, word [rbp + 6]
inc r15d
add r14, 0x28
cmp r15d, eax
jl 0x18001325f
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180014e48
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movsxd rbx, dword [rcx + 0x3c]
mov rbp, rcx
mov r14, r9
mov ecx, dword [rbx + rcx + 0x50]
mov r15, r8
mov rdi, rdx
mov qword [rdx], rcx
add rcx, 0x100
call fcn.18000c828
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call fcn.18000ca20
mov ecx, dword [rbx + rbp + 0xb0]
mov r9d, dword [rbx + rbp + 0xb4]
mov r8, r15
add rcx, rbp
mov rdx, rsi
sub r8, rbp
call fcn.18001382c
lea rcx, [rsp + 0x50]
mov edx, 4
call fcn.18000eb08
xor r8d, r8d
test qword [rdi], 0xfffffffffffffffc
jbe 0x180014eee
mov rdx, rsi
mov eax, dword [rsp + 0x50]
inc r8d
xor dword [rdx], eax
mov rcx, qword [rdi]
movsxd rax, r8d
shr rcx, 2
lea rdx, [rdx + 4]
cmp rax, rcx
jb 0x180014ed2
mov rax, r15
mov rdx, r15
sub rax, rbp
add qword [r14], rax
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x50]
mov r9, qword [r14]
mov r8d, dword [rdi]
add rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180014ccc
mov rdx, qword [rdi]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rdx, r15
cdqe
mov qword [r14], rdx
add qword [rdi], rax
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1800152fc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [0x18001f460]
mov r8d, 0xc8
mov rdi, rcx
call fcn.18000c9c0
xor r9d, r9d
mov r8d, r9d
mov ecx, r9d
mov rdx, qword [rdi]
mov al, byte [rdx + r8]
inc r8
xor byte [rdx + rcx + 2], al
cmp r8, 2
cmove r8, r9
inc rcx
cmp rcx, 0xc6
jl 0x180015324
mov edx, dword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdi
movzx ebx, byte [rax + 2]
lea r8d, [rdx - 3]
sub edx, r8d
call fcn.18000ce08
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000cde8
Function at 0x18001aa24
Capabilities:
Create pipe
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
xor eax, eax
xor r15d, r15d
mov ebx, r8d
mov rsi, rcx
mov rdi, rdx
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x29]
xor edx, edx
mov dword [rbp - 0x61], 0x18
mov dword [rbp - 0x51], 1
mov qword [rbp - 0x59], r15
mov qword [rbp + 0x7f], r15
mov qword [rbp - 0x69], r15
call fcn.18000cdc8
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x39], rcx
lea rcx, [rbp + 0x7f]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
xor r9d, r9d
mov dword [rbp - 0x29], 0x68
mov dword [rbp + 0x13], 1
mov word [rbp + 0x17], r15w
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x18001aac4
lea eax, [r15 + 1]
jmp 0x18001ab50
mov rax, qword [rbp - 0x69]
bts dword [rbp + 0x13], 8
xor r9d, r9d
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x2f], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18001ab3a
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
mov r9d, ebx
mov r8, rdi
call fcn.18001ab68
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x18001ab68
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r14
sub rsp, 0x440
mov rdi, rdx
lea rax, [rsp + 0x30]
mov ebp, r9d
mov r14, r8
mov rsi, rcx
xor ebx, ebx
and qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18001ac6c
mov r13d, 0x400
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18001ac11
movsxd rax, ecx
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
cmp rax, r13
cmova ecx, r13d
and qword [rsp + 0x20], 0
mov r8d, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
mov edx, ebp
mov rcx, r14
call fcn.180018964
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x34]
mov dword [rsp + 0x30], ecx
jne 0x18001abc7
jmp 0x18001ac43
test ebx, ebx
jne 0x18001ac2f
lea edx, [rbx + 0x64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18001ac43
mov ebx, 0xa
jmp 0x18001ac43
mov eax, ebx
dec ebx
cmp eax, 1
je 0x18001ac6c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x18001abbf
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [r11 - 0x50], rdx
and qword [r11 - 0x68], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
and qword [r11 - 0x58], 0
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000106d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000106d
mov eax, 0xc0000001
jmp 0x1400010f1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140002580
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400010e4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002100
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret

Function at 0x1400013f8
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x1400028d0]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x70], 0
lea rax, [0x140001200]
mov qword [rbx + 0x70], rax
lea rdx, [0x1400028e0]
lea rax, [0x140001200]
xorps xmm0, xmm0
mov qword [rbx + 0x80], rax
lea rcx, [rsp + 0x40]
lea rax, [0x140001220]
xorps xmm1, xmm1
mov qword [rbx + 0xe0], rax
lea rax, [0x140001520]
mov qword [rbx + 0x68], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x1400014ab
lea rcx, [0x140002900]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x140001512
lea rdx, [0x140002890]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x1400014ec
lea rcx, [0x140002920]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1400014a7
mov rcx, rbx
call fcn.140001844
test eax, eax
js 0x140001512
mov rcx, rbx
call fcn.1400019ac
test eax, eax
js 0x140001512
lea rcx, [0x140002940]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001564
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400015bf
lea rcx, [0x1400026d0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400015fd
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002100
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140001618
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor ebx, ebx
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000167a
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000167a
xor eax, eax
jmp 0x140001733
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rdi, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov rdx, qword [rdi + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001718
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x14000169d
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov ecx, dword [rax + 0xc]
mov esi, dword [rcx + 0x14]
mov edi, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov edx, dword [rdi + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001713
mov edi, dword [rdi]
cmp rdi, rsi
je 0x14000171c
jmp 0x1400016e1
mov ebx, dword [rdi + 0x10]
jmp 0x14000171c
mov rbx, qword [rdi + 0x20]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002100
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret