Function at 0x1400057a0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x80
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor ebx, ebx
mov rsi, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rdi + 0x28], 1
cmp qword [rdi + 0x40], rbx
jne 0x140005814
mov rax, qword [rdi + 0x38]
mov rcx, qword [rdi + 8]
lea r8d, [rbx + 0x50]
mov rdx, qword [rax + 0xa0]
mov eax, edi
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rdi + 0x40], rax
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x140005856
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140005834
mov ebx, 0x80004005
jmp 0x140005a07
mov rcx, qword [rdi + 0x18]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x140005856
mov ebx, 0x80004005
jmp 0x140005a07
mov rax, qword [rdi + 0x38]
mov dword [rdi + 0x28], 2
mov qword [rsp + 0x98], rbp
mov r8, qword [rax + 0xa8]
mov ebp, edi
lea rdx, str.POST
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x84400000
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rsi, rax
test rax, rax
jne 0x1400058d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400058b8
mov ebx, 0x80004005
jmp 0x1400059ff
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x74], ebx
je 0x1400058d6
mov ebx, 0x80004005
jmp 0x1400059ff
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov rax, qword [rdi + 0x38]
mov dword [rsp + 0x40], 0x38
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x6c], ecx
lea rcx, str.Content_Type:_application_x_www_form_urlencoded_r
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
mov r9d, 9
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x28], 3
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x140005980
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140005965
mov ebx, 0x80004005
jmp 0x1400059ff
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x74], ebx
je 0x140005980
mov ebx, 0x80004005
jmp 0x1400059ff
mov rax, qword [rdi + 0x38]
mov dword [rdi + 0x80], ebx
mov dword [rdi + 0x28], 4
mov dword [rsp + 0x90], ebx
cmp qword [rax + 0x98], 0x10
mov rcx, qword [rax + 0x90]
jb 0x1400059b2
mov rdx, qword [rax + 0x80]
jmp 0x1400059b9
lea rdx, [rax + 0x80]
mov r8d, ecx
lea r9, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x1400059ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400059e5
mov ebx, 0x80004005
jmp 0x1400059ff
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x74], ebx
mov eax, 0x80004005
cmovne ebx, eax
mov rbp, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x74], eax
test rsi, rsi
je 0x140005a1e
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x40]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
test rcx, rcx
je 0x140005a3d
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
add rsp, 0x80
pop rbx
ret