Function at 0x4508d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [esp + 0x10]
xor ecx, ecx
mov eax, SysReAllocString
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
cmp eax, 1
jb 0x450929
xor ecx, ecx
mov eax, 1
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x18]
shr eax, 0x19
and al, 1
jmp 0x45092b
xor al, al
mov byte [edi], al
mov eax, dword [esp + 0x40]
sub eax, 0x80
je 0x45095c
sub eax, 0x40
je 0x45094e
sub eax, 0x40
jne 0x45098b
lea ebx, [eax + 0x20]
mov dword [edi + 4], 0xe
jmp 0x450968
mov ebx, 0x18
mov dword [edi + 4], 0xc
jmp 0x450968
mov ebx, 0x10
mov dword [edi + 4], 0xa
mov ebp, dword [esp + 0x3c]
xor esi, esi
mov edi, edi
mov eax, esi
lea ecx, [esp + 0x10]
and eax, 3
mov edx, esi
add ecx, eax
shr edx, 2
mov al, byte [esi + ebp]
inc esi
mov byte [ecx + edx*4], al
cmp esi, ebx
jb 0x450970
mov edx, dword [esp + 0x44]
test edx, edx
jne 0x4509a3
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
jmp 0x4509b2
xor ecx, ecx
mov al, byte [ecx + edx]
mov byte [edi + ecx + 8], al
inc ecx
cmp ecx, 0x10
jl 0x4509a5
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00451680
cmp byte [esp + 0x38], 0
jne 0x450aed
mov ebp, 1
cmp dword [edi + 4], ebp
jle 0x450aed
mov esi, 0x10
lea esp, [esp]
xor eax, eax
movzx ecx, byte [esi + edi + 0x1b]
movzx edx, byte [esi + edi + 0x1a]
movzx ebx, byte [eax + ecx*4 + 0x4a42b0]
xor bl, byte [eax + edx*4 + 0x4a3eb0]
movzx ecx, byte [esi + edi + 0x19]
movzx edx, byte [esi + edi + 0x1e]
xor bl, byte [eax + ecx*4 + 0x4a3ab0]
movzx ecx, byte [esi + edi + 0x18]
xor bl, byte [eax + ecx*4 + 0x4a36b0]
movzx ecx, byte [esi + edi + 0x1f]
mov byte [esp + eax + 0x10], bl
movzx ebx, byte [eax + ecx*4 + 0x4a42b0]
xor bl, byte [eax + edx*4 + 0x4a3eb0]
movzx ecx, byte [esi + edi + 0x1d]
movzx edx, byte [edi + esi + 0x22]
xor bl, byte [eax + ecx*4 + 0x4a3ab0]
movzx ecx, byte [esi + edi + 0x1c]
xor bl, byte [eax + ecx*4 + 0x4a36b0]
movzx ecx, byte [edi + esi + 0x23]
mov byte [esp + eax + 0x14], bl
movzx ebx, byte [eax + ecx*4 + 0x4a42b0]
xor bl, byte [eax + edx*4 + 0x4a3eb0]
movzx ecx, byte [edi + esi + 0x21]
movzx edx, byte [esi + edi + 0x26]
xor bl, byte [eax + ecx*4 + 0x4a3ab0]
movzx ecx, byte [edi + esi + 0x20]
xor bl, byte [eax + ecx*4 + 0x4a36b0]
movzx ecx, byte [esi + edi + 0x27]
mov byte [esp + eax + 0x18], bl
movzx ebx, byte [eax + ecx*4 + 0x4a42b0]
movzx ecx, byte [esi + edi + 0x25]
xor bl, byte [eax + edx*4 + 0x4a3eb0]
xor bl, byte [eax + ecx*4 + 0x4a3ab0]
movzx ecx, byte [esi + edi + 0x24]
xor bl, byte [eax + ecx*4 + 0x4a36b0]
mov byte [esp + eax + 0x1c], bl
inc eax
cmp eax, 4
jl 0x4509e2
mov eax, dword [esp + 0x10]
inc ebp
mov dword [edi + esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [edi + esi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + esi + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + esi + 0x24], eax
add esi, 0x10
cmp ebp, dword [edi + 4]
jl 0x4509e0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x24
ret 0x10