Function at 0x4e1e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x3f]
shr ebx, 6
mov dword [ebp - 8], ebx
xor esi, esi
lea ebx, [ebx]
push 8
push ebx
call fcn.004b9228
add esp, 8
test eax, eax
je 0x4e1f2b
push 8
push ebx
mov dword [ebp + esi - 0x22c], eax
call fcn.004b9228
add esp, 8
test eax, eax
je 0x4e1f47
mov dword [ebp + esi - 0x42c], eax
add esi, 4
cmp esi, 0x200
jb 0x4e1e90
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x22c]
push edx
push eax
push edi
call fcn.004e1ab0
mov edx, dword [ebp + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push edx
push edi
call fcn.004e1ab0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push ecx
push edi
call fcn.004e1ab0
mov eax, dword [ebp + 0x18]
add esp, 0xc
lea edx, [ebp - 0x32c]
push edx
push eax
push edi
call fcn.004e1ab0
xor edx, edx
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], ebx
jmp 0x4e1f66
lea eax, [ebx*8]
push eax
push 0x5c0c70
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
lea ecx, [ebx*8]
push ecx
push 0x5c0c70
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov edi, dword [ebp + 8]
cmp edx, edi
jae 0x4e208d
mov eax, edx
and eax, 0x3f
mov ecx, dword [eax*8 + 0x520a68]
mov esi, dword [eax*8 + 0x520a6c]
shr edx, 6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edx
mov edi, ebx
cmp ebx, 0x80
jae 0x4e1ff1
mov ecx, dword [ebp + edi*4 - 0x42c]
mov eax, dword [ecx + edx*8]
mov ecx, dword [ecx + edx*8 + 4]
and eax, dword [ebp - 0x1c]
and ecx, esi
or eax, ecx
jne 0x4e1fb9
inc edi
cmp edi, 0x80
jb 0x4e1f97
jmp 0x4e1ff1
mov ecx, dword [ebp + edi*4 - 0x22c]
mov eax, dword [ebp + ebx*4 - 0x22c]
mov dword [ebp + ebx*4 - 0x22c], ecx
mov ecx, dword [ebp + edi*4 - 0x42c]
mov dword [ebp + edi*4 - 0x22c], eax
mov eax, dword [ebp + ebx*4 - 0x42c]
mov dword [ebp + ebx*4 - 0x42c], ecx
mov dword [ebp + edi*4 - 0x42c], eax
cmp edi, 0x80
je 0x4e207a
inc edi
cmp edi, 0x80
jae 0x4e2076
mov eax, dword [ebp + edi*4 - 0x42c]
mov ecx, dword [eax + edx*8]
mov esi, dword [eax + edx*8 + 4]
and ecx, dword [ebp - 0x1c]
and esi, dword [ebp - 0x18]
or ecx, esi
je 0x4e206d
cmp dword [ebp - 8], 0
jbe 0x4e206d
mov edx, dword [ebp + ebx*4 - 0x42c]
mov esi, dword [ebp + ebx*4 - 0x22c]
mov ecx, dword [ebp + edi*4 - 0x22c]
mov ebx, dword [ebp - 8]
sub edx, eax
sub esi, eax
sub ecx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [edx + eax]
xor dword [eax], ebx
mov ebx, dword [edx + eax + 4]
xor dword [eax + 4], ebx
mov ebx, dword [esi + eax]
xor dword [ecx + eax], ebx
mov ebx, dword [esi + eax + 4]
xor dword [ecx + eax + 4], ebx
add eax, 8
dec dword [ebp - 0x24]
jne 0x4e2045
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
inc edi
cmp edi, 0x80
jb 0x4e2006
inc ebx
mov dword [ebp - 0x28], ebx
mov edx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x20], edx
cmp ebx, 0x80
jb 0x4e1f63
xor ecx, ecx
xor esi, esi
cmp dword [ebp + 8], ecx
jbe 0x4e2118
mov eax, esi
and eax, 0x3f
mov edi, dword [eax*8 + 0x520a68]
mov eax, dword [eax*8 + 0x520a6c]
mov edx, esi
shr edx, 6
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
mov edi, ebx
cmp ebx, 0x40
jae 0x4e2102
mov dword [ebp - 8], 0x520a68
lea esp, [esp]
mov ecx, dword [ebp + edi*4 - 0x22c]
mov eax, dword [ecx + edx*8]
mov ecx, dword [ecx + edx*8 + 4]
and eax, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x18]
or eax, ecx
je 0x4e20f6
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
or dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
or dword [ebp - 0x10], eax
add dword [ebp - 8], 8
inc edi
cmp edi, 0x40
jb 0x4e20d0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax + esi*8], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + esi*8 + 4], edx
inc esi
cmp esi, dword [ebp + 8]
jb 0x4e209a
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp + esi - 0x22c]
push eax
call fcn.004b7229
mov ecx, dword [ebp + esi - 0x42c]
add esp, 4
push ecx
call fcn.004b7229
add esi, 4
add esp, 4
cmp esi, 0x200
jb 0x4e2120
cmp ebx, 0x40
jbe 0x4e2159
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x40
pop esi
sub eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret