Function at 0x4e1140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x34], edx
mov edx, dword [ecx + 0x24]
push ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 8]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
add ecx, 0x40
mov dword [ebp - 0x20], edx
sar edx, 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], ecx
push edi
cmp esi, eax
jge 0x4e1451
lea eax, [ecx + esi*4]
mov dword [ebp - 0x18], eax
nop
xor edi, edi
xor ebx, ebx
or edx, 0xffffffff
mov dword [ebp - 0x14], edi
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jge 0x4e145d
mov edi, dword [ebp - 4]
nop dword [eax + eax]
mov eax, dword [edi + ecx*4 + 0xbd4]
mov al, byte [esi + eax]
test al, al
je 0x4e11c0
cmp al, 1
jne 0x4e11b8
cmp edx, 0xffffffff
cmove edx, ebx
mov dword [edi + ebx*4 + 0x28e4], ecx
inc ebx
inc ecx
cmp ecx, dword [ebp - 0x1c]
jl 0x4e11a0
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4e145d
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
jge 0x4e1200
mov ebx, dword [ebp - 4]
nop
mov eax, dword [ebx + ecx*4 + 0xbd4]
cmp byte [esi + eax], 0
je 0x4e11f5
mov dword [ebx + edi*4 + 0x231c], ecx
inc edi
inc ecx
cmp ecx, esi
jl 0x4e11e0
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], edi
test edx, edx
jle 0x4e1221
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x28e4]
mov eax, dword [edi + edx*4 + 0x28e4]
mov dword [edi + 0x28e4], eax
mov dword [edi + edx*4 + 0x28e4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x28e4]
mov dword [ebp - 0xc], eax
mov edi, dword [ecx + eax*4 + 0xbd4]
mov al, byte [edi + esi]
cmp al, 1
jbe 0x4e12a7
mov ecx, dword [ebp - 0x30]
movzx eax, al
movzx edx, byte [eax + 0x6e6a90]
mov eax, dword [ebp - 0xc]
shl edx, 8
add edx, 0x6d6600
mov eax, dword [ecx + eax*4]
xor ecx, ecx
add eax, 8
cmp dword [ebp - 0x20], ecx
jle 0x4e1288
mov esi, dword [ebp - 0x20]
mov ebx, eax
movzx eax, byte [ecx + ebx]
mov al, byte [eax + edx]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x4e1266
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebx + eax*4 + 0xbd4]
mov ebx, dword [ebp - 8]
mov ecx, esi
cmp esi, dword [ebp - 0x10]
jge 0x4e12a4
mov ebx, dword [ebp - 0x10]
movzx eax, byte [ecx + edi]
mov al, byte [eax + edx]
mov byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x4e1292
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x30], 0
mov eax, dword [ecx + eax*4 + 0x40]
add eax, 8
mov dword [ecx + 0x11a4], eax
mov eax, 1
mov dword [ebp + 8], eax
cmp ebx, eax
jle 0x4e1367
nop
mov eax, dword [ecx + eax*4 + 0x28e4]
lea edx, [eax*4]
mov eax, dword [edx + ecx + 0xbd4]
lea edi, [edx + ecx]
mov al, byte [esi + eax]
mov byte [ebp - 0x24], al
test al, al
je 0x4e1358
push dword [ebp - 0x28]
mov edx, dword [edx + ecx + 0x40]
push dword [ebp - 0x24]
add edx, 8
call fcn.004e1cc0
mov eax, dword [ebp - 0xc]
add esp, 8
mov ecx, dword [ebp - 4]
movzx ebx, byte [ebp - 0x24]
mov edx, dword [edi + 0xbd4]
shl ebx, 8
mov edi, dword [ecx + eax*4 + 0xbd4]
add ebx, 0x6d6600
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x4e1355
lea ecx, [edx + esi]
sub edi, edx
mov edx, eax
sub edx, esi
nop word [eax + eax]
movzx eax, byte [edi + ecx]
lea ecx, [ecx + 1]
mov al, byte [eax + ebx]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4e1340
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, ebx
jl 0x4e12d0
xor eax, eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], eax
jle 0x4e140a
nop word [eax + eax]
mov eax, dword [ecx + eax*4 + 0x231c]
lea edx, [eax*4]
mov eax, dword [edx + ecx + 0xbd4]
lea edi, [edx + ecx]
mov al, byte [esi + eax]
mov byte [ebp - 0x2c], al
test al, al
je 0x4e13fa
push dword [ebp - 0x28]
mov edx, dword [edx + ecx + 0x40]
push dword [ebp - 0x2c]
add edx, 8
call fcn.004e1cc0
mov ecx, dword [edi + 0xbd4]
add esp, 8
movzx edi, byte [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
shl edi, 8
add edi, 0x6d6600
mov ebx, dword [ebx + eax*4 + 0xbd4]
cmp esi, edx
jge 0x4e13f7
sub ebx, ecx
lea eax, [ecx + esi]
sub edx, esi
movzx ecx, byte [ebx + eax]
lea eax, [eax + 1]
mov cl, byte [ecx + edi]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4e13e5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x14]
jl 0x4e1380
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
cmp edx, esi
je 0x4e143e
mov ebx, dword [ebp - 4]
mov ecx, dword [edi + 0xb94]
mov eax, dword [ebx + edx*4 + 0xbd4]
mov dword [edi + 0xb94], eax
mov dword [ebx + edx*4 + 0xbd4], ecx
mov ebx, dword [ebp - 0x30]
mov ecx, dword [edi]
mov eax, dword [ebx + edx*4]
mov dword [edi], eax
mov dword [ebx + edx*4], ecx
inc esi
add edi, 4
mov dword [ebp + 8], esi
mov dword [ebp - 0x18], edi
cmp esi, dword [ebp - 0x10]
jl 0x4e1180
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret