Function at 0x53026c
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 7
jl 0x4a885e
lea edx, [ebp - 0x33b0]
push edx
mov edx, dword [ebp - 0x33b4]
lea eax, [ebp - 0x1b74]
push eax
push 0
push 0
lea ecx, [ebp - 0x318c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45e7af
lea eax, [ebp - 0x1b74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455985
sub eax, edx
inc eax
cmp eax, dword [ebp - 0x33b0]
jae 0x45e7af
push 0x45e7aa
ret
mov eax, dword [ebp - 0x33b4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
xor eax, eax
lea ebx, [ebx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x341
xor cx, word [eax*2 + 0x56a7e8]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 0x11
jl 0x45e7c6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x33b4]
jmp 0x51ac6a
cmp eax, 0xe
jl 0x53029c
lea edx, [ebp - 0x33b4]
push edx
push 1
push 0
lea eax, [ebp - 0x318c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50921c
xor ecx, ecx
lea edx, [ecx + 1]
imul edx, edx, 0x1991
xor dx, word [ecx*2 + 0x56a7b4]
jmp 0x5091f8
lea eax, [ebp - 0x5f4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a8833
sub eax, edx
lea edx, [eax + 1]
cmp edx, esi
jb 0x4bdd93
mov dword [ebp - 0x33b0], 0x100
mov byte [ebp - 0x1b74], 0
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x2d3
xor cx, word [eax*2 + 0x56a7d8]
jmp 0x45593c
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a884b
lea eax, [ebp - 0x5f4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bdd73
mov esi, dword [ebp - 0x33b0]
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, esi
jae 0x4a884b
mov bl, 0x20
mov byte [ebp + eax - 0x5f4], bl
jmp 0x4a882a
inc ecx
mov word [ebp + ecx*2 - 0x318e], dx
cmp ecx, 6
jl 0x466bd2
push eax
lea eax, [ebp - 0x318c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x33b0], 0x3e8
jmp 0x54adb2
push edx
push 1
push 0
lea eax, [ebp - 0x318c]
push eax
push connect
call ebx
test eax, eax
je 0x51acbc
xor ecx, ecx
lea edx, [ecx + 1]
imul edx, edx, 0x2576
xor dx, word [ecx*2 + 0x56a80c]
inc ecx
mov word [ebp + ecx*2 - 0x318e], dx
cmp ecx, 6
jl 0x51ac87
push eax
lea eax, [ebp - 0x318c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x33b0], 0x3e8
jmp dword [0x51accd]
push ebp
mov ebp, esp
mov eax, 0x33d0
call fcn.00453f86
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x33bc], eax
mov dword [ebp - 0x33c4], edi
xor eax, eax
lea ecx, [ecx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x7a6c
xor cx, word [eax*2 + 0x56a794]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
jmp 0x466ba2
mov byte [ebp - 0x5f4], 0
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x72a4
xor cx, word [eax*2 + 0x56a7c4]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 9
jl 0x54adbb
lea edx, [ebp - 0x33b0]
push edx
mov edx, dword [ebp - 0x33b4]
lea eax, [ebp - 0x5f4]
push eax
push 0
push 0
lea ecx, [ebp - 0x318c]
jmp 0x4bdd5a