Function at 0x180006740
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x19a0]
mov eax, 0x1aa0
call fcn.18000b280
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1af8], rbx
mov rax, qword [0x180010010]
xor rax, rsp
mov qword [rbp + 0x1990], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x48], rcx
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov r8d, 0x1bb
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.graph.microsoft.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r12, rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rdx, str._v1.0_me_drive_root:__s:_createUploadSession
lea rcx, [rbp - 0x40]
call fcn.180001060
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x803000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, str.HTTP_1.1
lea r8, [rbp - 0x40]
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rsi, rax
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], r13b
lea r8d, [r13 + 0x3a]
lea rdx, str._item_:___microsoft.graph.conflictBehavior_:__replace_
lea rcx, [rsp + 0x70]
call fcn.1800079d0
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180009030
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x180006909
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1800068d9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800068d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800068d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180006949
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006944
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov r8, r14
lea rdx, str.Content_Type:_application_json_r_nAuthorization:_Bearer__s
lea rcx, [rbp + 0x1c0]
call fcn.180001060
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r9, qword [rsp + 0x70]
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x70]
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180006b7f
cmp dword [rbp - 0x70], 0x194
je 0x180006b7f
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x990]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x68], 0x1000
lea r9, [rsp + 0x68]
mov r8d, 0xfff
lea rdx, [rbp + 0x990]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
lea rax, [rbp + 0x990]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180006a20
lea rdx, [rbp + 0x990]
lea rcx, [rbp - 0x68]
call fcn.180007860
test ebx, ebx
je 0x180006aaf
nop
cmp dword [rsp + 0x68], 0xfff
jne 0x180006aaf
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x990]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x68], 0x1000
lea r9, [rsp + 0x68]
mov r8d, 0xfff
lea rdx, [rbp + 0x990]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
lea rax, [rbp + 0x990]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180006a91
lea rdx, [rbp + 0x990]
lea rcx, [rbp - 0x68]
call fcn.180007860
test ebx, ebx
jne 0x180006a40
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180006b29
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006b24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006b24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x180006c48
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006c43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006c43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180006bf9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006bf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006bf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x180006c48
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006c43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006c43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov rax, rdi
mov rcx, qword [rbp + 0x1990]
xor rcx, rsp
call fcn.18000a060
mov rbx, qword [rsp + 0x1af8]
add rsp, 0x1aa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret