Function at 0x140001b38
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov dword [rbp - 0x4c], 0
mov dword [rbp - 0x50], 0
mov dword [rbp - 0x54], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x2c], 1
mov dword [rbp - 0x30], 0
lea rcx, [rbp - 0x54]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x4c]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
call rax
jmp 0x1400023eb
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0xffffffffffffffff
jne 0x140001c39
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x142
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x1400023f8
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x200
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x40], 0
jne 0x140001ca0
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x147
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x40]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapSize]
call rax
mov rdx, rax
mov rax, qword [rbp - 0x40]
lea r9, str._fake.html
lea r8, [0x14000f0f2]
mov rcx, rax
call dbg.StringCbPrintfW
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x200
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001d45
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x14c
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov eax, dword [rbp - 0x54]
movzx edi, ax
mov esi, dword [rbp - 0x50]
mov ebx, dword [rbp - 0x4c]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapSize]
call rax
mov rdx, rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
lea r9, str.TrollAV_5.0
lea r8, str._hs_WindowsNT_i._i._i_
mov rcx, rax
call dbg.StringCbPrintfW
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001e0b
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x15d
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp - 0x10]
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001e72
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x160
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
lea rax, [0x14000f13c]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x30], 0
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140001f08
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x165
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov rax, qword [rbp - 0x20]
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
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140001f87
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x171
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov rax, qword [rbp - 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140001fe1
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x174
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov dword [rbp - 0x74], 0
mov dword [rbp - 0x78], 4
lea rcx, [rbp - 0x74]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], 0
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0x20000013
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140002068
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x180
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov eax, dword [rbp - 0x74]
cmp eax, 0x1f3
jbe 0x1400020ae
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x181
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
lea rdx, [rbp - 0x7c]
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140002107
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x185
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov eax, dword [rbp - 0x7c]
test eax, eax
jne 0x1400022fe
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x188
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov eax, dword [rbp - 0x7c]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x1400021b7
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x18d
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov ecx, dword [rbp - 0x7c]
lea r8, [rbp - 0x80]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x14000221d
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x191
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov ecx, dword [rbp - 0x80]
lea r8, [rbp - 0x84]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140002278
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x199
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x140002309
cmp qword [rbp - 0x28], 0
je 0x1400022a8
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x7c]
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x1400022fe
mov eax, dword [rbp - 0x2c]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
shl dword [rbp - 0x2c], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0x1a3
mov edx, eax
lea rax, str.ERROR__lu_in__i_r_n
mov rcx, rax
call sym.printf
jmp 0x14000230f
mov eax, dword [rbp - 0x7c]
test eax, eax
jne 0x14000214e
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x30], eax
cmp qword [rbp - 0x48], 0xffffffffffffffff
je 0x140002326
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp qword [rbp - 0x28], 0
je 0x140002356
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov qword [rbp - 0x28], 0
cmp qword [rbp - 0x20], 0
je 0x14000236d
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x18], 0
je 0x140002384
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x10], 0
je 0x14000239b
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 8], 0
je 0x1400023c3
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
cmp qword [rbp - 0x40], 0
je 0x1400023eb
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x40]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
cmp dword [rbp - 0x30], 0
je 0x140001bca
mov eax, dword [rbp - 0x30]
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
ret