Function at 0x101591a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102cddf5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x1066bbc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x106d5adc]
nop dword [eax]
mov eax, dword [0x10652ab0]
xor ecx, ecx
movq xmm0, qword [str.XTDOXJKE]
mov dword [ebp - 0x24], eax
mov al, byte [0x10652ab4]
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x20], al
cmp edx, 2
jl 0x101592f0
movaps xmm2, xmmword [0x106544f0]
mov ecx, 8
movaps xmm3, xmmword [0x106549b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, 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, xmmword [0x10654520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10654500]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
movd xmm0, dword [str.XTDOXJKE]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10654640]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x2c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, 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, xmmword [0x10654520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
movd xmm0, dword [ebp - 0x28]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10654640]
xorps xmm1, xmm0
movd dword [ebp - 0x28], xmm1
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 [ebp + ecx - 0x2c], dl
inc ecx
cmp ecx, 0xd
jl 0x101592f0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10159333
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10053700
mov dword [ebp - 4], 0
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova esi, dword [ebp - 0x44]
sub esp, 0x18
mov ecx, esp
push 0x1070cc80
call fcn.10052460
mov ecx, esi
call fcn.10050dd0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov edi, eax
cmp ecx, 0xf
jbe 0x101593b1
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101593a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101595ca
push ecx
push edx
call fcn.102c1b57
add esp, 8
cmp byte [0x10652ac3], 0
movq xmm0, qword [str.XTVVV_H]
mov eax, dword [0x10652ac0]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
je 0x1015950e
xor edx, edx
cmp dword [0x106d5adc], 2
mov dword [ebp - 0x10], edx
jl 0x101594e0
movaps xmm2, xmmword [0x106544f0]
mov edx, 8
movaps xmm4, xmmword [0x106549b0]
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 [0x10654640]
movaps xmm0, xmm1
mov dword [ebp - 0x10], edx
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10654520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10654500]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.XTVVV_H]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x1c], 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 [0x10654520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [ebp - 0x18]
xorps xmm1, xmm0
movd dword [ebp - 0x18], xmm1
nop dword [eax]
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x1c], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0xc
jl 0x101594e0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10159530
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10053700
mov dword [ebp - 4], 1
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova esi, dword [ebp - 0x44]
sub esp, 0x18
mov ecx, esp
push 0x1070cc80
call fcn.10052460
mov ecx, esi
call fcn.10050dd0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 0xf
jbe 0x101595aa
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101595a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101595ca
push ecx
push edx
call fcn.102c1b57
add esp, 8
cmp edi, 0x10000
jbe 0x101595ba
cmp esi, 0x10000
ja 0x101595d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101591c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
mov edx, edi
call fcn.10158f70
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret