Function at 0x140002f10
Capabilities:
Create thread
Delete file
Enumerate files on windows
Enumerate processes
Get common file path
Log keystrokes via application hook
Print debug messages
Terminate process

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x8d0]
sub rsp, 0x9d0
mov rax, qword [0x140020070]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov rdi, rcx
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ole32.dll_CoInitialize]
lea rdx, str._STOP
mov rcx, rbx
call fcn.1400048e4
test eax, eax
jne 0x140003094
lea ecx, [rax + 0xf]
xor edx, edx
mov qword [rsp + 0x9c8], r14
mov qword [rsp + 0x9c0], r15
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ecx, dword [0x14001c4a0]
mov r15, qword [str.fmapp.exe]
mov r14, qword [0x14001c498]
mov dword [rbp + 0x480], ecx
lea rcx, str.Stop_FMAPP_r_n
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp - 0x20]
mov rcx, rdi
mov dword [rbp - 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140003076
mov qword [rsp + 0x9f8], rsi
movzx esi, word [rbp + 0x480]
nop dword [rax]
lea rax, [rbp + 0xc]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002fe0
lea rcx, [rbp + 0xc]
inc rdx
call fcn.140004bdc
cmp qword [rbp + 0xc], r15
jne 0x140003059
cmp qword [rbp + 0x14], r14
jne 0x140003059
cmp word [rbp + 0x1c], si
jne 0x140003059
mov r8d, dword [rbp - 0x18]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.Find_FMAPP_Window_r_n
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x14000304c
mov edx, 9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Destroy_FMAPP_Window_r_n
jmp 0x140003053
lea rcx, str.No_FMAPP_Window_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002fd0
mov rsi, qword [rsp + 0x9f8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x9c0]
mov r14, qword [rsp + 0x9c8]
jmp 0x1400034f2
lea rdx, str._START
mov rcx, rbx
call fcn.1400048e4
test eax, eax
je 0x1400030ba
lea rdx, [0x14001c350]
mov rcx, rbx
call fcn.1400048e4
test eax, eax
jne 0x1400030dd
lea rdx, str.FM_Hook_Background
lea rcx, [0x14001c578]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400030dd
mov eax, 1
jmp 0x1400034f4
mov qword [0x140022bf8], rdi
call fcn.140004480
lea rcx, [rbp + 0x6a0]
mov edx, 0x104
mov qword [0x140022bd0], rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, [rbp + 0x6a0]
lea r8, str._s_temp_sam.wav
lea rcx, [rbp + 0x490]
mov edx, 0x208
call fcn.1400028b0
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400031c7
lea rax, [rbp + 0x24c]
lea r9, [rbp + 0x6a0]
lea r8, str._s_temp_s
lea rcx, [rbp + 0x490]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.1400028b0
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rbp + 0x490]
lea r8, str._s:__d
lea rcx, [rbp + 0x490]
mov edx, 0x200
mov dword [rsp + 0x20], eax
call fcn.1400028b0
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp + 0x220]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003142
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, str.FMAPP_is_running
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140003510]
xor ebx, ebx
mov qword [rsp + 0x68], rax
mov rax, qword [0x140022bf8]
mov edx, 0x7f00
xor ecx, ecx
mov dword [rsp + 0x60], 0x50
mov dword [rsp + 0x64], 3
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x74], 4
mov qword [rbp - 0x80], rbx
call qword [sym.imp.USER32.dll_LoadCursorW]
lea rdi, str.FMHookBackgroundClass
movdqa xmm0, xmmword [0x14001cbf0]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x78], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
call fcn.1400041e0
mov ecx, dword [0x140022bcc]
test eax, eax
mov dword [0x140022b74], eax
cmove ecx, ebx
mov dword [0x140022bcc], ecx
lea ecx, [rbx + 0x70]
call fcn.140004758
test rax, rax
je 0x140003279
mov rcx, rax
call fcn.140002020
jmp 0x14000327c
mov rax, rbx
mov qword [0x140022be8], rax
call fcn.140002280
lea rcx, str.FMAPP.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140022c20], rax
test rax, rax
je 0x1400032fe
lea rcx, str.Load_Library_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140022c20]
lea rdx, str.DLL_SysInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022c20]
lea rdx, str.DLL_SysDeinit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022c20]
lea rdx, str.DLL_KeyboardProc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022c20]
lea rdx, str.DLL_MouseProc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140003760]
lea ecx, [r9 + 0xd]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140022bf0], rax
test rax, rax
jne 0x140003348
mov rcx, qword [0x140022bd0]
lea r8, str.FMAPP:Keyboard_Hook_error_r_n
lea edx, [rax + 1]
call qword [0x140022c18]
or eax, 0xffffffff
jmp 0x1400034f4
call fcn.140002b40
test eax, eax
jne 0x1400033ac
call fcn.140002c60
cmp eax, 1
jne 0x1400033ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140003850]
lea ecx, [r9 + 0xe]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140022bd8], rax
test rax, rax
jne 0x1400033ac
lea rcx, str.FMAPP:Mouse_Hook_error_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140022bd0]
lea r8, str.FMAPP:Mouse_Hook_error_r_n
mov edx, 1
call qword [0x140022c18]
mov rax, qword [0x140022bf8]
mov qword [rsp + 0x58], rbx
lea r8, str.FM_Hook_Background
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0x80000000
mov r9d, 0xcf0000
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r8, [0x140002950]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rbp - 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000345a
nop word [rax + rax]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rbp - 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140003430
mov rcx, qword [0x140022bf0]
test rcx, rcx
je 0x14000346c
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140022bd8]
test rcx, rcx
je 0x14000347e
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp qword [0x140022be8], rbx
mov qword [0x140022bf0], rbx
mov qword [0x140022bd8], rbx
je 0x1400034b8
call fcn.1400024d0
mov rcx, qword [0x140022be8]
test rcx, rcx
je 0x1400034b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [0x140022be8], rbx
mov rcx, qword [0x140022c10]
test rcx, rcx
je 0x1400034ca
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [0x140022b80]
test rcx, rcx
je 0x1400034dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x140022bf8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnregisterClassW]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.1400045a0
add rsp, 0x9d0
pop rdi
pop rbx
pop rbp
ret