Function at 0x140007a50
Capabilities:
Create process on windows
Print debug messages

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0xd58]
sub rsp, 0xe50
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rbp + 0xd20], rax
mov rax, qword [rcx + 0x580]
xor edx, edx
mov qword [r11 + 0x10], rbx
mov r8d, 0x100
mov qword [rbp + 0x110], rax
mov rbx, rcx
mov rax, qword [rcx + 0x558]
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x118], rax
mov qword [r11 - 0x28], r15
call fcn.14001cd80
xor ecx, ecx
mov byte [rbx + 0x438], 0
call qword [sym.imp.ole32.dll_CoInitialize]
lea r8, [rbx + 0x634]
mov rcx, rbx
lea rdx, str.samsfpacx.dat
call fcn.140011990
test al, al
jne 0x140007af9
lea r8, [rbx + 0x634]
mov rcx, rbx
lea rdx, str.samsfpa.dat
call fcn.140011990
test al, al
jne 0x140007af9
mov dword [rbx + 0x634], 0xff
movzx eax, byte [rbx + 0x438]
test al, al
jne 0x1400080bc
mov qword [rsp + 0xe48], r12
xor r12d, r12d
mov qword [rsp + 0xe40], r13
mov r13d, 1
mov qword [rsp + 0xe70], rsi
mov qword [rsp + 0xe78], rdi
mov qword [rsp + 0xe38], r14
nop dword [rax]
cmp byte [0x14006ef2a], r12b
jne 0x140008094
xor r8d, r8d
lea rdx, [rbp + 0x110]
mov r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
cmove eax, r13d
test eax, eax
je 0x140008049
cmp eax, r13d
jne 0x140008085
lea rcx, [rbx + 0x5e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x540], r12
je 0x140008033
lea r8, str.c:windows_system32
mov edx, 0x400
lea rcx, [rbp + 0x120]
call fcn.140002050
mov ecx, dword [rbx + 0x63c]
test cl, 8
je 0x140007bf0
lea r9, [rbp + 0x120]
mov edx, 0x400
lea r8, str.FMapp_loc_path:__s_n
lea rcx, [rbp + 0x520]
call fcn.140002050
lea rcx, [rbp + 0x520]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 0x63c]
mov rax, qword [rbx + 0x540]
mov edx, dword [rax + 0x14]
test edx, edx
jne 0x140007ffe
test cl, 0x10
je 0x140007c21
lea rcx, str.Signal_FMAPOCTL_event_1__APO_instance_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rbx + 0x540]
mov ecx, dword [rbx + 0x63c]
cmp byte [rax], r12b
jne 0x140007d93
cmp byte [rax + 1], r12b
jne 0x140007d93
cmp byte [rax + 2], r12b
jne 0x140007d93
cmp byte [rax + 3], r12b
jne 0x140007d93
cmp byte [rax + 4], r12b
jne 0x140007d93
lea r9, [rbp + 0x120]
mov edx, 0x200
lea r8, str._s_fmapp.exe__STOP
lea rcx, [rbp + 0x120]
call fcn.140002050
test byte [rbx + 0x63c], 8
je 0x140007c87
lea rcx, str.Stop_FMAPP_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rbp + 0xa4]
lea r8d, [rdx + 0x64]
call fcn.14001cd80
xor eax, eax
mov dword [rbp + 0xa0], 0x68
mov qword [rbp + 0x80], rax
lea rdx, [rbp + 0x120]
mov qword [rbp + 0x88], rax
xor r9d, r9d
mov qword [rbp + 0x90], rax
xor r8d, r8d
lea rax, [rbp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007d6f
mov rcx, qword [rbp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x540]
mov byte [rax + 0x10], r12b
mov rcx, qword [rbx + 0x6a8]
mov byte [rbx + 0x630], r12b
test rcx, rcx
je 0x140007d4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x6b0]
test rcx, rcx
je 0x140007d85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov dword [0x14006f534], eax
jmp 0x140008033
test byte [rbx + 0x63c], r13b
je 0x140007d85
lea rcx, str.Stop_FMAPP_Fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, r12d
mov dword [0x14006f534], eax
jmp 0x140008033
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x68], r12
cmp byte [rbx + 0x630], r12b
je 0x140007dcc
test cl, 8
je 0x140007dba
lea rcx, str.FMAPP_running_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbx + 0x5e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140008085
lea r9, [rbp + 0x120]
mov edx, 0x400
lea r8, str._s_fmapp.exe
lea rcx, [rbp + 0x120]
call fcn.140002050
test byte [rbx + 0x63c], 8
je 0x140007e20
lea r9, [rbp + 0x120]
mov edx, 0x400
lea r8, str.Run_FMAPP:__s:_n
lea rcx, [rbp + 0x520]
call fcn.140002050
lea rcx, [rbp + 0x520]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rbx + 0x644]
lea rsi, [rbx + 0x640]
lea r8d, [rdx + 0x64]
call fcn.14001cd80
xor eax, eax
mov dword [rsi], 0x68
lea rdi, [rbx + 0x6a8]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rbp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov rcx, qword [rbp + 0x60]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140007ff3
mov rcx, qword [rbp + 0x60]
lea rax, [rbp + 0x98]
mov r9d, 8
mov qword [rbp + 0x70], r12
lea r8, [rbp + 0x70]
mov dword [rbp + 0x98], 8
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140007f6d
mov rcx, qword [rbp + 0x70]
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140007f4d
mov rcx, qword [rbp + 0x68]
lea r8, [rbp + 0x120]
mov qword [rsp + 0x50], rdi
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140007f43
mov rax, qword [rbx + 0x540]
mov byte [rbx + 0x630], r13b
mov byte [rax + 0x10], r13b
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140007f5c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140007fe4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007fe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetTokenInformation_fail:__d_r_n
mov edx, 0x400
mov r9d, eax
lea rcx, [rbp + 0x920]
call fcn.140002050
lea rcx, [rbp + 0x920]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x48], rdi
lea rdx, [rbp + 0x120]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007fe4
mov rax, qword [rbx + 0x540]
mov byte [rbx + 0x630], r13b
mov byte [rax + 0x10], r13b
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140007ff3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
mov dword [0x14006f534], eax
jmp 0x140008033
cmp edx, r13d
jne 0x140008033
mov byte [rax + 0x18], r12b
mov rax, qword [rbx + 0x540]
mov byte [rax + 0x19], r12b
mov rax, qword [rbx + 0x540]
mov byte [rax + 0x1a], r12b
mov rax, qword [rbx + 0x540]
mov byte [rax + 0x1b], r12b
mov rax, qword [rbx + 0x540]
mov byte [rax + 0x1c], r12b
lea rcx, [rbx + 0x5e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x598]
jmp 0x14000807a
test byte [rbx + 0x63c], 0x10
je 0x14000805f
lea rcx, str.event_0__OnDefaultDeviceChanged_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [rbx + 0x634], 0x8000
jne 0x140008073
mov rcx, rbx
call fcn.1400090d0
mov rcx, qword [rbx + 0x568]
test rcx, rcx
je 0x140008085
call qword [sym.imp.KERNEL32.dll_SetEvent]
movzx eax, byte [rbx + 0x438]
test al, al
je 0x140007b40
mov rsi, qword [rsp + 0xe70]
mov rdi, qword [rsp + 0xe78]
mov r14, qword [rsp + 0xe38]
mov r12, qword [rsp + 0xe48]
mov r13, qword [rsp + 0xe40]
call qword [sym.imp.ole32.dll_CoUninitialize]
test byte [rbx + 0x63c], 4
mov rbx, qword [rsp + 0xe68]
mov r15, qword [rsp + 0xe30]
je 0x1400080e8
lea rcx, str.Out_Start_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xd20]
xor rcx, rsp
call fcn.140019840
add rsp, 0xe50
pop rbp
ret