Function at 0x4a75ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xe4]
mov eax, dword [edi + 0x2e2]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x2e6]
test eax, eax
je 0x4a78af
mov dword [ebp - 0x10], eax
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x2ea]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x2ee]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
add eax, 4
and eax, 0xfffffffc
mov dword [esi + 4], eax
push esi
push dword [esi + 0xb4]
push dword [esi + 0xbc]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [esi + 0xdc]
call fcn.004a96d4
test eax, eax
je 0x4a78af
mov esi, eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
test eax, eax
je 0x4a78af
mov dword [ebp - 0x34], eax
shl eax, 4
lea eax, [eax + esi + 4]
mov dword [ebp - 0x40], eax
add dword [ebp - 8], 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 4
and eax, 0xfffffffc
mov dword [edx + 4], eax
xor eax, eax
mov dword [ebp - 4], eax
push edx
push dword [edx + 0xb4]
push dword [edx + 0xbc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [edx + 0xdc]
call fcn.004a96d4
test eax, eax
je 0x4a78af
mov esi, eax
mov dword [ebp - 4], eax
xor edx, edx
movzx ecx, word [esi]
add esi, 2
movzx eax, byte [esi + 0x1a]
and eax, 1
xor eax, 1
shl eax, 3
inc eax
add edx, eax
add esi, 0x1c
dec ecx
jne 0x4a76c6
mov dword [ebp - 0x3c], edx
shl edx, 2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
add eax, 4
and eax, 0xfffffffc
mov edi, eax
mov dword [ebx + 0x2ec], edi
lea eax, [edx + eax + 8]
mov dword [ebx + 4], eax
push ebx
push edi
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.004a78dc
movzx edx, word [esi]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
add dword [ebp - 4], 2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
add eax, 4
and eax, 0xfffffffc
mov dword [ebx + 0x2e8], eax
mov edx, dword [ebp - 0x34]
shl edx, 3
lea edx, [edx + edx*8]
add eax, edx
mov dword [ebx + 4], eax
mov edi, dword [ebp - 8]
xor edx, edx
dec dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [edi]
mov esi, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4a789c
xor edx, edx
movzx ecx, word [esi - 2]
jmp 0x4a7770
movzx ebx, byte [esi + 0x1a]
and ebx, 1
xor ebx, 1
lea edx, [edx + ebx*8 + 1]
add esi, 0x1c
dec ecx
je 0x4a789c
cmp eax, dword [esi]
jne 0x4a7758
mov dword [ebp - 0x28], edx
movzx eax, byte [edi + 0xc]
test eax, eax
je 0x4a785b
mov dword [ebp - 0x48], eax
shl edx, 2
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2ec]
mov esi, edx
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x38]
shl ecx, 4
add ecx, 4
sub ecx, dword [ebp - 0x20]
not ecx
inc ecx
shr ecx, 2
push edi
xor eax, eax
dec eax
mov edi, dword [ebp - 0x40]
repe scasd eax, dword es:[edi]
lea edx, [edi - 4]
pop edi
mov dword [ebp - 0x40], edx
mov ebx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x2e8]
mov eax, dword [ebp - 0x38]
shl eax, 3
lea eax, [eax + eax*8]
and ebx, 0xf
shl ebx, 3
add eax, ebx
add esi, eax
mov ebx, dword [edx + 4]
and ebx, 0x30
cmp ebx, 0x10
jne 0x4a780b
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
add eax, 4
and eax, 0xfffffffc
mov dword [esi + 4], eax
mov dword [ebx + 4], eax
add dword [ebx + 4], 4
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
mov dword [esi], ecx
mov esi, eax
mov eax, dword [edx]
mov dword [esi], eax
jmp 0x4a783d
cmp ebx, 0x20
jne 0x4a7838
add edx, 8
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [esi], edx
mov dword [esi + 4], eax
movzx eax, byte [edx + 0x18]
add al, byte [edx + 0x19]
adc ah, ah
lea edx, [eax + edx + 0x1c]
movzx eax, word [edx]
shl eax, 1
lea edx, [eax + edx + 2]
mov dword [ebp - 0x40], edx
jmp 0x4a783d
mov edx, dword [ebp - 0x28]
jmp 0x4a785b
mov edx, dword [ebp - 0x48]
dec edx
jne 0x4a7849
add dword [ebp - 0x40], 8
jmp 0x4a789c
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x40]
add edx, 8
add dword [ebp - 0x44], 4
jmp 0x4a77b9
mov eax, dword [ebp + 8]
shl edx, 2
add edx, dword [eax + 0x2ec]
movzx ecx, byte [esi + 0x1a]
and ecx, 1
xor ecx, 1
shl ecx, 3
inc ecx
mov esi, dword [eax + 0x2e8]
mov eax, dword [ebp - 0x38]
shl eax, 3
lea eax, [eax + eax*8]
add esi, eax
push edi
mov edi, esi
mov esi, edx
mov eax, dword [esi]
mov dword [edi], eax
mov dword [edi + 4], eax
add edi, 8
add esi, 4
dec ecx
jne 0x4a788b
pop edi
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
je 0x4a78af
inc dword [ebp - 0x38]
add edi, 0x10
jmp 0x4a7742
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x36c], ecx
mov eax, dword [edx + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [edx + 0x354], eax
lea ecx, [ecx + ecx*8]
shr ecx, 5
lea eax, [eax + ecx*4 + 4]
mov dword [edx + 4], eax
leave
ret 4