Function at 0x100aa830
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10160de0
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
call fcn.100aa490
test al, al
je 0x100aab61
mov eax, 5
mov word [esp + 0x34], 0x55
mov word [esp + 0x42], ax
mov word [esp + 0x46], ax
mov al, byte [0x10196e44]
mov word [esp + 0x36], 0x1f
test al, 1
mov word [esp + 0x38], 0xf
mov word [esp + 0x3a], 0x19
mov word [esp + 0x3c], 0xd
mov word [esp + 0x3e], 0x3e
mov word [esp + 0x40], 0x2a
mov word [esp + 0x44], 0x14
mov word [esp + 0x48], 0x15
mov word [esp + 0x4a], 0x11
jne 0x100aa926
mov bl, al
push 0x1a
or bl, 1
mov byte [0x10196e44], bl
call fcn.1013c2df
add esp, 4
xor ebx, ebx
mov dword [0x10196e48], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x34]
push edi
mov eax, ebp
mov ecx, 0x10196e48
and eax, 0xffff
push eax
call fcn.1004a650
mov ecx, dword [0x10196e48]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10196e48]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x18
jb 0x100aa8da
push 0x100ac460
mov word [eax + 0x18], bx
call fcn.1013c36b
add esp, 4
jmp 0x100aa928
xor ebx, ebx
mov esi, dword [0x10196e48]
mov dl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], dl
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 eax, [esp + 0x14]
mov dword [esp + 0x68], ebx
push eax
call fcn.10069f20
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
add esp, 4
cmp ecx, ebp
mov bl, al
mov dword [esp + 0x68], 0xffffffff
je 0x100aa999
mov al, byte [ecx - 1]
test al, al
je 0x100aa98d
cmp al, 0xff
je 0x100aa98d
dec al
mov byte [ecx - 1], al
jmp 0x100aa999
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
test bl, bl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x100aab63
mov eax, 0x6c
mov ecx, 0x68
mov word [esp + 0x34], ax
mov word [esp + 0x4a], ax
mov word [esp + 0x50], ax
mov word [esp + 0x5e], ax
mov al, byte [0x10196e3c]
mov word [esp + 0x3c], cx
mov word [esp + 0x46], cx
mov esi, 0x7c
mov edx, 0x56
mov ecx, 0x7d
test al, 1
mov word [esp + 0x36], 0x73
mov word [esp + 0x38], si
mov word [esp + 0x3a], 0x65
mov word [esp + 0x3e], dx
mov word [esp + 0x40], si
mov word [esp + 0x42], 0x79
mov word [esp + 0x44], 0x6d
mov word [esp + 0x48], cx
mov word [esp + 0x4c], dx
mov word [esp + 0x4e], 0x67
mov word [esp + 0x52], 0x71
mov word [esp + 0x54], cx
mov word [esp + 0x56], dx
mov word [esp + 0x58], cx
mov word [esp + 0x5a], 0x60
mov word [esp + 0x5c], 0x64
jne 0x100aaab0
mov bl, al
push 0x2e
or bl, 1
mov byte [0x10196e3c], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10196e40], eax
xor esi, esi
mov di, word [esp + esi + 0x34]
push 9
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, 0x10196e40
call fcn.100a8ee0
mov edx, dword [0x10196e40]
add eax, 9
xor eax, edi
mov word [esi + edx], ax
add esi, 2
cmp esi, 0x2c
jb 0x100aaa69
mov eax, dword [0x10196e40]
push 0x100ac470
mov word [eax + 0x2c], bp
call fcn.1013c36b
add esp, 4
mov edi, dword [0x10196e40]
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push 1
push esi
call fcn.1000c010
test al, al
je 0x100aab00
mov edx, dword [esp + 0x28]
push esi
push edi
push edx
call fcn.100017d0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
add esp, 0xc
mov word [eax + esi*2], bp
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], 1
push ecx
call fcn.1006a330
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, ebp
mov bl, al
mov dword [esp + 0x68], 0xffffffff
je 0x100aab45
mov al, byte [ecx - 1]
test al, al
je 0x100aab39
cmp al, 0xff
je 0x100aab39
dec al
mov byte [ecx - 1], al
jmp 0x100aab45
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
test bl, bl
je 0x100aab63
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
xor ebp, ebp
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret