Function at 0x140009810
Capabilities:
Encode data using xor
Prepare http request
Receive http response
Set http header

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x188
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov rax, qword [0x1400c4080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov qword [rsp + 0x58], r9
mov r13, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x60], rax
xor r12b, r12b
cmp qword [rcx], 0
jne 0x1400098b7
mov rdx, qword [rdx + 0x18]
cmp rdx, 7
jbe 0x1400098ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400098a9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009fb6
mov rcx, r8
call fcn.1400a054c
xor ebx, ebx
xor al, al
jmp 0x140009f77
xor ebx, ebx
mov word [rbp - 0x20], bx
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
movdqa xmm1, xmmword [0x1400b6900]
movdqu xmmword [rbp + 0x28], xmm1
mov word [rbp + 0x18], bx
movups xmmword [rbp - 8], xmm0
movdqu xmmword [rbp + 8], xmm1
mov word [rbp - 8], bx
lea r9, [rbp - 0x20]
lea r8, [rbp - 8]
lea rdx, [rbp + 0x18]
mov rcx, rdi
call fcn.140009460
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rdx, qword [rbp + 0x18]
xor r9d, r9d
movzx r15d, word [rbp - 0x20]
movzx r8d, r15w
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140009a12
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x14000996a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140009965
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ec7
call fcn.1400a054c
movdqa xmm0, xmmword [0x1400b6900]
mov word [rbp - 8], bx
movdqu xmmword [rbp + 8], xmm0
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1400099bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400099b6
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009f1b
call fcn.1400a054c
movdqa xmm0, xmmword [0x1400b6900]
mov word [rbp + 0x18], bx
movdqu xmmword [rbp + 0x28], xmm0
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140009a0b
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140009a06
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009fb6
mov rcx, r8
call fcn.1400a054c
xor al, al
jmp 0x140009f77
mov rax, qword [0x1400b3290]
mov qword [rbp - 0x10], rax
mov esi, dword [reloc.WS2_32.dll_accept]
cmp word [0x1400b3296], 0
je 0x140009ae4
cmp esi, 2
jl 0x140009aa9
movdqa xmm3, xmmword [0x1400b6920]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400b69c0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400b69c0]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 3
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1400b6940]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [str.::::::::]
movq xmm0, qword [rbp - 0x10]
xorps xmm2, xmm0
movq qword [rbp - 0x10], xmm2
jmp 0x140009ae4
lea r9, [rbp - 0x10]
mov r8d, ebx
mov eax, 0x22b63cbf
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3b
movzx eax, r8w
sub ax, cx
add ax, 0x3a
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 4
jl 0x140009ab0
lea rax, [rbp - 0x10]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rbx
mov ecx, 0x1bb
mov r9d, ebx
mov eax, 0x800000
cmp r15w, cx
cmove r9d, eax
mov rcx, qword [r14 + 8]
movups xmm0, xmmword [0x1400b3318]
movups xmmword [rsp + 0x40], xmm0
movzx eax, word [0x1400b3328]
mov edx, 0x48
mov word [rsp + 0x40], dx
xor word [rsp + 0x42], 0x3b
xor word [rsp + 0x44], 0x3c
xor word [rsp + 0x46], 0x3d
xor word [rsp + 0x48], 0x3e
xor word [rsp + 0x4a], 0x3f
xor word [rsp + 0x4c], 0x40
xor word [rsp + 0x4e], 0x41
xor ax, 0x42
mov word [rsp + 0x50], ax
lea r8, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova r8, qword [rbp - 8]
mov dword [rsp + 0x30], r9d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x14000992a
mov dword [rbp + 0x38], 2
mov r9d, 4
lea r8, [rbp + 0x38]
lea edx, [r9 + 0x3b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
movups xmm0, xmmword [str.yTRI_Q4l]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x1400b32b0]
movups xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [0x1400b32c0]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [0x1400b32d0]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [0x1400b32e0]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x1400b32f0]
movups xmmword [rbp - 0x30], xmm1
cmp esi, 2
jl 0x140009d17
movdqa xmm5, xmmword [0x1400b6920]
mov edx, ebx
movdqa xmm4, xmmword [0x1400b69c0]
movdqa xmm6, xmmword [0x1400b6940]
movdqa xmm7, xmmword [str.::::::::]
lea rcx, [rbp - 0x80]
nop dword [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edx, 8
lea rcx, [rcx + 0x10]
cmp edx, 0x30
jl 0x140009c30
jmp 0x140009d54
lea r9, [rbp - 0x80]
mov r8d, ebx
nop
mov eax, 0x22b63cbf
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3b
movzx eax, r8w
sub ax, cx
add ax, 0x3a
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x30
jl 0x140009d20
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140009e7b
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0xf8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140009e7b
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140009e7b
mov r15d, ebx
mov rsi, 0xffffffffffffffff
mov dword [rbp - 0x10], ebx
mov dword [rbp - 0x20], ebx
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140009e62
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x140009e62
add eax, 1
mov ecx, eax
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8d, dword [rbp - 0x20]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x10]
mov r8d, dword [rbp - 0x20]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140009e54
mov r9d, dword [rbp - 0x20]
mov rdx, qword [r13 + 8]
mov r8, rsi
mov rcx, r13
call fcn.14000a820
add r15d, dword [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbp - 0x20], 0
mov rsi, 0xffffffffffffffff
ja 0x140009dc0
jmp 0x140009e62
test rsi, rsi
je 0x140009e62
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x18], r15d
movzx r12d, r12b
mov eax, 1
test r15d, r15d
cmovne r12d, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x140009ed3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009ece
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a054c
movdqa xmm0, xmmword [0x1400b6900]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], bx
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x140009f27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009f22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a054c
movdqa xmm0, xmmword [0x1400b6900]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140009f73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140009f6e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009fb6
mov rcx, r8
call fcn.1400a054c
movzx eax, r12b
mov word [rdi], bx
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400a04f0
movaps xmm6, xmmword [rsp + 0x170]
movaps xmm7, xmmword [rsp + 0x160]
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3