Function at 0x10082010
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015dc7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, 0x316
mov cl, byte [0x1018c951]
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
dec cl
mov byte [0x1018c951], cl
push ebx
push ebp
push esi
push edi
mov al, byte [edx + eax]
mov dl, 0x7c
imul dl
mov dl, 1
sub dl, al
mov al, dl
imul cl
mov cl, 0xfb
imul cl
mov byte [esp + 0x1b], al
call fcn.10080e20
test al, al
je 0x10082507
mov dl, byte [0x1018c955]
xor ebp, ebp
inc dl
push ebp
mov byte [0x1018c955], dl
mov dl, byte [esp + 0x17]
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.1000bc70
mov eax, 0x311
mov dword [esp + 0x98], ebp
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
mov word [esp + 0x50], 0xffd7
mov word [esp + 0x52], 0xffec
mov word [esp + 0x5a], 0xffd4
mov word [esp + 0x5c], 0xffa0
mov word [esp + 0x60], 0xffe5
mov word [esp + 0x62], 0xffe2
mov cl, byte [edx + eax]
mov eax, 0xffd6
mov word [esp + 0x56], ax
mov word [esp + 0x58], ax
mov al, byte [0x101972ec]
mov byte [0x1018c953], cl
mov ecx, 0xffd3
test al, 1
mov word [esp + 0x54], cx
mov word [esp + 0x5e], cx
jne 0x1008212d
mov bl, al
lea edx, [esp + 0x50]
or bl, 1
push edx
mov ecx, 0x101972f0
mov byte [0x101972ec], bl
call fcn.10087710
push 0x10087790
call fcn.1013c36b
add esp, 4
mov al, byte [esp + 0x13]
mov edi, dword [0x101972f0]
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x30]
push 1
push esi
call fcn.1000c010
test al, al
je 0x10082179
mov ecx, dword [esp + 0x34]
push esi
push edi
push ecx
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x30]
push esi
call fcn.1000bff0
lea edx, [esp + 0x40]
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xa0], 1
call fcn.1008f160
add esp, 8
lea ecx, [esp + 0x30]
test al, al
push 1
mov byte [esp + 0x9c], 0
sete bl
call fcn.1000bc70
test bl, bl
jne 0x1008224d
push 1
call fcn.1008f800
mov al, byte [0x1018c956]
add esp, 4
mov bl, al
mov ecx, dword [0x1018c928]
add bl, 0x52
dec al
mov byte [0x1018c956], al
mov eax, 0x271
cdq
idiv dword [0x1018c92c]
mov dl, byte [edx + ecx]
add dl, 0x1e
push edx
push 0xffffffffffffffe1
call fcn.1007fc30
push eax
mov al, byte [0x1018c951]
mov esi, 0x11
push ebx
push esi
push 5
push eax
call fcn.1007fc40
add esp, 0xc
push eax
call fcn.1007f620
mov cl, al
mov eax, 0x3db
cdq
idiv dword [0x1018c92c]
mov al, cl
mov ecx, dword [0x1018c928]
imul byte [edx + ecx]
imul byte [0x1018c953]
push eax
call fcn.1007f600
mov ecx, dword [esp + 0xb8]
add esp, 0x18
cmp ecx, ebp
mov byte [0x1018c953], al
je 0x1008226a
call fcn.10062d80
test al, al
je 0x1008226a
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x9c], 0xffffffff
call fcn.1000bc70
xor al, al
jmp 0x10082509
mov dl, byte [esp + 0x13]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov eax, 0x327
mov ebx, 2
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
mov byte [esp + 0x98], bl
mov cl, byte [edx + eax]
lea edx, [esp + 0x20]
push edx
mov byte [0x1018c951], cl
sub esp, 0x10
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.10023d70
mov byte [esp + 0xac], bl
call fcn.100221a0
mov al, byte [esp + 0x2f]
add esp, 0x14
add al, 0x60
mov ecx, 0xd
mov byte [esp + 0x19], al
mov eax, 0x3e
mov word [esp + 0x6e], ax
mov word [esp + 0x70], ax
mov eax, 0x3b
mov word [esp + 0x64], 0x55
mov word [esp + 0x74], ax
mov word [esp + 0x8a], ax
mov al, byte [0x10197334]
mov word [esp + 0x66], 0x1f
test al, 1
mov word [esp + 0x68], 0xf
mov word [esp + 0x6a], 0x19
mov word [esp + 0x6c], cx
mov word [esp + 0x72], 5
mov word [esp + 0x76], 0x2b
mov word [esp + 0x78], si
mov word [esp + 0x7a], 8
mov word [esp + 0x7c], 0x1d
mov word [esp + 0x7e], 0x1c
mov word [esp + 0x80], cx
mov word [esp + 0x82], 0x15
mov word [esp + 0x84], si
mov word [esp + 0x86], 0x16
mov word [esp + 0x88], 0x2c
mov word [esp + 0x8c], 6
jne 0x100823f0
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 + 0x64]
push edi
mov ecx, ebp
and ecx, 0xffff
push ecx
mov ecx, 0x10197338
call fcn.1004a650
mov edx, dword [0x10197338]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + edx], ax
mov eax, dword [0x10197338]
mov di, word [esi + eax]
add esi, ebx
cmp esi, 0x2a
jb 0x100823a2
push 0x100880d0
mov word [eax + 0x2a], 0
call fcn.1013c36b
add esp, 4
xor ebp, ebp
mov esi, dword [0x10197338]
mov al, byte [esp + 0x13]
push esi
mov byte [esp + 0x34], al
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x30]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [0x10191a54]
push edx
mov byte [esp + 0xa0], 4
call fcn.10058e60
mov ecx, eax
call fcn.10068420
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x98], bl
cmp ecx, ebp
je 0x1008246f
mov al, byte [ecx - 1]
test al, al
je 0x10082463
cmp al, 0xff
je 0x10082463
dec al
mov byte [ecx - 1], al
jmp 0x1008246f
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov eax, dword [esp + 0x19]
push eax
push eax
mov eax, 0x135
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
mov cl, byte [edx + eax]
mov dl, byte [0x1018c951]
push ecx
push edx
call fcn.1007f5f0
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 0x10
cmp esi, edi
mov byte [esp + 0x98], 0
je 0x100824c1
push 1
mov ecx, esi
call fcn.1000bc70
add esi, 0x10
cmp esi, edi
jne 0x100824ad
mov esi, dword [esp + 0x24]
push esi
call fcn.101307a0
mov ecx, dword [esp + 0x48]
add esp, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
cmp ecx, ebp
mov dword [esp + 0x98], 0xffffffff
je 0x10082507
mov al, byte [ecx - 1]
test al, al
je 0x100824fb
cmp al, 0xff
je 0x100824fb
dec al
mov byte [ecx - 1], al
jmp 0x10082507
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret