Function at 0x100090c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, eax
je 0x10009246
cmp dword [ebp + 0x14], 0
je 0x10009246
lea eax, [esi - 0x21]
push 0x28
push 1
mov dword [ebp - 8], eax
call fcn.1000f718
mov edi, eax
lea eax, [esi + 8]
push eax
push 1
mov dword [ebp - 0x14], eax
call fcn.1000f718
push 0x28
push 1
mov esi, eax
call fcn.1000f718
add esp, 0x18
mov ebx, eax
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x1000923d
test esi, esi
je 0x1000923d
test ebx, ebx
je 0x1000923d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x20
push edi
add eax, 0x21
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.100085e0
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009255
mov ebx, dword [ebp + 8]
mov edx, edi
lea ecx, [edi + 1]
lea eax, [ebx + 2]
sub edx, ebx
mov dword [ebp + 8], 8
movzx ebx, byte [eax - 1]
xor byte [ecx - 1], bl
movzx ebx, byte [eax]
xor byte [ecx], bl
movzx ebx, byte [eax + 1]
xor byte [edx + eax], bl
movzx ebx, byte [eax + 2]
xor byte [ecx + 2], bl
add eax, 4
add ecx, 4
dec dword [ebp + 8]
jne 0x10009161
mov ebx, dword [ebp - 8]
push ebx
push esi
push 0x20
push edi
call fcn.100085e0
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009252
test ebx, ebx
je 0x100091b3
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + eax]
xor byte [eax + esi], dl
inc eax
cmp eax, ebx
jb 0x100091a8
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
push 0x20
test eax, eax
jne 0x100091c8
mov byte [ebp + 0xb], al
push eax
lea eax, [ebp + 0xb]
jmp 0x100091cc
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.10001000
mov edx, ebx
add esp, 0xc
sub edx, esi
mov ecx, 0x20
mov eax, esi
mov dword [ebp + 8], edx
jmp 0x100091ea
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax]
cmp edx, dword [eax]
jne 0x10009234
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x100091e7
cmp byte [esi + 0x20], 1
mov eax, 0x20
je 0x1000920e
inc eax
cmp byte [eax + esi], 1
jne 0x10009207
mov edx, dword [ebp + 0x18]
lea ecx, [eax + 1]
mov eax, dword [ebp - 8]
sub eax, ecx
push eax
add ecx, esi
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
push ecx
push eax
call fcn.10013090
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x10009255
mov dword [ebp - 4], 0x1602
jmp 0x10009255
mov dword [ebp - 4], 1
jmp 0x10009255
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
test edi, edi
je 0x10009281
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
push edi
mov dword [edi + 0x24], eax
call fcn.1000f5c6
add esp, 4
test esi, esi
je 0x1000929d
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push esi
call fcn.10012fe0
add esp, 0xc
push esi
call fcn.1000f5c6
add esp, 4
test ebx, ebx
je 0x100092c9
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
push ebx
mov dword [ebx + 0x24], eax
call fcn.1000f5c6
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret