Function at 0x140084e40
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14010df50
nop
xor r14d, r14d
mov dword [rbp + 0x68], r14d
mov r9d, 0x20119
lea r8, str.SOFTWAREMcAfeeWebAdvisor
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x50]
call fcn.14010e140
lea r15, str.EventSender.cpp
lea r12, vtable.std::ios_base.0
test eax, eax
jne 0x140084f6f
lea r8, [rbp + 0x68]
lea rdx, str.AdhocTelemetryAzure
lea rcx, [rbp + 0x50]
call fcn.14010e160
mov dword [rsp + 0x40], eax
test eax, 0xfffffffd
je 0x140084f6f
call fcn.1400553d0
lea r8d, [r14 + 2]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], 0x5d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Querying_AdhocTelemetryAzure_value_failed:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rdx, [fcn.1400429c0]
lea rcx, [rsp + 0x58]
call fcn.14003b990
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400424b0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov eax, r14d
mov dword [rbp + 0x68], eax
jmp 0x140084f72
mov eax, dword [rbp + 0x68]
cmp eax, 1
sete bl
lea rcx, [rbp + 0x50]
call fcn.14010dfe0
test bl, bl
jne 0x140084fe9
call fcn.1400553d0
mov r8d, 3
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], 0x105
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Not_sending_to_Azure_as_AdhocTelemetryAzure_registry_key_is_set_to_false
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov al, 1
jmp 0x1400856f6
cmp byte [rdi + 0x40], 0
jne 0x14008504a
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], 0x10b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rcx, [rsp + 0x58]
call fcn.1400875f0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x1400856f4
lea rbx, [rdi + 0x48]
cmp qword [rbx], 0
je 0x140085681
cmp qword [rbx + 8], 0
jne 0x140085681
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea r9, [rbp + 0x50]
movzx r8d, word [rdi + 0xa4]
mov rdx, qword [rdi + 0x98]
mov rcx, rbx
call fcn.14008d5c0
test al, al
je 0x140085681
mov qword [rbp + 0x68], rdi
mov eax, r14d
mov ecx, 0x800000
cmp dword [rdi + 0x94], 2
cmove eax, ecx
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400855f2
cmp qword [rdi + 0x58], 0
jne 0x1400855f2
lea r8, [rdi + 0xe8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, qword [rdi + 0x4e8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rdi + 0x58], rax
test rax, rax
je 0x1400855f2
mov qword [rsp + 0x48], rdi
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r14w
xor r8d, r8d
lea rdx, [0x1401e63d8]
lea rcx, [rbp + 0x70]
call fcn.1400260f0
nop
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140083f40
test al, al
jne 0x140085199
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x121
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Failed_to_create_access_token
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
xor dil, dil
jmp 0x140085595
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x80]
sub rax, rcx
cmp rax, 0xf
jb 0x140085727
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rax, qword [rbp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xf
lea r9, str.Authorization:
lea rcx, [rbp + 0x90]
call fcn.140024370
nop
lea rdx, [rdi + 0x4f0]
cmp qword [rdx + 0x18], 8
jb 0x140085200
mov rdx, qword [rdx]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x1400854bf
mov r9d, 0x40000000
mov r8d, dword [rdi + 0x500]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x1400854bf
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdx, qword [rbp + 0x90]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x14008544a
mov r9d, 0x40000000
mov r8d, dword [rbp + 0xa0]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x14008544a
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140085276
mov rsi, qword [rsi]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x1400853d2
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
xor edx, edx
mov r8d, 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x1400853d2
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x14008535a
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
jne 0x14008535a
mov rcx, rbx
call fcn.14008d6f0
mov dword [rsp + 0x40], eax
cmp dword [rdi + 0x680], eax
je 0x140085352
cmp dword [rdi + 0x684], eax
je 0x140085352
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x141
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_status_error_for_Azure:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030600
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140085532
mov dil, 1
jmp 0x140085535
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x13a
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_receive_response_failed_for_Azure:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140085532
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x134
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_send_request_failed_for_Azure:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140085532
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x12e
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_add_request_header_failed_for_Azure_Authorization:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140085532
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x129
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_add_request_header_failed_for_AZURE_CONTENT_TYPE:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
xor dil, dil
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x14008557b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140085576
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008572d
call fcn.14014f900
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r14w
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x1400855d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400855d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140085721
call fcn.14014f900
nop
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140085668
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 0x10], r14
jmp 0x140085668
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x119
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_open_request_failed:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
xor dil, dil
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14008567b
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 8], r14
movzx eax, dil
jmp 0x1400856f6
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], 0x111
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.HTTP_connection_failed:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
xor al, al
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14014f8e0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140156b00
nop
call fcn.140020840
int3
call fcn.140156b00
int3