Function at 0x1800047d8
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa58]
sub rsp, 0xb58
mov rax, qword [0x180052d00]
xor rax, rsp
mov qword [rbp + 0xa40], rax
mov rax, qword [rbp + 0xac8]
mov rbx, r8
xor r15d, r15d
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0xad0]
mov r13d, 0x104
mov qword [rsp + 0x78], rdx
mov rdi, rcx
mov r8d, r13d
mov qword [rsp + 0x68], rax
xor edx, edx
mov qword [rbp - 0x78], r9
lea rcx, [rbp + 0x200]
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x58], r15d
mov esi, r15d
mov dword [rsp + 0x5c], 0xa
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], r13d
call fcn.18003b660
xor edx, edx
lea rcx, [rbp + 0x310]
mov r8d, 0x208
call fcn.18003b660
mov r8d, r13d
lea rcx, [rbp + 0xf0]
xor edx, edx
call fcn.18003b660
xorps xmm0, xmm0
mov dword [rsp + 0x60], 0x14
xor eax, eax
mov byte [rbp - 0x20], r15b
xor edx, edx
mov dword [rbp - 0x28], eax
lea r8d, [r13 - 1]
lea rcx, [rbp - 0x1f]
movups xmmword [rbp - 0x38], xmm0
call fcn.18003b660
xor edx, edx
mov byte [rbp + 0x520], r15b
mov r8d, 0x513
lea rcx, [rbp + 0x521]
call fcn.18003b660
xor edx, edx
mov dword [rsp + 0x4c], 0x13880
lea r8d, [r15 + 0x38]
lea rcx, [rbp - 0x70]
call fcn.18003b660
mov r12d, dword [rbp + 0xac0]
lea rcx, [rbp + 0x310]
test r12d, r12d
je 0x180004909
mov r9, rbx
lea rdx, [0x18003fca0]
mov r8d, r12d
call fcn.180004784
jmp 0x180004918
mov r8, rbx
lea rdx, str.Accept:___r_n_hs_r_n_r_n
call fcn.180004784
lea rdx, [0x18003fd84]
mov rcx, rdi
call fcn.1800217ec
mov rbx, rax
test rax, rax
je 0x180004d60
add rbx, 3
mov edx, 0x2f
mov rcx, rbx
call fcn.180021770
mov r14, rax
test rax, rax
je 0x180004d60
mov cl, byte [rdi + 4]
mov r9, r14
sub cl, 0x53
mov edi, r15d
test cl, 0xdf
mov r8, rbx
mov rdx, r13
sete dil
mov ecx, edi
mov dword [rsp + 0x50], edi
neg ecx
lea rcx, [rbp - 0x20]
sbb eax, eax
sub r9, rbx
and eax, 0x801000
add eax, 0x840ce300
mov dword [rsp + 0x48], eax
call fcn.18002e030
mov edx, 0x3a
lea rcx, [rbp - 0x20]
call fcn.180021770
mov ecx, edi
neg ecx
sbb edi, edi
and edi, 0x16b
add edi, 0x50
test rax, rax
je 0x1800049bd
lea rcx, [rax + 1]
mov byte [rax], r15b
call fcn.18002e248
mov edi, eax
mov r8, r14
lea rcx, [rbp + 0x520]
mov edx, 0x514
call fcn.18002dfd0
lea r8, [rsp + 0x44]
mov dword [rsp + 0x54], 0x3180
lea rdx, [rbp + 0x200]
xor ecx, ecx
mov ebx, 2
call sub.urlmon.dll_ObtainUserAgentString
xor r14d, r14d
test eax, eax
je 0x180004a0e
lea r8, str.Mozilla_5.0__Windows_NT_10.0__WOW64__x64__Chrome_120.0.0.0_Safari_537.36
mov rdx, r13
lea rcx, [rbp + 0x200]
call fcn.18002dfd0
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rcx, [rbp + 0x200]
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x180004a37
mov eax, ebx
jmp 0x180004d65
mov qword [rsp + 0x38], r14
lea rax, [0x18003fc9e]
mov dword [rsp + 0x30], r14d
lea rdx, [rbp - 0x20]
mov dword [rsp + 0x28], 3
mov r9, rax
movzx r8d, di
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r13, rax
test rax, rax
jne 0x180004a7c
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180004a30
mov eax, dword [rsp + 0x48]
lea r9, str.HTTP_1.0
mov rdx, qword [rsp + 0x78]
lea r8, [rbp + 0x520]
mov qword [rsp + 0x38], r14
mov rcx, r13
mov dword [rsp + 0x30], eax
lea rax, [0x18003fc9e]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
jne 0x180004acc
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
jmp 0x180004a74
mov r9d, 4
lea r8, [rsp + 0x4c]
mov rcx, rdi
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x180004d49
cmp dword [rsp + 0x50], r14d
je 0x180004b13
mov r9d, 4
lea r8, [rsp + 0x54]
mov rcx, rdi
lea edx, [r9 + 0x1b]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x180004d49
cmp qword [rbp - 0x80], r14
je 0x180004b46
lea rcx, [rbp + 0x310]
call fcn.18002c7bc
mov r8, rax
lea rdx, [rbp + 0x310]
mov r9d, 0xa0000000
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x180004d49
mov r9d, 8
mov dword [rbp - 0x70], 0x38
xor r8d, r8d
mov dword [rbp - 0x44], r12d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x180004d49
test r12d, r12d
jle 0x180004b96
mov rdx, qword [rbp - 0x78]
lea r9, [rsp + 0x58]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x180004d49
xor r9d, r9d
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 8]
call qword [sym.imp.WININET.dll_HttpEndRequestA]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0xf0]
mov edx, 0x13
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180004bd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180004d49
lea rdx, [0x18003fdec]
lea rcx, [rbp + 0xf0]
call fcn.18002e130
test eax, eax
jne 0x180004bf5
lea ebx, [rax + 3]
jmp 0x180004d49
lea rdx, [0x18003fdf0]
lea rcx, [rbp + 0xf0]
call fcn.18002e130
test eax, eax
jne 0x180004c14
lea ebx, [rax + 1]
jmp 0x180004d49
lea rdx, [0x18003fdf4]
lea rcx, [rbp + 0xf0]
call fcn.18002e130
test eax, eax
jne 0x180004d49
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
lea r8, [rbp - 0x38]
mov rcx, rdi
lea edx, [rax + 5]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180004bcb
lea rcx, [rbp - 0x38]
call fcn.18002e2f8
mov ecx, 0x40
mov r12, rax
lea edx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test r12d, r12d
je 0x180004d29
mov eax, 0x80000
mov r8d, r12d
mov edx, esi
sub r8d, esi
lea r9, [rsp + 0x40]
cmp r8d, eax
mov rcx, rdi
cmova r8d, eax
add rdx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180004d49
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180004cb8
add esi, eax
mov eax, 0x80000
cmp esi, r12d
jb 0x180004c7c
test esi, esi
je 0x180004d29
lea edx, [rsi + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x70]
mov r8d, esi
mov qword [rcx], rax
test esi, esi
je 0x180004d32
test rax, rax
jne 0x180004cf0
call fcn.18002dfb0
mov dword [rax], 0x16
call fcn.18002de44
jmp 0x180004d32
mov rcx, rax
test r14, r14
je 0x180004d09
mov rdx, r14
call fcn.18003afc0
mov rax, qword [rsp + 0x68]
mov dword [rax], esi
jmp 0x180004d3e
xor edx, edx
call fcn.18003b660
call fcn.18002dfb0
mov dword [rax], 0x16
call fcn.18002de44
mov rax, qword [rsp + 0x68]
mov dword [rax], esi
jmp 0x180004d47
mov rcx, qword [rsp + 0x70]
and qword [rcx], 0
mov rax, qword [rsp + 0x68]
mov dword [rax], esi
test r14, r14
je 0x180004d47
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180004a71
mov eax, 1
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.180020620
add rsp, 0xb58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret