Function at 0x100b13c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 2
cmp dword [0x100d96e8], 3
jg 0x100b13e7
call fcn.100b1100
jmp 0x100b1746
cmp dword [0x100d96ec], 0
je 0x100b16ec
mov eax, dword [0x100d96f4]
shl eax, 5
mov ecx, dword [0x100dd7d8]
movzx edx, byte [ecx + 0x100f59a2]
xor eax, edx
and eax, 0x7fff
mov dword [0x100d96f4], eax
mov eax, dword [0x100d96f4]
movzx ecx, word [eax*2 + 0x1011a200]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x100dd7d8]
and edx, 0x7fff
mov ax, word [ebp - 0x14]
mov word [edx*2 + 0x1010a200], ax
mov ecx, dword [0x100d96f4]
mov dx, word [0x100dd7d8]
mov word [ecx*2 + 0x1011a200], dx
mov eax, dword [ebp - 0xc]
mov dword [0x100dd7c8], eax
mov ecx, dword [0x100dd7d0]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0x14], 0
je 0x100b14d2
mov edx, dword [0x100dd7c8]
cmp edx, dword [0x100d96f0]
jae 0x100b14d2
mov eax, dword [0x100dd7d8]
sub eax, dword [ebp - 0x14]
cmp eax, 0x7efa
ja 0x100b14d2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100b0ce0
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x100d96ec]
jbe 0x100b14af
mov eax, dword [0x100d96ec]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jne 0x100b14d2
mov ecx, dword [0x100dd7d8]
sub ecx, dword [0x100dd7d0]
cmp ecx, 0x1000
jbe 0x100b14d2
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [0x100dd7c8], 3
jb 0x100b161e
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x100dd7c8]
ja 0x100b161e
mov ecx, dword [0x100dd7c8]
sub ecx, 3
push ecx
mov edx, dword [0x100dd7d8]
sub edx, 1
sub edx, dword [ebp - 4]
push edx
call fcn.100aef70
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [0x100dd7c8]
sub eax, 1
mov ecx, dword [0x100d96ec]
sub ecx, eax
mov dword [0x100d96ec], ecx
mov edx, dword [0x100dd7c8]
sub edx, 2
mov dword [0x100dd7c8], edx
mov eax, dword [0x100dd7d8]
add eax, 1
mov dword [0x100dd7d8], eax
mov ecx, dword [0x100d96f4]
shl ecx, 5
mov edx, dword [0x100dd7d8]
movzx eax, byte [edx + 0x100f59a2]
xor ecx, eax
and ecx, 0x7fff
mov dword [0x100d96f4], ecx
mov ecx, dword [0x100d96f4]
movzx edx, word [ecx*2 + 0x1011a200]
mov dword [ebp - 0x14], edx
mov eax, dword [0x100dd7d8]
and eax, 0x7fff
mov cx, word [ebp - 0x14]
mov word [eax*2 + 0x1010a200], cx
mov edx, dword [0x100d96f4]
mov ax, word [0x100dd7d8]
mov word [edx*2 + 0x1011a200], ax
mov ecx, dword [0x100dd7c8]
sub ecx, 1
mov dword [0x100dd7c8], ecx
jne 0x100b1535
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 2
mov edx, dword [0x100dd7d8]
add edx, 1
mov dword [0x100dd7d8], edx
cmp dword [ebp - 8], 0
je 0x100b1619
cmp dword [0x100dd7d4], 0
jl 0x100b15ed
mov eax, dword [0x100dd7d4]
add eax, 0x100f59a0
mov dword [ebp - 0x18], eax
jmp 0x100b15f4
mov dword [ebp - 0x18], 0
push 0
mov ecx, dword [0x100dd7d8]
sub ecx, dword [0x100dd7d4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.100b0440
add esp, 0xc
mov eax, dword [0x100dd7d8]
mov dword [0x100dd7d4], eax
jmp 0x100b16cb
cmp dword [ebp - 0x10], 0
je 0x100b16a8
mov ecx, dword [0x100dd7d8]
movzx edx, byte [ecx + 0x100f599f]
push edx
push 0
call fcn.100aef70
add esp, 8
test eax, eax
je 0x100b1688
cmp dword [0x100dd7d4], 0
jl 0x100b165c
mov eax, dword [0x100dd7d4]
add eax, 0x100f59a0
mov dword [ebp - 0x1c], eax
jmp 0x100b1663
mov dword [ebp - 0x1c], 0
push 0
mov ecx, dword [0x100dd7d8]
sub ecx, dword [0x100dd7d4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100b0440
add esp, 0xc
mov eax, dword [0x100dd7d8]
mov dword [0x100dd7d4], eax
mov ecx, dword [0x100dd7d8]
add ecx, 1
mov dword [0x100dd7d8], ecx
mov edx, dword [0x100d96ec]
sub edx, 1
mov dword [0x100d96ec], edx
jmp 0x100b16cb
mov dword [ebp - 0x10], 1
mov eax, dword [0x100dd7d8]
add eax, 1
mov dword [0x100dd7d8], eax
mov ecx, dword [0x100d96ec]
sub ecx, 1
mov dword [0x100d96ec], ecx
cmp dword [0x100d96ec], 0x106
jae 0x100b16e7
cmp dword [0x100d967c], 0
jne 0x100b16e7
call fcn.100b0b40
jmp 0x100b16cb
jmp 0x100b13e7
cmp dword [ebp - 0x10], 0
je 0x100b170a
mov edx, dword [0x100dd7d8]
movzx eax, byte [edx + 0x100f599f]
push eax
push 0
call fcn.100aef70
add esp, 8
cmp dword [0x100dd7d4], 0
jl 0x100b1724
mov ecx, dword [0x100dd7d4]
add ecx, 0x100f59a0
mov dword [ebp - 0x20], ecx
jmp 0x100b172b
mov dword [ebp - 0x20], 0
push 1
mov edx, dword [0x100dd7d8]
sub edx, dword [0x100dd7d4]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.100b0440
add esp, 0xc
mov esp, ebp
pop ebp
ret