Function at 0x100b1100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [0x100dd7c8], 2
cmp dword [0x100d96ec], 0
je 0x100b137e
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 - 0xc], ecx
mov edx, dword [0x100dd7d8]
and edx, 0x7fff
mov ax, word [ebp - 0xc]
mov word [edx*2 + 0x1010a200], ax
mov ecx, dword [0x100d96f4]
mov dx, word [0x100dd7d8]
mov word [ecx*2 + 0x1011a200], dx
cmp dword [ebp - 0xc], 0
je 0x100b11b9
mov eax, dword [0x100dd7d8]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7efa
ja 0x100b11b9
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100b0ce0
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [0x100d96ec]
jbe 0x100b11b9
mov eax, dword [0x100d96ec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x100b12d9
mov ecx, dword [ebp - 8]
sub ecx, 3
push ecx
mov edx, dword [0x100dd7d8]
sub edx, dword [0x100dd7d0]
push edx
call fcn.100aef70
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [0x100d96ec]
sub eax, dword [ebp - 8]
mov dword [0x100d96ec], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x100d96f0]
ja 0x100b128f
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], 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 - 0xc], edx
mov eax, dword [0x100dd7d8]
and eax, 0x7fff
mov cx, word [ebp - 0xc]
mov word [eax*2 + 0x1010a200], cx
mov edx, dword [0x100d96f4]
mov ax, word [0x100dd7d8]
mov word [edx*2 + 0x1011a200], ax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jne 0x100b1207
mov edx, dword [0x100dd7d8]
add edx, 1
mov dword [0x100dd7d8], edx
jmp 0x100b12d7
mov eax, dword [0x100dd7d8]
add eax, dword [ebp - 8]
mov dword [0x100dd7d8], eax
mov dword [ebp - 8], 0
mov ecx, dword [0x100dd7d8]
movzx edx, byte [ecx + 0x100f59a0]
mov dword [0x100d96f4], edx
mov eax, dword [0x100d96f4]
shl eax, 5
mov ecx, dword [0x100dd7d8]
movzx edx, byte [ecx + 0x100f59a1]
xor eax, edx
and eax, 0x7fff
mov dword [0x100d96f4], eax
jmp 0x100b130f
mov eax, dword [0x100dd7d8]
movzx ecx, byte [eax + 0x100f59a0]
push ecx
push 0
call fcn.100aef70
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [0x100d96ec]
sub edx, 1
mov dword [0x100d96ec], edx
mov eax, dword [0x100dd7d8]
add eax, 1
mov dword [0x100dd7d8], eax
cmp dword [ebp - 4], 0
je 0x100b135d
cmp dword [0x100dd7d4], 0
jl 0x100b132f
mov ecx, dword [0x100dd7d4]
add ecx, 0x100f59a0
mov dword [ebp - 0x10], ecx
jmp 0x100b1336
mov dword [ebp - 0x10], 0
push 0
mov edx, dword [0x100dd7d8]
sub edx, dword [0x100dd7d4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.100b0440
add esp, 0xc
mov ecx, dword [0x100dd7d8]
mov dword [0x100dd7d4], ecx
cmp dword [0x100d96ec], 0x106
jae 0x100b1379
cmp dword [0x100d967c], 0
jne 0x100b1379
call fcn.100b0b40
jmp 0x100b135d
jmp 0x100b1117
cmp dword [0x100dd7d4], 0
jl 0x100b1398
mov edx, dword [0x100dd7d4]
add edx, 0x100f59a0
mov dword [ebp - 0x14], edx
jmp 0x100b139f
mov dword [ebp - 0x14], 0
push 1
mov eax, dword [0x100dd7d8]
sub eax, dword [0x100dd7d4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100b0440
add esp, 0xc
mov esp, ebp
pop ebp
ret