Function at 0x4522d0
Capabilities:
Check if file exists
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5be26c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005161d0
mov dword [ebp - 0x27c], 1
mov eax, 0xe903
mov dword [ebp - 0x278], 0x104
add esp, 0xc
mov word [ebp - 0x224], ax
xor edi, edi
mov eax, 0xe931
mov ebx, 0xf
mov word [ebp - 0x222], ax
mov eax, 0xe92f
mov word [ebp - 0x220], ax
mov eax, 0xe928
mov word [ebp - 0x21e], ax
mov eax, 0xe923
mov word [ebp - 0x21c], ax
mov eax, 0xe977
mov word [ebp - 0x21a], ax
mov eax, 0xe90d
mov word [ebp - 0x218], ax
mov eax, 0xe93d
mov word [ebp - 0x216], ax
mov eax, 0xe929
mov word [ebp - 0x214], ax
mov eax, 0xe936
mov word [ebp - 0x212], ax
mov eax, 0xe953
mov word [ebp - 0x210], ax
mov ax, word [ebp - 0x224]
mov ax, word [ebp + edi*2 - 0x224]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0xbb27e950
mov edx, 0x22ef975
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi - 0x16b0]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x224], ax
inc edi
cmp edi, 0xb
jb 0x4523a2
mov eax, 0x3133
mov ecx, 0x3126
mov word [ebp - 0x274], ax
xor edi, edi
mov word [ebp - 0x272], cx
mov eax, 0x3137
mov word [ebp - 0x270], ax
mov eax, 0x3131
mov word [ebp - 0x26e], cx
mov ecx, 0x312e
mov word [ebp - 0x26c], cx
mov word [ebp - 0x26a], ax
mov eax, 0x312b
mov word [ebp - 0x268], ax
mov eax, 0x313d
mov word [ebp - 0x266], ax
mov eax, 0x3111
mov word [ebp - 0x264], cx
mov ecx, 0x3130
mov word [ebp - 0x262], cx
mov word [ebp - 0x260], ax
mov eax, 0x3102
mov word [ebp - 0x25e], ax
mov eax, 0x311f
mov word [ebp - 0x25c], ax
mov eax, 0x3106
mov word [ebp - 0x25a], ax
mov eax, 0x3117
mov word [ebp - 0x258], cx
mov word [ebp - 0x256], ax
mov eax, 0x311d
mov word [ebp - 0x254], ax
mov eax, 0x311c
mov word [ebp - 0x252], ax
mov eax, 0x31e3
mov word [ebp - 0x250], ax
mov eax, 0x31ed
mov word [ebp - 0x24e], ax
mov eax, 0x31f1
mov word [ebp - 0x24c], ax
mov eax, 0x3180
mov word [ebp - 0x24a], ax
mov ax, word [ebp - 0x274]
nop dword [eax + eax]
mov ax, word [ebp + edi*2 - 0x274]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0xdd3b316e
mov edx, 0xbb8a2cb4
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi + 0x316e]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x274], ax
inc edi
cmp edi, 0x16
jb 0x4524f0
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x274]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x452579
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c10d
mov esp, ebp
pop ebp
ret
mov eax, 0x67ac
mov ecx, 0x678a
mov word [ebp - 0x248], ax
xor edi, edi
mov word [ebp - 0x246], cx
mov eax, 0x679c
mov word [ebp - 0x244], ax
mov eax, 0x6790
mov word [ebp - 0x242], cx
mov ecx, 0x678d
mov word [ebp - 0x240], ax
mov eax, 0x67ad
mov word [ebp - 0x23e], ax
mov eax, 0x6784
mov word [ebp - 0x23c], ax
mov eax, 0x6782
mov word [ebp - 0x23a], cx
mov word [ebp - 0x238], ax
mov eax, 0x6780
mov word [ebp - 0x236], ax
mov eax, 0x6797
mov word [ebp - 0x234], cx
mov word [ebp - 0x232], ax
mov eax, 0x67ce
mov word [ebp - 0x230], ax
mov eax, 0x6787
mov word [ebp - 0x22e], ax
mov eax, 0x6793
mov word [ebp - 0x22c], ax
mov eax, 0x6786
mov word [ebp - 0x22a], ax
mov eax, 0x67f0
mov word [ebp - 0x228], ax
mov ax, word [ebp - 0x248]
mov ax, word [ebp + edi*2 - 0x248]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0x73f167e0
mov edx, 0xc5fc48bf
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi + 0x67e0]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x248], ax
inc edi
cmp edi, 0x11
jb 0x452644
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0046c10d
mov esp, ebp
pop ebp
ret