Function at 0x1009a4c0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015f960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, 0xff7f
push ebx
mov word [esp + 0x12], ax
mov word [esp + 0x1c], ax
mov al, byte [0x10197064]
push ebp
mov ebx, ecx
push esi
test al, 1
push edi
mov dword [esp + 0x10], ebx
mov byte [0x1018ca3d], 0xf9
mov word [esp + 0x1c], 0xff79
mov word [esp + 0x20], 0xff88
mov word [esp + 0x22], 0xff7b
mov word [esp + 0x24], 0xff7c
mov word [esp + 0x26], 0xff86
mov word [esp + 0x2a], 0xff7e
jne 0x1009a54e
or al, 1
mov ecx, 0x10197068
mov byte [0x10197064], al
lea eax, [esp + 0x1c]
push eax
call fcn.100a8430
push 0x100a8220
call fcn.1013c36b
add esp, 4
mov cl, byte [esp + 0x5c]
mov edi, dword [0x10197068]
xor ebp, ebp
mov byte [esp + 0x2c], cl
push ebp
lea ecx, [esp + 0x30]
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x2c]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1009a59e
mov edx, dword [esp + 0x30]
push esi
push edi
push edx
call fcn.100017d0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], esi
add esp, 0xc
mov word [eax + esi*2], bp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x5c], ebp
call fcn.1009d1c0
mov ebx, dword [esp + 0x5c]
mov byte [esp + 0x54], 1
push ebx
push eax
call fcn.1006a110
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
push 1
call fcn.1000bc70
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.1000bc70
test bl, bl
mov byte [0x1018ca3a], 0xd9
jne 0x1009a75f
mov eax, 0x2bb
mov word [esp + 0x14], 0x52
cdq
idiv dword [0x1018ca10]
mov eax, dword [0x1018ca0c]
mov word [esp + 0x16], 0x69
mov word [esp + 0x18], 0x6f
mov ebx, 2
mov cl, byte [edx + eax]
mov al, byte [0x1019706c]
test al, 1
mov byte [0x1018ca35], cl
jne 0x1009a694
or al, 1
push 8
mov byte [0x1019706c], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197070], eax
xor esi, esi
mov di, word [esp + esi + 0x14]
push 0xd
mov edx, edi
mov ecx, 0x10197070
and edx, 0xffff
push edx
call fcn.100a8ee0
mov ecx, dword [0x10197070]
add eax, 0xd
xor eax, edi
mov word [esi + ecx], ax
add esi, ebx
cmp esi, 6
jb 0x1009a64d
mov edx, dword [0x10197070]
push 0x100a82a0
mov word [edx + 6], bp
call fcn.1013c36b
add esp, 4
mov esi, dword [0x10197070]
mov al, byte [esp + 0x5c]
push esi
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x2c]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov dword [esp + 0x5c], ebx
call fcn.1009d1c0
mov ecx, dword [0x10191a54]
push eax
mov byte [esp + 0x58], 3
call fcn.10058e60
mov ecx, eax
call fcn.100686b0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x54], bl
cmp ecx, ebp
je 0x1009a71b
mov al, byte [ecx - 1]
test al, al
je 0x1009a70f
cmp al, 0xff
je 0x1009a70f
dec al
mov byte [ecx - 1], al
jmp 0x1009a71b
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
cmp ecx, ebp
mov dword [esp + 0x54], 0xffffffff
je 0x1009a755
mov al, byte [ecx - 1]
test al, al
je 0x1009a749
cmp al, 0xff
je 0x1009a749
dec al
mov byte [ecx - 1], al
jmp 0x1009a755
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov al, byte [0x1018ca37]
mov byte [0x1018ca3b], al
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4