Function at 0x140230860
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rcx
xor r15d, r15d
mov esi, r15d
cmp qword [rcx + 8], rsi
je 0x140230f24
xor edx, edx
cmp qword [rcx], rsi
je 0x1402308bd
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
test eax, eax
setne dil
jmp 0x1402308de
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1402308db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1402308db
xor dil, dil
jmp 0x1402308de
mov dil, 1
cmp dword [rbx + 0xb8], 1
je 0x1402308f0
cmp dword [rbx + 0xb8], 2
jne 0x140230912
cmp byte [0x14051bc90], sil
je 0x140230912
mov ecx, dword [rbx + 0x18]
call fcn.1401debe0
cmp byte [0x14051bc90], sil
je 0x140230912
mov ecx, dword [rbx + 0x18]
call fcn.1401debe0
test dil, dil
je 0x140230923
mov dword [rbx + 0xb8], r15d
jmp 0x140230f24
mov dword [rbx + 0xb8], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov edx, 0x20
lea rcx, [rbp + 0x50]
call fcn.140022250
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x60], reloc.WS2_32.dll_recvfrom
mov qword [rbp + 0x68], 0x1f
movups xmm0, xmmword [str.Terminate_Process]
movups xmmword [rax], xmm0
movzx ecx, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x40], eax
cmp byte [0x14051bc90], 0
je 0x140230cfb
lea r14, vtable.fmt::v6::internal::buffer_char_.0
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xc8], r15
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
lea r12, vtable.fmt::v6::basic_memory_buffer_char__256__class_std::allocator_char__.0
mov qword [rbp + 0xc0], r12
lea rax, [rbp + 0xe0]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd8], 0x100
lea rdi, vtable.eax::StringBuffer_256_.0
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xd0], r15
lea rax, [0x14039d4bc]
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_listen
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [0x140369998]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x80], r15d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xc0]
mov qword [rbp - 0x78], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov dword [rbp - 0x38], r15d
movdqa xmmword [rsp + 0x30], xmm1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140033730
nop
lea rax, [rbp - 0x78]
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp - 0x60]
call fcn.140233b10
nop
mov edx, esi
lea rcx, [rbp + 0x70]
call fcn.1401f95e0
mov rcx, rax
mov qword [rbp + 0x1e0], r14
mov qword [rbp + 0x1e8], r15
mov qword [rbp + 0x1f0], r15
mov qword [rbp + 0x1f8], r15
mov qword [rbp + 0x1e0], r12
lea rax, [rbp + 0x200]
mov qword [rbp + 0x1e8], rax
mov qword [rbp + 0x1f8], 0x100
mov qword [rbp + 0x1e0], rdi
lea rdx, [rbx + 0x20]
cmp qword [rbx + 0x38], 0x10
jb 0x140230af0
mov rdx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x30]
mov qword [rbp + 0x90], rdx
mov qword [rbp + 0x98], rax
mov dword [rbp + 0xa0], esi
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140230b15
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0xb0], rdx
mov qword [rbp + 0xb8], rax
mov qword [rsp + 0x50], 0x386e
lea rax, [rbp + 0x90]
mov qword [rsp + 0x58], rax
lea rax, str.path____code____emsg__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x1c
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm1
mov dword [rbp - 0x20], r15d
lea rax, [rbp - 0x18]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x1e0]
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov dword [rbp + 8], r15d
mov qword [rbp + 0x10], r15
mov dword [rbp + 0x18], r15d
mov dword [rbp + 0x28], r15d
movdqa xmmword [rsp + 0x30], xmm1
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call fcn.140033730
nop
lea rax, [rbp - 0x18]
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp]
call fcn.140233b10
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x140230bf5
inc rdx
mov rcx, qword [rbp + 0x70]
cmp rdx, 0x1000
jb 0x140230bf0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f59
mov rcx, r8
call fcn.140233b10
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x70], 0
mov rax, qword [rbp + 0x1e8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0xd0]
mov qword [rsp + 0x58], rax
mov ecx, dword [rbx + 0x18]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.1401deba0
nop
mov qword [rbp + 0x1e0], r12
lea rax, [rbp + 0x200]
mov rcx, qword [rbp + 0x1e8]
cmp rcx, rax
je 0x140230cb0
mov rdx, qword [rbp + 0x1f8]
cmp rdx, 0x1000
jb 0x140230caa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f60
mov rcx, r8
call fcn.140233b10
nop
mov qword [rbp + 0xc0], r12
lea rax, [rbp + 0xe0]
mov rcx, qword [rbp + 0xc8]
cmp rcx, rax
je 0x140230cfb
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x1000
jb 0x140230cf6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f67
mov rcx, r8
call fcn.140233b10
mov rdi, qword [0x140517230]
test rdi, rdi
je 0x140230e10
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
test al, al
je 0x140230e10
mov edx, esi
lea rcx, [rbp + 0x70]
call fcn.1401f95e0
nop
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
lea r8, str.PROCESS
lea rdx, str.:_____OS_ErrorCode:_0x:x
lea rcx, [rbp + 0x30]
call fcn.14022cb90
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x140230d91
inc rdx
mov rcx, qword [rbp + 0x70]
cmp rdx, 0x1000
jb 0x140230d8c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f6e
mov rcx, r8
call fcn.140233b10
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x70], 0
mov rax, qword [rdi]
lea r9, [rbp + 0x30]
lea r8, str.eax::services::process::Process::Impl::terminate
mov edx, 1
mov rcx, rdi
call qword [rax + gethostname]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140230dfc
inc rdx
mov rcx, qword [rbp + 0x30]
cmp rdx, 0x1000
jb 0x140230df7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f75
mov rcx, r8
call fcn.140233b10
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x30], 0
mov esi, dword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov edx, 0x20
lea rcx, [rbp + 0x30]
call fcn.140022250
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x40], 0x1b
mov qword [rbp + 0x48], 0x1f
movups xmm0, xmmword [str.failed_to_terminate_process]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1403a5840]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1403a5848]
mov word [rax + 0x18], cx
movzx ecx, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rax + 0x1a], cl
mov byte [rax + 0x1b], 0
lea rcx, [rbx + 0x20]
mov edx, esi
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x50]
call fcn.140230f90
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140230ec8
inc rdx
mov rcx, qword [rbp + 0x30]
cmp rdx, 0x1000
jb 0x140230ec3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f7c
mov rcx, r8
call fcn.140233b10
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x30], 0
mov esi, 9
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x140230f14
inc rdx
mov rcx, qword [rbp + 0x50]
cmp rdx, 0x1000
jb 0x140230f0f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140230f83
mov rcx, r8
call fcn.140233b10
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
mov rcx, rbx
call fcn.14022d980
mov eax, esi
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140233ef0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3