Function at 0x140006f40
Capabilities:
Create http request
Initialize winsock library
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1170]
mov eax, 0x1270
call fcn.14000a940
sub rsp, rax
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x1160], rax
xorps xmm0, xmm0
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
xorps xmm1, xmm1
lea rdx, str.https:__rentry.org_fuquhrky_raw
mov r8d, 0x1f
lea rcx, [rbp - 0x60]
movups xmmword [rbp - 0x60], xmm0
movdqu xmmword [rbp - 0x50], xmm1
call fcn.1400088e0
xor r12d, r12d
lea rcx, str.SIDAuthApp
xorps xmm0, xmm0
mov qword [rsp + 0x48], r12
movups xmmword [rsp + 0x38], xmm0
mov esi, r12d
mov dword [rsp + 0x20], r12d
mov ebx, send
mov byte [rsp + 0x38], sil
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x140007031
cmp qword [rbp - 0x48], rbx
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x28], r12
mov rcx, rax
cmova rdx, qword [rbp - 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x1400070ce
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_fetch_SID_list.
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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]
cmp rbx, 0xf
jbe 0x140007089
mov rcx, qword [rsp + 0x38]
lea rdx, [rbx + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007084
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070c7
call fcn.1400098a0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x1400074a7
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074a2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400074a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x160]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140007184
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140007184
mov edi, eax
mov rax, rbx
sub rax, rsi
cmp rdi, rax
ja 0x14000713e
cmp rbx, 0xf
lea rax, [rsi + rdi]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x160]
lea rax, [rsp + 0x38]
mov r8d, edi
cmova rax, qword [rsp + 0x38]
lea rbx, [rax + rsi]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], r12b
jmp 0x140007157
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140008750
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x160]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x1400070f1
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x140007031
xorps xmm0, xmm0
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x78]
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
call fcn.1400068e0
lea rcx, [rsp + 0x58]
call fcn.140006bd0
cmp qword [rsp + 0x68], r12
jne 0x1400071d9
lea rdx, str.Failed_to_retrieve_current_user_SID.
jmp 0x1400072c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Current_User_SID:
call fcn.140008520
cmp qword [rsp + 0x70], 0xf
lea rdx, [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, rax
cmova rdx, qword [rsp + 0x58]
call fcn.140008be0
lea rdx, [0x1400084e0]
mov rcx, rax
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 rbx, qword [rsp + 0x78]
mov rdi, qword [rbp - 0x80]
cmp rbx, rdi
je 0x14000727a
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x58]
nop word [rax + rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rsp + 0x58]
cmp r14, 0xf
mov rcx, rbx
cmova rdx, r15
cmp qword [rbx + 0x18], 0xf
jbe 0x14000725e
mov rcx, qword [rbx]
cmp r8, rsi
jne 0x14000726c
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007275
add rbx, 0x20
cmp rbx, rdi
jne 0x140007240
cmp rbx, rdi
jne 0x140007283
lea rdx, str.SID_authentication_failed._Closing_program.
jmp 0x1400072c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.SID_authentication_successful._Starting_server...
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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 ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400072e1
lea rdx, str.Failed_to_initialize_Winsock.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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]
jmp 0x1400073a5
mov edi, 2
xor r8d, r8d
mov ecx, edi
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140007324
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Socket_creation_failed.
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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]
jmp 0x14000739f
mov ecx, 0x1f90
mov word [rbp - 0x70], di
mov dword [rbp - 0x6c], r12d
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x70]
mov rcx, rbx
mov word [rbp - 0x6e], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000735c
lea rdx, str.Bind_failed.
jmp 0x14000737a
mov edx, 3
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140007459
lea rdx, str.Listen_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400073e2
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400073dd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070c7
call fcn.1400098a0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], send
mov byte [rsp + 0x58], r12b
test rcx, rcx
je 0x14000744f
mov rdx, qword [rbp - 0x80]
call fcn.1400089e0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x78]
mov rax, rcx
sub rdx, rcx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x14000743d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070c7
call fcn.1400098a0
xorps xmm0, xmm0
mov qword [rbp - 0x78], r12
movdqu xmmword [rsp + 0x78], xmm0
mov rbx, qword [rsp + 0x50]
jmp 0x140007054
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Server_started_and_listening_on_port_8080.
call fcn.140008520
lea rdx, [0x1400084e0]
mov rcx, rax
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]
nop dword [rax]
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
je 0x140007480
mov rcx, rax
call fcn.140005040
jmp 0x140007480
call fcn.1400098a0
mov eax, 1
mov rcx, qword [rbp + 0x1160]
xor rcx, rsp
call fcn.140009880
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret