Function at 0x10081d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1015dc40
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov byte [0x1018c955], 0xff
call fcn.10080e20
test al, al
jne 0x10081d87
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov al, byte [esp + 3]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [0x1018c92c]
mov eax, 0x1dd
cdq
idiv ecx
mov esi, dword [0x1018c928]
mov al, byte [0x1018c956]
inc al
mov dword [esp + 0x68], ebx
mov dl, byte [edx + esi]
mov byte [0x1018c956], al
mov byte [esp + 0x10], dl
mov eax, dword [esp + 0x10]
push eax
mov eax, 0x22b
cdq
idiv ecx
mov cl, byte [edx + esi]
push ecx
call fcn.1007f600
add esp, 4
mov dl, 7
push eax
mov al, byte [0x1018c955]
sub dl, al
push edx
push 0xffffffffffffffb5
call fcn.1007f5f0
mov cl, byte [0x1018c954]
mov dl, byte [0x1018c956]
sub cl, dl
add esp, 0x10
add al, cl
mov edx, 0xd
add al, 0xf
mov ecx, 0x3b
mov byte [0x1018c950], al
mov eax, 0x3e
mov word [esp + 0x3e], ax
mov word [esp + 0x40], ax
mov eax, 0x11
mov word [esp + 0x34], 0x55
mov word [esp + 0x48], ax
mov word [esp + 0x54], ax
mov al, byte [0x10197334]
mov word [esp + 0x36], 0x1f
test al, 1
mov word [esp + 0x38], 0xf
mov word [esp + 0x3a], 0x19
mov word [esp + 0x3c], dx
mov word [esp + 0x42], 5
mov word [esp + 0x44], cx
mov word [esp + 0x46], 0x2b
mov word [esp + 0x4a], 8
mov word [esp + 0x4c], 0x1d
mov word [esp + 0x4e], 0x1c
mov word [esp + 0x50], dx
mov word [esp + 0x52], 0x15
mov word [esp + 0x56], 0x16
mov word [esp + 0x58], 0x2c
mov word [esp + 0x5a], cx
mov word [esp + 0x5c], 6
jne 0x10081f1a
push ebp
or al, 1
push 0x2c
mov byte [0x10197334], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197338], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x38]
push edi
mov edx, ebp
mov ecx, 0x10197338
and edx, 0xffff
push edx
call fcn.1004a650
mov ecx, dword [0x10197338]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10197338]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x2a
jb 0x10081ece
push 0x100880d0
mov word [eax + 0x2a], bx
call fcn.1013c36b
add esp, 4
pop ebp
mov esi, dword [0x10197338]
mov dl, byte [esp + 0xf]
push esi
mov byte [esp + 0x28], dl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x24]
push eax
push esi
call fcn.1000bf40
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [0x10191a54]
mov byte [esp + 0x70], 1
call fcn.10058e60
mov ecx, eax
call fcn.10068300
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x68], bl
cmp ecx, ebx
je 0x10081f93
mov al, byte [ecx - 1]
cmp al, bl
je 0x10081f87
cmp al, 0xff
je 0x10081f87
dec al
mov byte [ecx - 1], al
jmp 0x10081f93
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov eax, 0x3df
mov esi, dword [esp + 0x18]
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
cmp esi, ebx
mov cl, byte [edx + eax]
mov byte [0x1018c950], cl
mov ecx, dword [esp + 0x1c]
jne 0x10081fbd
xor eax, eax
jmp 0x10081fc4
mov eax, ecx
sub eax, esi
sar eax, 4
cmp eax, ebx
mov dword [esp + 0x68], 0xffffffff
sete bl
cmp esi, ecx
mov edi, ecx
je 0x10081feb
push 1
mov ecx, esi
call fcn.1000bc70
add esi, 0x10
cmp esi, edi
jne 0x10081fd7
mov esi, dword [esp + 0x18]
push esi
call fcn.101307a0
mov ecx, dword [esp + 0x64]
add esp, 4
mov al, bl
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x60
ret