Function at 0x10016180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x1005d014]
xor eax, esp
mov dword [esp + 0x68], eax
cmp dword [0x10091488], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x1009148c], 0
mov dword [0x10091490], 0
mov dword [0x10091494], 0
mov byte [0x1009149a], 0
jl 0x100161ee
mov eax, dword [0x10091480]
test eax, eax
je 0x100161e4
push eax
call fcn.1003217f
add esp, 4
mov dword [0x10091480], 0
mov dword [0x10091484], 0
push 3
call dword [sym.imp.libcurl.dll_curl_global_init]
add esp, 4
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov dword [0x10092094], eax
test eax, eax
je 0x1001647f
mov edi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push esi
push 0x2712
push eax
call edi
add esp, 0xc
cmp byte [0x10090845], 0
jne 0x1001629a
movaps xmm1, xmmword [0x10058f90]
xor eax, eax
movd xmm0, eax
lea ecx, [eax + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esp + eax*4 + 0x28], xmm0
movd xmm0, ecx
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esp + eax*4 + 0x38], xmm0
add eax, 8
cmp eax, 0x10
jl 0x10016230
cmp eax, 0x11
jge 0x1001626e
mov dword [esp + eax*4 + 0x28], eax
inc eax
cmp eax, 0x11
jl 0x10016264
mov ebx, 0x11
lea edx, [esp + 0x28]
xor esi, esi
test ebx, ebx
je 0x10016293
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
inc esi
lea eax, [ecx - 4]
xor byte [ecx + 0x10090834], al
cmp esi, ebx
jne 0x10016280
mov byte [0x10090845], 1
push 0x10090834
push 0x2722
push dword [0x10092094]
call edi
add esp, 0xc
push 1
push 0x50
push dword [0x10092094]
call edi
add esp, 0xc
push 0x10016060
push 0x4e2b
push dword [0x10092094]
call edi
add esp, 0xc
push 3
push 0x54
push dword [0x10092094]
call edi
add esp, 0xc
push 0x1e
push 0x4e
push dword [0x10092094]
call edi
add esp, 0xc
push 0x12c
push 0xd
push dword [0x10092094]
call edi
add esp, 0xc
push 1
push 0x2b
push dword [0x10092094]
call edi
add esp, 0xc
push 1
push 0x34
push dword [0x10092094]
call edi
add esp, 0xc
push 0
push 0x40
push dword [0x10092094]
call edi
add esp, 0xc
push 0
push 0x51
push dword [0x10092094]
call edi
add esp, 0xc
push 1
push 0x4a
push dword [0x10092094]
call edi
add esp, 0xc
push 0
push 0x2a
push dword [0x10092094]
call edi
add esp, 0xc
push 0
push 0x29
push dword [0x10092094]
call edi
add esp, 0xc
push 1
push 0x71
push dword [0x10092094]
call edi
movaps xmm0, xmmword [0x10058fb0]
add esp, 0xc
movaps xmm1, xmmword [0x10058f90]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], 0x10
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x28], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x38], xmm0
add ecx, 8
cmp ecx, 0x10
jl 0x100163a0
lea edx, [esp + 0x28]
xor esi, esi
mov eax, dword [edx]
lea ecx, [esp + 0x10]
add ecx, eax
lea edx, [edx + 4]
add eax, 0xfffffffc
inc esi
xor byte [ecx], al
cmp esi, 0x10
jne 0x100163d5
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
push 0x27e3
push dword [0x10092094]
call edi
add esp, 0xc
push dword [0x10092094]
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
test eax, eax
je 0x1001649f
cmp dword [0x10091488], 0
mov dword [0x1009148c], 0
mov dword [0x10091490], 0
mov dword [0x10091494], 0
mov byte [0x1009149a], 0
jl 0x10016470
mov eax, dword [0x10091480]
test eax, eax
je 0x10016466
push eax
call fcn.1003217f
add esp, 4
mov dword [0x10091480], 0
mov dword [0x10091484], 0
push dword [0x10092094]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
mov dword [0x10092094], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x200002
push dword [0x10092094]
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
add esp, 0xc
push dword [0x10092094]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [0x10092094], 0
cmp eax, 0xc8
je 0x1001650b
cmp eax, 0x130
je 0x1001650b
mov ecx, 0x1009147c
call fcn.1000ae50
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4
cmp dword [0x10091490], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
setg al
pop ebx
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4