Function at 0x1020a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x1e4], eax
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
cmp eax, 5
jne 0x1020a4a1
lea eax, [esp + 0x1ac]
push eax
push 1
push ecx
push edx
mov edx, esi
mov ecx, edi
call fcn.10209880
lea edx, [esi + 0x24]
add esp, 0x10
lea ecx, [esp + 0x1ac]
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1020a48b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1020a461
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x1020a4fa
lea eax, [esp + 0x1ac]
push eax
push 1
push ecx
push edx
mov edx, esi
mov ecx, edi
call fcn.10209e80
lea edx, [esi + 0x24]
add esp, 0x10
lea ecx, [esp + 0x1ac]
mov esi, 0x1c
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1020a48b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1020a4d0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov esi, 0x20
cdq
and edx, 7
lea edi, [edx + eax]
sar edi, 3
lea eax, [esp + 0x180]
cmp ecx, esi
cmovg ecx, esi
push ecx
push dword [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18c]
add esp, 0xc
sub esi, eax
add eax, ecx
push esi
push 0x10369394
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [esp + 0x34], 0
lea edx, [esp + 0x180]
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
push 0x20
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.101efd60
add esp, 4
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x20]
call fcn.101efe10
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x20], 3
jl 0x1020a60c
mov esi, 0x32
lea esp, [esp]
push 0x10
lea edx, [esp + 0x1b0]
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.101efd60
add esp, 4
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x20]
call fcn.101efe10
dec esi
jne 0x1020a5b0
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x20], 2
jne 0x1020a63f
push edi
lea edx, [esp + 0x1b0]
lea ecx, [esp + 0x7c]
call fcn.10256a40
add esp, 4
lea eax, [esi + 0x24]
lea edx, [esp + 0x180]
lea ecx, [esp + 0x78]
push 0x20
push eax
call fcn.10256ac0
add esp, 8
cmp dword [esi + 0x20], 3
jl 0x1020a731
movdqu xmm0, xmmword [esi + 0x24]
xor ecx, ecx
mov dword [esp + 0x10], ecx
movdqu xmmword [esp + 0x180], xmm0
movdqu xmm0, xmmword [esi + 0x34]
movdqu xmmword [esp + 0x190], xmm0
jmp 0x1020a670
xor eax, eax
test edi, edi
jle 0x1020a695
mov dl, 0x13
sub dl, cl
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x1ac]
xor cl, dl
mov byte [esp + eax + 0x1cc], cl
inc eax
cmp eax, edi
jl 0x1020a680
push edi
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x7c]
call fcn.10256a40
add esp, 4
xor esi, esi
jmp 0x1020a6b0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
inc edx
and edx, 0xff
movzx ecx, byte [esp + edx + 0x80]
add eax, ecx
mov dword [esp + 0xc], ecx
and eax, 0xff
movzx ecx, byte [esp + eax + 0x80]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], edx
mov byte [esp + eax + 0x80], cl
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add eax, ecx
mov byte [esp + edx + 0x80], cl
and eax, 0xff
mov al, byte [esp + eax + 0x80]
xor byte [esp + esi + 0x180], al
inc esi
cmp esi, 0x20
jb 0x1020a6b0
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x14
jl 0x1020a670
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x180]
push 0x20
push eax
mov edx, esi
call fcn.1020a340
mov ecx, dword [esp + 0x1f4]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret