Function at 0x100b4210
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x101617ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x30], ebx
call fcn.100b3fa0
mov al, byte [0x1018caf0]
mov edi, 1
imul byte [0x1018caf1]
push eax
mov dword [esp + 0x40], edi
call fcn.100b77d0
mov byte [0x1018caf2], al
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
jne 0x100b42b1
mov esi, dword [esp + 0x40]
mov cl, byte [esp + 0xc]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.1000bc70
mov edx, dword [0x1016a210]
lea eax, [esp + 0xc]
push edx
push ebx
push eax
mov ecx, esi
call fcn.1000ba60
mov dword [esp + 0x2c], edi
push edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.1000bc70
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov al, byte [0x10196bec]
mov word [esp + 0x1c], 0x8f
test al, 1
mov word [esp + 0x1e], 0xa3
mov word [esp + 0x20], 0xa1
mov word [esp + 0x22], 0xbc
mov word [esp + 0x24], 0xb5
mov word [esp + 0x26], 0xba
mov word [esp + 0x28], 0xbf
mov word [esp + 0x2a], 0xb6
jne 0x100b4356
or al, 1
push 0x12
mov byte [0x10196bec], al
call fcn.1013c2df
add esp, 4
mov dword [0x10196bf0], eax
xor esi, esi
mov di, word [esp + esi + 0x1c]
push 0xd3
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, 0x10196bf0
call fcn.100a8ee0
mov edx, dword [0x10196bf0]
add eax, 0xd3
xor eax, edi
mov word [esi + edx], ax
add esi, 2
cmp esi, 0x10
jb 0x100b430a
mov eax, dword [0x10196bf0]
push 0x100ba640
mov word [eax + 0x10], bx
call fcn.1013c36b
add esp, 4
push ebp
mov ebp, dword [0x10196bf0]
push ebp
call fcn.1013c2c2
mov ecx, dword [0x1016a210]
mov edx, dword [esp + 0x1c]
mov esi, eax
sub ecx, edx
add esp, 4
cmp ecx, esi
ja 0x100b437d
call fcn.101307ab
cmp esi, ebx
jbe 0x100b43b7
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea edi, [edx + esi]
push edi
call fcn.1000c010
test al, al
je 0x100b43b7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push ebp
lea eax, [eax + ecx*2]
push eax
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.1000bff0
mov eax, dword [esp + 0x14]
mov byte [0x1018caf1], 0xe3
cmp eax, ebx
pop ebp
jne 0x100b43cc
mov eax, 0x1016a1d8
push eax
call fcn.100ba780
mov esi, dword [esp + 0x44]
add esp, 4
test eax, eax
jne 0x100b4408
mov dl, byte [esp + 0x40]
push 0x101913e8
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.1013c2c2
add esp, 4
mov ecx, esi
push eax
push 0x101913e8
call fcn.1000bf40
jmp 0x100b442b
mov al, byte [esp + 0xc]
mov dword [esi + 4], ebx
mov byte [esi], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x1016a210]
push ecx
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, esi
call fcn.1000ba60
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 1
cmp ecx, ebx
mov byte [esp + 0x38], bl
je 0x100b445d
mov al, byte [ecx - 1]
cmp al, bl
je 0x100b4451
cmp al, 0xff
je 0x100b4451
dec al
mov byte [ecx - 1], al
jmp 0x100b445d
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret