Function at 0x60ae50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
test eax, eax
mov dword [esp + 0x34], eax
jne 0x60af6a
mov edx, dword [esp + 0x80]
test edx, edx
je 0x60b218
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
mov byte [edi + 4], 6
mov dword [edi + 8], 0x40
mov dword [esp], 0x100
call dword [eax]
test eax, eax
mov dword [edi], eax
je 0x60b20d
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [eax + 0xfc], 0
and edi, 0xfffffffc
sub eax, edi
lea ecx, [eax + 0x100]
mov eax, dword [esp + 0x34]
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov esi, dword [eax + 0x1f0]
movzx eax, byte [edx]
test al, al
je 0x60aef4
imul esi, esi, 0xf4243
add edx, 1
xor esi, eax
movzx eax, byte [edx]
test al, al
jne 0x60aee2
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov edi, dword [edi]
mov dword [esp + 0x30], eax
sub eax, 1
and esi, eax
shl esi, 2
add edi, esi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov eax, dword [ebx + 0x10]
mov dword [esp], ecx
call dword [eax]
mov dword [edi], eax
mov eax, dword [ebx]
mov edi, ebx
mov eax, dword [eax + esi]
test eax, eax
je 0x60b218
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ebx
call sub.msvcrt.dll_memset
add esi, dword [edi]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov dword [eax], ebx
add dword [edi + 0xc], 1
mov ebp, dword [esi]
lea esi, [esi]
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x1f0]
mov ebx, eax
mov dword [esp + 0x50], eax
movzx eax, byte [ecx]
test al, al
je 0x60afa6
movzx edx, al
nop
lea esi, [esi]
imul ebx, ebx, 0xf4243
add ecx, 1
xor ebx, edx
movzx edx, byte [ecx]
test dl, dl
jne 0x60af90
mov dword [esp + 0x50], ebx
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [edi - 1]
mov edi, dword [esp + 0x50]
mov esi, dword [esi]
mov ebx, edi
mov dword [esp + 0x30], esi
mov esi, edx
and ebx, edx
not edx
shr esi, 2
and edx, edi
mov dword [esp + 0x20], esi
mov edi, eax
mov esi, ebx
mov dword [esp + 0x38], edx
mov ebx, ecx
nop
lea esi, [esi]
mov ecx, dword [esp + 0x30]
lea eax, [esi*4]
lea edx, [ecx + eax]
mov ebp, dword [edx]
test ebp, ebp
je 0x60b054
mov edx, dword [ebp]
mov eax, edi
cmp al, byte [edx]
jne 0x60b025
test al, al
je 0x60af60
mov ecx, dword [esp + 0x18]
jmp 0x60b018
test al, al
je 0x60af60
add ecx, 1
add edx, 1
movzx eax, byte [ecx]
cmp al, byte [edx]
je 0x60b010
test bl, bl
jne 0x60b041
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
movzx ecx, byte [eax + 4]
sub ecx, 1
shr ebx, cl
and bl, byte [esp + 0x20]
or ebx, 1
movzx eax, bl
cmp esi, eax
jae 0x60b050
add esi, dword [esp + 0x34]
sub esi, eax
jmp 0x60afe0
sub esi, eax
jmp 0x60afe0
mov esi, eax
mov eax, dword [esp + 0x80]
mov edi, edx
test eax, eax
je 0x60b218
mov ebx, dword [esp + 0x1c]
movzx eax, byte [ebx + 4]
mov ebx, dword [ebx + 0xc]
mov edx, ebx
mov dword [esp + 0x30], ebx
lea ecx, [eax - 1]
shr edx, cl
test edx, edx
je 0x60af0b
lea ecx, [eax + 1]
mov eax, 1
shl eax, cl
mov byte [esp + 0x5b], cl
lea edi, [eax - 1]
mov dword [esp + 0x30], eax
lea ebx, [eax*4]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
mov dword [esp], ebx
call dword [eax]
test eax, eax
mov ebp, eax
je 0x60b218
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test eax, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
je 0x60b22f
mov ebx, dword [esp + 0x34]
mov edi, ebx
not ebx
mov dword [esp + 0x38], ebx
movzx ebx, byte [esp + 0x5b]
shr edi, 2
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x5c], ebx
sub ebx, 1
mov dword [esp + 0x54], ebx
lea esi, [esi]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x60b190
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx]
mov ecx, dword [eax + 0x1f0]
movzx eax, byte [edx]
test al, al
je 0x60b142
lea esi, [esi]
imul ecx, ecx, 0xf4243
add edx, 1
xor ecx, eax
movzx eax, byte [edx]
test al, al
jne 0x60b130
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
and edx, ecx
and eax, ecx
movzx ecx, byte [esp + 0x54]
shr eax, cl
and al, byte [esp + 0x40]
xor ecx, ecx
or eax, 1
nop
lea esi, [ebp + edx*4]
cmp dword [esi], 0
je 0x60b188
test cl, cl
cmove ecx, eax
movzx esi, cl
cmp edx, esi
jae 0x60b224
add edx, dword [esp + 0x30]
sub edx, esi
lea esi, [ebp + edx*4]
cmp dword [esi], 0
jne 0x60b169
mov eax, dword [esp + 0x1c]
mov dword [esi], ebx
mov eax, dword [eax]
add edi, 1
cmp edi, dword [esp + 0x20]
jne 0x60b110
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x10]
mov dword [esp], eax
call dword [edx + 8]
movzx eax, byte [esp + 0x5b]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov dword [edi], ebp
mov byte [edi + 4], al
mov eax, dword [esp + 0x30]
sub ecx, 1
mov dword [edi + 8], eax
mov eax, edx
and edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shr edx, cl
and eax, edi
shr edi, 2
mov ecx, edx
mov edx, edi
and edx, ecx
mov ecx, edx
xor edx, edx
or ecx, 1
lea esi, [eax*4]
lea edi, [ebp + esi]
mov ebx, dword [edi]
test ebx, ebx
je 0x60af0b
test dl, dl
cmove edx, ecx
movzx ebx, dl
cmp eax, ebx
jae 0x60b22b
add eax, dword [esp + 0x30]
sub eax, ebx
jmp 0x60b1e4
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], 0
add esp, 0x6c
xor ebp, ebp
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
sub edx, esi
jmp 0x60b160
sub eax, ebx
jmp 0x60b1e4
mov edi, dword [esp + 0x34]
not edi
mov dword [esp + 0x38], edi
movzx edi, byte [esp + 0x5b]
mov dword [esp + 0x5c], edi
jmp 0x60b19d