Function at 0x414d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], edx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 0xd0]
mov edi, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0x1ec]
mov edx, dword [ebx + 0x1f0]
mov dword [ebp - 0x48], eax
mov eax, esi
shr eax, 2
and esi, 3
push edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x60], edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x68], ecx
mov esi, dword [ebp - 0x48]
shl eax, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], edx
mov eax, dword [eax + edi]
mov eax, dword [esi + eax*4]
add eax, ecx
push eax
mov eax, dword [ebx + 0x2acc4]
call eax
mov ecx, dword [ebx + 0xcfac]
mov edx, eax
mov al, byte [ebx + 0x31a]
xor edi, edi
mov byte [ebp + 0xb], al
add esp, 8
movzx eax, al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], edi
test eax, eax
je 0x414ebf
mov esi, dword [ebp - 0x14]
mov ecx, edx
sar ecx, 9
xor ebx, ebx
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, 0x16
sub eax, ecx
cmp ecx, 0x16
cmovg ebx, eax
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x28], ebx
shl eax, 9
sub edx, eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
nop
push edi
mov edx, esi
mov ecx, eax
call fcn.00413a80
mov eax, dword [ebp - 0x24]
add esp, 4
movzx eax, byte [eax + edi + 0x31b]
lea esi, [eax + eax*8]
xor eax, eax
shl esi, 4
add esi, ebx
movsx edx, word [esi*4 + 0x4a99f2]
movsx ebx, word [esi*4 + 0x4a99f6]
movsx edi, word [esi*4 + 0x4a99f0]
sub ebx, edx
imul ebx, dword [ebp - 0x10]
movsx esi, word [esi*4 + 0x4a99f4]
sar ebx, 9
lea ecx, [ebx + edx]
test ecx, ecx
cmovs eax, ecx
sub esi, edi
imul esi, dword [ebp - 0x10]
sub ebx, eax
mov eax, dword [ebp - 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
imul ebx, ebx
sar esi, 9
mov edx, dword [edx]
sub edx, dword [ebp - 0x2c]
shr ebx, 4
mov dword [ebp + eax*4 - 0xb8], ebx
lea ecx, [esi + edi]
xor eax, eax
shl edx, 6
test ecx, ecx
cmovs eax, ecx
sub edx, eax
mov eax, ebx
add edx, esi
shr ebx, 6
mov esi, dword [ebp - 0x14]
add edx, edi
mov edi, dword [ebp - 0xc]
mov ecx, edx
and eax, 0x3f
and ecx, 0x3f
imul ecx, dword [ebp - 0x34]
add eax, 0x20
mov dword [ebp + edi*4 - 0xe8], edx
shr edx, 6
imul edx, dword [ebp - 0x34]
add eax, ecx
shr eax, 6
add eax, edx
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp + edi*4 - 0x118], eax
inc edi
mov eax, dword [ebp - 8]
add eax, 8
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jl 0x414de0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x184]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
add eax, 4
add eax, dword [ebp - 0x5c]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], ebx
nop
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
push dword [ebp - 0x64]
mov eax, dword [esi + eax*4]
add eax, ecx
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2acc4]
call eax
mov cl, byte [ebp + 0xb]
xor esi, esi
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], esi
test cl, cl
je 0x41515b
mov edx, eax
xor edi, edi
sar edx, 9
mov ecx, 0x16
sub ecx, edx
cmp edx, 0x16
cmovg edi, ecx
mov ecx, dword [ebp - 0x10]
add edi, edx
mov dword [ebp - 0x58], ecx
mov eax, edi
mov dword [ebp - 0x4c], edi
shl eax, 9
sub dword [ebp - 0x18], eax
lea eax, [ebp + ecx - 0x148]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
add eax, 0x31b
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x88]
push esi
call fcn.00413a80
mov eax, dword [ebp - 0x6c]
add esp, 4
movzx eax, byte [eax + esi]
lea esi, [eax + eax*8]
shl esi, 4
add esi, edi
movsx edx, word [esi*4 + 0x4a99f2]
movsx eax, word [esi*4 + 0x4a99f6]
sub eax, edx
movsx edi, word [esi*4 + 0x4a99f0]
imul eax, dword [ebp - 0x18]
movsx esi, word [esi*4 + 0x4a99f4]
sar eax, 9
mov dword [ebp - 0x1c], eax
lea ecx, [eax + edx]
xor eax, eax
test ecx, ecx
cmovs eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
sub esi, edi
imul esi, dword [ebp - 0x18]
add ecx, edx
mov edx, dword [ebp - 0x88]
xor eax, eax
imul ecx, ecx
sar esi, 9
shr ecx, 4
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + edi]
test ecx, ecx
cmovs eax, ecx
mov ecx, dword [ebp - 0xc]
sub esi, eax
mov eax, dword [ebp - 0x40]
add esi, edi
mov dword [ebp - 0x70], esi
sub edx, dword [ecx]
mov edi, dword [ebp + eax - 0xb8]
add edi, dword [ebp - 0x1c]
shl edx, 6
add edx, dword [ebp + eax - 0xe8]
mov eax, edi
add edx, esi
mov dword [ebp - 0x54], edi
and eax, 0x3f
mov dword [ebp - 0x50], edx
mov ecx, edx
add eax, 0x20
and ecx, 0x3f
xor esi, esi
imul ecx, dword [ebp - 0x34]
add ecx, eax
mov eax, edx
shr eax, 6
imul eax, dword [ebp - 0x34]
shr ecx, 6
add ecx, eax
mov eax, edi
shr eax, 6
add ecx, eax
mov eax, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], eax
cmp byte [ebp + 0xb], al
jbe 0x4150fc
nop word [eax + eax]
push dword [ebp - 0x38]
lea edi, [ebp - 0x88]
lea edi, [edi + eax*8]
add eax, dword [ebp - 0x44]
lea edx, [ebp - 0x19c]
mov ecx, edi
lea edx, [edx + eax*8]
call fcn.00413a80
mov eax, dword [ebp - 8]
add esp, 4
add eax, dword [ebp - 0x44]
mov edx, dword [edi]
sub edx, dword [ebp + eax*8 - 0x19c]
mov ebx, dword [ebp + eax*4 - 0xb8]
add ebx, dword [ebp - 0x1c]
shl edx, 6
add edx, dword [ebp + eax*4 - 0xe8]
mov eax, ebx
add edx, dword [ebp - 0x70]
and eax, 0x3f
add eax, 0x20
mov ecx, edx
and ecx, 0x3f
imul ecx, dword [ebp - 0x34]
add ecx, eax
mov eax, edx
shr eax, 6
imul eax, dword [ebp - 0x34]
shr ecx, 6
add ecx, eax
mov eax, ebx
shr eax, 6
add ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, dword [ebp - 0x30]
cmovae ebx, dword [ebp - 0x54]
cmovae eax, esi
cmovae edx, dword [ebp - 0x50]
mov esi, eax
mov eax, ecx
mov dword [ebp - 0x54], ebx
cmovae eax, dword [ebp - 0x30]
mov edi, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], ebx
cmp eax, dword [ebp - 0x20]
jl 0x415050
mov ecx, ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp + esi*8 - 0x88]
add dword [ebp - 0x3c], 8
mov dword [ebx], eax
mov eax, dword [ebp + esi*8 - 0x84]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x58]
mov dword [eax], esi
add eax, 4
mov esi, dword [ebp - 0x38]
mov dword [ebp + ebx - 0xb8], edi
inc esi
mov edi, dword [ebp - 0x4c]
mov dword [ebp + ebx - 0x118], ecx
mov dword [ebp + ebx - 0xe8], edx
add ebx, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x28], eax
cmp esi, dword [ebp - 0x20]
jl 0x414f61
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov cl, byte [ebp + 0xb]
mov eax, dword [ebp - 0x2c]
add ebx, 0xc
add dword [ebp - 0xc], 0x18
add eax, 4
add dword [ebp - 0x14], 0x18
add edi, 3
add dword [ebp - 0x10], 0xc
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
cmp ebx, 0x24
jl 0x414ef0
mov edi, dword [ebp - 0xf4]
xor esi, esi
mov dword [ebp + 8], edi
lea edx, [esi + 1]
cmp cl, dl
jbe 0x4151be
nop word [eax + eax]
mov ecx, dword [ebp + edx*4 - 0xf4]
mov eax, edx
cmp ecx, edi
cmovae eax, esi
cmovae ecx, edi
inc edx
mov esi, eax
mov edi, ecx
cmp edx, dword [ebp - 0x20]
jl 0x4151a0
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x60]
mov ebx, 9
mov eax, dword [ebp - 0x24]
add ecx, 0xc
mov edi, dword [ebp - 0x5c]
add edi, ecx
mov edx, dword [eax + 0xcc]
mov dword [ebp - 0x4c], edx
mov eax, dword [edi]
lea ecx, [edx + eax*4]
lea eax, [esi*4]
xor eax, dword [ecx]
and eax, 0xfc
xor dword [ecx], eax
nop
mov ecx, dword [edi - 4]
lea edi, [edi - 4]
sub ebx, 3
lea edx, [edx + ecx*4]
lea eax, [ebx + esi]
mov esi, dword [ebp + eax*4 - 0x13c]
lea ecx, [esi*4]
xor ecx, dword [edx]
and ecx, 0xfc
xor dword [edx], ecx
mov edx, dword [ebp - 0x4c]
test ebx, ebx
jg 0x4151f0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret