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

Disassembly:
sub esp, 0x6b8
mov eax, dword [0x498f90]
xor eax, esp
mov dword [esp + 0x6b4], eax
mov edx, dword [esp + 0x6c0]
test edx, edx
push ebx
push esi
mov esi, dword [esp + 0x6cc]
push edi
mov edi, dword [esp + 0x6c8]
mov dword [esp + 0x14], 0x3e8
je 0x423b66
lea ebx, [esp + 0x594]
call fcn.00423500
jmp 0x423b93
test esi, esi
je 0x423c0d
mov cl, byte [esi]
test cl, cl
lea edx, [esp + 0x594]
mov eax, esi
je 0x423b8e
lea ecx, [ecx]
add eax, 1
mov byte [edx], cl
mov cl, byte [eax]
add edx, 1
test cl, cl
jne 0x423b80
mov byte [edx], 0
sub eax, esi
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x5a0]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423c0d
mov byte [esp + 0x113], al
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x134]
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 0x423c2a
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 + 0x6b4]
xor ecx, esp
call fcn.0043ec69
add esp, 0x6b8
ret
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0xa
jae 0x423c49
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0033
jmp 0x423f84
lea eax, [esp + 0x44]
call fcn.00422f40
push 0x4690f8
mov eax, 0x30
lea esi, [esp + 0x48]
call fcn.004226f0
lea eax, [esp + 0x59c]
push eax
mov eax, ebx
call fcn.004226f0
lea ecx, [esp + 0x13c]
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 + 0x144]
lea eax, [ebp - 6]
push edx
call fcn.004226f0
push 0x4690f8
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 + 0x136]
jbe 0x423d08
lea ebx, [ebx]
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 0x423cf0
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 0x423d4e
add esi, 1
cmp esi, 6
jb 0x423d10
cmp byte [esp + 0x136], 2
je 0x423d63
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0033
jmp 0x423f84
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0033
jmp 0x423f84
movzx ecx, byte [esp + 0x138]
movzx eax, byte [esp + 0x139]
xor edx, edx
cmp byte [esp + 0x137], dl
lea esi, [esp + 0x146]
setne dl
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x13a]
shl eax, 8
or ecx, eax
movzx eax, byte [esp + 0x13b]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x13c]
mov dword [edi + 4], eax
movzx eax, byte [esp + 0x13d]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x13e]
shl eax, 8
or ecx, eax
movzx eax, byte [esp + 0x13f]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x141]
mov dword [edi + 8], eax
movzx eax, byte [esp + 0x140]
shl eax, 8
or ecx, eax
movzx eax, byte [esp + 0x143]
mov dword [edi + 0xc], ecx
movzx ecx, byte [esp + 0x142]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esp + 0x144]
shl eax, 8
or ecx, eax
movzx eax, byte [esp + 0x145]
shl ecx, 8
or eax, ecx
mov cl, byte [esp + 0x146]
test cl, cl
mov dword [edi + 0x10], eax
mov dword [edi], edx
lea eax, [edi + 0x14]
je 0x423e42
add esi, 1
mov byte [eax], cl
mov cl, byte [esi]
add eax, 1
test cl, cl
jne 0x423e34
add esi, 1
mov byte [eax], 0
mov al, byte [esi]
test al, al
lea ecx, [edi + 0x32]
je 0x423e5f
add esi, 1
mov byte [ecx], al
mov al, byte [esi]
add ecx, 1
test al, al
jne 0x423e51
mov al, byte [esi + 1]
add esi, 1
test al, al
mov byte [ecx], 0
lea ecx, [edi + 0x50]
je 0x423e7e
nop
add esi, 1
mov byte [ecx], al
mov al, byte [esi]
add ecx, 1
test al, al
jne 0x423e70
mov al, byte [esi + 1]
add esi, 1
test al, al
mov byte [ecx], 0
lea ecx, [edi + 0x6e]
je 0x423e9e
mov edi, edi
add esi, 1
mov byte [ecx], al
mov al, byte [esi]
add ecx, 1
test al, al
jne 0x423e90
mov byte [ecx], 0
mov eax, 6
lea ecx, [esp + 0x120]
lea edx, [esp + 0x104]
add esi, 1
call fcn.00423420
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x55c]
push eax
push ecx
mov byte [esp + 0x15c], 0
mov dword [esp + 0x44], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov dword [edi + 0x470], 1
je 0x423f22
mov edx, dword [esp + 0x10]
push edx
jmp 0x423f7c
cmp byte [esi], 0
je 0x423f77
mov eax, dword [esp + 0x14]
cmp eax, 0xc
je 0x423f36
mov dword [edi + 0x470], ebx
cmp eax, ebx
je 0x423f70
lea ecx, [esp + 0x534]
lea edx, [esp + 0x120]
sub ecx, edx
lea ebx, [ebx]
sub eax, 1
lea edx, [ecx + eax]
mov dl, byte [esp + edx + 0x120]
cmp dl, byte [esp + eax + 0x120]
je 0x423f6c
mov dword [edi + 0x470], ebx
cmp eax, ebx
jne 0x423f50
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
mov ecx, dword [esp + 0x6c4]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043ec69
add esp, 0x6b8
ret