Function at 0x1009dac0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015fd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebp, ecx
mov eax, 0xffbd
mov ecx, 0xffb8
mov word [esp + 0x32], ax
mov word [esp + 0x3c], ax
mov word [esp + 0x46], ax
mov al, byte [0x1019707c]
mov word [esp + 0x2c], cx
mov word [esp + 0x30], cx
mov word [esp + 0x34], cx
mov edx, 0xffa7
mov ecx, 0xffba
test al, 1
mov word [esp + 0x2e], 0xffb7
mov word [esp + 0x36], 0xffbb
mov word [esp + 0x38], dx
mov word [esp + 0x3a], 0xffab
mov word [esp + 0x3e], cx
mov word [esp + 0x40], cx
mov word [esp + 0x42], dx
mov word [esp + 0x44], 0xffb6
mov word [esp + 0x48], 0xffb5
jne 0x1009db75
mov bl, al
lea eax, [esp + 0x2c]
or bl, 1
push eax
mov ecx, 0x10197080
mov byte [0x1019707c], bl
call fcn.100a83b0
push 0x100a8210
call fcn.1013c36b
add esp, 4
mov cl, byte [esp + 0xb]
push esi
xor ebx, ebx
push edi
mov edi, dword [0x10197080]
mov byte [esp + 0x14], cl
push ebx
lea ecx, [esp + 0x18]
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1009dbc7
mov edx, dword [esp + 0x18]
push esi
push edi
push edx
call fcn.100017d0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], esi
add esp, 0xc
mov word [eax + esi*2], bx
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], ebx
push ecx
mov ecx, dword [0x10191a54]
call fcn.10058e60
mov ecx, eax
call fcn.10068760
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.1000bc70
mov dl, byte [0x1018ca3d]
mov eax, 0x9c
add dl, 0x60
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], ax
mov al, byte [0x10197034]
mov byte [0x1018ca37], dl
mov edx, 0xb1
mov ecx, 0x9b
mov word [esp + 0x34], dx
test al, 1
mov word [esp + 0x36], 0x8d
mov word [esp + 0x38], cx
mov word [esp + 0x3e], dx
mov word [esp + 0x40], 0x80
mov word [esp + 0x42], cx
mov word [esp + 0x44], 0x83
jne 0x1009dcb3
or al, 1
push 0x14
mov byte [0x10197034], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197038], eax
xor esi, esi
mov di, word [esp + esi + 0x34]
push 0xee
mov eax, edi
mov ecx, 0x10197038
and eax, 0xffff
push eax
call fcn.100a8ee0
mov ecx, dword [0x10197038]
add eax, 0xee
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x12
jb 0x1009dc67
mov edx, dword [0x10197038]
push 0x100a8260
mov word [edx + 0x12], bx
call fcn.1013c36b
add esp, 4
mov esi, dword [0x10197038]
mov al, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x14]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x64], 1
call fcn.1009d1c0
mov ecx, dword [0x10191a54]
push eax
mov byte [esp + 0x60], 2
call fcn.10058e60
mov ecx, eax
call fcn.10068760
mov ecx, dword [esp + 0x28]
pop edi
cmp ecx, ebx
mov byte [esp + 0x58], 1
pop esi
je 0x1009dd3f
mov al, byte [ecx - 1]
cmp al, bl
je 0x1009dd33
cmp al, 0xff
je 0x1009dd33
dec al
mov byte [ecx - 1], al
jmp 0x1009dd3f
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x54], 0xffffffff
je 0x1009dd79
mov al, byte [ecx - 1]
cmp al, bl
je 0x1009dd6d
cmp al, 0xff
je 0x1009dd6d
dec al
mov byte [ecx - 1], al
jmp 0x1009dd79
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov al, byte [0x1018ca35]
mov ecx, dword [esp + 0x4c]
dec al
pop ebp
mov byte [0x1018ca35], al
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4