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

Disassembly:
push r15
xor eax, eax
mov r15, rdx
xor edx, edx
push r14
mov r14, r9
xor r9d, r9d
push r13
mov r13, r8
xor r8d, r8d
push r12
push rbp
push rdi
push rsi
mov rsi, rcx
mov ecx, 0x100
push rbx
sub rsp, 0x478
lea rdi, [rsp + 0x70]
mov dword [rsp + 0x68], r8d
rep stosd dword [rdi], eax
mov rdi, qword [0x14000bb20]
mov dword [rsp + 0x6c], r8d
xor r8d, r8d
mov rcx, qword [rdi + 0x28]
mov dword [rsp + 0x20], r9d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rax
test rax, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
jne 0x140008e33
call rbp
lea rcx, str.WinHttpOpen:_Failed____d_n
mov edx, eax
jmp 0x140008e6d
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
movzx r8d, word [rdi + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
call rbp
lea rcx, str.__WinHttpConnect___d_n
mov edx, eax
call fcn.140009180
test r12, r12
jne 0x140008e7e
call rbp
lea rcx, str.WinHttpConnect:_Failed____d_n
mov edx, eax
call fcn.140009180
xor esi, esi
xor ebx, ebx
xor r12d, r12d
jmp 0x140009067
cmp dword [rdi + 0x4c], 0
mov dword [rsp + 0x68], 0x100
je 0x140008e94
mov dword [rsp + 0x68], 0x800100
mov eax, dword [rsp + 0x68]
xor ecx, ecx
xor r9d, r9d
lea rdx, str.POST
mov qword [rsp + 0x28], rcx
lea r8, str.index.php
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov dword [rsp + 0x30], eax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
call rbp
lea rcx, str.__WinHttpOpenRequest___d_n
mov edx, eax
call fcn.140009180
test rbx, rbx
jne 0x140008ef1
call rbp
lea rcx, str.WinHttpOpenRequest:_Failed____d_n
xor esi, esi
mov edx, eax
call fcn.140009180
jmp 0x14000907f
cmp dword [rdi + 0x4c], 0
je 0x140008f39
mov dword [rsp + 0x68], 0x3300
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rbx
mov edx, 0x1f
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140008f29
call rbp
lea rcx, str.WinHttpSetOption:_Failed____d_n
mov edx, eax
jmp 0x140008f34
call rbp
lea rcx, str.__WinHttpSetOption____d_n
mov edx, eax
call fcn.140009180
xor edx, edx
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov r9, rsi
mov qword [rsp + 0x30], rdx
mov rcx, rbx
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000903e
test r13, r13
je 0x140009065
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140009065
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
xor edi, edi
xor r15d, r15d
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x6c]
mov rcx, rbx
mov r8d, 0x400
call rax
mov dword [rsp + 0x54], eax
test eax, eax
je 0x140008fbc
mov edx, dword [rsp + 0x6c]
test edx, edx
jne 0x140008fce
jmp 0x140009028
call rbp
lea rcx, str.WinHttpReadData:_Failed___d__n
mov edx, eax
call fcn.140009180
jmp 0x140009028
test r15, r15
jne 0x140008fe0
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x140008ff2
add rdx, rdi
mov r8d, 0x42
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [rsp + 0x6c]
mov r15, rax
lea rax, [rax + rdi]
mov rsi, qword [rsp + 0x48]
lea rdx, [rcx + rdi]
mov rdi, rax
xor eax, eax
cmp dword [rsp + 0x54], 1
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x48]
mov ecx, 0x100
rep stosd dword [rdi], eax
jne 0x14000902b
mov rdi, rdx
jmp 0x140008f90
mov rdx, rdi
test r14, r14
je 0x140009033
mov qword [r14], rdx
mov qword [r13], r15
mov esi, 1
jmp 0x140009067
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
cmp eax, 0x2efd
jne 0x140009055
xor eax, eax
mov dword [rdi + 0xc], eax
jmp 0x140009065
call rsi
lea rcx, str.WinHttpSendRequest:_Failed____d_n
mov edx, eax
call fcn.140009180
xor esi, esi
mov rcx, qword [rsp + 0x40]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, r12
call rdi
mov rcx, rbx
call rdi
add rsp, 0x478
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret