Function at 0x14001941c
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140118a50]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, qword [0x14011a1c8]
xor eax, eax
mov dword [rbp + 0x10], eax
lea rcx, str.AgentService.NotificationListener::Start:_Entry
call fcn.14000445c
mov dword [rbp + 0x10], 1
lea rbx, [rdi + 0x70]
lea r14, [rdi + 0x98]
lea rcx, str.AgentService.FilterConnection::Initialize:_Entry
call fcn.140004370
mov rcx, qword [r14]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x1400194ef
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x1400197b6
cmp qword [rbx + 0x18], 8
jb 0x1400194b9
mov rbx, qword [rbx]
mov r9d, 4
mov qword [rsp + 0x28], r14
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.FLTLIB.DLL_FilterConnectCommunicationPort]
mov ebx, eax
test eax, eax
jns 0x1400194f4
mov edx, eax
lea rcx, str.AgentService.FilterConnection::Initialize:_Failed_to_connect__status__0x_X
call fcn.1400043a0
jmp 0x1400194f4
mov ebx, 0x800700b7
mov edx, ebx
lea rcx, str.AgentService.FilterConnection::Initialize:_Exit__retStatus__0x_X
call fcn.1400192d0
test ebx, ebx
js 0x140019723
xor r12d, r12d
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x38]
lea esi, [rax + rax]
lea r13d, [rsi + rsi*4]
mov dword [rsp + 0x30], r13d
mov rcx, qword [r14]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
je 0x140019785
mov r9d, esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [rdi + 8], rax
test rax, rax
je 0x140019706
mov eax, dword [rdi + 0x68]
add eax, 0x10
mov dword [rdi + 0x10], eax
and qword [rsp + 0x38], r12
mov r14d, esi
lea r15, [rdi + 0x18]
mov rax, qword [r15 + 8]
mov rdx, qword [r15]
mov rcx, rax
sub rcx, rdx
sar rcx, 3
cmp rcx, r14
jbe 0x1400195a7
lea rbx, [rdx + rsi*8]
cmp rbx, rdx
jne 0x14001958e
mov qword [r15 + 8], rdx
jmp 0x1400195c9
cmp rbx, rax
je 0x1400195c9
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_memmove
mov qword [r15 + 8], rbx
jmp 0x1400195c9
jae 0x1400195c9
mov r9, r14
sub r9, rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.140019d98
mov byte [rdi + 0x14], 1
test esi, esi
je 0x140019633
xor esi, esi
lock inc dword [rdi + 0x30]
mov rbx, qword [r15]
and qword [rsp + 0x28], r12
and dword [rsp + 0x20], r12d
mov r9, rdi
lea r8, [0x140019ae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + rbx], rax
mov rax, qword [r15]
cmp qword [rsi + rax], r12
jne 0x140019629
lock dec dword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, str.AgentService.NotificationListener::_Failed_to_create_thread__status__0x_X
call fcn.1400043a0
add rsi, 8
sub r14, 1
jne 0x1400195d3
cmp dword [rdi + 0x30], r12d
je 0x1400196ec
movsxd rsi, r13d
lea r13, [rdi + 0x38]
mov rdx, rsi
mov rcx, r13
call fcn.140019c28
lea rcx, [rdi + 0x50]
mov edx, dword [rdi + 0x10]
imul edx, dword [rsp + 0x30]
call fcn.140019b44
xor r14d, r14d
test rsi, rsi
jle 0x1400196ec
xor r15d, r15d
movsxd rax, r14d
lea rbx, [rax + rax*4]
mov rcx, qword [r13]
add rcx, 8
lea rcx, [rcx + rbx*8]
xor edx, edx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rax, qword [r13]
mov dword [r15 + rax], r14d
mov r9, qword [r13]
mov r8d, dword [rdi + 0x10]
mov edx, r8d
imul edx, r14d
add rdx, qword [rdi + 0x50]
add r9, 8
lea r9, [r9 + rbx*8]
lea rcx, [rdi + 0x98]
call fcn.14001923c
cmp eax, 0x800703e5
je 0x1400196d3
mov edx, eax
lea rcx, str.AgentService.NotificationListener::_Failed_to_post_receive_message__status__0x_X
call fcn.1400043a0
jmp 0x1400196d6
inc r12d
inc r14d
add r15, 0x28
sub rsi, 1
jne 0x14001966f
test r12d, r12d
je 0x1400196ec
xor ebx, ebx
jmp 0x140019731
mov ebx, 0x80004005
mov byte [rdi + 0x14], 0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 8], 0
jmp 0x140019731
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, str.AgentService.NotificationListener::_Failed_to_open_completion_port__status__0x_X
jmp 0x14001972a
lea rcx, str.AgentService.NotificationListener::_Filter_connection_initialized_failed__status__0x_X
mov edx, ebx
call fcn.1400043a0
mov r9d, ebx
lea r8, str.AgentService.NotificationListener::Start:_Exit__retStatus__0x_X
mov edx, 0x100
lea rcx, [rbp + 0x50]
call qword [sym.imp.msvcrt.dll_swprintf_s]
lea rcx, [rbp + 0x50]
call fcn.14000445c
mov eax, ebx
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400b6250
lea r11, [rsp + 0x360]
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
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x70]
call fcn.140005f98
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.1400057d8
lea rdx, [0x14010e268]
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rsp + 0x50]
call fcn.140005f98
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400057d8
lea rdx, [0x14010e268]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
int3