Function at 0x100650e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015bfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov cl, byte [0x1018c7c2]
mov al, 0xd9
sub al, cl
push ebx
mov byte [esp + 0xb], al
mov eax, 0x91
push ebp
mov ecx, 0xbc
push esi
mov word [esp + 0x42], ax
mov word [esp + 0x4e], ax
mov word [esp + 0x56], ax
mov word [esp + 0x62], ax
mov al, byte [0x1019778c]
push edi
mov word [esp + 0x4a], cx
mov word [esp + 0x4c], cx
mov word [esp + 0x50], cx
mov edi, 0xaf
mov esi, 0xab
mov edx, 0xbd
mov ecx, 0xa2
mov ebx, 0xba
mov word [esp + 0x40], 0xa0
test al, 1
mov word [esp + 0x42], di
mov word [esp + 0x44], 0xb8
mov word [esp + 0x48], si
mov word [esp + 0x4e], 0xa1
mov word [esp + 0x54], 0xbb
mov word [esp + 0x56], dx
mov word [esp + 0x58], si
mov word [esp + 0x5c], 0xac
mov word [esp + 0x5e], cx
mov word [esp + 0x60], di
mov word [esp + 0x62], 0xad
mov word [esp + 0x64], 0xa5
mov word [esp + 0x68], cx
mov word [esp + 0x6a], 0xa7
mov word [esp + 0x6c], dx
mov word [esp + 0x6e], bx
jne 0x10065224
or al, 1
push 0x32
mov byte [0x1019778c], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197790], eax
xor esi, esi
mov di, word [esp + esi + 0x40]
push 0xce
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, 0x10197790
call fcn.100a8ee0
mov edx, dword [0x10197790]
add eax, 0xce
xor eax, edi
mov word [esi + edx], ax
add esi, 2
cmp esi, 0x30
jb 0x100651d6
mov eax, dword [0x10197790]
push 0x10067780
mov word [eax + 0x30], 0
call fcn.1013c36b
add esp, 4
mov cl, byte [esp + 0x80]
mov edi, dword [0x10197790]
mov byte [esp + 0x1c], cl
push 0
lea ecx, [esp + 0x20]
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x1c]
push 1
push esi
call fcn.1000c010
test al, al
je 0x10065278
mov edx, dword [esp + 0x20]
push esi
push edi
push edx
call fcn.100017d0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
add esp, 0xc
mov word [eax + esi*2], 0
mov ebp, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ecx, dword [0x10191a54]
mov dword [esp + 0x80], 0
call fcn.10058e60
mov ecx, eax
call fcn.10068200
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x78], 0xffffffff
je 0x100652d2
mov al, byte [ecx - 1]
test al, al
je 0x100652c6
cmp al, 0xff
je 0x100652c6
dec al
mov byte [ecx - 1], al
jmp 0x100652d2
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov al, byte [0x10197794]
mov word [esp + 0x2c], 0xa6
test al, 1
mov word [esp + 0x2e], 0xa9
mov word [esp + 0x30], 0xbe
mov word [esp + 0x32], 0x97
mov word [esp + 0x34], 0xad
mov word [esp + 0x36], bx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], 0xa7
mov word [esp + 0x3c], bx
jne 0x10065381
mov bl, al
push 0x14
or bl, 1
mov byte [0x10197794], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10197798], eax
xor esi, esi
mov di, word [esp + esi + 0x2c]
push 0xc8
mov edx, edi
mov ecx, 0x10197798
and edx, 0xffff
push edx
call fcn.100a8ee0
mov ecx, dword [0x10197798]
add eax, 0xc8
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x12
jb 0x10065330
mov edx, dword [0x10197798]
push 0x10065450
mov word [edx + 0x12], 0
call fcn.1013c36b
add esp, 4
xor edi, edi
mov esi, dword [0x10197798]
mov al, byte [esp + 0x80]
push esi
mov byte [esp + 0x20], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ecx, dword [0x10191a54]
mov dword [esp + 0x80], 1
call fcn.10058e80
mov ecx, eax
call fcn.1007a6e0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
cmp ecx, edi
pop edi
pop esi
pop ebp
pop ebx
je 0x10065407
mov al, byte [ecx - 1]
test al, al
je 0x100653fb
cmp al, 0xff
je 0x100653fb
dec al
mov byte [ecx - 1], al
jmp 0x10065407
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov al, byte [0x1018c7c0]
mov dl, 0xf4
imul dl
mov cl, al
mov eax, 0x3e2
cdq
idiv dword [0x1018c79c]
mov eax, dword [0x1018c798]
mov dl, byte [edx + eax]
mov eax, dword [esp + 7]
push edx
push ecx
mov cl, byte [0x1018c7c2]
push eax
push ecx
call fcn.10064e90
mov ecx, dword [esp + 0x70]
mov byte [0x1018c7c2], al
mov dword fs:[0], ecx
add esp, 0x7c
ret