Function at 0x4e35d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], 0
push ecx
call fcn.00479880
pop eax
mov edx, dword [esp + 0x68]
push edx
call fcn.00479aa0
mov dword [esp + 0x48], eax
pop eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00479aa0
mov dword [esp + 0x44], eax
pop eax
mov ebp, dword [esp + 0x68]
push ebp
call fcn.00479aa0
mov dword [esp + 0x40], eax
pop edi
mov esi, dword [esp + 0x68]
push esi
call fcn.00479aa0
mov dword [esp + 0x3c], eax
add esp, 0x10
test eax, eax
je 0x4e3a10
sub esp, 8
push 1
mov ebx, dword [esp + 0x44]
push ebx
call fcn.00477df0
add esp, 0x10
test eax, eax
je 0x4e3a10
sub esp, 0xc
mov esi, dword [esp + 0x64]
push esi
call fcn.00477270
add esp, 0xc
push 0x1a8
push 0x531f90
lea edi, [eax*4]
push edi
mov ebp, eax
call fcn.00458b20
add esp, 0x10
test eax, eax
mov dword [esp + 0x24], eax
je 0x4e3a10
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 4]
xor esi, esi
test edx, edx
jne 0x4e3a29
xor eax, eax
test eax, eax
mov ebx, eax
je 0x4e36a3
cmp eax, ebp
jle 0x4e3af1
sub esp, 0xc
push 0x1ac
push 0x531f90
push 0x6a
push 0x83
push 3
call fcn.0045dc30
add esp, 0x20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4e36d9
sub esp, 0xc
mov edi, dword [esp + 0x30]
push edi
call fcn.00458e30
add esp, 0x10
test ebx, ebx
je 0x4e3a10
sub esp, 8
mov eax, dword [esp + 0x60]
push eax
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00477600
add esp, 0x10
test eax, eax
je 0x4e3a10
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 4]
test edx, edx
je 0x4e3a10
test edx, edx
jle 0x4e3720
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test byte [eax], 1
jne 0x4e3837
sub esp, 8
mov edx, dword [esp + 0x38]
push edx
mov esi, dword [esp + 0x3c]
push esi
call fcn.004d5770
add esp, 0x10
test eax, eax
je 0x4e3a10
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
test edx, edx
jle 0x4e3800
mov ecx, dword [edi]
test byte [ecx], 1
je 0x4e3800
mov eax, dword [esp + 0x58]
cmp edx, dword [eax + 4]
jge 0x4e3aac
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 8]
jg 0x4e3ad0
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e37ae
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov esi, dword [ecx]
mov ecx, dword [eax]
mov eax, dword [ecx + edx*4]
xor eax, dword [esi + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e37a0
cmp ebx, edx
jle 0x4e37cb
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x1c]
mov esi, dword [edi]
mov ecx, dword [ebp]
nop
mov eax, dword [ecx + edx*4]
mov dword [esi + edx*4], eax
inc edx
cmp ebx, edx
jg 0x4e37c0
test ebx, ebx
mov ecx, ebx
jle 0x4e3ae5
mov edx, dword [esp + 0x38]
mov esi, dword [edx]
lea edx, [esi + ebx*4 - 4]
dec ebx
mov ebp, dword [edx]
sub edx, 4
test ebp, ebp
jne 0x4e37f2
mov ecx, ebx
test ecx, ecx
lea ebx, [ebx - 1]
jg 0x4e37e0
mov ebx, dword [esp + 0x38]
mov dword [ebx + 4], ecx
lea esi, [esi]
sub esp, 8
mov eax, dword [esp + 0x40]
push eax
mov edi, dword [esp + 0x44]
push edi
call fcn.004d5770
add esp, 0x10
test eax, eax
je 0x4e3a10
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4e3720
mov eax, dword [ecx]
test byte [eax], 1
je 0x4e3720
dec edx
je 0x4e39e5
sub esp, 0xc
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.00477270
mov esi, eax
pop eax
mov edx, dword [esp + 0x38]
push edx
call fcn.00477270
add esp, 0x10
cmp esi, eax
jge 0x4e387f
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + 4]
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], esi
jge 0x4e3b17
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x30]
cmp esi, dword [edi + 8]
jg 0x4e3b41
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e38de
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [ebx]
mov ebx, dword [ecx]
mov ecx, dword [eax]
nop
mov eax, dword [ecx + edx*4]
xor eax, dword [ebx + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e38d0
cmp esi, edx
jle 0x4e38fa
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp]
mov ecx, dword [edi]
mov eax, dword [ecx + edx*4]
mov dword [ebx + edx*4], eax
inc edx
cmp esi, edx
jg 0x4e38ef
test esi, esi
mov ecx, esi
mov ebx, esi
jle 0x4e3b73
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
lea edx, [edi + esi*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4e3922
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e3910
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 4], eax
jge 0x4e3b2c
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
cmp esi, dword [ecx + 8]
jg 0x4e3b5a
mov eax, dword [esp + 8]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e398e
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, dword [ebx]
mov ebx, dword [ecx]
mov ecx, dword [eax]
lea esi, [esi]
mov eax, dword [ecx + edx*4]
xor eax, dword [ebx + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e3980
cmp esi, edx
jle 0x4e39aa
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [ebp]
mov eax, dword [ecx + edx*4]
mov dword [ebx + edx*4], eax
inc edx
cmp esi, edx
jg 0x4e399f
test esi, esi
mov ebx, esi
mov ecx, esi
jle 0x4e3b7f
mov edx, dword [esp + 0x38]
mov ebp, dword [edx]
lea edx, [ebp + esi*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4e39d2
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e39c0
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 4]
jmp 0x4e370d
cmp dword [eax], 1
jne 0x4e383e
sub esp, 8
mov edx, dword [esp + 0x40]
push edx
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.00477600
add esp, 0x10
test eax, eax
je 0x4e3a10
mov dword [esp + 0x28], 1
nop
sub esp, 0xc
mov esi, dword [esp + 0x68]
push esi
call fcn.004797f0
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 8
push 0
push eax
call fcn.00478340
add esp, 0x10
test eax, eax
je 0x4e3693
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + 4]
dec ecx
mov dword [esp + 0x20], ecx
js 0x4e3b10
mov eax, dword [edx]
shl ecx, 5
mov dword [esp + 4], eax
mov dword [esp], ecx
jmp 0x4e3a6d
sub dword [esp], 0x20
dec dword [esp + 0x20]
js 0x4e3b10
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x4e3a5f
mov ecx, 0x80000000
mov edx, 0x1f
mov ebx, eax
nop
lea esi, [esi]
test ecx, ebx
je 0x4e3aa5
cmp esi, ebp
jge 0x4e3aa4
mov eax, dword [esp]
add eax, edx
mov edi, dword [esp + 0x24]
mov dword [edi + esi*4], eax
inc esi
shr ecx, 1
dec edx
jns 0x4e3a90
jmp 0x4e3a5f
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x58]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 8]
jle 0x4e3780
sub esp, 8
push ebx
push eax
call fcn.00477470
add esp, 0x10
mov ebx, dword [edi + 4]
jmp 0x4e3780
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
jmp 0x4e3800
push eax
mov edx, dword [esp + 0x28]
push edx
mov esi, dword [esp + 0x5c]
push esi
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.004e2aa0
mov ebx, eax
add esp, 0x10
jmp 0x4e36c1
mov eax, esi
jmp 0x4e3695
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edx
jmp 0x4e389b
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
jmp 0x4e3945
sub esp, 8
push esi
push edi
call fcn.00477470
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
jmp 0x4e38af
sub esp, 8
push esi
push ecx
call fcn.00477470
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 4]
jmp 0x4e3959
mov ebp, dword [esp + 0x30]
mov dword [ebp + 4], esi
jmp 0x4e3929
mov edi, dword [esp + 0x38]
mov dword [edi + 4], esi
jmp 0x4e39d9