Function at 0x1009d220
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015fd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov al, byte [0x1018ca39]
push ebx
mov byte [0x1018ca37], al
mov eax, 0x95
mov word [esp + 0x4a], ax
mov word [esp + 0x4e], ax
mov word [esp + 0x52], ax
mov eax, 0x90
mov ebx, ecx
mov word [esp + 0x56], ax
mov word [esp + 0x5e], ax
mov al, byte [0x1019705c]
push ebp
mov edx, 0xa3
mov ecx, 0x9d
push esi
test al, 1
push edi
mov word [esp + 0x54], dx
mov word [esp + 0x58], 0x92
mov word [esp + 0x5c], 0x88
mov word [esp + 0x60], cx
mov word [esp + 0x64], dx
mov word [esp + 0x66], 0x98
mov word [esp + 0x68], 0x99
mov word [esp + 0x6c], cx
mov word [esp + 0x6e], 0x85
jne 0x1009d31d
or al, 1
push 0x1e
mov byte [0x1019705c], al
call fcn.1013c2df
add esp, 4
xor ebp, ebp
mov dword [0x10197060], eax
xor esi, esi
mov di, word [esp + esi + 0x54]
push 0xfc
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, 0x10197060
call fcn.100a8ee0
mov edx, dword [0x10197060]
add eax, 0xfc
xor eax, edi
mov word [esi + edx], ax
add esi, 2
cmp esi, 0x1c
jb 0x1009d2cf
mov eax, dword [0x10197060]
push 0x100a8280
mov word [eax + 0x1c], bp
call fcn.1013c36b
add esp, 4
jmp 0x1009d31f
xor ebp, ebp
mov cl, byte [esp + 0x13]
mov edi, dword [0x10197060]
mov byte [esp + 0x24], cl
push ebp
lea ecx, [esp + 0x28]
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1009d36d
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]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x80], ebp
call fcn.1009d1c0
push ebp
push eax
mov byte [esp + 0x80], 1
call fcn.1006a700
add esp, 8
test al, al
je 0x1009d51d
mov eax, 0x6c
mov edx, 0x47
mov word [esp + 0x5c], ax
mov word [esp + 0x60], ax
mov al, byte [0x10197014]
mov ecx, 0x7d
test al, 1
mov word [esp + 0x54], dx
mov word [esp + 0x56], 0x76
mov word [esp + 0x58], cx
mov word [esp + 0x5a], 0x60
mov word [esp + 0x5e], dx
mov word [esp + 0x62], 0x71
mov word [esp + 0x64], 0x75
mov word [esp + 0x66], cx
jne 0x1009d450
or al, 1
push 0x16
mov byte [0x10197014], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197018], eax
xor esi, esi
mov di, word [esp + esi + 0x54]
push 0x18
mov eax, edi
mov ecx, 0x10197018
and eax, 0xffff
push eax
call fcn.100a8ee0
mov ecx, dword [0x10197018]
add eax, 0x18
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x14
jb 0x1009d409
mov edx, dword [0x10197018]
push 0x100a8270
mov word [edx + 0x14], bp
call fcn.1013c36b
add esp, 4
mov esi, dword [0x10197018]
mov al, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x14]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x80], 2
call fcn.1009d1c0
push eax
mov byte [esp + 0x7c], 3
call fcn.1006a330
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, ebp
mov bl, al
mov byte [esp + 0x78], 2
je 0x1009d4d2
mov al, byte [ecx - 1]
test al, al
je 0x1009d4c6
cmp al, 0xff
je 0x1009d4c6
dec al
mov byte [ecx - 1], al
jmp 0x1009d4d2
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
cmp ecx, ebp
mov byte [esp + 0x78], 1
je 0x1009d509
mov al, byte [ecx - 1]
test al, al
je 0x1009d4fd
cmp al, 0xff
je 0x1009d4fd
dec al
mov byte [ecx - 1], al
jmp 0x1009d509
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 0x1009d51d
mov bl, 1
jmp 0x1009d51f
xor bl, bl
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x78], 0
cmp ecx, ebp
je 0x1009d54a
mov al, byte [ecx - 1]
test al, al
je 0x1009d53e
cmp al, 0xff
je 0x1009d53e
dec al
mov byte [ecx - 1], al
jmp 0x1009d54a
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
cmp ecx, ebp
mov dword [esp + 0x78], 0xffffffff
je 0x1009d584
mov al, byte [ecx - 1]
test al, al
je 0x1009d578
cmp al, 0xff
je 0x1009d578
dec al
mov byte [ecx - 1], al
jmp 0x1009d584
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret