Function at 0x140002410
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozila_5.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x140002821
mov r8d, 0xbb8
xor r9d, r9d
lea rdx, str.192.168.1.27
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x1400024d4
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, str._in_file
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x1400024e2
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140002821
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x40]
call fcn.14002b3e0
lea rax, [0x140038438]
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov dword [rbp + 0x88], r13d
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r13
mov byte [rbp + 0xc8], r13b
mov dword [rsp + 0x40], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x6c], 0x98
mov qword [rbp - 0x38], r13
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x70]
call fcn.1400064f0
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], r8d
lea rcx, [rbp - 0x30]
call fcn.1400060a0
nop
mov r8d, 0x21
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140005ed0
mov ebx, 2
lea r12d, [rbx + 4]
test rax, rax
jne 0x1400025e5
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, r12d
cmp qword [rbp + rcx + 8], 0
cmovne eax, ebx
or eax, dword [rbp + rcx - 0x30]
and eax, 0x17
mov dword [rbp + rcx - 0x30], eax
mov edx, dword [rbp + rcx - 0x2c]
and edx, eax
jne 0x140002857
cmp qword [rbp + 0x50], 0
jne 0x14000260c
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400027ba
mov r8d, ebx
lea rcx, [rbp - 0x40]
call fcn.1400051f0
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140005110
mov rdi, qword [rax + 8]
add rdi, qword [rax]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.1400051f0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov qword [rbp - 0x58], r13
test rdi, rdi
je 0x1400026bb
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x1400028aa
cmp rdi, 0x1000
jb 0x140002691
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400028b0
call fcn.1400093b8
mov rcx, rax
test rax, rax
je 0x140002851
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002699
mov rcx, rdi
call fcn.1400093b8
mov qword [rbp - 0x68], rax
lea rbx, [rax + rdi]
mov qword [rbp - 0x58], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.14002b3e0
mov qword [rbp - 0x60], rbx
mov ebx, 2
mov r8, rdi
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x40]
call fcn.1400053e0
lea rcx, [rbp - 0x30]
call fcn.140005dd0
test rax, rax
jne 0x140002706
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 8], 0
cmovne r12d, ebx
or r12d, dword [rbp + rcx - 0x30]
and r12d, 0x17
mov dword [rbp + rcx - 0x30], r12d
mov eax, dword [rbp + rcx - 0x2c]
and eax, r12d
jne 0x1400028b6
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_octet_stream_r_n
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140002758
mov dword [rbp - 0x50], r13d
lea r9, [rbp - 0x50]
mov r8d, edi
mov rdx, qword [rbp - 0x68]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x140002758
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400027ba
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002851
call fcn.1400093b0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.140004e60
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.140008978
nop
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140009390
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140011d64
nop
test dl, 4
je 0x140002865
lea rbx, str.ios_base::badbit_set
jmp 0x140002879
test bl, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140001620
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400021c0
lea rdx, [0x14003cf30]
lea rcx, [rsp + 0x58]
call fcn.14000b14c
nop
call fcn.1400072c0
int3
call fcn.140001490
nop
test al, 4
je 0x1400028c3
lea rbx, str.ios_base::badbit_set
jmp 0x1400028d7
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140001620
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400021c0
lea rdx, [0x14003cf30]
lea rcx, [rsp + 0x58]
call fcn.14000b14c
int3