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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee54d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], 0
call fcn.004babe0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x160], 0
mov dword [esi + 0x10], 0
jb 0x46b100
mov eax, dword [esi]
jmp 0x46b102
mov eax, esi
push 0
push 0x509250
mov ecx, esi
mov byte [eax], 0
call fcn.00409af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x15c]
push 0
push 0x509250
mov dword [ebp - 0x168], 1
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
call fcn.00409af0
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x50eb80]
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x134], 0x5e5a4b6c
mov word [ebp - 0x130], 0x52
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x143]
xor al, byte [ebp - 0x144]
mov byte [ebp + ecx - 0x12e], al
movzx eax, byte [ebp + ecx - 0x142]
xor al, byte [ebp - 0x144]
mov byte [ebp + ecx - 0x12d], al
movzx eax, byte [ebp + ecx - 0x141]
xor al, byte [ebp - 0x144]
mov byte [ebp + ecx - 0x12c], al
movzx eax, byte [ebp + ecx - 0x140]
xor al, byte [ebp - 0x144]
mov byte [ebp + ecx - 0x12b], al
movzx eax, byte [ebp + ecx - 0x13f]
xor al, byte [ebp - 0x144]
mov byte [ebp + ecx - 0x12a], al
add ecx, 5
cmp ecx, 0x14
jb 0x46b180
lea eax, [ebp - 0x160]
mov byte [ebp - 0x11a], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x12e]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46b316
mov eax, dword [edi]
lea ecx, [ebp - 0x130]
push ecx
mov ecx, edi
mov dword [ebp - 0x164], 0x103
call dword [eax + 8]
cmp dword [eax + 0x14], 0x10
jb 0x46b240
mov eax, dword [eax]
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp - 0x11c]
sete bl
cmp eax, 0x10
jb 0x46b282
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004099a0
test bl, bl
je 0x46b316
mov eax, dword [ebp - 0x164]
cmp eax, 0x104
jae 0x46b354
mov byte [ebp + eax - 0x114], 0
cmp byte [ebp - 0x114], 0
jne 0x46b2b0
xor ecx, ecx
jmp 0x46b2c9
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b2c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00409af0
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
push 0
cmovae eax, dword [ebp - 0x15c]
push eax
call fcn.004c469f
add esp, 8
cmp eax, 0xffffffff
je 0x46b316
lea eax, [ebp - 0x15c]
cmp esi, eax
je 0x46b316
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409690
mov ecx, dword [ebp - 0x148]
cmp ecx, 0x10
jb 0x46b334
inc ecx
push ecx
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
call fcn.004099a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1855
mov esp, ebp
pop ebp
ret 4
call fcn.004a1f97
int3