Function at 0x100a7be0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10160c68
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov byte [0x1018ca37], 0x30
push ebx
push esi
push edi
mov edi, dword [esp + 0x64]
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x100a7f08
mov al, byte [0x10196e54]
mov word [esp + 0x64], 0x6c
test al, 1
jne 0x100a7c46
or al, 1
push 0x5c
mov byte [0x10196e54], al
lea eax, [esp + 0x68]
push eax
mov ecx, 0x10196e58
call fcn.1000b9b0
push 0x100a7f20
call fcn.1013c36b
add esp, 4
mov esi, dword [0x10196e58]
push esi
call fcn.1013c2c2
mov ecx, dword [edi + 8]
add esp, 4
push eax
push esi
push ecx
push ebx
mov ecx, edi
call fcn.1000d2b0
cmp eax, ebx
je 0x100a7f08
mov dl, byte [esp + 0x60]
push ebp
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [0x1018ca34]
mov dword [esp + 0x5c], ebx
mov byte [0x1018ca39], al
mov al, byte [0x10196e8c]
mov esi, 6
mov ebp, 0x2c
test al, 1
mov word [esp + 0x30], 0x53
mov word [esp + 0x32], 0x13
mov word [esp + 0x34], si
mov word [esp + 0x36], 0x29
mov word [esp + 0x38], 0x39
mov word [esp + 0x3a], 3
mov word [esp + 0x3c], bx
mov word [esp + 0x3e], 1
mov word [esp + 0x40], 0x3b
mov word [esp + 0x42], 0x3a
mov word [esp + 0x44], 0xb
mov word [esp + 0x46], 0x1a
mov word [esp + 0x48], si
mov word [esp + 0x4a], 0x1b
mov word [esp + 0x4c], 0xc
mov word [esp + 0x4e], 0x16
mov word [esp + 0x50], bp
jne 0x100a7d33
lea ecx, [esp + 0x30]
or al, 1
push ecx
mov ecx, 0x10196e90
mov byte [0x10196e8c], al
call fcn.10010900
push 0x100a8310
call fcn.1013c36b
add esp, 4
mov edx, dword [esp + 0x64]
mov eax, dword [0x10196e90]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.1000cdb0
add esp, 0xc
mov ecx, dword [0x10191a54]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x64], 1
call fcn.10058e60
mov ecx, eax
call fcn.10068300
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], bl
call fcn.1000bc70
mov cl, byte [0x1018ca38]
mov eax, dword [esp + 0x18]
dec cl
push edi
mov byte [0x1018ca38], cl
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.10024390
mov al, byte [0x10196e8c]
mov word [esp + 0x30], 0x53
test al, 1
mov word [esp + 0x32], 0x13
mov word [esp + 0x34], si
mov word [esp + 0x36], 0x29
mov word [esp + 0x38], 0x39
mov word [esp + 0x3a], 3
mov word [esp + 0x3c], bx
mov word [esp + 0x3e], 1
mov word [esp + 0x40], 0x3b
mov word [esp + 0x42], 0x3a
mov word [esp + 0x44], 0xb
mov word [esp + 0x46], 0x1a
mov word [esp + 0x48], si
mov word [esp + 0x4a], 0x1b
mov word [esp + 0x4c], 0xc
mov word [esp + 0x4e], 0x16
mov word [esp + 0x50], bp
jne 0x100a7e76
or al, 1
push 0x24
mov byte [0x10196e8c], al
call fcn.1013c2df
add esp, 4
mov dword [0x10196e90], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x30]
push edi
mov ecx, ebp
and ecx, 0xffff
push ecx
mov ecx, 0x10196e90
call fcn.1004a650
mov edx, dword [0x10196e90]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + edx], ax
mov eax, dword [0x10196e90]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x22
jb 0x100a7e2b
push 0x100a8310
mov word [eax + 0x22], bx
call fcn.1013c36b
add esp, 4
mov eax, dword [esp + 0x64]
mov ecx, dword [0x10196e90]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.1000cdb0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 2
push ecx
mov ecx, dword [0x10191a54]
push eax
call fcn.10058e60
mov ecx, eax
call fcn.10068420
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x5c], bl
cmp ecx, ebx
pop ebp
je 0x100a7ed7
mov al, byte [ecx - 1]
cmp al, bl
je 0x100a7ecb
cmp al, 0xff
je 0x100a7ecb
dec al
mov byte [ecx - 1], al
jmp 0x100a7ed7
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp esi, edi
mov dword [esp + 0x58], 0xffffffff
je 0x100a7eff
push 1
mov ecx, esi
call fcn.1000bc70
add esi, 0x10
cmp esi, edi
jne 0x100a7eeb
mov esi, dword [esp + 0x10]
push esi
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8