Function at 0x101340fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [0x10214408]
push esi
push edi
cmp byte [eax + 0x34b3], 0
je 0x10134798
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push 2
mov dword [esp + 0x1c], edx
call fcn.10134000
mov ecx, dword [0x10214410]
push eax
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10134798
mov ecx, dword [edi]
mov edx, dword [ecx + 0x278]
mov ecx, edi
call edx
test al, al
je 0x10134798
push 3
lea ecx, [esp + 0x18]
call fcn.10134000
cmp eax, 0xd
ja case.0x101340db.2
movzx eax, byte [eax + 0x101347cc]
jmp dword [eax*4 + 0x101347b8]
mov esi, str.Kick
jmp 0x10134103
mov esi, str.Change_Level
jmp 0x10134103
mov esi, str.Surrender
jmp 0x10134103
mov esi, str.Start_TimeOut
jmp 0x10134103
mov esi, 0x101c448e
mov ax, word [0x101e3a04]
xor edx, edx
cmp dword [0x10215510], 2
movups xmm0, xmmword [0x101e39f4]
mov word [esp + 0x30], ax
mov al, byte [0x101e3a06]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x32], al
mov dword [esp + 0x14], edx
jl 0x10134262
movaps xmm0, xmmword [str.4444444444444444]
lea edi, [esp + 0x24]
movaps xmm4, xmmword [0x101eb880]
movaps xmm3, xmmword [0x101ebc30]
movaps xmm5, xmmword [0x101eb8e0]
movaps xmmword [esp + 0x40], xmm0
mov ecx, dword [esp + 0x40]
nop
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0x20], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edi + edx]
xorps xmm1, xmm0
movd dword [edi + edx], xmm1
add edx, 8
cmp edx, 0x10
jl 0x10134160
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
cmp edx, 0x13
jge 0x10134292
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0x20], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x13
jl 0x10134262
xorps xmm0, xmm0
mov dword [esp + 0xe0], 0
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xe4], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101342c0
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0xd8]
call fcn.10026930
cmp dword [esp + 0xe4], 0xf
lea eax, [esp + 0xd0]
mov ecx, edi
cmova eax, dword [esp + 0xd0]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x108]
push eax
call fcn.101823a0
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea ecx, [esp + 0x108]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x84], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10134330
sub ecx, edx
lea eax, [esp + 0x108]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.10026930
mov eax, dword [0x101e368c]
movq xmm0, qword [0x101e3684]
mov dword [esp + 0x48], eax
mov ax, word [0x101e3690]
movq qword [esp + 0x40], xmm0
mov word [esp + 0x4c], ax
test ah, ah
je 0x101344b3
xor edx, edx
cmp dword [0x10215510], 2
mov dword [esp + 0x14], edx
jl 0x10134483
movaps xmm2, xmmword [0x101eb880]
mov edx, 8
movaps xmm4, xmmword [0x101ebc30]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
mov eax, dword [str.4444444444444444]
movaps xmm0, xmm1
mov dword [esp + 0x14], edx
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101eb8c0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101e3684]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x40], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x44]
xorps xmm1, xmm0
movd dword [esp + 0x44], xmm1
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0x40], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0xe
jl 0x10134483
xorps xmm0, xmm0
mov dword [esp + 0xc0], 0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc4], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101344e0
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0xb8]
call fcn.10026930
cmp dword [esp + 0xc4], 0xf
lea eax, [esp + 0x70]
lea edx, [esp + 0xb0]
cmova edx, dword [esp + 0xb0]
lea ecx, [esp + 0xf0]
push eax
call fcn.100237c0
push dword [esp + 0x1c]
mov ecx, eax
call fcn.1001f970
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax]
push esi
movups xmmword [esp + 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.1001f970
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa4], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x90], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x101345f5
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101345eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347ac
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
cmp ecx, 0xf
jbe 0x10134646
mov edx, dword [esp + 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013463c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347ac
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0xf
mov byte [esp + 0xf0], 0
cmp ecx, 0xf
jbe 0x101346a0
mov edx, dword [esp + 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10134696
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347ac
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov ecx, dword [esp + 0x84]
cmp ecx, 0xf
jbe 0x101346d9
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101346cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347ac
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xf
mov byte [esp + 0x70], 0
cmp ecx, 0xf
jbe 0x10134730
mov edx, dword [esp + 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10134726
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347ac
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov eax, dword [0x10214404]
lea ecx, [esp + 0x90]
cmp dword [esp + 0xa4], 0xf
cmova ecx, dword [esp + 0x90]
mov eax, dword [eax + 8]
push ecx
push 0
mov edx, dword [eax + 0x1c]
push edx
mov eax, dword [edx]
mov eax, dword [eax + 0x68]
call eax
mov ecx, dword [esp + 0xb0]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10134798
mov edx, dword [esp + 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013478e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101347b1
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret
call fcn.101934f6
call fcn.101934f6
nop
loop 0x101347fa
adc edx, dword [eax]
jmp 0x235b01
push edi
cmp byte [eax + 0x34b3], 0
je 0x101349aa
mov eax, dword [0x10214404]
xor ecx, ecx
cmp dword [0x10215510], 2
movups xmm0, xmmword [0x101e3ac8]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x1c]
mov al, byte [0x101e3ae0]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x38], al
movq xmm0, qword [0x101e3ad8]
movq qword [esp + 0x30], xmm0
jl 0x10134970
movaps xmm0, xmmword [str.4444444444444444]
lea edi, [esp + 0x24]
movaps xmm4, xmmword [0x101eb880]
movaps xmm3, xmmword [0x101ebc30]
movaps xmm5, xmmword [0x101eb8e0]
movaps xmmword [esp + 0x10], xmm0
mov edx, dword [esp + 0x10]
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 0x20], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [edi + ecx]
xorps xmm1, xmm0
movd dword [edi + ecx], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x10134870
cmp ecx, 0x19
jge 0x10134998
nop word [eax + eax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x31
sub dl, al
add dl, 0x34
xor byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 0x19
jl 0x10134970
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
mov eax, dword [eax + 0x68]
call eax
add esp, 0xc
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret