Function at 0x140005360
Capabilities:
Encode data using xor
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, rcx
mov qword [rbp - 0x21], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140010280]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1400057a0
movups xmm0, xmmword [0x140010a08]
movups xmmword [rbp - 0x69], xmm0
mov eax, dword [0x140010a18]
mov dword [rbp - 0x59], eax
cmp word [0x140010a1a], bx
je 0x14000541a
mov eax, 0x6a
mov word [rbp - 0x69], ax
xor word [rbp - 0x67], 0x34
xor word [rbp - 0x65], 0x35
xor word [rbp - 0x63], 0x36
xor word [rbp - 0x61], 0x37
xor word [rbp - 0x5f], 0x38
xor word [rbp - 0x5d], 0x39
xor word [rbp - 0x5b], 0x3a
xor word [rbp - 0x59], 0x3b
xor word [rbp - 0x57], 0x3c
mov r8d, 0x50
xor r9d, r9d
lea rdx, [rbp - 0x69]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x1400057c1
movups xmm0, xmmword [0x140010b30]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x140010b40]
movups xmmword [rbp - 0x39], xmm1
movzx eax, word [0x140010b50]
mov word [rbp - 0x29], ax
mov ecx, ebx
cmp dword [0x1400160a8], 2
jl 0x140005582
movdqa xmm5, xmmword [0x140010cd0]
movdqa xmm4, xmmword [0x140010d40]
movdqa xmm6, xmmword [str.8888]
movdqa xmm7, xmmword [0x140010d10]
lea rdx, [rbp - 0x49]
movd xmm2, ecx
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rdx]
xorps xmm3, xmm0
movq qword [rdx], xmm3
lea eax, [rcx + 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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rdx + 8]
xorps xmm3, xmm0
movq qword [rdx + 8], xmm3
add ecx, 8
lea rdx, [rdx + 0x10]
cmp ecx, 0x10
jl 0x140005490
cmp ecx, 0x11
jge 0x1400055c2
movsxd rax, ecx
lea r8, [rbp - 0x49]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x38
movzx eax, cx
sub ax, dx
add ax, 0x33
xor word [r8], ax
inc ecx
lea r8, [r8 + 2]
cmp ecx, 0x11
jl 0x140005590
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x49]
lea rdx, [0x1400102f0]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x1400057eb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rsi
test eax, eax
je 0x14000581e
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, rsi
test eax, eax
je 0x140005857
mov dword [rbp - 0x19], ebx
lea rdx, [rbp - 0x19]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
xorps xmm0, xmm0
mov r8d, dword [rbp - 0x19]
lea eax, [r8 + 1]
mov r14d, eax
movdqu xmmword [rbp - 0x11], xmm0
mov rdi, rbx
mov qword [rbp - 1], rbx
test eax, eax
je 0x1400056b8
cmp r14, 0x1000
jb 0x14000568c
lea rcx, [rax + 0x27]
cmp rcx, r14
jbe 0x14000579a
call fcn.14000d258
test rax, rax
je 0x140005793
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140005697
mov rcx, r14
call fcn.14000d258
mov rbx, rax
mov qword [rbp - 0x11], rbx
lea rdi, [rbx + r14]
mov qword [rbp - 1], rdi
mov r8, r14
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 9], rdi
mov r8d, dword [rbp - 0x19]
mov dword [rbp - 0x21], 0
lea r9, [rbp - 0x21]
mov r14, qword [rbp - 0x11]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [rbp - 0x21]
mov byte [rax + r14], 0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
xor eax, eax
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], al
jne 0x140005710
mov rdx, rbx
mov rcx, r13
call fcn.14000ba50
nop
test rbx, rbx
je 0x140005759
sub rdi, rbx
cmp rdi, 0x1000
jb 0x14000574e
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140005793
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000d250
mov rax, r13
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14000d230
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001190
int3
lea rdx, str.WinHttpOpen_failed
lea rcx, [rbp - 0x11]
call fcn.140001250
lea rdx, [0x140013480]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.WinHttpConnect_failed
lea rcx, [rbp - 0x11]
call fcn.140001250
lea rdx, [0x140013480]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.WinHttpOpenRequest_failed
lea rcx, [rbp - 0x11]
call fcn.140001250
lea rdx, [0x140013480]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.WinHttpSendRequest_failed
lea rcx, [rbp - 0x11]
call fcn.140001250
lea rdx, [0x140013480]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.WinHttpReceiveResponse_failed
lea rcx, [rbp - 0x11]
call fcn.140001250
lea rdx, [0x140013480]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3