Function at 0x100bc610
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101703d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x1023d090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
mov edx, dword [edi]
mov ecx, edx
mov esi, dword [edi + 0xc]
lea eax, [edx + 1]
add eax, esi
cmp edx, eax
je 0x100bc690
movaps xmm2, xmmword [0x10222260]
xorps xmm4, xmm4
movaps xmm3, xmmword [0x10222210]
movups xmm0, xmmword [ecx]
movaps xmm1, xmm4
pcmpgtb xmm1, xmm0
pandn xmm1, xmm3
por xmm1, xmm2
movups xmmword [ecx], xmm1
add ecx, 0x10
cmp ecx, eax
jne 0x100bc674
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
mov byte [esi + edx], 0xff
xor eax, eax
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x100bca30
xor ecx, ecx
mov dword [ebp - 0x40], 0xfffffff0
mov dword [ebp - 0x44], ecx
mov esi, dword [edi]
mov dword [ebp - 0x18], esi
cmp byte [esi + eax], 0xfe
lea edx, [esi + eax]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x40]
jne 0x100bca17
mov edx, dword [edi + 4]
xor eax, eax
add edx, ecx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
lea edx, [ecx + edx*4]
mov dword [ebp - 0x3c], edx
cmp ecx, edx
je 0x100bc709
mov edi, edx
mov esi, eax
mov edx, eax
shr edx, 2
shl esi, 6
add edx, 0x9e3779b9
add esi, dword [ecx]
add ecx, 4
add edx, esi
xor eax, edx
cmp ecx, edi
jne 0x100bc6e6
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x18]
movaps xmm2, xmmword [0x10222280]
mov ecx, 0xcc9e2d51
mul ecx
movaps xmm1, xmm2
mov ecx, edx
xor edx, edx
xor ecx, eax
mov dword [ebp - 0x3c], ecx
shr ecx, 7
and ecx, dword [edi + 0xc]
movups xmm0, xmmword [esi + ecx]
pcmpgtb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x100bc75b
nop dword [eax]
add edx, 0x10
movaps xmm1, xmm2
add ecx, edx
and ecx, dword [edi + 0xc]
movups xmm0, xmmword [esi + ecx]
pcmpgtb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
je 0x100bc740
mov edx, dword [edi + 0xc]
bsf esi, eax
mov dword [ebp - 0x18], 0
add esi, ecx
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
and esi, edx
and cl, 0x7f
shr eax, 7
and edx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, esi
sub ecx, edx
sub eax, edx
mov edx, dword [ebp - 0x3c]
xor ecx, eax
and ecx, dword [edi + 0xc]
test ecx, 0xfffffff0
jne 0x100bc7b8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov byte [eax], dl
mov eax, dword [edi + 0xc]
and ecx, eax
and eax, 0xf
add ecx, eax
mov eax, dword [edi]
mov byte [ecx + eax + 1], dl
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
jmp 0x100bca14
mov eax, dword [edi]
lea ecx, [esi - 0x10]
cmp byte [eax + esi], 0x80
mov byte [eax + esi], dl
mov eax, dword [edi + 0xc]
jne 0x100bc887
and ecx, eax
shl esi, 5
and eax, 0xf
add ecx, eax
mov eax, dword [edi]
mov byte [ecx + eax + 1], dl
add esi, dword [edi + 4]
mov ecx, dword [ebp - 0x44]
add ecx, dword [edi + 4]
mov dword [ebp - 0x3c], ecx
lea eax, [esi + 0xc]
mov dword [ebp - 0x48], esi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 3
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov edx, esp
mov dword [ebp - 4], 1
mov dword [edx], 0
mov ecx, dword [ecx]
mov dword [edx], ecx
mov eax, dword [eax + 4]
push ecx
lea eax, [ecx + eax*4]
mov ecx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, esi
call fcn.100cede0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp dword [edx + 8], 0
je 0x100bc85f
mov ecx, dword [edx]
lea eax, [edx + 0xc]
cmp eax, ecx
je 0x100bc85f
push ecx
call fcn.101392e0
add esp, 4
mov eax, dword [edi]
mov ecx, dword [ebp - 0x4c]
mov byte [ecx + eax], 0x80
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x40]
and ecx, eax
and eax, 0xf
add ecx, eax
mov eax, dword [edi]
mov byte [ecx + eax + 1], 0x80
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
jmp 0x100bca14
and ecx, eax
and eax, 0xf
add ecx, eax
mov eax, dword [edi]
mov byte [ecx + eax + 1], dl
lea ecx, [ebp - 0x38]
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 3
sub esp, 8
mov dword [ebp - 4], 3
mov edx, esp
mov dword [edx], 0
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
push ecx
lea eax, [ecx + eax*4]
mov ecx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.100cede0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
cmp dword [edx + 8], 0
je 0x100bc90e
mov ecx, dword [edx]
lea eax, [edx + 0xc]
cmp eax, ecx
je 0x100bc90e
push ecx
call fcn.101392e0
add esp, 4
mov eax, dword [edi + 4]
shl esi, 5
mov dword [ebp - 0x48], esi
lea ecx, [eax + esi]
mov esi, dword [ebp - 0x44]
add esi, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], esi
lea eax, [esi + 0xc]
mov dword [esi + 4], 0
mov dword [esi], eax
mov dword [esi + 8], 3
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov edx, esp
mov dword [ebp - 4], 5
mov dword [edx], 0
mov ecx, dword [ecx]
mov dword [edx], ecx
mov eax, dword [eax + 4]
push ecx
lea eax, [ecx + eax*4]
mov ecx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, esi
call fcn.100cede0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp dword [edx + 8], 0
je 0x100bc991
mov ecx, dword [edx]
lea eax, [edx + 0xc]
cmp eax, ecx
je 0x100bc991
push ecx
call fcn.101392e0
add esp, 4
mov esi, dword [edi + 4]
add esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], esi
lea eax, [esi + 0xc]
mov dword [esi + 4], 0
mov dword [esi], eax
mov dword [esi + 8], 3
sub esp, 8
mov dword [ebp - 4], 7
mov edx, esp
mov dword [edx], 0
mov ecx, dword [ebp - 0x38]
mov dword [edx], ecx
mov eax, dword [ebp - 0x34]
push ecx
lea eax, [ecx + eax*4]
mov ecx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
mov ecx, esi
call fcn.100cede0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp dword [ebp - 0x30], 0
je 0x100bca07
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x100bca07
push eax
call fcn.101392e0
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
dec eax
dec dword [ebp - 0x40]
sub ecx, 0x20
mov edx, dword [ebp - 0x40]
mov esi, dword [edi + 0xc]
inc eax
inc edx
mov dword [ebp - 0x4c], eax
add ecx, 0x20
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
cmp eax, esi
jne 0x100bc6b6
mov eax, esi
shr esi, 3
sub eax, dword [edi + 8]
sub eax, esi
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10138f44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret