Function at 0x4a9090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4c
call fcn.005e28b0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
add dword [eax], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x24]
adc dword [eax + 4], 0
push ebx
mov ebx, dword [eax + 0x14]
push esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
push edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x3c], ebx
test ecx, ecx
je 0x4a92c1
mov ebx, 8
sub ebx, ecx
lea eax, [ecx + eax + 0x38]
cmp edx, ebx
jae 0x4a9117
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.005e02e0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [eax + 0x28], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
push edx
push eax
call fcn.005e02e0
sub dword [ebp + 0x10], ebx
add dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x3f]
cdq
shld edx, eax, 8
shl eax, 8
mov ebx, eax
movzx eax, byte [ecx + 0x3e]
mov ecx, edx
cdq
or ebx, eax
or ecx, edx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x3d]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x3c]
or ecx, edx
shld ecx, ebx, 8
cdq
or ecx, edx
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 0x3b]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x3a]
or ecx, edx
shld ecx, ebx, 8
cdq
or ecx, edx
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 0x39]
shld ecx, ebx, 8
cdq
shl ebx, 8
or eax, ebx
or ecx, edx
mov edx, dword [ebp + 8]
mov ebx, ecx
shld ebx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [edx + 0x38]
cdq
or ecx, eax
mov eax, dword [ebp + 8]
xor dword [esp + 0x34], ecx
or ebx, edx
xor dword [esp + 0x38], ebx
add esp, 0xc
cmp dword [eax + 0x30], 0
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
jle 0x4a92b3
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x38]
add dword [esp + 0x30], edx
mov eax, ebx
adc edi, ebx
shld ebx, edx, 0xd
shl edx, 0xd
shr eax, 0x13
or eax, edx
xor eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
or ecx, ebx
mov ebx, dword [esp + 0x28]
xor ecx, edi
add esi, ebx
adc dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov eax, edx
shld edx, ebx, 0x10
shr eax, 0x10
shl ebx, 0x10
or eax, ebx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
or ecx, edx
xor ecx, dword [esp + 0x44]
xor edx, edx
or edx, dword [esp + 0x30]
xor ebx, ebx
xor eax, esi
or edi, ebx
add edi, eax
adc edx, ecx
mov dword [esp + 0x30], edi
mov edi, edx
mov edx, ecx
shld ecx, eax, 0x15
shr edx, 0xb
shl eax, 0x15
or edx, eax
xor edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
or ebx, ecx
mov ecx, dword [esp + 0x3c]
xor ebx, edi
add esi, eax
adc dword [esp + 0x44], ecx
mov dword [esp + 0x28], edx
mov edx, ecx
shld ecx, eax, 0x11
shr edx, 0xf
shl eax, 0x11
or edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], ebx
xor edx, esi
xor ebx, ebx
or ebx, ecx
xor ebx, eax
mov dword [esp + 0x38], edx
xor ecx, ecx
xor edx, edx
or ecx, esi
or eax, edx
dec dword [esp + 0x10]
mov dword [esp + 0x3c], ebx
mov esi, eax
mov dword [esp + 0x44], ecx
jne 0x4a91e5
mov ecx, dword [esp + 0x48]
xor dword [esp + 0x30], ecx
xor edi, dword [esp + 0x4c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 7
sub edx, ecx
add edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
cmp ecx, edx
je 0x4a94bf
mov eax, dword [eax + 0x30]
add ecx, 6
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jmp 0x4a92f5
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov ebx, eax
movzx eax, byte [ecx]
mov ecx, edx
cdq
or ebx, eax
or ecx, edx
mov edx, dword [esp + 0x10]
movzx eax, byte [edx - 1]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax - 2]
or ecx, edx
shld ecx, ebx, 8
cdq
or ecx, edx
mov edx, dword [esp + 0x10]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx - 3]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax - 4]
or ecx, edx
shld ecx, ebx, 8
cdq
or ecx, edx
mov edx, dword [esp + 0x10]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx - 5]
shld ecx, ebx, 8
cdq
shl ebx, 8
or eax, ebx
or ecx, edx
mov edx, dword [esp + 0x10]
mov ebx, ecx
shld ebx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [edx - 6]
cdq
or ebx, edx
xor dword [esp + 0x2c], ebx
or ecx, eax
xor dword [esp + 0x28], ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
jle 0x4a949a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x38]
add dword [esp + 0x30], edx
mov eax, ebx
mov dword [esp + 0x54], 0
adc edi, ebx
shld ebx, edx, 0xd
shl edx, 0xd
xor ecx, ecx
or ecx, ebx
mov ebx, dword [esp + 0x28]
xor ecx, edi
shr eax, 0x13
or eax, edx
xor eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esi, ebx
adc dword [esp + 0x44], edx
mov dword [esp + 0x3c], ecx
mov ecx, edx
shld edx, ebx, 0x10
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x54]
or edx, dword [esp + 0x24]
shl ebx, 0x10
xor edx, dword [esp + 0x44]
shr ecx, 0x10
or ecx, ebx
xor ebx, ebx
or ebx, dword [esp + 0x30]
xor ecx, esi
mov dword [esp + 0x2c], edx
xor edx, edx
or edi, edx
mov edx, dword [esp + 0x2c]
add edi, ecx
adc ebx, edx
mov dword [esp + 0x34], ebx
mov ebx, edx
shld edx, ecx, 0x15
shl ecx, 0x15
mov dword [esp + 0x30], edi
shr ebx, 0xb
or ebx, ecx
xor ebx, dword [esp + 0x30]
xor edi, edi
or edi, edx
mov ecx, edi
mov edi, dword [esp + 0x34]
xor ecx, edi
add esi, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
adc dword [esp + 0x44], ecx
mov edx, ecx
shld ecx, eax, 0x11
shr edx, 0xf
shl eax, 0x11
or edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
xor edx, esi
xor ebx, ebx
or ebx, ecx
xor ebx, eax
mov dword [esp + 0x38], edx
xor ecx, ecx
xor edx, edx
or ecx, esi
or eax, edx
dec dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov esi, eax
mov dword [esp + 0x44], ecx
jne 0x4a93b2
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor dword [esp + 0x30], ecx
xor edi, dword [esp + 0x4c]
add eax, 8
mov dword [esp + 0x10], eax
add eax, 0xfffffffa
cmp eax, edx
jne 0x4a92f1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4a94d8
push ecx
push edx
add eax, 0x38
push eax
call fcn.005e02e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0xc], edi
pop edi
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x28]
pop esi
mov dword [eax + 0x14], ebx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
pop ebx
mov esp, ebp
pop ebp
ret