Function at 0x140001da0
Capabilities:
Create process on windows
Create thread
Enumerate processes
Extract resource via kernel32 functions
Get common file path
Inject dll
Inject thread

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 - 0x460]
sub rsp, 0x560
mov rax, qword [0x1400330c0]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r15d, r15d
xor edx, edx
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e51
mov dword [rbp + 0xc0], 0x130
lea rdx, [rbp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001e51
nop dword [rax]
nop dword [rax + rax]
lea rdx, str.TOTClient_Win64_Shipping.exe
lea rcx, [rbp + 0xec]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x140001f37
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001e20
mov esi, r15d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x230]
call fcn.140022550
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x340]
call fcn.140022550
movsd xmm0, qword [str.Total_x64.dll]
movsd qword [rbp + 0x1f0], xmm0
mov eax, dword [0x14002e2d8]
mov dword [rbp + 0x1f8], eax
movzx eax, word [0x14002e2dc]
mov word [rbp + 0x1fc], ax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1fe], xmm0
movups xmmword [rbp + 0x20e], xmm0
movups xmmword [rbp + 0x21e], xmm0
mov word [rbp + 0x22e], ax
lea r8, [0x14002e2e0]
lea edx, [rax + 0x67]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xc0]
call fcn.140022550
lea rdx, [rbp + 0x340]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140001f42
mov eax, 5
jmp 0x1400023ca
mov esi, dword [rbp + 0xc8]
jmp 0x140001e54
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp + 0xc0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r15b
jne 0x140001f64
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140004810
nop
lea rax, [rbp + 0x1f0]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001f90
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x40]
call fcn.1400040d0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140002015
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002400
call fcn.140005bd0
movdqa xmm0, xmmword [0x14002e4e0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call fcn.140022550
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140003250
nop
cmp qword [rbp + 0x38], 0
jne 0x140002108
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400031a0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.14000531c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400020fe
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023fa
call fcn.140005bd0
mov eax, 6
jmp 0x1400023ca
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.1400038d0
lea rcx, [rbp - 0x48]
call fcn.140003ed0
test rax, rax
jne 0x140002153
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 8], 0
cmovne eax, r12d
or eax, dword [rbp + rcx - 0x40]
and eax, 0x17
mov dword [rbp + rcx - 0x40], eax
mov edx, dword [rbp + rcx - 0x3c]
and edx, eax
jne 0x140002406
xor r9d, r9d
lea r8, [rbp + 0x230]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test esi, esi
jne 0x140002252
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, str.steam:__rungameid_1304930
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, str._nWaiting_for_the_game
call fcn.14000cf58
nop word [rax + rax]
xor edx, edx
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400021db
mov ecx, 0x2e
call fcn.14000c764
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400021b0
mov dword [rbp + 0xc0], 0x130
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400021c4
nop dword [rax]
lea rdx, str.TOTClient_Win64_Shipping.exe
lea rcx, [rbp + 0xec]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000222f
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002200
jmp 0x1400021c4
mov esi, dword [rbp + 0xc8]
mov ecx, 0x2e
call fcn.14000c764
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x1400021b0
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140002276
lea rcx, str.Not_Loaded_
jmp 0x140002324
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x14002e360]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rax, [rbp + 0x230]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400022a0
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
lea rax, [rbp + 0x230]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400022d0
mov r9, rdi
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x230]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Loaded_
call fcn.14000cf58
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400031a0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.14000531c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400023c8
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023fa
call fcn.140005bd0
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140005bb0
lea r11, [rsp + 0x560]
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
call fcn.14000e5e4
nop
call fcn.14000e5e4
nop
test dl, 4
je 0x140002414
lea rbx, str.ios_base::badbit_set
jmp 0x140002429
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140001c40
lea rdx, [0x1400321c8]
lea rcx, [rsp + 0x68]
call fcn.14000796c
int3