Function at 0x18000d278
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x3e0
lea rbp, [rsp + 0x40]
mov qword [rsp], rax
mov rax, 0x3dc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x18000d267
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x168], rbx
mov qword [rbp + 0x3b0], rcx
mov qword [rbp + 0x3b8], rdx
mov dword [rbp + 0x3c0], r8d
mov qword [rbp + 0x3c8], r9
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x390], rax
mov byte [rbp + 0x8b], 0
mov byte [rbp + 0x89], 0
mov byte [rbp + 0x8a], 0
mov byte [rbp + 0x88], 0
mov dword [rbp + 0x8c], 0
mov eax, 0
mov edx, 0
mov rcx, qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rbp + 0x120], rcx
mov rcx, rax
mov rax, qword [rbp + 0x120]
call rax
mov dword [rbp + 0x90], eax
mov rax, qword [rbp + 0x3b0]
lea rdx, [rbp + 0x180]
mov ecx, 0x100
mov dword [rbp + 0x128], ecx
mov rcx, rax
mov eax, dword [rbp + 0x128]
mov r8d, eax
call fcn.18000ceeb
mov byte [rbp + 0x88], 1
mov rax, 0xffffffff80000001
lea rdx, [0x180101765]
mov ecx, 0
mov ebx, 1
lea rsi, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x130], ecx
mov rcx, rax
mov eax, dword [rbp + 0x130]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x94], eax
mov eax, dword [rbp + 0x94]
test eax, eax
jne 0x18000d8cd
mov dword [rbp + 0x98], 0
mov eax, 0
cmp eax, 1
jne 0x18000d3c6
jmp 0x18000d89d
mov eax, 1
add eax, dword [rbp + 0x98]
mov dword [rbp + 0x98], eax
jmp 0x18000d3a4
mov dword [rbp + 8], 0x100
movzx eax, byte [rbp + 0x88]
test eax, eax
jne 0x18000d3e7
lea rax, [0x180101744]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x30]
mov edx, dword [rbp + 0x98]
lea rcx, [rbp + 0x288]
lea rbx, [rbp + 8]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov qword [rbp + 0x138], rcx
mov rcx, rax
mov rax, qword [rbp + 0x138]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
cmp eax, 0x103
je 0x18000d89d
lea rax, [rbp + 0x288]
lea rdx, [rbp + 0x180]
mov rcx, rax
call fcn.1800677b0
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
test eax, eax
jne 0x18000d3b3
movzx eax, byte [rbp + 0x88]
test eax, eax
jne 0x18000d49b
lea rax, [0x180101744]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x89], 1
mov byte [rbp + 0x8a], 1
mov rax, qword [rbp + 0x30]
lea rdx, [rbp + 0x288]
mov ecx, 0
lea rbx, [rbp + 0x20]
mov qword [rsp + 0x20], 0
lea rsi, [rbp + 0x14]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rbp + 0x140], rcx
mov rcx, rax
mov rax, qword [rbp + 0x140]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xa8], eax
movzx eax, byte [rbp + 0x8a]
test eax, eax
jne 0x18000d50f
lea rax, [0x18010174c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x14]
mov rcx, rax
call fcn.180067db0
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xc8], rax
movzx eax, byte [rbp + 0x88]
test eax, eax
jne 0x18000d549
lea rax, [0x180101744]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x89], 1
mov byte [rbp + 0x8a], 1
mov rax, qword [rbp + 0x30]
lea rdx, [rbp + 0x288]
mov ecx, 0
lea rbx, [rbp + 0x20]
mov rsi, qword [rbp + 0xc8]
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 + 0x148], rcx
mov rcx, rax
mov rax, qword [rbp + 0x148]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xac], eax
mov eax, dword [rbp + 0xac]
test eax, eax
jne 0x18000d89d
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x8a]
test eax, eax
jne 0x18000d5d9
lea rax, [0x18010174c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call fcn.1800622d0
mov qword [rbp + 0xd0], rax
mov eax, 1
add rax, qword [rbp + 0xd0]
imul rax, rax, 2
mov dword [rbp + 0x70], eax
lea rax, [rbp + 0x40]
mov edx, 0
lea rcx, [rbp + 0x70]
mov ebx, 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
lea rsi, [rbp + 0x58]
mov qword [rsp + 0x30], rsi
mov rsi, qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov qword [rbp + 0x150], rcx
mov rcx, rax
mov rax, qword [rbp + 0x150]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
test eax, eax
je 0x18000d88e
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0xd8], rax
mov eax, dword [rbp + 0x58]
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd8]
mov ecx, dword [rcx + 4]
add ecx, dword [rdx]
mov rdx, qword [rbp + 0xd8]
add ecx, dword [rdx + 8]
cmp eax, ecx
jb 0x18000d877
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax + 0x14]
shr eax, 1
mov dword [rbp + 0xb4], eax
mov eax, 0x24
add rax, qword [rbp + 0x60]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax]
add rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0xd8]
mov edx, dword [rdx + 4]
add rax, rdx
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xb8], 0
mov eax, dword [rbp + 0xb8]
mov edx, dword [rbp + 0xb4]
cmp eax, edx
jge 0x18000d877
mov byte [rbp + 0x8b], 1
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xf8], rax
movzx eax, byte [rbp + 0x8b]
test eax, eax
jne 0x18000d73f
lea rax, [0x180101758]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x100], rax
mov eax, reloc.WS2_32.dll_recv
add rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], rax
mov byte [rbp + 0x8b], 1
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xf8], rax
movzx eax, byte [rbp + 0x8b]
test eax, eax
jne 0x18000d798
lea rax, [0x180101758]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x3b8]
mov rdx, qword [rbp + 0x100]
mov ecx, dword [rbp + 0x3c0]
mov qword [rbp + 0x158], rcx
mov rcx, rax
mov rax, qword [rbp + 0x158]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x110], rax
mov eax, 0xffffffff
add eax, dword [rbp + 0x3c0]
imul rax, rax, 2
add rax, qword [rbp + 0x3b8]
mov word [rax], 0
mov rax, qword [rbp + 0x3c8]
mov rdx, qword [rbp + 0x108]
mov ecx, dword [rbp + 0x3d0]
mov qword [rbp + 0x160], rcx
mov rcx, rax
mov rax, qword [rbp + 0x160]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x118], rax
mov eax, 0xffffffff
add eax, dword [rbp + 0x3d0]
imul rax, rax, 2
add rax, qword [rbp + 0x3c8]
mov word [rax], 0
mov dword [rbp + 0x8c], 1
mov eax, reloc.WS2_32.dll_recv
add rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], rax
mov eax, 1
add eax, dword [rbp + 0xb8]
mov dword [rbp + 0xb8], eax
jmp 0x18000d6f3
mov rax, qword [rbp + 0x60]
mov rdx, qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rax
call rdx
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call fcn.1800108c7
movzx eax, byte [rbp + 0x88]
test eax, eax
jne 0x18000d8b7
lea rax, [0x180101744]
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 + 0xa0], eax
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
mov eax, dword [rbp + 0x8c]
mov dword [rbp + 0xbc], eax
lea rax, reloc.WS2_32.dll_htons
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x390]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0xbc]
mov rbx, qword [rbp + 0x168]
mov rsi, qword [rbp + 0x170]
lea rsp, [rbp + 0x3a0]
pop rbp
ret