Function at 0x506200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
shl eax, 7
push esi
mov esi, dword [ebp + 0xc]
movups xmm0, xmmword [eax + esi - 0x40]
movups xmmword [ebp - 0xcc], xmm0
movups xmm0, xmmword [eax + esi - 0x30]
movups xmmword [ebp - 0xbc], xmm0
movups xmm0, xmmword [eax + esi - 0x20]
movups xmmword [ebp - 0xac], xmm0
movups xmm0, xmmword [eax + esi - 0x10]
mov eax, dword [ebp + 0x10]
shld ecx, eax, 1
movups xmmword [ebp - 0x9c], xmm0
add eax, eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
test ecx, ecx
jb 0x5065cf
ja 0x506275
test eax, eax
je 0x5065cf
mov eax, dword [ebp - 0x3c]
push edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], edi
push ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi]
add esi, 4
xor dword [ebp + ecx*4 - 0xcc], eax
add ecx, 1
adc edx, 0
jne 0x5062aa
cmp ecx, 0x10
jb 0x506291
movups xmm0, xmmword [ebp - 0xcc]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x34], 4
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xac]
movups xmmword [ebp - 0x64], xmm0
mov eax, dword [ebp - 0x5c]
movups xmm0, xmmword [ebp - 0x9c]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x7c]
movups xmmword [ebp - 0x54], xmm0
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], eax
nop word [eax + eax]
add eax, edi
mov edi, dword [ebp - 0x30]
rol eax, 7
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
rol eax, 9
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x30], edi
ror eax, 0xe
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
rol eax, 7
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
rol eax, 9
xor ebx, eax
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, ebx
rol eax, 0xd
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, ebx
ror eax, 0xe
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
add eax, edi
rol eax, 7
xor edx, eax
mov eax, dword [ebp - 4]
add eax, edx
rol eax, 9
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, edx
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x24]
ror eax, 0xe
xor dword [ebp - 4], eax
lea eax, [esi + ecx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0x24], edi
lea eax, [edi + ecx]
mov edi, dword [ebp - 0x2c]
rol eax, 9
xor edi, eax
mov eax, dword [ebp - 0x24]
add eax, edi
mov dword [ebp - 0x2c], edi
rol eax, 0xd
xor esi, eax
lea eax, [edi + esi]
ror eax, 0xe
xor ecx, eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
rol eax, 7
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x80], eax
add eax, dword [ebp - 0x18]
rol eax, 9
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x7c], eax
add eax, dword [ebp - 8]
rol eax, 0xd
mov edi, dword [ebp - 0x24]
xor edi, eax
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x24], edi
ror eax, 0xe
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x18]
xor edi, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
rol eax, 7
xor dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
add eax, dword [ebp - 0x1c]
rol eax, 9
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x84], edi
mov edi, dword [ebp - 0x2c]
xor edi, eax
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x2c], edi
rol eax, 0xd
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
add eax, edi
ror eax, 0xe
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x1c]
xor edi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x70], edi
mov edi, dword [ebp - 0x20]
add eax, edi
rol eax, 7
xor esi, eax
mov eax, dword [ebp - 4]
add eax, esi
rol eax, 9
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
add eax, esi
rol eax, 0xd
xor edi, eax
mov eax, edi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
add eax, dword [ebp - 0x14]
ror eax, 0xe
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
lea eax, [ecx + edx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x54], edi
lea eax, [ecx + edi]
rol eax, 9
xor ebx, eax
lea eax, [ebx + edi]
rol eax, 0xd
xor edx, eax
lea eax, [edx + ebx]
ror eax, 0xe
xor ecx, eax
sub dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x18]
jne 0x506340
mov edi, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x58], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ebx
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0xcc]
movups xmm1, xmmword [ebp + eax - 0x84]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0xcc], xmm1
movups xmm0, xmmword [ebp + eax - 0xbc]
movups xmm1, xmmword [ebp + eax - 0x74]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0xbc], xmm1
add eax, 0x20
cmp eax, 0x40
jl 0x506510
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.00401360
mov ebx, dword [ebp - 0x44]
mov edx, edi
movups xmm0, xmmword [ebp - 0xcc]
and edx, 1
mov ecx, edi
imul edx, dword [ebp + 0x10]
mov eax, ebx
shrd ecx, eax, 1
add esp, 8
shr eax, 1
add edx, ecx
shl edx, 6
add edx, dword [ebp + 8]
add edi, 1
mov dword [ebp - 0x3c], edi
adc ebx, 0
mov dword [ebp - 0x44], ebx
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xac]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x9c]
movups xmmword [edx + 0x30], xmm0
cmp ebx, dword [ebp - 0x88]
jb 0x506283
ja 0x5065cd
cmp edi, dword [ebp - 0x8c]
jb 0x506283
pop ebx
pop edi
lea eax, [ebp - 0xcc]
push 0x40
push eax
call fcn.00401360
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret