Function at 0x100b97f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
movzx eax, byte [edi + 0x1ba]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
test dword [ebx + 0xc], 0x4000000
je 0x100b9bdd
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0xfff0bdc0
mov dword [ebp - 8], esi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x100b984f
mov edx, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 8], esi
test edx, edx
jle 0x100b984f
mov eax, dword [ebx + 8]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], ecx
je 0x100b984c
inc esi
add eax, 0x10
cmp esi, edx
jl 0x100b9840
mov dword [ebp - 8], esi
mov eax, dword [ebx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov esi, dword [eax + 0x24]
test esi, esi
je 0x100b99ef
lea ebx, [ebx]
cmp byte [edi + 0x1ba], 0
push edx
push dword [esi + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
je 0x100b989d
push ebx
call fcn.100b8cf0
add esp, 0xc
jmp 0x100b98a8
push 0
push edi
call fcn.100bf150
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x100b99ca
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
call fcn.1009f9d0
add esp, 0x14
test eax, eax
jne 0x100b99ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100b98dc
mov edx, eax
mov dword [ebp - 0x10], eax
jmp 0x100b98e8
mov eax, dword [esi + 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x14], eax
jle 0x100b995d
mov ebx, dword [ebp + 0xc]
lea ecx, [eax*4]
mov eax, dword [ecx + edx]
cmp eax, dword [ebx + 4]
mov ebx, dword [ebp - 0xc]
jne 0x100b990e
mov dword [ecx + edx], 0xffffffff
cmp dword [ebx + 0x10c], 0
je 0x100b9951
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
test eax, eax
je 0x100b9929
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
jmp 0x100b992c
mov eax, dword [edx + 4]
push dword [ebp - 8]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0xc]
push dword [eax + ecx*8]
push dword [edx]
push edi
call fcn.100acaa0
mov edx, dword [ebp - 0x10]
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [esi + 0x14]
jl 0x100b98f2
mov eax, dword [ebp - 4]
push dword [eax]
push 0
push dword [eax + 0x14]
push dword [ebp - 8]
push edi
call fcn.100c9480
inc dword [edi + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100b9999
push dword [ebp - 0x18]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.1009adc0
add esp, 0x24
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b99bc
push dword [ebp - 0x18]
push 1
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.1009adc0
add esp, 0x24
push dword [ebp - 0x1c]
push ebx
call fcn.100b36a0
add esp, 8
jmp 0x100b99de
cmp dword [ebp - 0x24], 0
je 0x100b9bdc
cmp byte [ebx + 0x1e], 0
jne 0x100b9bdc
mov esi, dword [esi + 4]
mov edx, dword [ebp - 0x2c]
test esi, esi
jne 0x100b9870
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, ecx
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x100b9a0e
cmp byte [ecx], 0
je 0x100b9a06
nop
inc esi
cmp byte [esi], 0
jne 0x100b9a00
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x38
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0xc], 0
je 0x100b9a6c
xor eax, eax
mov dword [ebp - 0x20], ecx
test esi, esi
jle 0x100b9a5d
xor ebx, ebx
mov edi, esi
lea ebx, [ebx]
movzx eax, byte [ecx]
dec edi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x1015a3f8]
xor edx, ecx
mov ecx, dword [ebp - 0x20]
inc ecx
xor ebx, edx
mov dword [ebp - 0x20], ecx
test edi, edi
jg 0x100b9a30
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
div dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
jmp 0x100b9a6e
xor edx, edx
push edx
push esi
push ecx
push eax
call fcn.1009a310
add esp, 0x10
test eax, eax
je 0x100b9bdc
mov esi, dword [eax + 8]
test esi, esi
je 0x100b9bdc
lea ecx, [ecx]
cmp byte [esi + 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
jne 0x100b9aba
cmp dword [edi + 0x1a8], 0
jne 0x100b9aba
cmp byte [edi + 0x158], 0
je 0x100b9bd1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.1009f9d0
add esp, 0x14
test eax, eax
je 0x100b9aec
cmp dword [ebp - 0x24], 0
je 0x100b9bdc
cmp byte [ebx + 0x1e], 0
jne 0x100b9bdc
jmp 0x100b9bd1
push 0x40
push ebx
call fcn.100b3730
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100b9bc5
push 0x40
push 0
push eax
call fcn.1011a400
mov ecx, dword [ebp - 0x2c]
mov eax, 1
mov word [ecx + 2], ax
movsx eax, word [ecx]
push eax
push 1
push ecx
push ebx
call fcn.100c8710
mov ebx, eax
add esp, 0x1c
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1e], 0
je 0x100b9b3b
push ebx
mov ebx, eax
jmp 0x100b9bbc
movsx ecx, word [ebx]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx + eax*8 - 0x2c], 0
mov dword [ebx + eax*8 - 0x30], 0
mov eax, dword [esi]
mov dword [ebx + 0x14], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
inc word [eax + 0x20]
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x20], eax
inc dword [edi + 0x44]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x100b9b95
push 0xffffffffffffffff
push ecx
push dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
push ebx
push edi
call fcn.1009b700
mov eax, dword [ebp - 0x1c]
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b9bb1
push 1
push ecx
push dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
push ebx
push edi
call fcn.1009b700
add esp, 0x20
mov dword [ebx + 0xc], 0
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.100c8420
add esp, 8
push dword [ebp + 8]
push ebx
call fcn.100b36a0
add esp, 8
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x100b9a90
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret