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

Disassembly:
sub esp, 0x6c0
mov eax, dword [0x498f90]
xor eax, esp
mov dword [esp + 0x6bc], eax
mov edx, dword [esp + 0x6c8]
test edx, edx
push ebx
push esi
mov esi, dword [esp + 0x6d4]
push edi
mov edi, dword [esp + 0x6d0]
mov dword [esp + 0x14], 0x3e8
je 0x4237b6
lea ebx, [esp + 0x59c]
call fcn.00423460
jmp 0x4237e3
test esi, esi
je 0x42385d
mov cl, byte [esi]
test cl, cl
lea edx, [esp + 0x59c]
mov eax, esi
je 0x4237de
lea ecx, [ecx]
add eax, 1
mov byte [edx], cl
mov cl, byte [eax]
add edx, 1
test cl, cl
jne 0x4237d0
mov byte [edx], 0
sub eax, esi
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x5a8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42385d
mov byte [esp + 0x113], al
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1a0]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x120]
push edx
push eax
mov byte [esp + 0x12a], 0x64
mov byte [esp + 0x128], 0x73
mov byte [esp + 0x129], 0x69
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42387a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xffff0030
pop ebx
mov ecx, dword [esp + 0x6bc]
xor ecx, esp
call fcn.0043ec69
add esp, 0x6c0
ret
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0xa
jae 0x4238ad
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0033
mov ecx, dword [esp + 0x6cc]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043ec69
add esp, 0x6c0
ret
lea eax, [esp + 0x44]
call fcn.00422f40
push 0x469128
mov eax, 0x30
lea esi, [esp + 0x48]
call fcn.004226f0
lea eax, [esp + 0x5a4]
push eax
mov eax, ebx
call fcn.004226f0
lea ecx, [esp + 0x1a8]
push ecx
mov eax, 2
call fcn.004226f0
mov eax, esi
call fcn.004235a0
lea eax, [esp + 0xb8]
call fcn.00422f40
push 0x4690f8
mov eax, 0x30
lea esi, [esp + 0xbc]
call fcn.004226f0
lea edx, [esp + 0x1b0]
lea eax, [ebp - 6]
push edx
call fcn.004226f0
push 0x469158
mov eax, 0x30
call fcn.004226f0
add esp, 0x18
mov eax, esi
call fcn.004235a0
xor ebx, ebx
lea esi, [ebp - 8]
xor ecx, ecx
cmp esi, ebx
lea eax, [esp + 0x1a2]
jbe 0x423968
mov edi, edi
mov edx, ecx
and edx, 0xf
mov dl, byte [esp + edx + 0x9c]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, esi
jb 0x423950
xor esi, esi
lea ebx, [ebx]
mov cl, byte [esp + esi + 0x104]
xor cl, byte [esp + esi + 0x9c]
mov dl, byte [eax]
add eax, 1
cmp dl, cl
jne 0x4239a3
add esi, 1
cmp esi, 6
jb 0x423970
cmp byte [esp + 0x1a2], 2
je 0x4239ad
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x423889
mov eax, dword [esp + 0x10]
push eax
jmp 0x423889
movsx edx, byte [esp + 0x1a3]
mov eax, dword [esp + 0x1a4]
mov ecx, dword [esp + 0x1a8]
mov dword [edi], edx
mov edx, dword [esp + 0x1ac]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1b0]
mov dword [edi + 8], ecx
movzx ecx, byte [esp + 0x1b4]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
movzx eax, byte [esp + 0x1b5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x1b6]
shl eax, 8
or ecx, eax
movzx eax, byte [esp + 0x1b7]
shl ecx, 8
or eax, ecx
mov cl, byte [esp + 0x1b8]
test cl, cl
mov dword [edi + 0x18], eax
lea esi, [esp + 0x1b8]
lea eax, [edi + 0x1c]
je 0x423a34
add esi, 1
mov byte [eax], cl
mov cl, byte [esi]
add eax, 1
test cl, cl
jne 0x423a26
mov byte [eax], 0
mov eax, 6
lea ecx, [esp + 0x128]
lea edx, [esp + 0x104]
add esi, 1
call fcn.00423420
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x30]
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x164]
push ecx
push edx
mov byte [esp + 0x164], 0
mov dword [esp + 0x44], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov dword [edi + 0x41c], 1
jne 0x423b07
cmp byte [esi], al
je 0x423b07
mov eax, dword [esp + 0x14]
cmp eax, 0xc
je 0x423ac4
mov dword [edi + 0x41c], ebx
cmp eax, ebx
je 0x423b00
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x128]
sub ecx, edx
jmp 0x423ae0
sub eax, 1
lea edx, [ecx + eax]
mov dl, byte [esp + edx + 0x128]
cmp dl, byte [esp + eax + 0x128]
je 0x423afc
mov dword [edi + 0x41c], ebx
cmp eax, ebx
jne 0x423ae0
sub eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x423894