Function at 0x1000b718
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edx
mov esi, edi
mov dword [ebp - 0x1c], ecx
push 0x110
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0x80000001
mov dword [ebp - 0x10], esi
call fcn.10009df4
mov ebx, eax
mov dword [ebp - 0x28], ebx
pop ecx
test ebx, ebx
je 0x1000b9ea
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
push ecx
mov dword [ebx + 0x108], ecx
call fcn.1000db85
pop ecx
pop ecx
mov cl, byte [ebp - 0x68]
lea eax, [ecx - 0x61]
cmp al, 0x19
movsx eax, cl
ja 0x1000b775
sub eax, 0x20
push 0x62c
mov byte [ebp - 0x68], al
call fcn.10009d9f
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x1000b8c4
mov eax, dword [0x10020fd8]
mov eax, dword [eax + 0x110]
push dword [eax]
mov eax, dword [0x10020fc8]
push ecx
call dword [eax + 0x68]
test eax, eax
jne 0x1000b8c1
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
mov eax, dword [0x10020fc8]
push dword [ebp - 0x14]
mov dword [ebp - 4], 0x80000003
call dword [eax + 0x20]
cmp dword [ebp - 8], esi
je 0x1000b92a
push edi
push dword [ebp - 0xc]
mov esi, 0x1001dd40
push esi
push dword [ebp - 8]
call fcn.1000a5a6
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000b9bc
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push edi
push eax
mov eax, dword [0x10020fc8]
push dword [ebp - 4]
call dword [eax + 0x14]
test eax, eax
je 0x1000b881
push 0xe39
call fcn.10009dbf
push edi
push eax
push 0x1001dcf4
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.1000a5f9
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], esi
call fcn.1000aa3b
mov ecx, dword [ebp - 8]
add esp, 0x18
call fcn.1000a4cf
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10020fc8]
call dword [eax + 0x30]
test eax, eax
jne 0x1000b861
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000b861
mov dword [eax], 1
lea eax, [ebp - 0x1c]
push 0xfffffffffffffffe
push eax
call fcn.10009e10
lea eax, [ebp - 0x14]
push 0xfffffffffffffffe
push eax
call fcn.10009e10
add esp, 0x10
mov esi, 0x1001dd40
jmp 0x1000b88c
mov eax, dword [0x10020fc8]
push dword [ebp - 0x20]
call dword [eax + 0x1c]
push edi
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0xc]
push esi
push dword [ebp - 8]
call fcn.1000a5a6
mov ecx, dword [0x10020fa0]
add esp, 0x18
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp - 8]
call dword [ecx + 0x38]
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10009e10
pop ecx
pop ecx
jmp 0x1000b92a
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x10020fd8]
cmp dword [ecx + 0x214], 3
jne 0x1000b912
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
mov eax, dword [ecx + 0x110]
mov dword [ebp - 4], 0x80000003
push dword [eax]
mov eax, dword [0x10020fc8]
call dword [eax + 0x20]
cmp dword [ebp - 0x14], esi
je 0x1000b92a
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, 0x1001dd40
push eax
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call fcn.1000a5a6
add esp, 0x18
jmp 0x1000b925
push edi
lea ecx, [ebp - 0x68]
push ecx
push 0x1001dd40
push eax
call fcn.1000a5a6
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0xc]
push eax
call fcn.1000aa21
pop ecx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x10020fc8]
push 0x20019
push edi
push esi
push dword [ebp - 4]
call dword [eax + 0x14]
test eax, eax
je 0x1000b973
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
mov eax, dword [0x10020fc8]
push esi
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
jne 0x1000b9bc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000b96e
mov dword [eax], edi
push dword [ebp - 0xc]
jmp 0x1000b983
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000b980
mov dword [eax], 1
push dword [ebp - 0x18]
mov eax, dword [0x10020fc8]
call dword [eax + 0x1c]
test esi, esi
je 0x1000b9bc
mov eax, dword [ebp - 4]
push esi
mov dword [ebx + 0x10c], eax
call fcn.1000db16
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x1000b9db
mov eax, edi
and eax, 3
mov al, byte [ebp + eax + 8]
xor al, byte [edi + esi]
mov byte [ebx + edi + 4], al
inc edi
cmp edi, dword [ebx]
jb 0x1000b9a5
jmp 0x1000b9db
lea eax, [ebp - 0x28]
push 0x110
push eax
call fcn.10009e10
push 0x40
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.10009f77
add esp, 0x14
mov ebx, edi
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call fcn.10009e10
pop ecx
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret