Function at 0x1000ac90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101242d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x30], esi
test esi, esi
je 0x1000acba
test eax, eax
jne 0x1000accb
cmp dword [ebp + 0xc], eax
je 0x1000ae9e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b993a
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x1000ae9e
push ebx
push edi
mov edx, dword [esi + 0x20]
mov bl, byte [eax]
xor edx, 0x18
shr edx, 3
mov ecx, 1
sub dword [ebp + 0xc], ecx
and edx, 0x3f
add eax, ecx
mov byte [edx + esi + 0x28], bl
add dword [esi + 0x20], 8
mov dword [ebp - 0x34], eax
jne 0x1000ad06
add dword [esi + 0x24], ecx
mov dword [esi + 0x20], 0
test dword [esi + 0x20], 0x1ff
jne 0x1000ae92
lea edx, [esi + 0x5c]
mov dword [ebp - 0x28], 0x34
lea ecx, [ecx]
mov ecx, dword [edx - 0x18]
xor ecx, dword [edx - 0x34]
mov eax, dword [edx]
mov edi, dword [edx - 0x28]
rol eax, 0xf
xor ecx, eax
rol edi, 7
mov ebx, ecx
rol ebx, 0x17
xor edi, ebx
rol ecx, 0xf
xor edi, ecx
xor edi, dword [edx - 0xc]
add edx, 4
xor edi, dword [edx - 0x1c]
xor edi, dword [edx - 0x38]
xor edi, eax
dec dword [ebp - 0x28]
mov dword [edx + 8], edi
jne 0x1000ad20
lea eax, [esi + 0x28]
mov ecx, 0x40
lea ecx, [ecx]
mov edx, dword [eax + 0x10]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x10c], edx
jne 0x1000ad60
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0xc], edx
xor edx, edx
add esi, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], esi
jmp 0x1000adb0
mov esi, dword [edx*4 + 0x101122b8]
mov edi, ebx
rol edi, 0xc
mov cl, dl
rol esi, cl
add esi, edi
add esi, eax
rol esi, 7
xor edi, esi
mov dword [ebp - 0x2c], edi
cmp edx, 0x10
jge 0x1000addb
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x20]
xor ecx, ebx
jmp 0x1000adea
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x20]
or ecx, ebx
and ecx, dword [ebp - 0x1c]
and edi, ebx
or ecx, edi
mov edi, dword [ebp - 0x28]
mov edi, dword [edi + 0x110]
add edi, ecx
add edi, dword [ebp - 0x18]
add edi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
cmp edx, 0x10
jge 0x1000ae0d
mov edi, dword [ebp - 0xc]
xor edi, dword [ebp - 0x10]
xor edi, eax
jmp 0x1000ae1f
mov edi, eax
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x14]
not edi
and edi, dword [ebp - 0xc]
or edi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, edi
add ecx, dword [ebp - 8]
add dword [ebp - 0x28], 4
add ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x20]
rol esi, 9
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x10]
rol esi, 0x13
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov eax, ecx
rol eax, 0x11
mov esi, ecx
rol esi, 9
xor eax, esi
xor eax, ecx
inc edx
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp edx, 0x40
jl 0x1000adb0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
sub ecx, eax
mov edx, 8
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x1000ae81
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
cmp dword [ebp + 0xc], 0
jne 0x1000acd7
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.100b993a
mov esp, ebp
pop ebp
ret