Function at 0x1800246a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4240]
mov eax, 0x4340
call fcn.18003a910
sub rsp, rax
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x4398], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x4230], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x18], rdx
mov r12, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp + 0x10], rdx
mov dword [rsp + 0x64], sendto
mov byte [rbp + 0x20], 0
xor edx, edx
mov r8d, 0xfe
lea rcx, [rbp + 0x21]
call fcn.1800334b0
mov byte [rbp + 0x120], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x121]
call fcn.1800334b0
mov dword [rbp - 0x38], 0x104
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], 0x3fff
lea rax, [rbp - 8]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xc]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0xc]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x120]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1800247d1
mov rdx, qword [rdi]
sub rdx, 0x18
or r13, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x1800247ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180024f6a
or r13, 0xffffffffffffffff
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180024a5e
mov r14d, ebx
nop word [rax + rax]
mov dword [rbp - 0x34], 0xff
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x34]
lea r8, [rbp + 0x20]
mov edx, r14d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x180024a50
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp + 0x20]
lea rdx, [0x18004e8ec]
lea rcx, [rbp - 0x28]
call fcn.180002980
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x50], rax
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
mov r8d, 1
lea rdx, [0x18004e29c]
lea rcx, [rbp - 0x50]
call fcn.180001b40
mov dword [rbp - 0x48], ebx
mov rdx, qword [rbp - 0x28]
lea rbx, [rdx - 0x18]
mov r12, qword [rbp - 0x58]
lea rdi, [r12 - 0x18]
cmp rbx, rdi
je 0x180024920
cmp dword [rdi + 0x10], 0
jl 0x18002490f
mov rax, qword [rdi]
cmp qword [rbx], rax
jne 0x18002490f
mov rcx, rbx
call fcn.180001790
mov r12, rax
mov ecx, r13d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180024905
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
add r12, 0x18
mov qword [rbp - 0x58], r12
jmp 0x180024920
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x58]
call fcn.180001b40
mov r12, qword [rbp - 0x58]
mov rax, qword [rsi + 8]
lea rcx, [rbp - 0x58]
mov r15, qword [rbp - 0x40]
cmp rcx, rax
jae 0x180024975
mov rcx, qword [rsi]
lea rdx, [rbp - 0x58]
cmp rcx, rdx
ja 0x180024975
lea rdi, [rbp - 0x58]
sub rdi, rcx
cmp rax, qword [rsi + 0x10]
jne 0x180024952
mov rcx, rsi
call fcn.1800263a0
and rdi, 0xffffffffffffffe0
add rdi, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rbp - 0x60], rcx
mov qword [rbp], rcx
test rcx, rcx
je 0x180024973
mov rdx, rdi
call fcn.1800265e0
nop
jmp 0x1800249d1
cmp rax, qword [rsi + 0x10]
jne 0x180024983
mov rcx, rsi
call fcn.1800263a0
mov rdi, qword [rsi + 8]
mov qword [rbp], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x1800249d1
lea rcx, [r12 - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rdi], rax
mov rcx, qword [rbp - 0x50]
add rcx, 0xffffffffffffffe8
call fcn.180001790
add rax, 0x18
mov qword [rdi + 8], rax
mov eax, dword [rbp - 0x48]
mov dword [rdi + 0x10], eax
lea rcx, [r15 - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rdi + 0x18], rax
add qword [rsi + 8], 0x20
lea rdx, [r15 - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800249f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024a10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024a30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x180024a4a
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor ebx, ebx
mov r12, qword [rbp - 0x68]
inc r14d
cmp r14d, dword [rsp + 0x68]
jb 0x1800247f0
mov eax, dword [rbp - 0x70]
test eax, eax
je 0x180024f43
mov r15d, ebx
mov dword [rbp - 0x60], ebx
nop
mov dword [rsp + 0x6c], 0x3fff
mov byte [rbp + 0x230], 0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x6c]
lea r8, [rbp + 0x230]
mov edx, r15d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x180024f0c
mov eax, dword [rsp + 0x6c]
mov byte [rbp + rax + 0x230], 0
mov dword [rsp + 0x60], 0xff
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0x230]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180024f0c
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, 1
lea rdx, [0x18004e29c]
lea rcx, [rsp + 0x78]
call fcn.180001b40
mov dword [rbp - 0x80], ebx
xor eax, eax
mov rcx, r13
lea rdi, [rbp + 0x230]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rbx, rcx
test ecx, ecx
jne 0x180024bd2
mov rax, qword [rsp + 0x70]
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], ecx
je 0x180024c4d
cmp dword [rdx + 0x10], ecx
jge 0x180024ba7
cmp dword [rax - 0xc], ecx
jl 0x180024f22
xor ebx, ebx
mov dword [rax - 0x10], ebx
mov byte [rax], bl
jmp 0x180024c4f
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024bbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
jmp 0x180024c4d
mov rdi, qword [rsp + 0x70]
mov r14d, dword [rdi - 0x10]
lea r12, [rbp + 0x230]
sub r12, rdi
test ecx, ecx
js 0x180024f38
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x180024c0f
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.180001ef0
mov rdi, qword [rsp + 0x70]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
cmp r12, r14
movsxd r14, ebx
mov r9, r14
ja 0x180024c2c
lea r8, [r12 + rdi]
call fcn.18002f970
jmp 0x180024c38
lea r8, [rbp + 0x230]
call fcn.18002feb4
cmp ebx, dword [rdi - 0xc]
jg 0x180024f2d
mov dword [rdi - 0x10], ebx
mov byte [r14 + rdi], 0
mov r12, qword [rbp - 0x68]
xor ebx, ebx
mov r8d, 1
lea rdx, [0x18004e26c]
lea rcx, [rsp + 0x78]
call fcn.180001b40
mov edx, dword [rsp + 0x64]
mov dword [rbp - 0x80], edx
cmp edx, 4
jne 0x180024cce
mov dword [rbp - 0x6c], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0x230]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180024ead
mov r8d, dword [rbp - 0x6c]
lea rdx, [0x18004e7d0]
lea rcx, [rbp - 0x78]
call fcn.180002980
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180026300
jmp 0x180024ead
cmp edx, 0xb
jne 0x180024d30
mov qword [rbp - 0x30], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0x230]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180024ead
mov r8, qword [rbp - 0x30]
lea rdx, str._llu
lea rcx, [rbp - 0x78]
call fcn.180002980
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180026300
jmp 0x180024ead
mov ecx, dword [rsp + 0x60]
inc ecx
call fcn.18002f604
mov r12, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0x230]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180024ea3
mov ecx, dword [rsp + 0x60]
mov byte [rcx + r12], al
mov eax, dword [rsp + 0x64]
cmp eax, 2
je 0x180024e4e
cmp eax, 1
je 0x180024e4e
cmp eax, 7
je 0x180024e4e
cmp eax, 3
jne 0x180024e36
mov eax, dword [rsp + 0x60]
lea ecx, [rax*4 + 0x20]
call fcn.18002f604
mov r14, rax
mov ecx, dword [rsp + 0x60]
lea r8d, [rcx*4 + 0x20]
xor edx, edx
mov rcx, rax
call fcn.1800334b0
mov rbx, r14
xor edi, edi
movsxd r15, dword [rsp + 0x60]
test r15, r15
jle 0x180024e00
nop word [rax + rax]
movzx r8d, byte [rdi + r12]
lea rdx, str._02x
mov rcx, rbx
call fcn.18003069c
add rbx, 2
inc rdi
cmp rdi, r15
jl 0x180024de0
test r14, r14
jne 0x180024e09
xor ecx, ecx
jmp 0x180024e19
xor eax, eax
mov rcx, r13
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.180001b40
mov rcx, r14
call fcn.18002f934
mov r15d, dword [rbp - 0x60]
jmp 0x180024e76
mov rcx, r12
call fcn.18002f934
nop
lea rcx, [rsp + 0x70]
call fcn.18001e650
jmp 0x180024f0c
test r12, r12
jne 0x180024e57
mov ecx, ebx
jmp 0x180024e67
xor eax, eax
mov rcx, r13
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.180001b40
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], 0
jne 0x180024e96
mov r8d, 1
lea rdx, [0x18004e288]
lea rcx, [rbp - 0x78]
call fcn.180001b40
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180026300
mov rcx, r12
call fcn.18002f934
xor ebx, ebx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024ecc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024eec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180024f0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
inc r15d
mov dword [rbp - 0x60], r15d
cmp r15d, dword [rbp - 0x70]
jae 0x180024f43
mov r12, qword [rbp - 0x68]
jmp 0x180024a70
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
nop
mov rdx, qword [rbp - 0x18]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x180024f65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 1
mov rcx, qword [rbp + 0x4230]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x4398]
add rsp, 0x4340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret