Function at 0x10016fc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x8058
call fcn.10030b90
mov eax, dword [0x100430b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10040300]
xor edx, edx
movq xmm0, qword [str.YVF_S__v_v]
mov dword [ebp - 0x8010], eax
mov al, byte [0x10040304]
push esi
mov esi, dword [0x10043f44]
lea ecx, [edx + 0x1f]
mov byte [ebp - 0x800c], al
lea eax, [edx + 4]
movq qword [ebp - 0x8018], xmm0
mov dword [ebp - 0x8038], edx
push edi
cmp esi, 2
jl 0x10017131
movaps xmm2, xmmword [0x10040370]
mov edx, 8
movaps xmm3, xmmword [0x10040410]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
psrad xmm1, xmm4
movd xmm5, ecx
movaps xmm0, xmm1
mov dword [ebp - 0x8038], edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100403b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10040380]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x100403e0]
movd xmm0, dword [str.YVF_S__v_v]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x8018], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100403b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x100403e0]
movd xmm0, dword [ebp - 0x8014]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
xorps xmm1, xmm0
movd dword [ebp - 0x8014], xmm1
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x8038]
movsx eax, al
mov cl, dl
imul eax, eax, 0x36
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x8018], cl
inc edx
mov dword [ebp - 0x8038], edx
cmp edx, 0xd
jl 0x10017131
lea eax, [ebp - 0x8018]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1001737e
movups xmm0, xmmword [str.uV_fODLWlSJ_b_v]
mov cl, byte [0x10040320]
mov byte [ebp - 0x801c], cl
xor ecx, ecx
movups xmmword [ebp - 0x8034], xmm0
movq xmm0, qword [0x10040318]
movq qword [ebp - 0x8024], xmm0
cmp esi, 2
jl 0x100172f4
movaps xmm0, xmmword [str.2222222222222222]
mov eax, 4
movaps xmm4, xmmword [0x10040370]
movaps xmm3, xmmword [0x10040410]
movaps xmm6, xmmword [0x100403b0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x8050], xmm0
mov edx, dword [ebp - 0x8050]
movd xmm7, eax
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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x100403e0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x8034]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x8034], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x100403e0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x8030]
xorps xmm1, xmm0
movd dword [ebp + ecx - 0x8030], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x100171f0
cmp ecx, 0x19
jge 0x1001731f
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x36
sub dl, al
add dl, 0x32
xor byte [ebp + ecx - 0x8034], dl
inc ecx
cmp ecx, 0x19
jl 0x100172f4
lea eax, [ebp - 0x8034]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001737e
push 0x7fff
lea ecx, [ebp - 0x8008]
push ecx
call eax
test eax, eax
jne 0x10017366
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
setne cl
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100178e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100178e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100178e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret