Function at 0x140008e40
Capabilities:
Copy file
Create directory
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x140046080]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r13d, r13d
mov byte [0x1400460e8], 1
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140009411
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 8]
call fcn.14001fd50
nop
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 7
cmova rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x18]
lea rsi, [rdx + rax*2]
lea rbx, [rbp + 8]
cmova rbx, qword [rbp + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movabs r14, 0x7fffffffffffffff
cmp rbx, rsi
jne 0x140008f07
mov eax, r13d
mov qword [rbp - 8], rax
mov ecx, 0xf
mov qword [rbp], rcx
mov byte [rbp - 0x18], al
jmp 0x140009004
sub rsi, rbx
sar rsi, 1
mov qword [rbp - 8], r13
mov qword [rbp], 0xf
cmp rsi, r14
ja 0x14000944d
mov edi, 0xf
cmp rsi, rdi
jbe 0x140008fc0
mov rdi, rsi
or rdi, 0xf
cmp rdi, r14
jbe 0x140008f77
mov rdi, r14
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140030918
mov rcx, rax
test rax, rax
je 0x1400093c1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140008fc4
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140008f99
mov rax, r13
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140008fc4
cmp rcx, 0x1000
jb 0x140008fb1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140009447
jmp 0x140008f4d
call fcn.140030918
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140008fc4
mov rax, qword [rbp - 0x18]
lea r8, [rbp - 0x18]
cmp rdi, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140008ff3
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rbx, [rbx + 2]
sub rdx, 1
jne 0x140008fe0
mov qword [rbp - 8], rsi
mov byte [r8 + rsi], 0
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
sub r14, rax
cmp r14, 1
jb 0x140009441
lea r9, [rbp - 0x18]
cmp rcx, 0xf
cmova r9, qword [rbp - 0x18]
mov qword [rsp + 0x30], 1
lea rbx, [0x140035a84]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x78]
call fcn.140026710
nop
lea rdx, str._77OnlineServicesHelper
lea rcx, [rbp - 0x78]
call fcn.140022d80
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov byte [rax], 0
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140023430
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140009103
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400090fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400090fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030910
movdqa xmm0, xmmword [0x14003ddb0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14000915c
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000914f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000914f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030910
movdqa xmm0, xmmword [0x14003ddb0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea rax, [rbp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140009193
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001fc20
lea r14, [rbp - 0x38]
mov rsi, qword [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r14, rsi
lea r12, [rsp + 0x68]
mov r15, qword [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r12, r15
mov rdi, qword [rbp - 0x28]
mov rax, qword [rsp + 0x78]
cmp rdi, rax
ja 0x140009243
sub rax, rdi
test rdi, rdi
jne 0x1400091ea
mov rbx, r13
jmp 0x14000924a
lea r13, [r12 + rax]
movsx edx, byte [r14]
lea r8, [r13 + 1]
sub r8, r12
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140009240
nop dword [rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140009280
inc rbx
lea r8, [r13 + 1]
sub r8, rbx
movsx edx, byte [r14]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140009210
xor r13d, r13d
mov rbx, 0xffffffffffffffff
mov rax, qword [rbp - 0x80]
cmp rax, 0xf
jbe 0x140009294
lea rdx, [rax + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140009288
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009288
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, r12
xor r13d, r13d
jmp 0x14000924a
mov rcx, r15
call fcn.140030910
mov rsi, qword [rbp - 0x38]
cmp rbx, 0xffffffffffffffff
jne 0x140009341
lea rcx, [rbp - 0x38]
call fcn.140022d70
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._77OnlineClientPackager.exe
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140023d60
mov rcx, rax
call fcn.140022d70
mov rdx, rax
xor r8d, r8d
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rbp - 0x58]
call fcn.140022e10
lea r8, str._77OnlineClientPackager.exe
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140023d60
mov rcx, rax
call fcn.140022d70
mov r8, rax
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp - 0x58]
call fcn.140022e10
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rax, qword [rbp - 0x20]
cmp rax, 0xf
jbe 0x14000937f
lea rdx, [rax + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140009377
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009377
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140030910
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400093ce
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400093c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400093c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030910
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 7
jbe 0x140009411
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000940c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000940c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030910
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400308f0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140005020
nop
call fcn.140004f80
int3
call fcn.140005020
int3