Function at 0x180007668
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x230
lea rbp, [rsp + 0x30]
mov qword [rsp], rax
mov rax, 0x22c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x180007680
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xd8], rbx
mov qword [rbp + 0x210], rcx
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x40], 0
mov byte [rbp + 0x42], 0
mov byte [rbp + 0x43], 0
mov byte [rbp + 0x41], 0
mov dword [rbp + 0x48], 0
mov byte [rbp + 0x40], 1
mov rax, 0xffffffff80000002
lea rdx, [0x180101155]
mov ecx, 0
mov ebx, 0x20019
lea rsi, [rbp + 0x20]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x98], ecx
mov rcx, rax
mov eax, dword [rbp + 0x98]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x4c], eax
mov byte [rbp + 0x41], 1
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x50], eax
movzx eax, byte [rbp + 0x41]
test eax, eax
jne 0x18000774c
lea rax, [0x18010112c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x50]
test eax, eax
jne 0x180007a7e
lea rax, [rbp + 0xf0]
mov edx, 0
mov ecx, 0x100
mov qword [rbp + 0xa0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa0]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x70], rax
mov byte [rbp + 0x42], 1
mov dword [rbp + 0x14], 0x100
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x1800077a7
lea rax, [0x180101130]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x43], 1
mov byte [rbp + 0x42], 1
mov rax, qword [rbp + 0x20]
lea rdx, [0x18010119a]
mov ecx, 0
lea rbx, [rbp + 8]
lea rsi, [rbp + 0xf0]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0x14]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rbp + 0xa8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa8]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x54]
test eax, eax
jne 0x180007a54
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000781d
lea rax, [0x18010113c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 8]
cmp eax, 1
jne 0x180007a54
lea rax, [rbp + 0xf0]
add rax, 0xff
mov byte [rax], 0
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.180066b50
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0xf0]
lea rdx, [0x180101182]
mov rcx, qword [rbp + 0x78]
neg rcx
add rcx, 0x100
mov qword [rbp + 0xb0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb0]
mov r8, rax
call fcn.180066d50
mov qword [rbp + 0x80], rax
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x18000789f
lea rax, [0x180101130]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x44], 1
mov rax, qword [rbp + 0x20]
lea rdx, [rbp + 0xf0]
mov ecx, 0
mov ebx, 0x20019
lea rsi, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0xb8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xb8]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
test eax, eax
jne 0x180007a54
lea rax, [rbp + 0xf0]
mov edx, 0
mov ecx, 0x100
mov qword [rbp + 0xc0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xc0]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x88], rax
mov byte [rbp + 0x42], 1
mov dword [rbp + 0x14], 0x100
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x180007940
lea rax, [0x180101148]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x43], 1
mov byte [rbp + 0x42], 1
mov rax, qword [rbp + 0x30]
lea rdx, [0x180101188]
mov ecx, 0
lea rbx, [rbp + 8]
lea rsi, [rbp + 0xf0]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0x14]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rbp + 0xc8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xc8]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x60]
test eax, eax
jne 0x180007a2a
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x1800079b6
lea rax, [0x18010113c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 8]
cmp eax, 1
jne 0x180007a2a
lea rax, [rbp + 0xf0]
add rax, 0xff
mov byte [rax], 0
lea rax, [rbp + 0xf0]
mov rdx, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rax
call rdx
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
cmp eax, 0xffffffff
je 0x180007a2a
mov rax, qword [rbp + 0x210]
lea rax, [rax + 8]
lea rdx, [rbp + 0xf0]
mov ecx, 0x104
mov qword [rbp + 0xd0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xd0]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x48], 1
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x180007a41
lea rax, [0x180101148]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x30]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x64], eax
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x180007a6b
lea rax, [0x180101130]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x20]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0x6c], eax
lea rax, reloc.WS2_32.dll_getpeername
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x1f8]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x6c]
mov rbx, qword [rbp + 0xd8]
mov rsi, qword [rbp + 0xe0]
lea rsp, [rbp + 0x200]
pop rbp
ret