Function at 0x4aeae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x7c]
push ebx
lea eax, [ebp - 0x18]
sub esp, 0x9c
mov dword [ebp - 0x94], ecx
mov dword [esp], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], esp
mov dword [ebp - 0x64], 0x567468
mov dword [ebp - 0x60], 0x5c2170
mov dword [ebp - 0x58], 0x4aef9b
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Register
mov ebx, dword [ebp - 0x94]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x78], 0xffffffff
call eax
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x3a], 1
mov dword [ebp - 0x88], eax
lea edx, [ebp - 0x3a]
mov eax, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x38]
sub esp, 8
mov dword [esp], eax
call fcn.00585d20
mov dword [ebp - 0x28], 0
sub esp, 4
mov dword [ebp - 0x1c], 0
mov dword [esp], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x78], 6
call fcn.0049b590
mov dword [esp], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call fcn.005769c0
lea eax, [ebp - 0x38]
sub esp, 4
mov dword [ebp - 0x78], 5
mov dword [esp], eax
lea ecx, [ebp - 0x28]
call fcn.00577e00
mov edx, dword [ebp - 0x94]
sub esp, 4
mov eax, dword [ebp - 0x24]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x78], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov ecx, edx
add ecx, 4
mov dword [esp], eax
call fcn.00584290
mov ecx, dword [ebp - 0x1c]
sub esp, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
test ecx, ecx
je 0x4aec19
test eax, eax
jne 0x4aeefa
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
test ecx, ecx
je 0x4aec2e
test eax, eax
jne 0x4aef69
mov ebx, dword [ebp - 0x94]
mov byte [ebp - 0x39], 0
lea edx, [ebp - 0x39]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], 1
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x78], 0xffffffff
call eax
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x38]
sub esp, 8
mov dword [esp], eax
call fcn.00585d20
mov dword [ebp - 0x28], 0
sub esp, 4
mov dword [ebp - 0x1c], 0
mov dword [esp], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x78], 8
call fcn.0049b590
mov dword [esp], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call fcn.005769c0
lea eax, [ebp - 0x38]
sub esp, 4
mov dword [ebp - 0x78], 7
mov dword [esp], eax
lea ecx, [ebp - 0x28]
call fcn.00577e00
mov eax, dword [ebp - 0x24]
sub esp, 4
mov edx, dword [ebp - 0x94]
mov ecx, dword [edx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x78], 4
mov dword [esp], eax
call fcn.00584290
mov ecx, dword [ebp - 0x1c]
sub esp, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
test ecx, ecx
je 0x4aed19
test eax, eax
jne 0x4aef44
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
test ecx, ecx
je 0x4aed2e
test eax, eax
jne 0x4aef1f
mov ebx, dword [ebp - 0x94]
cmp dword [ebp - 0x88], 7
mov eax, dword [ebx + 0x30]
mov edi, dword [ebx + 0x20]
jbe 0x4aef8e
mov edx, dword [ebp - 0x88]
sub edx, 8
shr edx, 3
lea ecx, [edx*8 + 8]
mov edx, edi
lea esi, [eax + ecx]
nop
mov ebx, dword [eax]
xor dword [edx], ebx
mov ebx, dword [eax + 4]
add eax, 8
xor dword [edx + 4], ebx
add edx, 8
cmp eax, esi
jne 0x4aed60
mov esi, dword [ebp - 0x88]
add ecx, edi
and esi, 7
test esi, esi
je 0x4aed9c
xor edx, edx
movzx ebx, byte [eax + edx]
xor byte [ecx + edx], bl
add edx, 1
cmp edx, esi
jne 0x4aed85
mov eax, dword [ebp - 0x94]
mov edi, dword [eax + 0x20]
mov edx, dword [ebp - 0x94]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], edi
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x78], 0xffffffff
call eax
mov ebx, dword [ebp - 0x94]
sub esp, 0xc
cmp dword [ebx + 8], 1
je 0x4aeec8
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], 1
sub eax, 8
shr eax, 3
lea eax, [eax*8 + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
and eax, 7
mov dword [ebp - 0x80], eax
nop
mov ebx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x90], ebx
mov esi, dword [edx + 0x20]
add eax, esi
add esi, dword [ebp - 0x90]
cmp ebx, 7
jbe 0x4aeeed
mov ebx, dword [ebp - 0x84]
mov edx, esi
add ebx, eax
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [eax]
xor dword [edx], ecx
mov ecx, dword [eax + 4]
add eax, 8
xor dword [edx + 4], ecx
add edx, 8
cmp eax, ebx
jne 0x4aee50
mov ecx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x80]
add ecx, esi
xor edx, edx
test edi, edi
je 0x4aee83
movzx ebx, byte [eax + edx]
xor byte [ecx + edx], bl
add edx, 1
cmp edx, edi
jne 0x4aee75
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], esi
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x78], 0xffffffff
call eax
mov edx, dword [ebp - 0x94]
add dword [ebp - 0x8c], 1
sub esp, 0xc
mov ebx, dword [ebp - 0x8c]
cmp dword [edx + 8], ebx
jne 0x4aee10
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x78], 0xffffffff
call fcn.004af060
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x88]
mov ecx, esi
jmp 0x4aee6f
test edx, edx
je 0x4aec19
mov ebx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x78], 1
call eax
sub esp, 8
jmp 0x4aec19
test edx, edx
je 0x4aed2e
mov ebx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x78], 0xffffffff
call eax
sub esp, 8
jmp 0x4aed2e
test edx, edx
je 0x4aed19
mov ebx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x78], 3
call eax
sub esp, 8
jmp 0x4aed19
test edx, edx
je 0x4aec2e
mov ebx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x78], 0xffffffff
call eax
sub esp, 8
jmp 0x4aec2e
mov esi, dword [ebp - 0x88]
mov ecx, edi
jmp 0x4aed7f