Function at 0x1018d680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x102060c0]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10224d4c]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10352b3c]
cmp eax, dword [esi + 4]
jle 0x1018d73a
push 0x10352b3c
call fcn.10199827
add esp, 4
cmp dword [0x10352b3c], 0xffffffff
jne 0x1018d73a
mov eax, dword [0x10223ca8]
movq xmm0, qword [str.TUXShL_J_]
push edi
mov edi, dword [eax + 8]
mov ax, word [0x101f6ef0]
movq qword [esp + 0xc], xmm0
mov word [esp + 0x14], ax
test ah, ah
je 0x1018d719
xor ebx, ebx
nop
mov eax, 0x29e4129f
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x37
sub cl, al
add cl, 0x33
xor byte [esp + ebx + 0xc], cl
inc ebx
cmp ebx, 0xa
jl 0x1018d6f0
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x10352b3c
mov dword [0x10352b38], eax
call fcn.101997d6
add esp, 4
pop edi
mov eax, dword [0x10352b40]
cmp eax, dword [esi + 4]
jle 0x1018d7d9
push 0x10352b40
call fcn.10199827
add esp, 4
cmp dword [0x10352b40], 0xffffffff
jne 0x1018d7d9
mov eax, dword [0x10223ca8]
movq xmm0, qword [str.TUXShUV_]
mov esi, dword [eax + 8]
mov ax, word [0x101f6f00]
movq qword [esp + 8], xmm0
mov word [esp + 0x10], ax
test ah, ah
je 0x1018d7b9
xor ebx, ebx
nop dword [eax + eax]
mov eax, 0x29e4129f
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x37
sub cl, al
add cl, 0x33
xor byte [esp + ebx + 8], cl
inc ebx
cmp ebx, 0xa
jl 0x1018d790
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10352b40
mov dword [0x10352b44], eax
call fcn.101997d6
add esp, 4
mov ecx, dword [0x10352b38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
pop esi
pop ebx
cmp eax, 6
ja case.default.0x1018d80e
jmp dword [eax*4 + 0x1018d964]
mov ecx, dword [0x10352b44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 3
ja case.default.0x1018d80e
jmp dword [eax*4 + 0x1018d980]
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 2
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 3
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 4
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov ecx, dword [0x10352b44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x1018d8ad
sub eax, 1
je 0x1018d899
sub eax, 1
jne case.default.0x1018d80e
mov eax, 7
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 6
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 5
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 8
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 9
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov ecx, dword [0x10352b44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x1018d914
sub eax, 1
jne case.default.0x1018d80e
mov eax, 0xb
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 0xa
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 0xc
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov eax, 0xd
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
xor ecx, esp
call fcn.10199294
add esp, 0x10
ret