Function at 0x100aaf75
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 8
push edi
cmp dword [esi + 0xb4], 2
mov dword [esi + 0xb0], 0
jne 0x100aafec
mov eax, dword [esi + 0x38]
mov ecx, ebp
mov ebx, dword [esi + 0x3c]
sub ecx, eax
inc eax
shr ebx, cl
mov dword [esi + 0x38], eax
cmp eax, ebp
jb 0x100aafd6
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jb 0x100aafb9
lea ecx, [esi + 0x40]
call fcn.10006bb2
mov dl, al
jmp 0x100aafbf
mov dl, byte [eax]
inc eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x38], 0xfffffff8
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [esi + 0x3c], ecx
cmp dword [esi + 0x38], ebp
jae 0x100aafa5
test ebx, 0x800000
jne 0x100ab0b2
mov dword [esi + 0xb4], 0
mov eax, dword [esi + 0x3c]
mov ecx, ebp
sub ecx, dword [esi + 0x38]
mov ebx, 0x100f6e80
shr eax, cl
shr eax, 0x10
cmp dword [esi + 0xa0], 0x25
movzx ecx, al
mov eax, 0x100f6eb0
cmovae ebx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0xac]
xor edi, edi
add eax, 0x10
add eax, ebx
movzx edx, byte [ebx]
xor edx, ecx
mov dword [esp + 0x10], eax
mov ecx, ebp
movzx eax, byte [eax]
sub ecx, eax
shr edx, cl
test edx, edx
je 0x100ab05a
mov edx, dword [esp + 0x10]
sub edx, ebx
nop dword [eax]
movzx eax, byte [edx + ebx + 1]
lea ebx, [ebx + 1]
mov ecx, ebp
inc edi
sub ecx, eax
movzx eax, byte [ebx]
xor eax, dword [esp + 0x14]
shr eax, cl
test eax, eax
jne 0x100ab040
mov eax, dword [esp + 0x10]
movzx eax, byte [edi + eax]
add eax, dword [esi + 0x38]
mov dword [esi + 0x38], eax
cmp eax, 8
jb 0x100ab0a1
nop dword [eax]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jb 0x100ab084
lea ecx, [esi + 0x40]
call fcn.10006bb2
mov dl, al
jmp 0x100ab08a
mov dl, byte [eax]
inc eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x38], 0xfffffff8
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [esi + 0x3c], ecx
cmp dword [esi + 0x38], ebp
jae 0x100ab070
cmp edi, 9
jb 0x100ab1b3
jne 0x100ab0c7
inc dword [esi + 0xb4]
push dword [esi + 0x74]
mov ecx, esi
push dword [esi + 0x70]
call fcn.100aa580
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0xb4], 0
mov ecx, esi
cmp edi, 0xe
jne 0x100ab163
push 0x100f6ef0
call fcn.100aa710
mov ebx, dword [esi + 0x3c]
lea edx, [eax + 5]
mov eax, dword [esi + 0x38]
sub ebp, eax
mov dword [esp + 0x14], edx
mov ecx, ebp
add eax, 0xf
shr ebx, cl
shr ebx, 9
and ebx, 0x7fff
mov dword [esi + 0x38], eax
cmp eax, 8
jb 0x100ab146
nop dword [eax]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jb 0x100ab124
lea ecx, [esi + 0x40]
call fcn.10006bb2
mov dl, al
jmp 0x100ab12a
mov dl, byte [eax]
inc eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x38], 0xfffffff8
shl ecx, 8
movzx eax, dl
or ecx, eax
cmp dword [esi + 0x38], 8
mov dword [esi + 0x3c], ecx
jae 0x100ab110
mov edx, dword [esp + 0x14]
lea eax, [ebx + 0x7fff]
mov dword [esi + 0x74], edx
push edx
push eax
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.100aa580
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x78]
mov ebp, edi
sub eax, edi
inc eax
and eax, 3
push 0x100f6ee0
mov ebx, dword [esi + eax*4 + 0x7c]
call fcn.100aa710
mov edi, eax
cmp edi, 0xff
jne 0x100ab19c
cmp ebp, 0xa
jne 0x100ab19c
xor dword [esi + 0xac], 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebx, 0x100
jb 0x100ab20f
mov eax, dword [esi + 0xc0]
inc edi
dec eax
cmp ebx, eax
jb 0x100ab20f
inc edi
jmp 0x100ab20f
mov ecx, dword [esi + 0xa0]
add ecx, edi
mov dword [esi + 0xb4], 0
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [esi + 0xa0], ecx
mov ecx, esi
push 0x100f6f20
call fcn.100aa710
movzx ecx, al
mov ebx, dword [esi + ecx*4 + 0x4c4]
test al, al
je 0x100ab20f
dec dword [esi + ebx*4 + 0x14c4]
mov eax, dword [esi + ecx*4 + 0x4c0]
inc dword [esi + eax*4 + 0x14c4]
mov dword [esi + ecx*4 + 0x4c4], eax
mov dword [esi + ecx*4 + 0x4c0], ebx
mov eax, dword [esi + 0x78]
add edi, 2
push edi
push ebx
mov ecx, esi
mov dword [esi + eax*4 + 0x7c], ebx
mov eax, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], edi
and eax, 3
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], eax
call fcn.100aa580
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret