Function at 0x140002490
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Query environment variable
Set console window title
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x440
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x410], rax
xor r15d, r15d
lea ebx, [r15 + 8]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [r15 + 0xd]
lea rdx, str.currcrack.dll
lea rcx, [rsp + 0x40]
call fcn.1400047f0
nop
lea rcx, str.temp
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002522
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x1400025b9
lea rax, [rbx + r8]
mov qword [rsp + 0x50], rax
lea rsi, [rsp + 0x40]
cmp rcx, 0x10
cmovae rsi, qword [rsp + 0x40]
lea rax, [rbx + rdi]
cmp rax, rsi
jbe 0x14000257c
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x14000257c
cmp rsi, rdi
ja 0x140002574
mov r14, r15
jmp 0x14000257f
mov r14, rsi
sub r14, rdi
jmp 0x14000257f
mov r14, rbx
lea rcx, [rbx + rsi]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r14]
mov r8, rbx
sub r8, r14
lea rdx, [rbx + r14]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
jmp 0x1400025d0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004f60
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002651
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000264c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000264c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400059a0
movdqa xmm0, xmmword [0x140007950]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdi, qword [rsp + 0xb0]
lea rbx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rbx, qword [rsp + 0xa0]
call fcn.1400051f4
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
lea r8, [rsp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140001a00
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call fcn.140005388
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140003063
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000271b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002715
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002715
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400059a0
nop
jmp 0x140002720
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xc0]
call fcn.1400041b0
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xc0], rax
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0xbc], edx
mov r8d, 0x8400
lea rdx, [0x14000b070]
lea rcx, [rsp + 0xc0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0xc8]
call fcn.1400040f0
test rax, rax
jne 0x1400027e1
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xc0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movdqa xmm6, xmmword [0x140007990]
mov dword [rsp + 0x90], 0xa596ff9f
mov dword [rsp + 0x94], 0x97c022bf
mov dword [rsp + 0x98], 0xb782f4cb
mov word [rsp + 0x9c], 0x47cc
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, dword [r14]
cmp dword [0x140013ed0], eax
jle 0x140002899
lea rcx, [0x140013ed0]
call fcn.14000569c
cmp dword [0x140013ed0], 0xffffffff
jne 0x140002899
mov byte [0x140013e9e], 1
movups xmmword [0x140013e80], xmm6
movsd xmm0, qword [rsp + 0x90]
movsd qword [0x140013e90], xmm0
mov eax, dword [rsp + 0x98]
mov dword [0x140013e98], eax
movzx eax, word [rsp + 0x9c]
mov word [0x140013e9c], ax
lea rcx, [0x140006850]
call fcn.140005988
lea rcx, [0x140013ed0]
call fcn.140005630
cmp byte [0x140013e9e], 0
je 0x14000297b
xor byte [0x140013e80], 0xbf
xor byte [0x140013e81], 0x9d
xor byte [0x140013e82], 0xef
xor byte [0x140013e83], 0x85
not byte [0x140013e84]
xor byte [0x140013e85], 0x47
xor byte [0x140013e86], 0xa9
xor byte [0x140013e87], 0xf9
xor byte [0x140013e88], 0xbf
xor byte [0x140013e89], 0x9d
xor byte [0x140013e8a], 0xef
xor byte [0x140013e8b], 0x85
not byte [0x140013e8c]
xor byte [0x140013e8d], 0x47
xor byte [0x140013e8e], 0xa9
xor byte [0x140013e8f], 0xf9
xor byte [0x140013e90], 0xbf
xor byte [0x140013e91], 0x9d
xor byte [0x140013e92], 0xef
xor byte [0x140013e93], 0x85
not byte [0x140013e94]
xor byte [0x140013e95], 0x47
xor byte [0x140013e96], 0xa9
xor byte [0x140013e97], 0xf9
xor byte [0x140013e98], 0xbf
xor byte [0x140013e99], 0x9d
xor byte [0x140013e9a], 0xef
xor byte [0x140013e9b], 0x85
not byte [0x140013e9c]
xor byte [0x140013e9d], 0x47
mov byte [0x140013e9e], 0
lea rcx, [0x140013e80]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
movdqa xmm6, xmmword [0x1400079a0]
movdqa xmm7, xmmword [0x140007970]
mov eax, dword [r14]
cmp dword [0x140013f18], eax
jle 0x1400029e5
lea rcx, [0x140013f18]
call fcn.14000569c
cmp dword [0x140013f18], 0xffffffff
jne 0x1400029e5
mov byte [0x140013ec8], 1
movups xmmword [0x140013ea8], xmm6
movups xmmword [0x140013eb8], xmm7
lea rcx, [0x140006830]
call fcn.140005988
lea rcx, [0x140013f18]
call fcn.140005630
cmp byte [0x140013ec8], 0
je 0x140002ad9
xor byte [0x140013ea8], 0x83
xor byte [0x140013ea9], 0xef
xor byte [0x140013eaa], 0xdf
xor byte [0x140013eab], 0xd9
xor byte [0x140013eac], 0xdd
xor byte [0x140013ead], 0xe5
xor byte [0x140013eae], 0x2d
xor byte [0x140013eaf], 0x85
xor byte [0x140013eb0], 0x83
xor byte [0x140013eb1], 0xef
xor byte [0x140013eb2], 0xdf
xor byte [0x140013eb3], 0xd9
xor byte [0x140013eb4], 0xdd
xor byte [0x140013eb5], 0xe5
xor byte [0x140013eb6], 0x2d
xor byte [0x140013eb7], 0x85
xor byte [0x140013eb8], 0x83
xor byte [0x140013eb9], 0xef
xor byte [0x140013eba], 0xdf
xor byte [0x140013ebb], 0xd9
xor byte [0x140013ebc], 0xdd
xor byte [0x140013ebd], 0xe5
xor byte [0x140013ebe], 0x2d
xor byte [0x140013ebf], 0x85
xor byte [0x140013ec0], 0x83
xor byte [0x140013ec1], 0xef
xor byte [0x140013ec2], 0xdf
xor byte [0x140013ec3], 0xd9
xor byte [0x140013ec4], 0xdd
xor byte [0x140013ec5], 0xe5
xor byte [0x140013ec6], 0x2d
xor byte [0x140013ec7], 0x85
mov byte [0x140013ec8], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea rcx, [0x140013ea8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax]
mov r8d, dword [rax + 4]
mov edx, dword [rax + 8]
lea rcx, [0x140007768]
call fcn.140001020
movdqa xmm6, xmmword [0x140007960]
mov word [rsp + 0x90], 0x43de
mov eax, dword [r14]
cmp dword [0x140013ecc], eax
jle 0x140002b7e
lea rcx, [0x140013ecc]
call fcn.14000569c
cmp dword [0x140013ecc], 0xffffffff
jne 0x140002b7e
mov byte [0x140013f0a], 1
movups xmmword [0x140013ef8], xmm6
movzx eax, word [rsp + 0x90]
mov word [0x140013f08], ax
lea rcx, [0x140006810]
call fcn.140005988
lea rcx, [0x140013ecc]
call fcn.140005630
cmp byte [0x140013f0a], 0
je 0x140002c10
xor byte [0x140013ef8], 0xeb
xor byte [0x140013ef9], 0x43
xor byte [0x140013efa], 0x61
xor byte [0x140013efb], 0xb5
xor byte [0x140013efc], 0x3b
xor byte [0x140013efd], 0x31
xor byte [0x140013efe], 0x25
xor byte [0x140013eff], 0x1f
xor byte [0x140013f00], 0xeb
xor byte [0x140013f01], 0x43
xor byte [0x140013f02], 0x61
xor byte [0x140013f03], 0xb5
xor byte [0x140013f04], 0x3b
xor byte [0x140013f05], 0x31
xor byte [0x140013f06], 0x25
xor byte [0x140013f07], 0x1f
xor byte [0x140013f08], 0xeb
xor byte [0x140013f09], 0x43
mov byte [0x140013f0a], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea rcx, [0x140013ef8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax]
mov r8d, dword [rax + 4]
mov edx, dword [rax + 8]
lea rcx, [0x140007768]
call fcn.140001020
lea rdi, str.GTA5.exe
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x140002cd5
cmp rax, 0xffffffffffffffff
je 0x140002cd5
mov dword [rsp + 0x1d0], 0x238
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002cd5
nop
lea rdx, [rsp + 0x1fc]
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140002cc0
add rax, 2
cmp rax, 9
je 0x140002ce5
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140002ca0
lea rdx, [rsp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002c90
mov ecx, 0x9c40
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002c55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [r14]
cmp dword [0x140013f0c], eax
jle 0x140002d53
lea rcx, [0x140013f0c]
call fcn.14000569c
cmp dword [0x140013f0c], 0xffffffff
jne 0x140002d53
mov word [0x140013e7b], 0x139
mov dword [0x140013e70], 0x57f23ea5
mov dword [0x140013e74], 0xe5ea9985
mov word [0x140013e78], 0x7182
mov byte [0x140013e7a], 0xb2
lea rcx, [0x140006800]
call fcn.140005988
lea rcx, [0x140013f0c]
call fcn.140005630
cmp byte [0x140013e7c], 0
je 0x140002db7
xor byte [0x140013e70], 0xe3
xor byte [0x140013e71], 0x51
xor byte [0x140013e72], 0x87
xor byte [0x140013e73], 0x39
xor byte [0x140013e74], 0xe1
xor byte [0x140013e75], 0xb9
xor byte [0x140013e76], 0x8d
xor byte [0x140013e77], 0x91
xor byte [0x140013e78], 0xe3
xor byte [0x140013e79], 0x51
xor byte [0x140013e7a], 0x87
xor byte [0x140013e7b], 0x39
mov byte [0x140013e7c], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea rcx, [0x140013e70]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax]
mov r8d, dword [rax + 4]
mov edx, dword [rax + 8]
lea rcx, [0x140007768]
call fcn.140001020
mov edi, dword [rsp + 0xb0]
inc edi
mov r8d, dword [rsp + 0x1d8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002ebd
movsxd rsi, edi
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140002ebd
lea r8, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae r8, qword [rsp + 0xa0]
mov qword [rsp + 0x20], r15
mov r9, rsi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002ebd
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, [0x140007740]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
movdqa xmm6, xmmword [0x140007980]
mov eax, dword [r14]
cmp dword [0x140013ea0], eax
jle 0x140002f0b
lea rcx, [0x140013ea0]
call fcn.14000569c
cmp dword [0x140013ea0], 0xffffffff
jne 0x140002f0b
mov byte [0x140013ee8], 1
movups xmmword [0x140013ed8], xmm6
lea rcx, [0x1400067f0]
call fcn.140005988
lea rcx, [0x140013ea0]
call fcn.140005630
cmp byte [0x140013ee8], 0
je 0x140002f8b
xor byte [0x140013ed8], 0x1d
xor byte [0x140013ed9], 0xdb
xor byte [0x140013eda], 0xd9
xor byte [0x140013edb], 0xb5
xor byte [0x140013edc], 0xc9
xor byte [0x140013edd], 0xab
xor byte [0x140013ede], 0x8b
xor byte [0x140013edf], 0x93
xor byte [0x140013ee0], 0x1d
xor byte [0x140013ee1], 0xdb
xor byte [0x140013ee2], 0xd9
xor byte [0x140013ee3], 0xb5
xor byte [0x140013ee4], 0xc9
xor byte [0x140013ee5], 0xab
xor byte [0x140013ee6], 0x8b
xor byte [0x140013ee7], 0x93
mov byte [0x140013ee8], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea rdx, [0x140013ed8]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rax]
mov r8d, dword [rax + 4]
mov edx, dword [rax + 8]
lea rcx, [0x140007768]
call fcn.140001020
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0xc0]
call fcn.140003080
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x140003029
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003024
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003024
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400059a0
xor eax, eax
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140005610
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
ret
shr rdx, 0x20
lea r8, [rsp + 0x60]
call fcn.140002420
int3