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

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x40
push ebp
push esi
xor esi, esi
cmp eax, reloc.WS2_32.dll_accept
jne 0x10015210
mov edx, dword [0x1012c4c8]
test edx, edx
je 0x10015210
mov eax, reloc.WS2_32.dll_closesocket
lea edx, [esp + 0x28]
add ecx, 8
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10015432
push eax
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x48]
push 0
lea ecx, [esp + 0x50]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10015269
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x10015432
mov ebp, dword [esp + 0x24]
test ebp, ebp
jbe 0x10015432
mov eax, dword [esp + 0x20]
inc ebp
mov dword [esp + 8], ebp
mov dword [esp + 0x44], ebp
lea eax, [eax + eax + 2]
push ebx
push edi
mov dword [esp + 0x14], eax
lea ebp, [eax + ebp + 1]
mov ebx, ecx
imul ebp, ecx
add ebp, 0x16
mov dword [esp + 0x48], eax
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x38], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x4c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x48]
lea eax, [esi + 1]
mov byte [esi], 0x99
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
push ecx
call edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add esp, 8
lea ebx, [esi + 0xd]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x1001540d
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
inc edx
lea ecx, [eax + eax + 2]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esp + 0x34]
dec eax
cmp eax, 0xa
ja case.0x10015391.5
jmp dword [eax*4 + 0x1001543c]
mov byte [ebx], 0
jmp 0x100153b4
mov byte [ebx], 1
jmp 0x100153b4
mov byte [ebx], 2
jmp 0x100153b4
mov byte [ebx], 3
jmp 0x100153b4
mov byte [ebx], 4
jmp 0x100153b4
mov byte [ebx], 5
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x48]
mov ecx, eax
add ebx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x10015317
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
add esp, 8
push 0x42
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x40
ret