Function at 0x140047b50
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rsi, rdx
mov r12, rcx
lea rcx, [rbp + 0x50]
call fcn.140048370
nop
xor r14d, r14d
mov rcx, qword [0x1400d1858]
cmp byte [0x1400d1852], r14b
je 0x140047c50
test rcx, rcx
je 0x140047ba6
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r8, [0x1400d17e0]
cmp qword [0x1400d17f8], 0x10
cmovae r8, qword [0x1400d17e0]
lea rcx, [0x1400d1700]
cmp qword [0x1400d1718], 0x10
cmovae rcx, qword [0x1400d1700]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov edx, dword [0x1400d1878]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, rax
mov qword [0x1400d1858], rax
test rax, rax
je 0x140047c49
cmp qword [0x1400d17f0], r14
je 0x140047c49
cmp qword [0x1400d1810], r14
je 0x140047c49
mov r9d, dword [0x1400d1810]
lea r8, [0x1400d1800]
mov edx, 0x2b
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, dword [0x1400d1830]
lea r8, [0x1400d1820]
mov edx, 0x2c
mov rcx, qword [0x1400d1858]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x1400d1858]
mov byte [0x1400d1852], r14b
test rcx, rcx
jne 0x140047cc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.InternetOpen_failed:
add rdx, rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], r14b
jne 0x140047c70
lea rcx, [rbp + 0x110]
call fcn.14003f900
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.1400484e0
nop
lea rcx, [rbp + 0x50]
call fcn.140047660
nop
mov rcx, rsi
call fcn.1400472a0
mov rax, r12
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movabs r13, 0x2aaaaaaaaaaaaaa
mov eax, 0x1bb
mov word [rbp + 0x190], ax
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140048770
nop
mov qword [rbp + 0x198], r14
movzx edi, word [rbp + 0x190]
mov qword [rsp + 0x50], r14
cmp dword [0x1400d1870], 0
jne 0x140047e8f
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov r8d, 4
lea rdx, str.host
lea rcx, [rsp + 0x50]
call fcn.14003f900
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14004fde0
mov rbx, qword [rbp - 0x80]
cmp byte [rbx + 0x19], 0
jne 0x140047d70
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x50]
call fcn.140050110
test al, al
je 0x140047e0d
cmp qword [rsp + 0x48], r13
je 0x140048364
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r14
mov ecx, 0x60
call fcn.14006b748
nop
mov qword [rax + 0x20], r14
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x30], xmm1
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov qword [rax + 0x40], r14
mov qword [rax + 0x50], r14
mov qword [rax + 0x58], 0xf
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 8], r14
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm0
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001ba60
mov rbx, rax
lea rdx, [rbx + 0x40]
cmp qword [rdx + 0x18], 0x10
jb 0x140047e1b
mov rdx, qword [rdx]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, di
mov rcx, qword [0x1400d1858]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r15, rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140047fc9
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047e85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400481bc
call fcn.14006baac
jmp 0x140047fc9
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov r8d, 4
lea rdx, str.host
lea rcx, [rsp + 0x50]
call fcn.14003f900
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14004fde0
mov rbx, qword [rbp - 0x80]
cmp byte [rbx + 0x19], 0
jne 0x140047eee
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x50]
call fcn.140050110
test al, al
je 0x140047f8b
cmp qword [rsp + 0x48], r13
je 0x14004836a
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rbp], rax
mov qword [rbp + 8], r14
mov ecx, 0x60
call fcn.14006b748
nop
mov qword [rax + 0x20], r14
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x30], xmm1
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov qword [rax + 0x40], r14
mov qword [rax + 0x50], r14
mov qword [rax + 0x58], 0xf
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp + 8], r14
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm0
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001ba60
mov rbx, rax
lea rdx, [rbx + 0x40]
lea rcx, [rbp + 0x10]
call fcn.14004f140
mov word [rsp + 0x20], di
mov r9, rax
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x198]
lea rcx, [0x1400d1858]
call fcn.14004e070
nop
lea rcx, [rsp + 0x50]
call fcn.14003f7a0
mov r15, qword [rbp + 0x198]
test r15, r15
je 0x14004832a
lea rdx, [0x140077694]
lea rcx, [rsp + 0x50]
call fcn.14003f8a0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004edb0
mov rcx, rax
call fcn.14003f790
mov r8, rax
lea rcx, [rsi + 0x80]
call fcn.14003f790
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0xa00000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
mov qword [rbp + 0x198], rax
lea rcx, [rsp + 0x50]
call fcn.14003f7a0
test rdi, rdi
je 0x140048319
lea r8, [rsp + 0x40]
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.14004a680
nop
cmp dword [0x1400d1874], 0
jne 0x1400480a2
mov r8d, dword [0x1400d1750]
xor edx, edx
lea rcx, [0x1400d1740]
call fcn.14004eeb0
mov r9, rax
lea rcx, [rbp - 0x30]
call fcn.14003f790
mov dword [rsp + 0x20], r8d
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
jmp 0x1400480c5
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14004f140
lea r8, [rbp + 0x50]
mov rdx, rax
lea rcx, [rbp + 0x198]
call fcn.14004dd70
movzx eax, al
test eax, eax
je 0x1400482e3
mov r9, rsi
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x198]
lea rcx, [rbp - 0x50]
call fcn.14004b430
nop
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x198]
lea rcx, [rbp - 0x70]
call fcn.14004b5b0
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rbp + 0x50]
mov rdx, rsi
lea rcx, [rbp + 0x198]
call fcn.14004b740
cmp byte [0x1400d1851], 0
je 0x1400481c3
lea rdx, str.absolute
lea rcx, [rbp - 0x70]
call fcn.14004f2c0
test al, al
jne 0x14004817c
lea rdx, str.relative
lea rcx, [rbp - 0x70]
call fcn.14004f2c0
test al, al
je 0x1400481c3
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp - 0x70]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x50]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x30]
call fcn.14003f7a0
jmp 0x140047fd2
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp - 0x70]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x50]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x30]
call fcn.14003f7a0
nop
lea rcx, [rsp + 0x40]
call fcn.140046fd0
jmp 0x140047ccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.14004c280
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.14004c9b0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xb0]
call fcn.14004f110
mov r9d, 0xe
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14004eed0
nop
lea rcx, [rbp + 0x30]
call fcn.14004f090
mov r14, rax
lea rcx, [rbp + 0x30]
call fcn.14003f790
mov rbx, rax
cmp rax, r14
je 0x140048233
nop
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx], al
inc rbx
cmp rbx, r14
jne 0x140048220
lea rdx, str.__doctype_html
lea rcx, [rbp + 0x30]
call fcn.14004f2c0
test al, al
je 0x14004827c
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x10]
call fcn.14004f140
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14004e460
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.14003f800
lea rcx, [rsp + 0x50]
call fcn.14003f7a0
jmp 0x14004828f
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xd0]
call fcn.14004f110
lea rcx, [0x1400d1700]
call fcn.140047000
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.1400484e0
nop
lea rcx, [rbp + 0x30]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x70]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x50]
call fcn.14003f7a0
nop
lea rcx, [rbp - 0x30]
call fcn.14003f7a0
jmp 0x140048355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.HttpSendRequest_failed_with_error_code
add rdx, rax
lea rcx, [rbp + 0x110]
call fcn.14003f8e0
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.1400484e0
nop
lea rcx, [rbp - 0x30]
call fcn.14003f7a0
jmp 0x140048355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.HttpOpenRequest_failed:
jmp 0x140048339
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.InternetConnect_failed:
add rdx, rax
lea rcx, [rbp + 0x110]
call fcn.14003f8e0
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.1400484e0
nop
lea rcx, [rsp + 0x40]
call fcn.140046fd0
jmp 0x140047c92
call fcn.140002cc0
nop
call fcn.140002cc0
int3