Function at 0x140026010
Capabilities:
Send data
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov r14, rcx
mov rcx, qword [rcx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400263b6
mov eax, 0x4000000
mov edx, 0x4800000
cmp dword [r14 + 0xa4], 2
cmove eax, edx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
lea rax, [0x14010d010]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, str.HTTP_1.0
mov r8, r15
lea rdx, [0x1400cb52c]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [r14 + 0x18], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14002639a
mov r9d, 0x80000000
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Accept:___r_n
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x1400263d2
cmp qword [r14 + 0xc0], 0
jbe 0x140026353
mov qword [rbp - 0x28], 0
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], rdx
mov byte [rbp - 0x38], 0
mov ecx, dword [r14 + 0xa4]
sub ecx, 1
je 0x140026119
cmp ecx, 1
jne 0x140026133
lea r8d, [rdx - 7]
lea rdx, str.https:__
jmp 0x140026126
mov r8d, 7
lea rdx, str.http:__
lea rcx, [rbp - 0x38]
call fcn.14001d4c0
mov rdx, qword [rbp - 0x20]
lea r9, [r14 + 0x20]
cmp qword [r9 + 0x18], 0x10
jb 0x140026141
mov r9, qword [r9]
mov rdi, 0xffffffffffffffff
mov rsi, rdi
nop dword [rax + rax]
inc rsi
cmp byte [r9 + rsi], 0
jne 0x140026150
mov rcx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140026195
lea rax, [rcx + rsi]
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x38]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x1400261a9
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140016090
mov eax, dword [r14 + 0xa4]
cmp eax, 1
jne 0x1400261bf
cmp dword [r14 + 0xa0], 0x50
jmp 0x1400261cf
cmp eax, 2
jne 0x1400261d5
cmp dword [r14 + 0xa0], 0x1bb
je 0x140026261
xor eax, eax
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], ax
mov r8d, dword [r14 + 0xa0]
lea rdx, [0x1400cb58c]
lea rcx, [rbp - 0x18]
call fcn.1400272f0
lea rax, [rbp - 0x18]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140026200
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140026249
lea rax, [rcx + rsi]
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x38]
add rbx, rcx
mov r8, rsi
lea rdx, [rbp - 0x18]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140026261
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140016090
inc rdi
cmp byte [r15 + rdi], 0
jne 0x140026261
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400262aa
lea rax, [rdi + rcx]
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x38]
add rbx, rcx
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400262c1
mov qword [rsp + 0x20], rdi
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140016090
mov rax, qword [r14 + 0xb8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140026314
mov rdx, qword [rbx + 0x10]
lea r8, [rdx + 0x20]
cmp qword [r8 + 0x18], 0x10
jb 0x1400262e2
mov r8, qword [r8]
cmp qword [rdx + 0x18], 0x10
jb 0x1400262ec
mov rdx, qword [rdx]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x1400263ee
mov rbx, qword [rbx]
cmp rbx, qword [r14 + 0xb8]
jne 0x1400262d0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140026353
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002634d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002634d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14002640a
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005f850
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rax, str.request_failed...
mov qword [rbp - 0x18], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, str.handle_not_opened...
mov qword [rbp - 0x18], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, str.additional_header_failed...
mov qword [rbp - 0x18], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, str.add_cookie_failed...
mov qword [rbp - 0x18], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, str.request_failed...
mov qword [rbp - 0x18], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3