Function at 0x140001680
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xf8
mov rax, qword [0x1400aa140]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rdx, str.NtQuerySystemInformation
lea rcx, [0x14008adf0]
call fcn.140001640
mov qword [rsp + 0x88], rax
lea rdx, str.NtDuplicateObject
lea rcx, [0x14008ae18]
call fcn.140001640
mov qword [rsp + 0x98], rax
lea rdx, str.NtQueryObject
lea rcx, [0x14008ae38]
call fcn.140001640
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0x10000
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x44], eax
mov r8d, dword [rsp + 0x110]
xor edx, edx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14000172c
mov eax, 1
jmp 0x140001ae8
mov eax, dword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov ecx, reloc.WS2_32.dll_recv
call qword [rsp + 0x90]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xc0000004
jne 0x140001796
mov eax, dword [rsp + 0x40]
shl eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsp + 0x58], rax
jmp 0x14000173d
cmp dword [rsp + 0x60], 0
jge 0x1400017a7
mov eax, 1
jmp 0x140001ae8
mov dword [rsp + 0x44], 0
jmp 0x1400017bb
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [rsp + 0x44], eax
jae 0x140001ad0
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x18
lea rcx, [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
mov rdi, rcx
lea rsi, [rdx + rax + 8]
mov ecx, Ordinal_26
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0xd8], 0
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0xc0], eax
je 0x14000180e
jmp 0x1400017b1
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx ecx, word [rsp + 0xc6]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov r8, rax
mov edx, ecx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0xa0]
test eax, eax
jge 0x140001874
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
jmp 0x1400017b1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x50]
mov edx, 2
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0xa8]
test eax, eax
jge 0x1400018de
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017b1
cmp dword [rsp + 0xd0], 0x12019f
jne 0x140001917
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017b1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0xb0]
test eax, eax
jge 0x1400019f3
mov eax, dword [rsp + 0xe0]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xe0]
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0xb8]
test eax, eax
jge 0x1400019f3
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017b1
lea rax, [rsp + 0x78]
mov rdi, rax
mov rsi, qword [rsp + 0x48]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x78]
test eax, eax
je 0x140001a99
movzx eax, word [rsp + 0x78]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movzx ecx, word [rsp + 0xc6]
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0x64]
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x50]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, ecx
lea rcx, str.__x___.S:__.S_n
call fcn.140011800
lea rdx, str.BaseNamedObjectsProcessHacker
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x140001a89
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
jmp 0x140001aa7
mov eax, dword [0x1400aa9b8]
inc eax
mov dword [0x1400aa9b8], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017b1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140085950
add rsp, 0xf8
pop rdi
pop rsi
ret