Function at 0x4e2490
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005a7170
push ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x174]
mov dword [esp + 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x4e27a8
jb 0x4e24cc
cmp eax, 0xffffffe0
ja 0x4e27a8
cmp dword [edi + 0x16c], 0
mov edx, dword [edi + 0x168]
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x38], eax
mov dword [esp + 8], edx
mov dword [esp + 0x14], ecx
je 0x4e2545
test ebx, ebx
jne 0x4e250b
lea eax, [edi + 0x60]
push eax
push ecx
call fcn.004e3690
add esp, 8
mov dword [edi + 0x16c], ebx
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret
movups xmm0, xmmword [ecx]
mov edx, 0x10
mov dword [esp + 8], edx
movups xmmword [edi + 0x178], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x16c], 0
jmp 0x4e2549
mov dword [esp + 0x14], ecx
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, edx
push ebp
mov ebp, dword [esp + 0x2c]
and eax, 0xf
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x4e25fb
lea ecx, [edi + 0x178]
add ecx, edx
mov dword [esp + 0x10], ecx
nop dword [eax]
test ebx, ebx
je 0x4e25eb
mov edi, dword [esp + 0x10]
inc edx
mov cl, byte [ebp]
dec ebx
inc dword [esp + 0x10]
inc ebp
mov byte [edi], cl
mov edi, dword [esp + 0x2c]
mov al, byte [eax + edi + 0x10]
xor al, cl
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x38], esi
and eax, 0xf
mov dword [esp + 0x18], eax
jne 0x4e2590
push edx
lea eax, [edi + 0x178]
push eax
lea eax, [edi + 0x60]
lea ecx, [edi + 0x40]
push eax
push ecx
call fcn.004e3460
mov eax, dword [esp + 0x28]
add esp, 0x10
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jmp 0x4e25ff
pop esi
pop ebp
mov dword [edi + 0x168], edx
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x38], esi
lea eax, [edi + 0x60]
cmp ebx, 0x10
jb 0x4e2628
test edx, edx
je 0x4e2628
push edx
lea ecx, [edi + 0x178]
push ecx
push eax
push dword [esp + 0x28]
call fcn.004e3460
add esp, 0x10
mov dword [esp + 0x10], 0
cmp ebx, 0xc00
jb 0x4e26ac
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x38], edx
nop
push 0xc00
push ebp
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x28]
call fcn.004e3460
push edi
push dword [esp + 0x34]
push 0xc0
push esi
push ebp
call dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, 0xc0
add esi, 0xc00
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
add ebp, 0xc00
mov byte [edi + 0xc], al
sub ebx, 0xc00
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
sub dword [esp + 0x38], 1
mov byte [edi + 0xe], al
jne 0x4e2640
mov dword [esp + 0x38], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x4e2714
push eax
mov esi, eax
lea eax, [edi + 0x60]
push ebp
push eax
push dword [esp + 0x28]
shr esi, 4
call fcn.004e3460
push edi
push dword [esp + 0x34]
push esi
push dword [esp + 0x54]
push ebp
call dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, esi
mov esi, dword [esp + 0x38]
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x24]
add esi, eax
add ebp, eax
mov byte [edi + 0xf], cl
mov dword [esp + 0x38], esi
sub ebx, eax
test ebx, ebx
je 0x4e2794
push dword [esp + 0x20]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
sub ebp, dword [esp + 0x38]
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x18]
lea edx, [eax + esi]
lea esi, [eax + 0x10]
lea eax, [ecx + 0x178]
add esi, edi
add eax, edi
add ecx, ebx
mov dword [esp + 0x24], eax
mov edi, eax
mov dword [esp + 0x10], ecx
mov cl, byte [edx + ebp]
lea edi, [edi + 1]
mov byte [edi - 1], cl
lea esi, [esi + 1]
mov al, byte [esi - 1]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub ebx, 1
jne 0x4e2774
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
mov dword [edi + 0x168], eax
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret