Function at 0x10039b7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.100abdd1
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10039be6
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10039be2
imul eax, dword [ebx]
jmp 0x10039bd7
mov ecx, eax
test ecx, ecx
je 0x10039c26
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039c01
push ebx
call fcn.100abdd7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039c15
push ebx
call fcn.100abdd7
add esp, 4
pop ebx
call fcn.100abdd7
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10039bec
call fcn.100abdd7
add esp, 4
mov eax, 0x100d42b8
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.10039f94
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10039c78
push 0x4e
push 0x40320ec
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.100adb40
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039cb5
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x1bc
call fcn.100acce0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10039cf0
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x10039d15
mov eax, 0x100d424e
push eax
push 1
mov ebx, 0x130
call fcn.100ae9b0
add esp, 0x10
mov dword [ebp - 0x24], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10039d3e
mov eax, 0x100d42b8
push eax
push 1
mov ebx, 0x194
call fcn.100ad2e0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10039d65
add eax, 8
push eax
mov eax, 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10039dac
push 0x183
push 0x40320ec
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10039dbe
jmp 0x10039f17
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10039dec
mov eax, 0x100d42b8
push eax
push 3
mov ebx, 0x19c
call fcn.100ad420
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, reloc.WS2_32.dll_connect
je 0x10039e2a
push 0x20c
push 0x40320ec
push 5
call fcn.100abddd
add esp, 0xc
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039e40
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
push dword [ebp + 0x10]
push 4
mov eax, 2
call fcn.100aca70
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x20], ebx
call fcn.10001d16
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x20]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10039e8a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x20]
call fcn.100abde9
add esp, 8
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x24]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x1c]
push edi
push eax
push 8
call fcn.100abdd1
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10039ee4
push eax
mov ebx, eax
call fcn.1000103a
inc eax
push eax
call fcn.100abdd1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10039f03
push eax
mov ebx, eax
call fcn.1000103a
inc eax
push eax
call fcn.100abdd1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
je 0x10039c78
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10039f43
push 0x2c2
push 0x40320ec
push 6
call fcn.100abddd
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp 0x10039f4b
push eax
mov ebx, dword [ebp - 0xc]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039f60
push ebx
call fcn.100abdd7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10039f74
push ebx
call fcn.100abdd7
add esp, 4
pop ebx
call fcn.100abdd7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10039f8d
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc