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

Disassembly:
jmp 0x140017c40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x14a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x548]
mov rax, qword [0x14002f018]
xor rax, rbp
mov qword [rbp + 0x4d8], rax
lea rcx, [0x140045039]
call fcn.140011181
mov byte [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 0
mov qword [rbp + 0xe8], 0
mov dword [rbp + 0x108], 0x1234567
mov dword [rbp + 0x10c], 0x89abcdef
mov dword [rbp + 0x110], 0xfedcba98
mov dword [rbp + 0x114], 0x76543211
mov rax, qword [rbp + 0x500]
mov qword [rbp + 0x138], rax
mov rcx, qword [rbp + 0x138]
call fcn.14001108c
mov qword [rbp + 0x158], rax
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x178], rax
mov r8, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x178]
call fcn.1400116cc
lea rdx, [rbp + 0x158]
lea rcx, [rbp + 0x178]
call fcn.1400111ae
lea r8, [rbp + 0x108]
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x178]
call fcn.1400114ce
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 + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140017db5
xor r9d, r9d
mov r8w, 0x1f41
lea rdx, str.127.0.0.1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140017df5
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._API
lea rdx, str.POST
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140017e38
mov qword [rsp + 0x30], 0
mov eax, dword [rbp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x158]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x178]
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140018021
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140018021
mov dword [rbp + 0x194], 0
lea rdx, [rbp + 0x194]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140018021
cmp dword [rbp + 0x194], 8
jne 0x140018021
mov dword [rbp + 0x1b4], 0
lea rax, [rbp + 0x1e0]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
lea r9, [rbp + 0x1b4]
mov r8d, dword [rbp + 0x194]
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140018021
mov byte [rbp + 4], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x2c8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x2a8]
lea r8, [rbp + 0x288]
lea rdx, [rbp + 0x268]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea rax, [rbp + 0x2e4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rax, [rbp + 0x304]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r8d, 4
lea rdx, [rbp + 0x268]
lea rcx, [rbp + 0x2e4]
call fcn.1400116cc
mov r8d, 4
lea rdx, [rbp + 0x26c]
lea rcx, [rbp + 0x304]
call fcn.1400116cc
mov dword [rbp + 0x324], 0
jmp 0x140017f73
mov eax, dword [rbp + 0x324]
inc eax
mov dword [rbp + 0x324], eax
cmp dword [rbp + 0x324], 4
jge 0x140017fac
movsxd rax, dword [rbp + 0x324]
movsxd rcx, dword [rbp + 0x324]
movsx ecx, byte [rbp + rcx + 0x2e4]
movsx eax, byte [rbp + rax + 0x1e0]
xor eax, ecx
movsxd rcx, dword [rbp + 0x324]
mov byte [rbp + rcx + 0x1e0], al
jmp 0x140017f65
mov dword [rbp + 0x344], 0
jmp 0x140017fc6
mov eax, dword [rbp + 0x344]
inc eax
mov dword [rbp + 0x344], eax
cmp dword [rbp + 0x344], 4
jge 0x140018008
mov eax, dword [rbp + 0x344]
add eax, 4
cdqe
movsxd rcx, dword [rbp + 0x344]
movsx ecx, byte [rbp + rcx + 0x2e4]
movsx eax, byte [rbp + rax + 0x1e0]
xor eax, ecx
mov ecx, dword [rbp + 0x344]
add ecx, 4
movsxd rcx, ecx
mov byte [rbp + rcx + 0x1e0], al
jmp 0x140017fb8
mov r8d, 8
lea rdx, [rbp + 0x1e0]
lea rcx, [0x14002f388]
call fcn.1400116cc
cmp qword [rbp + 0x68], 0
je 0x140018032
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0x48], 0
je 0x140018043
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0x28], 0
je 0x140018054
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, byte [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140011771
mov eax, edi
mov rcx, qword [rbp + 0x4d8]
xor rcx, rbp
call fcn.14001123f
lea rsp, [rbp + 0x4e8]
pop rdi
pop rbp
ret