Function at 0x180023a80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x27e8]
mov eax, 0x28e8
call fcn.18002add0
sub rsp, rax
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x27d0], rax
mov qword [rsp + 0x28], r8
mov rsi, r9
mov qword [rbp - 0x60], r9
mov rdi, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x58], r8
mov qword [rbp - 0x48], rdx
mov qword [rsp + 0x20], rdx
lea r9, str.KEY:__s_s_n
lea rcx, [rbp - 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x2800
xor ebx, ebx
call fcn.180029e64
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x180023af0
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x7c]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x180023b61
xor eax, eax
jmp 0x18002408c
mov ecx, dword [rsp + 0x7c]
inc ecx
call fcn.180027e84
mov ecx, dword [rsp + 0x78]
inc ecx
mov qword [rbp - 0x78], rax
call fcn.180027e84
mov ecx, dword [rbp - 0x80]
inc ecx
mov qword [rsp + 0x68], rax
call fcn.180027e84
mov rdi, rax
mov qword [rsp + 0x70], rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsp + 0x78]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x70]
inc eax
lea r9, [rbp - 0x68]
mov edx, ebx
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x80]
inc eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x180023f38
test eax, eax
jne 0x180023f38
mov eax, dword [rbp - 0x64]
inc ebx
mov dword [rsp + 0x64], ebx
test eax, eax
je 0x180023c2c
cmp eax, 2
jbe 0x180023e48
cmp eax, 3
je 0x180023d5f
cmp eax, 4
je 0x180023d0a
cmp eax, 7
je 0x180023e48
mov rax, qword [rsp + 0x68]
lea r9, str._tOTHER:__s_t0x
lea rcx, [rbp - 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x2800
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180023c60
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x180023ce5
movsx eax, byte [rdi]
lea r9, str._02x
lea rcx, [rbp - 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x2800
mov dword [rsp + 0x20], eax
call fcn.180029e64
xor r9d, r9d
lea rdx, [rbp - 0x30]
lea r8d, [r9 + 2]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ecx, dword [rsp + 0x60]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x180023cdc
xor r9d, r9d
lea rdx, [0x180072d14]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, dword [rsp + 0x60]
inc ebx
inc rdi
cmp ebx, ecx
jb 0x180023c82
xor r9d, r9d
lea rdx, [0x180072e4c]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
mov rdi, qword [rsp + 0x70]
mov ebx, dword [rsp + 0x64]
jmp 0x180023ba0
mov eax, dword [rdi]
lea r9, str._tDWORD:__s_t0x_016x_n
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
or r8, 0xffffffffffffffff
mov edx, 0x2800
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180023d40
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x180023ba0
mov rax, qword [rsp + 0x68]
lea r9, str._tBINARY:__s_t
lea rcx, [rbp - 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x2800
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180023d90
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x180023db7
mov byte [rbp - 0x30], al
jmp 0x180023e0a
xor edi, edi
lea rsi, [rbp - 0x30]
mov ebx, 0x27ff
test eax, eax
je 0x180023dfd
test ebx, ebx
jle 0x180023dfd
mov rcx, qword [rsp + 0x70]
lea r9, [0x1800737cc]
movsxd rdx, ebx
movzx ecx, byte [rdi + rcx]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.180029e64
inc edi
sub ebx, 3
add rsi, 3
cmp edi, dword [rsp + 0x60]
jb 0x180023dc6
mov ebx, dword [rsp + 0x64]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x60]
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180023e12
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [0x180072cf4]
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x180023ba0
mov rax, qword [rsp + 0x68]
lea r9, str._tSTRING:__s_t
lea rcx, [rbp - 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x2800
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180023e73
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp byte [rdi], 0
mov rbx, rdi
je 0x180023f18
lea rdi, [0x180000000]
movsx eax, byte [rbx]
add eax, 0xfffffff9
cmp eax, 6
ja case.default.0x180023eb7
cdqe
mov ecx, dword [rdi + rax*4 + 0x240a8]
add rcx, rdi
jmp rcx
lea rdx, [0x180072554]
jmp 0x180023efb
lea rdx, [0x18007258c]
jmp 0x180023efb
lea rdx, [0x1800726f4]
jmp 0x180023efb
lea rdx, [0x1800727b4]
jmp 0x180023efb
lea rdx, [0x180072c04]
jmp 0x180023efb
lea rdx, [0x180072c14]
jmp 0x180023efb
lea rdx, [0x180072c3c]
jmp 0x180023efb
mov rdx, rbx
xor r9d, r9d
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
inc rbx
cmp byte [rbx], 0
jne 0x180023ea0
mov rdi, qword [rsp + 0x70]
xor r9d, r9d
lea rdx, [0x180072c9c]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
mov ebx, dword [rsp + 0x64]
jmp 0x180023ba0
xor ecx, ecx
mov esi, ecx
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
inc eax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x64]
mov r8, rdi
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x64], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x18002406b
lea rax, [rbp - 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
inc esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180023fba
cmp eax, 5
jne 0x18002406b
xor ecx, ecx
jmp 0x180023f50
mov rbx, qword [rbp - 0x58]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x180023fc2
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rdi + rax], 0
jne 0x180023fd0
add eax, 3
add ecx, eax
movsxd rdi, ecx
mov rcx, rdi
call fcn.180027e84
mov r8, qword [rbp - 0x58]
or rcx, 0xffffffffffffffff
mov rbx, rax
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180023ff4
mov rax, qword [rbp - 0x78]
test rcx, rcx
mov rdx, rdi
mov rcx, rbx
je 0x180024029
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [0x18007383c]
or r8, 0xffffffffffffffff
call fcn.180029e64
jmp 0x18002403e
lea r9, [0x180072e5c]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.180029e64
mov r9, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r8, rbx
call fcn.180023a80
mov rcx, rbx
call fcn.180027f2c
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x180023f3c
mov rcx, rdi
call fcn.180027f2c
mov rcx, qword [rsp + 0x68]
call fcn.180027f2c
mov rcx, qword [rsp + 0x70]
call fcn.180027f2c
mov eax, 1
mov rcx, qword [rbp + 0x27d0]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x28e8
pop rdi
pop rsi
pop rbx
pop rbp
ret