Function at 0x100b22c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x24]
push esi
push edi
mov edi, edx
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x30]
lea esi, [eax + ecx*4]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], esi
cmp edx, 1
ja 0x100b22f5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x18
mov ecx, dword [esp + 0x34]
push ebp
lea ebp, [eax + 0x40000]
mov eax, 1
shl eax, cl
lea ebp, [ebp + ebx*4]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
cmp edx, eax
ja 0x100b2519
cmp edx, dword [esp + 0x44]
ja 0x100b2519
mov eax, dword [esp + 0x3c]
lea edi, [eax + ebx*4]
mov dword [esp + 0x44], 0
mov eax, dword [esi]
add eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x24], edi
sub ecx, ebx
mov dword [esp + 0x40], 1
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [ebp + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
shl eax, cl
mov dword [edi], eax
cmp edx, 1
jbe 0x100b2511
mov ecx, esi
lea eax, [edi + 4]
mov esi, dword [esp + 0x10]
sub ecx, edi
mov dword [esp + 0x1c], ecx
mov edi, eax
nop dword [eax]
mov ecx, dword [ecx + edi]
lea edi, [edi + 4]
add ecx, esi
mov eax, ecx
sub eax, ebx
cmp ecx, ebx
cmovb eax, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + eax*4]
mov eax, edx
xor edx, dword [esp + 0x18]
shl eax, cl
mov ecx, dword [esp + 0x40]
or eax, ecx
mov dword [edi - 4], eax
inc ecx
mov eax, dword [esp + 0x44]
or eax, edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x34]
cmp ecx, edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
jb 0x100b2380
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x100b2511
mov ecx, edi
call fcn.100c63e0
mov ebx, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [esp + 0x38]
dec ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov edx, eax
shr edx, cl
and eax, ebx
mov dword [esp + 0x40], edx
mov edx, 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], 0
mov eax, dword [esi + eax*4]
mov dword [edi], eax
jmp 0x100b241b
mov ecx, dword [esp + 0x38]
mov ebx, dword [edi + edx*4]
mov eax, ebx
shr eax, cl
cmp eax, dword [esp + 0x40]
je 0x100b248f
mov dword [esp + 0x40], eax
mov ecx, edx
mov eax, dword [esp + 0x30]
sub ecx, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0x3c], eax
sub ecx, 1
je 0x100b2487
mov ebp, dword [esp + 0x44]
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or dword [edi + ebp*4], eax
mov eax, ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + eax*4]
cmp ecx, 0x400
jb 0x100b2487
mov ebp, dword [esp + 0x44]
or eax, 0x40000000
and ecx, 0xfffffc00
shl ecx, 0xa
mov dword [edi + ebp*4], eax
mov eax, ebp
mov ebp, dword [esp + 0x14]
or dword [edi + eax*4 + 4], ecx
mov ecx, edx
mov dword [esp + 0x44], ecx
jmp 0x100b249b
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], 1
and ebx, dword [esp + 0x28]
mov eax, dword [esi + ebx*4]
mov ebx, dword [esp + 0x3c]
mov dword [edi + edx*4], eax
inc edx
mov dword [ebp + eax*4], ebx
mov ebx, dword [esp + 0x34]
cmp edx, ebx
jb 0x100b2417
sub edx, ecx
sub edx, 1
je 0x100b24ef
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or dword [edi + ecx*4], eax
cmp edx, 0x400
jb 0x100b24ef
or dword [edi + ecx*4], 0x40000000
and edx, 0xfffffc00
shl edx, 0xa
or dword [edi + ecx*4 + 4], edx
test ebx, ebx
je 0x100b2503
sub edi, esi
mov ecx, dword [edi + esi]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x100b24f5
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x18
lea ecx, [edx - 1]
jmp 0x100b2620
mov eax, dword [esi]
mov edx, 1
add eax, edi
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [ebp + ecx*4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jbe 0x100b2561
nop dword [eax + eax]
mov ecx, dword [esi + edx*4]
add ecx, edi
mov eax, ecx
sub eax, ebx
cmp ecx, ebx
cmovb eax, ecx
mov ecx, dword [esp + 0x28]
cmp dword [ebp + eax*4], ecx
mov eax, dword [esp + 0x34]
jne 0x100b2561
inc edx
cmp edx, eax
jb 0x100b2540
cmp edx, eax
je 0x100b261d
mov ecx, dword [esp + 0x44]
cmp ecx, 1
jbe 0x100b261d
mov ebp, dword [esp + 0x40]
lea edx, [ecx + 1]
shr edx, 1
add ebp, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ebp
xor edi, edi
nop dword [eax + eax]
mov edx, dword [esi + edi*4]
mov ecx, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x28], edx
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
cmovb edx, ecx
mov ecx, dword [esp + 0x14]
cmp dword [ecx + edx*4], ebp
jb 0x100b25e5
dec eax
cmp eax, edi
jbe 0x100b25ea
mov edx, dword [esi + eax*4]
add edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebx
cmp edx, ebx
cmovb ecx, edx
mov edx, dword [esp + 0x14]
cmp dword [edx + ecx*4], ebp
jb 0x100b25d4
dec eax
cmp eax, edi
ja 0x100b25b4
jmp 0x100b25ea
mov ecx, dword [esi + eax*4]
mov dword [esi + edi*4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + eax*4], ecx
cmp edi, eax
jae 0x100b25ea
inc edi
cmp edi, eax
jb 0x100b2590
test edi, edi
jne 0x100b2604
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub eax, ebp
add ecx, eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x34]
jmp 0x100b2610
mov eax, dword [esp + 0x34]
cmp edi, eax
jne 0x100b265e
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
cmp ecx, 1
ja 0x100b2576
lea ecx, [eax - 1]
test ecx, ecx
je 0x100b264f
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or dword [esi], eax
cmp ecx, 0x400
jb 0x100b264f
or dword [esi], 0x40000000
and ecx, 0xfffffc00
shl ecx, 0xa
or dword [esi + 4], ecx
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x18
mov ecx, edi
cmp edi, eax
jae 0x100b268b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
add eax, edi
mov ebp, dword [esp + 0x34]
mov ebx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + ecx*4]
inc ecx
mov dword [edx + eax*4], ebx
cmp ecx, ebp
jb 0x100b2678
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ecx, ebx
push dword [esp + 0x44]
mov edx, dword [esp + 0x18]
push eax
push dword [esp + 0x44]
push edi
push dword [esp + 0x44]
call fcn.100b22c0
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, ebx
sub eax, ebp
add eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x38]
push ebp
push dword [esp + 0x44]
sub eax, edi
push dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
add eax, edi
push eax
call fcn.100b22c0
pop ebp
pop edi
or eax, esi
pop esi
pop ebx
add esp, 0x1c
ret 0x18