Function at 0x404850
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1f4
mov esi, dword [esp + 0x20c]
lea eax, [esp + 0x54]
push 0x1a0
push 0
push eax
call fcn.0042b5e0
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov ebx, esi
mov esi, edx
shr esi, 1
xor esi, edx
and esi, 0x55555555
mov edi, esi
add esi, esi
xor edi, edx
xor esi, edx
mov dword [esp + 8], edi
mov edi, eax
shr edi, 1
xor edi, eax
and edi, 0x55555555
mov edx, edi
add edi, edi
xor edx, eax
xor edi, eax
mov eax, ecx
shr eax, 1
xor eax, ecx
and eax, 0x55555555
mov ebp, eax
add eax, eax
xor ebp, ecx
xor eax, ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], ebp
mov ebx, ecx
shr ebx, 1
xor ebx, ecx
and ebx, 0x55555555
mov ebp, ebx
add ebx, ebx
xor ebx, ecx
xor ebp, ecx
mov ecx, esi
shr ecx, 2
mov dword [esp], ebx
mov ebx, eax
xor ecx, edi
shr ebx, 2
and ecx, 0x33333333
xor edi, ecx
shl ecx, 2
xor ecx, esi
mov esi, dword [esp + 8]
mov dword [esp + 4], ecx
mov ecx, esi
shr ecx, 2
xor ecx, edx
and ecx, 0x33333333
xor edx, ecx
shl ecx, 2
mov dword [esp + 0xc], edx
mov edx, dword [esp]
xor ecx, esi
xor ebx, edx
and ebx, 0x33333333
xor edx, ebx
shl ebx, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp], edx
mov edx, ecx
shr edx, 4
mov esi, eax
shr esi, 2
xor esi, ebp
and esi, 0x33333333
xor ebp, esi
shl esi, 2
xor esi, eax
mov eax, dword [esp]
mov dword [esp + 8], ebp
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor edx, ecx
mov ecx, edi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor eax, ecx
shl ecx, 4
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor ecx, edi
mov edi, eax
shr edi, 4
xor edi, ebp
and edi, 0xf0f0f0f
mov ebp, edi
xor edi, dword [esp + 8]
shl ebp, 4
xor ebp, eax
mov eax, dword [esp + 4]
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
xor ebx, eax
shl eax, 4
xor eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x20c]
mov dword [esp + 0x28], esi
mov eax, dword [esp]
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov eax, dword [ebx + 0x18]
mov ebp, edx
mov edi, esi
shr ebp, 1
shr edi, 1
xor ebp, edx
xor edi, esi
and ebp, 0x55555555
and edi, 0x55555555
mov ecx, ebp
add ebp, ebp
xor ecx, edx
xor ebp, edx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 8], ecx
mov ecx, edi
add edi, edi
xor ecx, esi
xor edi, esi
mov dword [esp + 4], ecx
mov ecx, eax
shr ecx, 1
xor ecx, eax
and ecx, 0x55555555
mov esi, ecx
add ecx, ecx
xor esi, eax
xor ecx, eax
mov eax, edx
shr eax, 1
xor eax, edx
and eax, 0x55555555
mov ebx, eax
add eax, eax
xor ebx, edx
xor eax, edx
mov edx, dword [esp + 4]
mov dword [esp], ebx
mov ebx, eax
mov eax, ebp
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor eax, ebp
mov ebp, dword [esp + 8]
mov dword [esp + 0xc], eax
mov eax, ebp
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
mov dword [esp + 4], edx
mov edx, ecx
xor eax, ebp
mov ebp, esi
shr edx, 2
shr ebp, 2
xor edx, ebx
and edx, 0x33333333
xor ebx, edx
shl edx, 2
xor edx, ecx
mov ecx, dword [esp]
mov dword [esp + 8], edx
mov edx, edi
shr edx, 4
xor edx, ebx
xor ebp, ecx
and edx, 0xf0f0f0f
and ebp, 0x33333333
xor ebx, edx
shl edx, 4
xor ecx, ebp
shl ebp, 2
xor edx, edi
mov dword [esp + 0x10], ebx
xor ebp, esi
mov esi, eax
mov dword [esp], ecx
mov ecx, dword [esp + 8]
shr esi, 4
xor esi, ebp
and esi, 0xf0f0f0f
xor ebp, esi
shl esi, 4
xor esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 4], 0x60
mov edi, eax
shr edi, 4
xor edi, dword [esp]
and edi, 0xf0f0f0f
mov ebx, edi
xor edi, dword [esp]
mov dword [esp], 0xfffffe68
shl ebx, 4
xor ebx, eax
mov eax, dword [esp + 0xc]
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
mov ebx, 8
mov esi, 0x40
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edi
lea edi, [esp + 0x14]
nop word cs:[eax + eax]
nop
mov ecx, edi
mov edx, 0x78
push ebx
call fcn.00405f60
add esp, 4
lea ecx, [esp + esi + 0x14]
call fcn.004059e0
movq xmm0, qword [esp + esi + 0x14]
movq xmm1, qword [esp + esi + 0x28]
mov ebp, dword [esp]
pcmpeqd xmm2, xmm2
add ebx, 8
mov ecx, edi
mov edx, 0x78
pxor xmm0, xmm2
pxor xmm1, xmm2
movq qword [esp + esi + 0x14], xmm0
movq qword [esp + esi + 0x28], xmm1
xor byte [esp + ebp + 0x1ed], 0xc0
push 0xe
push 0x10
push ebx
call fcn.00405c70
add esp, 0xc
test ebp, ebp
je 0x404c1e
mov ecx, edi
mov edx, 0x78
push ebx
call fcn.00405f60
add esp, 4
mov ebp, dword [esp + 4]
lea ecx, [esp + ebp + 0x14]
call fcn.004059e0
movq xmm0, qword [esp + esi + 0x34]
movq xmm1, qword [esp + esi + 0x48]
pcmpeqd xmm2, xmm2
add ebx, 8
mov ecx, edi
mov edx, 0x78
pxor xmm0, xmm2
pxor xmm1, xmm2
movq qword [esp + esi + 0x34], xmm0
movq qword [esp + esi + 0x48], xmm1
push 6
push 0x10
push ebx
call fcn.00405c70
add esp, 0xc
add dword [esp], 0x44
add ebp, 0x40
add esi, 0x40
mov dword [esp + 4], ebp
jmp 0x404b50
movdqa xmm0, xmmword [0x4349b0]
movdqa xmm1, xmmword [0x4349c0]
movdqa xmm2, xmmword [0x4349d0]
movdqa xmm3, xmmword [0x4349e0]
mov eax, 0xfffffe80
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm6, xmmword [esp + eax + 0x1b4]
movdqu xmm4, xmmword [esp + eax + 0x1c4]
movdqa xmm7, xmm6
psrld xmm7, 4
pxor xmm7, xmm6
pand xmm7, xmm0
movdqa xmm5, xmm7
pslld xmm5, 4
por xmm5, xmm7
pxor xmm5, xmm6
movdqa xmm6, xmm5
psrld xmm6, 2
pxor xmm6, xmm5
pand xmm6, xmm1
movdqa xmm7, xmm6
pslld xmm7, 2
por xmm7, xmm6
movdqa xmm6, xmm4
psrld xmm6, 4
pxor xmm7, xmm5
pxor xmm6, xmm4
movdqu xmmword [esp + eax + 0x1b4], xmm7
pand xmm6, xmm0
movdqa xmm5, xmm6
pslld xmm5, 4
por xmm5, xmm6
pxor xmm5, xmm4
movdqa xmm4, xmm5
psrld xmm4, 2
pxor xmm4, xmm5
pand xmm4, xmm1
movdqa xmm6, xmm4
pslld xmm6, 2
por xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [esp + eax + 0x1c4], xmm6
movdqu xmm4, xmmword [esp + eax + 0x1d4]
movdqa xmm5, xmm4
psrld xmm5, 4
pxor xmm5, xmm4
pand xmm5, xmm2
movdqa xmm6, xmm5
pslld xmm6, 4
por xmm6, xmm5
pxor xmm6, xmm4
movdqu xmmword [esp + eax + 0x1d4], xmm6
movdqu xmm4, xmmword [esp + eax + 0x1e4]
movdqa xmm5, xmm4
psrld xmm5, 4
pxor xmm5, xmm4
pand xmm5, xmm2
movdqa xmm6, xmm5
pslld xmm6, 4
por xmm6, xmm5
pxor xmm6, xmm4
movdqu xmmword [esp + eax + 0x1e4], xmm6
movdqu xmm5, xmmword [esp + eax + 0x1f4]
movdqa xmm6, xmm5
psrld xmm6, 4
pxor xmm6, xmm5
pand xmm6, xmm3
movdqa xmm4, xmm6
pslld xmm4, 4
por xmm4, xmm6
pxor xmm4, xmm5
movdqa xmm5, xmm4
psrld xmm5, 2
pxor xmm5, xmm4
pand xmm5, xmm1
movdqa xmm6, xmm5
pslld xmm6, 2
por xmm6, xmm5
pxor xmm6, xmm4
movdqu xmmword [esp + eax + 0x1f4], xmm6
movdqu xmm5, xmmword [esp + eax + 0x204]
movdqa xmm6, xmm5
psrld xmm6, 4
pxor xmm6, xmm5
pand xmm6, xmm3
movdqa xmm4, xmm6
pslld xmm4, 4
por xmm4, xmm6
pxor xmm4, xmm5
movdqa xmm5, xmm4
psrld xmm5, 2
pxor xmm5, xmm4
pand xmm5, xmm1
movdqa xmm6, xmm5
pslld xmm6, 2
por xmm6, xmm5
pxor xmm6, xmm4
movdqu xmmword [esp + eax + 0x204], xmm6
sub eax, 0xffffff80
jne 0x404c50
movq xmm1, qword [esp + 0x1bc]
movdqa xmm0, xmmword [0x4349f0]
movdqa xmm3, xmm1
psrld xmm3, 4
pxor xmm3, xmm1
pand xmm3, xmm0
movdqa xmm2, xmm3
pslld xmm2, 4
por xmm2, xmm3
pxor xmm2, xmm1
movdqa xmm1, xmmword [0x434a00]
movdqa xmm3, xmm2
psrld xmm3, 2
pxor xmm3, xmm2
pand xmm3, xmm1
movdqa xmm4, xmm3
pslld xmm4, 2
por xmm4, xmm3
pxor xmm4, xmm2
pcmpeqd xmm2, xmm2
movq qword [esp + 0x1bc], xmm4
mov eax, dword [esp + 0x1c4]
mov ecx, eax
shr ecx, 4
xor ecx, eax
and ecx, 0x30f0c00
mov edx, ecx
shl edx, 4
or edx, ecx
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0x33003300
lea eax, [eax + eax*4]
xor eax, edx
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x1d0]
mov ecx, eax
shr ecx, 4
xor ecx, eax
and ecx, 0x30f0c00
mov edx, ecx
shl edx, 4
or edx, ecx
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0x33003300
lea eax, [eax + eax*4]
xor eax, edx
mov dword [esp + 0x1d0], eax
movq xmm3, qword [esp + 0x34]
movq xmm4, qword [esp + 0x48]
pxor xmm3, xmm2
pxor xmm4, xmm2
movq qword [esp + 0x34], xmm3
movq qword [esp + 0x48], xmm4
movq xmm3, qword [esp + 0x54]
pxor xmm3, xmm2
movq qword [esp + 0x54], xmm3
movq xmm3, qword [esp + 0x68]
pxor xmm3, xmm2
movq qword [esp + 0x68], xmm3
movq xmm3, qword [esp + 0x74]
pxor xmm3, xmm2
movq qword [esp + 0x74], xmm3
movq xmm3, qword [esp + 0x88]
pxor xmm3, xmm2
movq qword [esp + 0x88], xmm3
movq xmm3, qword [esp + 0x94]
pxor xmm3, xmm2
movq qword [esp + 0x94], xmm3
movq xmm3, qword [esp + 0xa8]
pxor xmm3, xmm2
movq qword [esp + 0xa8], xmm3
movq xmm3, qword [esp + 0xb4]
pxor xmm3, xmm2
movq qword [esp + 0xb4], xmm3
movq xmm3, qword [esp + 0xc8]
pxor xmm3, xmm2
movq qword [esp + 0xc8], xmm3
movq xmm3, qword [esp + 0xd4]
pxor xmm3, xmm2
movq qword [esp + 0xd4], xmm3
movq xmm3, qword [esp + 0xe8]
pxor xmm3, xmm2
movq qword [esp + 0xe8], xmm3
movq xmm3, qword [esp + 0xf4]
pxor xmm3, xmm2
movq qword [esp + 0xf4], xmm3
movq xmm3, qword [esp + 0x108]
pxor xmm3, xmm2
movq qword [esp + 0x108], xmm3
movq xmm3, qword [esp + 0x114]
pxor xmm3, xmm2
movq qword [esp + 0x114], xmm3
movq xmm3, qword [esp + 0x128]
pxor xmm3, xmm2
movq qword [esp + 0x128], xmm3
movq xmm3, qword [esp + 0x134]
pxor xmm3, xmm2
movq qword [esp + 0x134], xmm3
movq xmm3, qword [esp + 0x148]
pxor xmm3, xmm2
movq qword [esp + 0x148], xmm3
movq xmm3, qword [esp + 0x154]
pxor xmm3, xmm2
movq qword [esp + 0x154], xmm3
movq xmm3, qword [esp + 0x168]
pxor xmm3, xmm2
movq qword [esp + 0x168], xmm3
movq xmm3, qword [esp + 0x174]
pxor xmm3, xmm2
movq qword [esp + 0x174], xmm3
movq xmm3, qword [esp + 0x188]
pxor xmm3, xmm2
movq qword [esp + 0x188], xmm3
movq xmm3, qword [esp + 0x194]
pxor xmm3, xmm2
movq qword [esp + 0x194], xmm3
movq xmm3, qword [esp + 0x1a8]
pxor xmm3, xmm2
movq qword [esp + 0x1a8], xmm3
movq xmm4, qword [esp + 0x1b4]
movdqa xmm5, xmm4
psrld xmm5, 4
pxor xmm5, xmm4
pand xmm5, xmm0
movdqa xmm3, xmm5
pslld xmm3, 4
por xmm3, xmm5
pxor xmm3, xmm4
movdqa xmm4, xmm3
psrld xmm4, 2
pxor xmm4, xmm3
pxor xmm3, xmm2
pand xmm4, xmm1
movdqa xmm5, xmm4
pslld xmm5, 2
por xmm5, xmm4
pxor xmm3, xmm5
movq qword [esp + 0x1b4], xmm3
movq xmm3, qword [esp + 0x1c8]
movdqa xmm4, xmm3
psrld xmm4, 4
pxor xmm4, xmm3
pand xmm4, xmm0
movdqa xmm0, xmm4
pslld xmm0, 4
por xmm0, xmm4
pxor xmm0, xmm3
movdqa xmm3, xmm0
psrld xmm3, 2
pxor xmm3, xmm0
pxor xmm0, xmm2
pand xmm3, xmm1
movdqa xmm1, xmm3
pslld xmm1, 2
por xmm1, xmm3
pxor xmm0, xmm1
movq qword [esp + 0x1c8], xmm0
movq xmm0, qword [esp + 0x1d4]
pxor xmm0, xmm2
movq qword [esp + 0x1d4], xmm0
movq xmm0, qword [esp + 0x1e8]
pxor xmm0, xmm2
movq qword [esp + 0x1e8], xmm0
push 0x1e0
push edi
mov esi, dword [esp + 0x210]
push esi
call fcn.0042acb0
add esp, 0xc
mov eax, esi
add esp, 0x1f4
pop esi
pop edi
pop ebx
pop ebp
ret