Function at 0x10008bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10008f10
cmp dword [ebp + 0x18], 0
je 0x10008f10
mov eax, dword [ebp + 0x1c]
lea esi, [eax + 7]
lea ecx, [eax - 0x21]
push esi
push 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
call fcn.1000f718
push esi
push 1
mov dword [esp + 0x28], eax
call fcn.1000f718
push 0x28
push 1
mov dword [esp + 0x2c], eax
call fcn.1000f718
mov esi, eax
push 0x28
push 1
mov dword [esp + 0x48], esi
call fcn.1000f718
mov edi, eax
push 0x28
push 1
mov dword [esp + 0x48], edi
call fcn.1000f718
add esp, 0x28
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x10008f03
cmp dword [esp + 0x14], 0
je 0x10008f03
test esi, esi
je 0x10008f03
test edi, edi
je 0x10008f03
test ebx, ebx
je 0x10008f03
mov eax, dword [ebp + 0x10]
push 0x20
test eax, eax
jne 0x10008c78
push eax
lea edx, [esp + 0x1b]
mov byte [esp + 0x1b], al
push edx
jmp 0x10008c7d
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.10001000
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x24]
add esp, 0xc
push edx
push 0
push edi
mov dword [esp + 0x28], eax
call fcn.10012fe0
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
mov byte [eax - 1], 1
call fcn.10013090
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x10008d1f
mov ecx, 8
lea esi, [esp + 0x38]
mov edi, ebx
mov dword [esp + 0x38], 0x42c560c6
mov dword [esp + 0x3c], 0x9ab89d4b
mov dword [esp + 0x40], 0xcf5d3078
mov dword [esp + 0x44], 0xfe8ffe7
mov dword [esp + 0x48], 0xd9a69287
mov dword [esp + 0x4c], 0xd1356868
mov dword [esp + 0x50], 0x828062af
mov dword [esp + 0x54], 0x85801c1c
rep movsd dword es:[edi], dword [esi]
jmp 0x10008d39
push ebx
mov edi, 0x20
call fcn.10004940
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10008e22
mov edi, dword [ebp + 0x1c]
mov esi, dword [esp + 0x14]
add edi, 0xffffffdf
push edi
add esi, 0x20
push esi
push 0x20
push ebx
call fcn.100085e0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10008e22
test edi, edi
je 0x10008d72
mov edx, dword [esp + 0x18]
mov cl, byte [eax + edx]
xor byte [esi + eax], cl
inc eax
cmp eax, edi
jb 0x10008d63
mov edx, dword [esp + 0x20]
push 0x20
push edx
push edi
push esi
call fcn.100085e0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10008e22
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, ebx
sub edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x2c], edx
mov edi, edx
mov edx, ebx
inc ecx
sub edx, dword [esp + 0x14]
lea esi, [ebx + 3]
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], 8
mov edx, dword [esp + 0x30]
movzx edx, byte [edx + eax]
xor dl, byte [eax]
add eax, 4
mov byte [edi + eax - 4], dl
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ecx]
xor dl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], dl
movzx edx, byte [eax - 2]
xor dl, byte [esi - 1]
add esi, 4
mov byte [ecx - 3], dl
movzx edx, byte [eax - 1]
xor dl, byte [esi - 4]
dec dword [esp + 0x1c]
mov byte [ecx - 2], dl
jne 0x10008dc1
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x14]
dec ecx
push ecx
mov byte [eax], 0
push edx
inc eax
push eax
call fcn.10013090
add esp, 0xc
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10008e4f
mov ecx, dword [esp + 0x24]
push ecx
push 0
push eax
call fcn.10012fe0
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call fcn.1000f5c6
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10008e74
mov ecx, dword [esp + 0x24]
push ecx
push 0
push eax
call fcn.10012fe0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call fcn.1000f5c6
add esp, 4
test esi, esi
je 0x10008ea0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], eax
call fcn.1000f5c6
add esp, 4
test edi, edi
je 0x10008ecc
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 ebx, ebx
je 0x10008ef8
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 [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], 1
jmp 0x10008e2a
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret