Function at 0x450850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x4a6010]
xor ecx, ebp
mov dword [esp + 0x98], ecx
xor esi, esi
cmp eax, 0x30
ja 0x450acc
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x50], xmm0
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x10]
movdqa xmmword [esp + 0x40], xmm1
movdqa xmmword [esp + 0x30], xmm0
test eax, eax
je 0x4508bd
mov ecx, dword [ebp + 0x10]
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x30], bl
inc edx
cmp eax, edx
jne 0x4508b0
mov esi, dword [ebp + 8]
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [eax + 0x49f940]
xor byte [esp + eax + 0x30], cl
inc eax
cmp eax, 0x30
jne 0x4508d0
lea edi, [esi + 0xf4]
mov eax, dword [0x4b6eb8]
test eax, 0x2000000
jne 0x450a62
test eax, 0x200
jne 0x450a81
mov dword [esp + 0xc], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esi], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esi + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0x20], xmm0
mov edi, 0x30
mov ebx, 0x49f990
movdqa xmm0, xmmword [esp + 0x70]
movdqa xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x60]
nop word cs:[eax + eax]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
mov ecx, esi
lea edx, [esp + 0x70]
call fcn.00451290
movzx eax, byte [ebx]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x20]
movdqa xmm0, xmmword [esp + 0x60]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqa xmmword [esp + 0x80], xmm1
movaps xmm0, xmmword [esp + 0x80]
mov eax, dword [ebp + 8]
movups xmmword [eax + edi - 0x10], xmm0
cmp edi, 0xf0
je 0x450ae4
movdqa xmmword [esp + 0x20], xmm1
mov ecx, esi
lea edx, [esp + 0x80]
call fcn.00451290
movdqa xmm0, xmmword [esp + 0x60]
psrldq xmm0, 0xc
movdqa xmm2, xmmword [esp + 0x10]
pxor xmm2, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 4
movdqa xmm1, xmm2
pslldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmmword [esp + 0x10], xmm2
movdqa xmmword [esp + 0x70], xmm2
movdqa xmm0, xmmword [esp + 0x70]
mov eax, dword [ebp + 8]
movdqu xmmword [eax + edi], xmm0
add edi, 0x20
inc ebx
jmp 0x450960
lea eax, [esp + 0x30]
push esi
push 0x100
push eax
call fcn.00403500
add esp, 0xc
mov ecx, 0x401180
mov eax, 0x401d10
jmp 0x450a9b
lea eax, [esp + 0x30]
push esi
push 0x100
push eax
call fcn.00404020
add esp, 0xc
mov ecx, 0x4040d0
xor eax, eax
test edi, edi
je 0x450aa1
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00464393
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x44e830
mov eax, 0x44fb70
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, dword [ebp + 8]
jne 0x450a9f
jmp 0x450aa1