Function at 0x1009f140
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015fea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, 0x1f
push ebx
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
mov eax, 3
push ebp
mov word [esp + 0x14], ax
mov word [esp + 0x20], ax
mov al, byte [0x10196ffc]
mov ebp, ecx
xor ebx, ebx
push esi
test al, 1
push edi
mov dword [esp + 0x10], ebp
mov word [esp + 0x14], 0x42
mov word [esp + 0x16], 2
mov word [esp + 0x1e], 0x17
mov word [esp + 0x20], 6
mov word [esp + 0x22], 0x4c
mov word [esp + 0x24], 0x4f
mov word [esp + 0x26], 0x12
jne 0x1009f227
or al, 1
push 0x18
mov byte [0x10196ffc], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197000], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x14]
push edi
mov eax, ebp
mov ecx, 0x10197000
and eax, 0xffff
push eax
call fcn.1004a650
mov ecx, dword [0x10197000]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10197000]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x16
jb 0x1009f1d9
push 0x100a8180
mov word [eax + 0x16], bx
call fcn.1013c36b
mov ebp, dword [esp + 0x14]
add esp, 4
mov esi, dword [0x10197000]
mov dl, byte [esp + 0x5c]
push esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x3c]
push eax
push esi
call fcn.1000bf40
mov eax, 0xff72
mov dword [esp + 0x54], ebx
mov word [esp + 0x16], ax
mov word [esp + 0x1e], ax
mov al, byte [0x10197004]
mov word [esp + 0x14], 0xff7f
test al, 1
mov word [esp + 0x18], 0xff79
mov word [esp + 0x1a], 0xff6e
mov word [esp + 0x1c], 0xff81
mov word [esp + 0x20], 0xff71
jne 0x1009f2f9
or al, 1
push 0x10
mov byte [0x10197004], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197008], eax
xor edi, edi
mov si, word [esp + edi + 0x14]
push 0xf3
mov eax, esi
mov ecx, 0x10197008
and eax, 0xffff
push eax
call fcn.1002ea10
mov ecx, dword [0x10197008]
sub esi, eax
add esi, 0xf3
mov word [edi + ecx], si
add edi, 2
cmp edi, 0xe
jb 0x1009f2ac
mov edx, dword [0x10197008]
push 0x100a82b0
mov word [edx + 0xe], bx
call fcn.1013c36b
add esp, 4
mov edi, dword [0x10197008]
mov al, byte [esp + 0x5c]
push edi
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x2c]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1009f347
mov ecx, dword [esp + 0x30]
push esi
push edi
push ecx
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x2c]
push esi
call fcn.1000bff0
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x60], 1
call fcn.1009a220
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x54], 4
cmp ecx, ebx
je 0x1009f38d
mov al, byte [ecx - 1]
cmp al, bl
je 0x1009f381
cmp al, 0xff
je 0x1009f381
dec al
mov byte [ecx - 1], al
jmp 0x1009f38d
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov byte [esp + 0x54], 3
je 0x1009f3c4
mov al, byte [ecx - 1]
cmp al, bl
je 0x1009f3b8
cmp al, 0xff
je 0x1009f3b8
dec al
mov byte [ecx - 1], al
jmp 0x1009f3c4
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov dword [ebp], 0x1016a960
mov eax, ebp
pop esi
mov dword [esp + 0x4c], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4