Function at 0x100ad810
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x101610d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
mov eax, 0xef
push ebp
mov ebx, 0xee
push esi
mov word [esp + 0x28], ax
mov word [esp + 0x38], ax
mov word [esp + 0x3c], ax
mov word [esp + 0x42], ax
mov word [esp + 0x58], ax
mov al, byte [0x10196dc4]
push edi
mov word [esp + 0x34], bx
mov word [esp + 0x48], bx
mov esi, 0xf9
mov edx, 0xd5
mov ebp, 0xeb
mov edi, 0xe3
mov ecx, 0xfe
xor ebx, ebx
test al, 1
mov byte [0x1018cad4], 0xf3
mov word [esp + 0x28], 0xff
mov word [esp + 0x2a], si
mov word [esp + 0x2e], 0xf8
mov word [esp + 0x30], dx
mov word [esp + 0x32], bp
mov word [esp + 0x36], di
mov word [esp + 0x38], 0xe4
mov word [esp + 0x3a], cx
mov word [esp + 0x3e], 0xf8
mov word [esp + 0x42], si
mov word [esp + 0x44], cx
mov word [esp + 0x4a], dx
mov word [esp + 0x4c], 0xe6
mov word [esp + 0x4e], bp
mov word [esp + 0x50], si
mov word [esp + 0x52], cx
mov word [esp + 0x54], dx
mov word [esp + 0x56], cx
mov word [esp + 0x58], di
mov word [esp + 0x5a], 0xe7
jne 0x100ad958
or al, 1
push 0x38
mov byte [0x10196dc4], al
call fcn.1013c2df
add esp, 4
mov dword [0x10196dc8], eax
xor esi, esi
mov di, word [esp + esi + 0x28]
push 0x8a
mov eax, edi
mov ecx, 0x10196dc8
and eax, 0xffff
push eax
call fcn.100a8ee0
mov ecx, dword [0x10196dc8]
add eax, 0x8a
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x36
jb 0x100ad90c
mov edx, dword [0x10196dc8]
push 0x100adc30
mov word [edx + 0x36], bx
call fcn.1013c36b
add esp, 4
mov al, byte [esp + 0x13]
mov edi, dword [0x10196dc8]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.1000c010
test al, al
je 0x100ad9a6
mov ecx, dword [esp + 0x1c]
push esi
push edi
push ecx
call fcn.100017d0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov ecx, dword [0x10191a54]
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x70], ebx
call fcn.10058e60
mov ecx, eax
call fcn.10067e70
mov ecx, dword [esp + 0x1c]
mov ebp, eax
cmp ecx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x68], 0xffffffff
je 0x100ad9f6
mov al, byte [ecx - 1]
cmp al, bl
je 0x100ad9ea
cmp al, 0xff
je 0x100ad9ea
dec al
mov byte [ecx - 1], al
jmp 0x100ad9f6
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov eax, 0x181
mov ecx, dword [0x1018caac]
cdq
idiv dword [0x1018cab0]
mov eax, 0x17
mov edi, 0x16
mov word [esp + 0x2e], ax
mov word [esp + 0x3e], ax
mov word [esp + 0x40], ax
mov al, byte [0x10196dcc]
mov esi, 5
mov word [esp + 0x28], 0x45
test al, 1
mov word [esp + 0x2a], 6
mov word [esp + 0x2c], di
mov word [esp + 0x30], 0x2d
mov word [esp + 0x32], 0x3e
mov word [esp + 0x34], si
mov word [esp + 0x36], 0xd
mov word [esp + 0x3a], 0x1a
mov word [esp + 0x42], di
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 0x3b
mov word [esp + 0x4c], 0x33
mov word [esp + 0x4e], si
mov word [esp + 0x50], 0x1f
mov word [esp + 0x52], 0x13
mov dl, byte [edx + ecx]
mov ecx, 0x11
mov byte [0x1018cad5], dl
mov edx, 7
mov word [esp + 0x38], dx
mov word [esp + 0x3c], cx
mov word [esp + 0x44], dx
mov word [esp + 0x46], cx
jne 0x100adb22
or al, 1
push 0x2e
mov byte [0x10196dcc], al
call fcn.1013c2df
add esp, 4
mov dword [0x10196dd0], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x28]
push edi
mov eax, ebp
mov ecx, 0x10196dd0
and eax, 0xffff
push eax
call fcn.1004a650
mov ecx, dword [0x10196dd0]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10196dd0]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x2c
jb 0x100adad4
push 0x100adc40
mov word [eax + 0x2c], bx
call fcn.1013c36b
mov ebp, dword [esp + 0x18]
add esp, 4
mov esi, dword [0x10196dd0]
mov dl, byte [esp + 0x13]
push esi
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.1000bf40
mov ecx, dword [0x10191a54]
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x70], 1
call fcn.10058e60
mov ecx, eax
call fcn.10067e70
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
mov dword [esp + 0x68], 0xffffffff
lea esi, [eax + eax*4]
shl esi, 2
cmp ecx, ebx
je 0x100adba7
mov al, byte [ecx - 1]
cmp al, bl
je 0x100adb9b
cmp al, 0xff
je 0x100adb9b
dec al
mov byte [ecx - 1], al
jmp 0x100adba7
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
cmp ebp, ebx
jbe 0x100adbc4
cmp esi, ebx
jne 0x100adbc4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push ebx
call fcn.1013c3ac
mov cl, byte [0x1018cad5]
add esp, 4
add esi, ebp
mov byte [0x1018cad4], cl
mov ecx, dword [esp + 0x60]
cmp eax, esi
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret