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

Disassembly:
push 0xffffffffffffffff
push 0x621286
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [esp + 0x148]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
mov eax, 0x6d7500
jne 0x521e3f
mov eax, 0x6d74cc
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6ec0c8
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x52205c
push ebx
lea eax, [esp + 0x10]
push ebx
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x521e94
mov dword [esp + 0xc], 0x800
mov edx, dword [esp + 0xc]
inc edx
push edx
call fcn.005f6c5c
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x52205c
push edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push ebp
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
push 0
lea edx, [esp + 0x54]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], 0x104
push eax
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x522052
test eax, eax
jne 0x521ead
cmp dword [esp + 0x3c], 1
jne 0x521ead
lea ecx, [esp + 0x28]
lea edx, [esp + 0x44]
push ecx
push 0x6bc140
push edx
call fcn.005de570
add esp, 0xc
cmp eax, 1
jne 0x521ead
mov eax, dword [esp + 0x28]
test eax, eax
je 0x521ead
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.005de150
mov edx, eax
add esp, 8
test edx, edx
je 0x521ead
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x521ead
mov eax, dword [0x6e7b6c]
inc edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x154], 0
call fcn.005fa9e2
push ebp
lea ecx, [esp + 0x1c]
call fcn.005fa9e2
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x24], 1
mov dword [esp + 0x20], ecx
je 0x521fd7
lea edi, [esi + 0x124]
push 0xffffffffffffffff
mov ecx, edi
mov esi, dword [edi + 8]
lea edx, [esi + 1]
push edx
call fcn.004ac2c0
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.005fa992
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.005fa992
mov edx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov al, byte [esp + 0x24]
mov byte [esi + 0xc], al
jmp 0x52201c
lea edi, [esi + 0x138]
push 0xffffffffffffffff
mov esi, dword [edi + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.004ac2c0
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.005fa992
lea eax, [esp + 0x1c]
lea ecx, [esi + 4]
push eax
call fcn.005fa992
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov dl, byte [esp + 0x24]
mov byte [esi + 0xc], dl
mov eax, 1
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x150], eax
call fcn.005fa859
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], 0xffffffff
call fcn.005fa859
mov esi, dword [esp + 0x34]
jmp 0x521ead
push ebp
call fcn.005f6c85
add esp, 4
pop edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 4