Function at 0x140001270
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, r8
mov r14, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
mov qword [rbp - 0x58], rax
test rax, rax
je 0x140001b33
mov r8d, 0x50
xor r9d, r9d
lea rdx, str.api.telegram.org
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400012ff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140001b33
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0xf
jbe 0x140001312
add r8, qword [r15]
mov rdx, qword [r15]
jmp 0x140001318
add r8, r15
mov rdx, r15
lea rcx, [rbp + 0x10]
call fcn.1400020c0
mov r13, rax
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0xf
jbe 0x140001337
mov rdx, qword [r14]
add r8, rdx
jmp 0x14000133d
add r8, r14
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.1400020c0
mov r12, rax
cmp qword [rbx + 0x18], 0xf
jbe 0x14000135c
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140001363
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400020c0
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x140001424
lea rax, [r8 + 4]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 7
jbe 0x14000139e
mov rsi, qword [rdi]
lea rax, [0x140004480]
lea rcx, str._bot
cmp rax, rsi
jbe 0x1400013d0
lea rax, [rsi + r8*2]
cmp rcx, rax
ja 0x1400013d0
cmp rsi, rcx
ja 0x1400013c5
xor eax, eax
mov ebx, eax
jmp 0x1400013d5
mov rbx, rsi
sub rbx, rcx
sar rbx, 1
jmp 0x1400013d5
mov ebx, 4
lea rcx, [rsi + 8]
lea r8, [r8*2 + 2]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
add rbx, rbx
mov r8, rbx
lea rdx, str._bot
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rsi]
mov r8d, 8
sub r8, rbx
lea rdx, str._bot
add rdx, 8
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rbp - 0x58]
jmp 0x14000143b
mov ebx, 4
mov qword [rsp + 0x28], rbx
mov edx, ebx
mov rcx, rdi
call fcn.140002770
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x58], xmm1
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, rdi
cmp rax, 0x15
jb 0x1400014c2
lea rax, [rdi + 0x15]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rcx, 7
cmova rbx, qword [rsp + 0x48]
lea rcx, [rbx + rdi*2]
mov r8d, 0x2a
lea rdx, str._sendMessage_chat_id
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2 + 0x2a], ax
lea rax, [rsp + 0x48]
xor ebx, ebx
jmp 0x1400014e1
mov qword [rsp + 0x20], 0x15
lea r9, str._sendMessage_chat_id
mov edx, 0x15
lea rcx, [rsp + 0x48]
call fcn.1400023a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov r9, r12
lea r8, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.140002560
nop
mov rdi, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
sub rax, rdi
cmp rax, 6
jb 0x140001561
lea rax, [rdi + 6]
mov qword [rbp - 0x40], rax
lea rbx, [rbp - 0x50]
cmp rcx, 7
cmova rbx, qword [rbp - 0x50]
lea rcx, [rbx + rdi*2]
mov r8d, 0xc
lea rdx, [0x140004438]
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2 + 0xc], ax
lea rax, [rbp - 0x50]
xor ebx, ebx
jmp 0x14000157f
mov qword [rsp + 0x20], 6
lea r9, [0x140004438]
mov edx, 6
lea rcx, [rbp - 0x50]
call fcn.1400023a0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov r9, r13
lea r8, [rbp - 0x78]
lea rcx, [rbp + 0x50]
call fcn.140002560
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x1400015f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140001635
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001630
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001630
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], bx
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140001692
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001685
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001685
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400016df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bx
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140001735
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001728
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001728
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140001789
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000177c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000177c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp], xmm0
mov word [rbp - 0x10], bx
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x1400017dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], bx
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r8, qword [rbp + 0x50]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.POST
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
test rax, rax
jne 0x140001839
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140001af0
mov rsi, qword [r14 + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rsi
cmp rax, 8
jb 0x140001b5a
cmp qword [r14 + 0x18], 0xf
jbe 0x140001861
mov r14, qword [r14]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea r12, [rsi + 8]
mov ebx, 0xf
lea rdi, [rbp - 0x78]
cmp r12, rbx
jbe 0x1400018fb
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400018be
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002930
test rax, rax
je 0x140001a38
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400018f7
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400018d7
xor eax, eax
jmp 0x1400018f4
cmp rcx, 0x1000
jb 0x1400018ef
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001b60
jmp 0x14000189f
call fcn.140002930
mov rdi, rax
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], rbx
movabs rax, 0x3d64695f74616863
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov r8, rsi
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r12], 0
mov r8d, 6
lea rdx, str.text
lea rcx, [rbp - 0x78]
call fcn.140001ee0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov rdx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140001979
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
lea rcx, [rsp + 0x68]
call fcn.140001ee0
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400019f3
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004580]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140001a44
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
lea r9, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova r9, qword [rbp + 0x30]
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140001adf
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ada
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ada
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
movdqa xmm0, xmmword [0x140004580]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140001b33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000296c
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140002910
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011a0
nop
call fcn.140001100
int3