Function at 0x10182d30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1021551c]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x103dc534]
cmp eax, dword [esi + 4]
jle 0x10182ded
push 0x103dc534
call fcn.1018e80d
add esp, 4
cmp dword [0x103dc534], 0xffffffff
jne 0x10182ded
mov eax, dword [0x10214410]
movq xmm0, qword [str.WP_VkAOG_9]
push edi
mov edi, dword [eax + 8]
mov ax, word [0x101ead40]
movq qword [esp + 0xc], xmm0
mov word [esp + 0x14], ax
test ah, ah
je 0x10182dcc
xor ebx, ebx
nop
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x30
xor byte [esp + ebx + 0xc], al
inc ebx
cmp ebx, 0xa
jl 0x10182da0
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x103dc534
mov dword [0x103dc530], eax
call fcn.1018e7bc
add esp, 4
pop edi
mov eax, dword [0x103dc538]
cmp eax, dword [esi + 4]
jle 0x10182e8c
push 0x103dc538
call fcn.1018e80d
add esp, 4
cmp dword [0x103dc538], 0xffffffff
jne 0x10182e8c
mov eax, dword [0x10214410]
movq xmm0, qword [str.WP_VkXYS_9]
mov esi, dword [eax + 8]
mov ax, word [0x101ead4c]
movq qword [esp + 8], xmm0
mov word [esp + 0x10], ax
test ah, ah
je 0x10182e6c
xor ebx, ebx
nop dword [eax + eax]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x30
xor byte [esp + ebx + 8], al
inc ebx
cmp ebx, 0xa
jl 0x10182e40
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x103dc538
mov dword [0x103dc53c], eax
call fcn.1018e7bc
add esp, 4
mov ecx, dword [0x103dc530]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
pop esi
pop ebx
cmp eax, 6
ja case.default.0x10182ec1
jmp dword [eax*4 + 0x10183014]
mov ecx, dword [0x103dc53c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 3
ja case.default.0x10182ec1
jmp dword [eax*4 + 0x10183030]
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 2
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 3
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 4
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov ecx, dword [0x103dc53c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x10182f60
sub eax, 1
je 0x10182f4c
sub eax, 1
jne case.default.0x10182ec1
mov eax, 7
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 6
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 5
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 8
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 9
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov ecx, dword [0x103dc53c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x10182fc7
sub eax, 1
jne case.default.0x10182ec1
mov eax, 0xb
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 0xa
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 0xc
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov eax, 0xd
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
xor ecx, esp
call fcn.1018e27a
add esp, 0x10
ret