Function at 0x100c26f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x48]
push esi
call fcn.10146454
add esp, 4
mov ebp, eax
test eax, eax
jne 0x100c2977
push dword [esp + 0x44]
call fcn.10096164
add esp, 4
mov ebp, eax
test eax, eax
jne 0x100c2977
mov eax, dword [esp + 0x3c]
imul ecx, esi, 0x64
mov ebp, 0x20012
mov ebx, dword [ecx + 0x10483e24]
mov edi, eax
and eax, 7
shr edi, 3
cmp eax, 1
lea ecx, [ebx + ebx]
sbb edi, 0xffffffff
lea eax, [edi - 2]
sub eax, ecx
jbe 0x100c2977
cmp eax, dword [esp + 0x30]
jb 0x100c2977
mov dword [esp + 0x14], ecx
push edi
call fcn.10071f14
add esp, 4
mov ebp, eax
push edi
call fcn.10071f14
add esp, 4
mov ecx, ebx
mov ebx, eax
mov dword [esp + 4], ecx
push ecx
call fcn.10071f14
add esp, 4
test ebp, ebp
je 0x100c2795
test ebx, ebx
je 0x100c2795
test eax, eax
jne 0x100c27ca
test ebp, ebp
je 0x100c27a6
push ebp
mov esi, eax
call fcn.1007274c
mov eax, esi
add esp, 4
test ebx, ebx
je 0x100c27b7
push ebx
mov esi, eax
call fcn.1007274c
mov eax, esi
add esp, 4
mov ebp, 0xc
test eax, eax
je 0x100c2977
push eax
jmp 0x100c296f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 0x10], ebp
test eax, eax
je 0x100c27ec
mov ecx, esp
push ecx
push ebp
push dword [esp + 0x40]
push eax
jmp 0x100c27f3
mov eax, esp
push eax
push ebp
push 0
push ebp
push esi
call fcn.10181c54
add esp, 0x14
mov ebp, eax
test eax, eax
jne 0x100c2953
mov eax, dword [esp + 4]
mov ebp, 0xfffffffe
mov ebx, dword [esp + 0x10]
mov dword [esp], eax
mov ecx, eax
mov eax, dword [esp + 0x30]
sub ebp, eax
mov eax, ebx
add ebp, edi
add eax, ecx
sub ebp, dword [esp + 0x14]
push ebp
push 0
push eax
call fcn.10311124
add esp, 0xc
mov eax, dword [esp]
lea ecx, [eax + ebp]
lea eax, [eax + ebp + 1]
mov dword [esp], eax
mov byte [ebx + ecx], 1
mov eax, dword [esp]
add eax, ebx
mov ebx, dword [esp + 0x30]
push ebx
push dword [esp + 0x30]
push eax
call fcn.100e01c4
add esp, 0xc
add dword [esp], ebx
imul eax, dword [esp + 0x44], 0x2c
push dword [esp + 0x40]
mov ebx, dword [esp + 8]
push ebx
push dword [esp + 0x10]
call dword [eax + 0x104e351c]
add esp, 0xc
mov ebp, 0x20007
cmp eax, ebx
jne 0x100c2953
mov eax, dword [esp + 4]
mov ebx, eax
not ebx
add ebx, edi
push ebx
push dword [esp + 0x10]
push eax
push dword [esp + 0x14]
push esi
call fcn.1008d584
add esp, 0x14
mov ebp, eax
test eax, eax
jne 0x100c2953
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x100c28c8
xor eax, eax
mov cl, byte [edx + eax]
xor byte [ebp + eax], cl
inc eax
cmp eax, ebx
jne 0x100c28bc
push dword [esp + 4]
push edx
push ebx
push ebp
push esi
call fcn.1008d584
add esp, 0x14
mov ebp, eax
test eax, eax
jne 0x100c2953
mov esi, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
test esi, esi
je 0x100c28fc
xor eax, eax
mov cl, byte [edx + eax]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jne 0x100c28f0
mov ebp, dword [esp + 0x50]
cmp dword [ebp], edi
jae 0x100c290f
mov dword [ebp], edi
mov ebp, 0x20004
jmp 0x100c2953
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 4]
mov dword [esp], 1
mov byte [edi], 0
lea eax, [edi + 1]
push esi
push dword [esp + 0xc]
push eax
call fcn.100e01c4
add esp, 0xc
add esi, dword [esp]
mov dword [esp], esi
add esi, edi
push ebx
push dword [esp + 0x14]
push esi
call fcn.100e01c4
add esp, 0xc
add ebx, dword [esp]
mov dword [esp], ebx
mov dword [ebp], ebx
xor ebp, ebp
push dword [esp + 8]
call fcn.1007274c
add esp, 4
push dword [esp + 0xc]
call fcn.1007274c
add esp, 4
push dword [esp + 0x10]
call fcn.1007274c
add esp, 4
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret