Function at 0x100c55e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x3521cfb3
mul ebx
mov eax, ebx
mov ecx, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
push esi
push edi
sub ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
lea eax, [eax + ecx*8]
add eax, 0x10c
xor esi, esi
mov dword [ebp - 0xc], eax
mov edi, dword [eax + esi*4]
mov ecx, ebx
lea eax, [edi + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100c5640
test dl, dl
je 0x100c563c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100c5640
add ecx, 2
add eax, 2
test dl, dl
jne 0x100c5620
xor eax, eax
jmp 0x100c5645
sbb eax, eax
or eax, 1
test eax, eax
je 0x100c5827
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, 2
jl 0x100c5618
mov ecx, eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c5660
sub ebx, ecx
mov dword [ebp - 0x10], ebx
cmp ebx, 0x28
ja 0x100c57e7
mov eax, dword [ebp + 8]
mov esi, ebx
shr esi, 5
mov edx, ebx
inc esi
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
mov edi, dword [eax + 0x38]
xor edi, ebx
mov dword [ebp - 4], edi
cmp ebx, esi
jb 0x100c56b9
mov ebx, dword [ebp + 0xc]
movzx ecx, byte [ebx + edx - 1]
mov eax, edi
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, edi
shr eax, 2
add ecx, eax
xor edi, ecx
cmp edx, esi
jae 0x100c5695
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edi
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], edx
lea ecx, [edx - 1]
and ecx, edi
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x100c573d
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x100c5733
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x100c5701
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100c5706
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100c56f0
cmp esi, 0xfffffffc
je 0x100c5770
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100c5733
cmp esi, 0xfffffffd
je 0x100c5770
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100c5733
cmp esi, 0xfffffffe
je 0x100c5770
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100c5733
cmp esi, 0xffffffff
je 0x100c5770
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100c5770
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100c56d4
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
cmp dword [edi + 0x1c], edx
jl 0x100c5797
cmp edx, 0x3fffffff
jg 0x100c5797
lea eax, [edx + edx]
push eax
push dword [ebp + 8]
call fcn.100c5aa0
mov ecx, dword [edi + 0x20]
add esp, 8
mov esi, dword [ebp - 4]
dec ecx
mov eax, dword [edi + 0x18]
and ecx, esi
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
jmp 0x100c579a
mov eax, dword [ebp - 8]
mov cl, byte [edi + 5]
xor cl, 3
mov al, byte [eax + 0x3c]
xor al, 3
test cl, al
jne 0x100c5822
mov eax, dword [ebp - 0xc]
mov byte [edi + 5], cl
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [ebp + 8]
call fcn.100c3900
mov edi, eax
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 8], esi
mov byte [edi + 6], 0
push eax
mov byte [ebx + edi + 0x10], 0
call fcn.100d5770
mov ecx, dword [ebp - 0x10]
add esp, 0x18
mov byte [edi + 7], bl
mov eax, dword [ecx]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ecx], edi
inc dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffef
jae 0x100c5830
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov esi, dword [eax + 0x38]
lea eax, [ebx + 0x11]
push eax
push 0x14
push ecx
call fcn.100c3900
mov edi, eax
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 8], esi
mov byte [edi + 6], 0
mov byte [ebx + edi + 0x10], 0
push eax
mov dword [edi + 0xc], ebx
call fcn.100d5770
add esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call fcn.100cabf0
int3