Function at 0x100168d0
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 [0x100914d8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x100914dc], 0
mov dword [0x100914e0], 0
mov dword [0x100914e4], 0
mov byte [0x100914ea], 0
jl 0x10016941
mov eax, dword [0x100914d0]
test eax, eax
je 0x10016937
push eax
call fcn.1003217f
add esp, 4
mov dword [0x100914d0], 0
mov dword [0x100914d4], 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 [0x1009209c], eax
test eax, eax
je 0x10016b4f
mov edi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push esi
push 0x2712
push eax
call edi
add esp, 0xc
push ebx
push 0x2722
push dword [0x1009209c]
call edi
add esp, 0xc
push 1
push 0x50
push dword [0x1009209c]
call edi
add esp, 0xc
push 0x10016120
push 0x4e2b
push dword [0x1009209c]
call edi
add esp, 0xc
push 3
push 0x54
push dword [0x1009209c]
call edi
add esp, 0xc
push 0x1e
push 0x4e
push dword [0x1009209c]
call edi
add esp, 0xc
push 0x12c
push 0xd
push dword [0x1009209c]
call edi
add esp, 0xc
push 1
push 0x2b
push dword [0x1009209c]
call edi
add esp, 0xc
push 1
push 0x34
push dword [0x1009209c]
call edi
add esp, 0xc
push 0
push 0x40
push dword [0x1009209c]
call edi
add esp, 0xc
push 0
push 0x51
push dword [0x1009209c]
call edi
add esp, 0xc
push 1
push 0x4a
push dword [0x1009209c]
call edi
add esp, 0xc
push 0
push 0x2a
push dword [0x1009209c]
call edi
add esp, 0xc
push 0
push 0x29
push dword [0x1009209c]
call edi
add esp, 0xc
push 1
push 0x71
push dword [0x1009209c]
call edi
movaps xmm0, xmmword [0x10058fb0]
add esp, 0xc
movaps xmm1, xmmword [0x10058f90]
movups xmmword [esp + 0x10], xmm0
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], 0x10
xor ecx, ecx
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 0x10016a70
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 0x10016aa5
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
push 0x27e3
push dword [0x1009209c]
call edi
add esp, 0xc
push dword [0x1009209c]
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
test eax, eax
je 0x10016b6f
cmp dword [0x100914d8], 0
mov dword [0x100914dc], 0
mov dword [0x100914e0], 0
mov dword [0x100914e4], 0
mov byte [0x100914ea], 0
jl 0x10016b40
mov eax, dword [0x100914d0]
test eax, eax
je 0x10016b36
push eax
call fcn.1003217f
add esp, 4
mov dword [0x100914d0], 0
mov dword [0x100914d4], 0
push dword [0x1009209c]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
mov dword [0x1009209c], 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 8
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x200002
push dword [0x1009209c]
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
add esp, 0xc
push dword [0x1009209c]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [0x1009209c], 0
cmp eax, 0xc8
je 0x10016bdb
cmp eax, 0x130
je 0x10016bdb
mov ecx, 0x100914cc
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 8
cmp dword [0x100914e0], 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 8