Function at 0x4e23c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x54], eax
mov dword [esp + 0x10], 0
je 0x4e25e9
sub esp, 0xc
mov esi, dword [esp + 0x6c]
push esi
call fcn.00478d30
pop ebx
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00478f50
mov dword [esp + 0x1c], eax
add esp, 0x10
test eax, eax
je 0x4e25ba
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
lea ebx, [eax + 4]
mov esi, dword [esp + 0xc]
cmp dword [esi + 8], ebx
jl 0x4e25d3
xor edx, edx
mov ebp, dword [esp + 0xc]
cmp edx, ebx
mov eax, ebx
mov dword [ebp + 4], ebx
jge 0x4e2443
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
mov dword [ecx + edx*4], 0
inc edx
cmp edx, ebx
jl 0x4e2437
mov edx, dword [esp + 0x58]
mov ebx, dword [edx + 4]
cmp ebx, 0
mov dword [esp + 0x14], 0
jle 0x4e256d
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov ebp, dword [edx + esi*4]
inc edi
mov dword [esp + 8], ebp
xor ebp, ebp
cmp edi, ebx
je 0x4e2486
mov edi, dword [esp + 0x14]
mov ebp, dword [edx + edi*4 + 4]
xor esi, esi
cmp ecx, 0
jle 0x4e2557
jmp 0x4e24a0
mov ebx, dword [esp + 0x54]
lea eax, [esi + 1]
mov edx, dword [ebx]
xor edi, edi
cmp eax, ecx
mov ebx, dword [edx + esi*4]
je 0x4e24b6
mov edi, dword [edx + esi*4 + 4]
sub esp, 8
push ebp
push edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
call fcn.004e1cb0
pop eax
pop edx
mov eax, dword [esp + 0x10]
push eax
push ebx
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
call fcn.004e1cb0
pop eax
pop edx
mov edx, dword [esp + 0x10]
xor edx, ebp
push edx
xor ebx, edi
push ebx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
call fcn.004e1cb0
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
xor ebx, ecx
mov eax, dword [esp + 0x2c]
xor ebx, eax
xor ebx, dword [esp + 0x28]
xor eax, ebx
xor eax, dword [esp + 0x20]
xor eax, ecx
mov edx, dword [esp + 0xc]
xor eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov ebx, dword [edx]
xor ecx, ecx
lea edx, [esi + edi]
mov edi, dword [esp + ecx*4 + 0x20]
inc ecx
xor dword [ebx + edx*4], edi
inc edx
cmp ecx, 3
jle 0x4e2530
mov ebx, dword [esp + 0x54]
add esi, 2
mov ecx, dword [ebx + 4]
cmp ecx, esi
jg 0x4e24a0
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 4]
add dword [esp + 0x14], 2
cmp ebx, dword [esp + 0x14]
jg 0x4e2462
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
mov ecx, eax
jle 0x4e2596
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
lea edx, [eax + ecx*4 - 4]
mov edi, dword [edx]
sub edx, 4
test edi, edi
jne 0x4e2596
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
mov ecx, ebx
jg 0x4e257d
push edi
mov eax, dword [esp + 0x60]
push eax
mov esi, dword [esp + 0x14]
push esi
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.004e1f50
add esp, 0x10
test eax, eax
je 0x4e25ba
mov dword [esp + 0x10], 1
sub esp, 0xc
mov edx, dword [esp + 0x6c]
push edx
call fcn.00478ca0
mov eax, dword [esp + 0x20]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 8
push ebx
push esi
call fcn.00476920
add esp, 0x10
test eax, eax
je 0x4e25ba
jmp 0x4e2422
mov edx, dword [esp + 0x60]
push edx
mov ebp, dword [esp + 0x60]
push ebp
push eax
mov edi, dword [esp + 0x5c]
push edi
call fcn.004e2220
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret