Function at 0x140004f10
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 [0x140022070]
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.1400068e4
test eax, eax
jne 0x140005094
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 [0x14001e4a0]
mov r15, qword [str.fmapp.exe]
mov r14, qword [0x14001e498]
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 0x140005076
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 0x140004fe0
lea rcx, [rbp + 0xc]
inc rdx
call fcn.140006bdc
cmp qword [rbp + 0xc], r15
jne 0x140005059
cmp qword [rbp + 0x14], r14
jne 0x140005059
cmp word [rbp + 0x1c], si
jne 0x140005059
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 0x14000504c
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 0x140005053
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 0x140004fd0
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 0x1400054f2
lea rdx, str._START
mov rcx, rbx
call fcn.1400068e4
test eax, eax
je 0x1400050ba
lea rdx, [0x14001e350]
mov rcx, rbx
call fcn.1400068e4
test eax, eax
jne 0x1400050dd
lea rdx, str.FM_Hook_Background
lea rcx, [0x14001e578]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400050dd
mov eax, 1
jmp 0x1400054f4
mov qword [0x140024bf8], rdi
call fcn.140006480
lea rcx, [rbp + 0x6a0]
mov edx, 0x104
mov qword [0x140024bd0], 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.1400048b0
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400051c7
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.1400048b0
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.1400048b0
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 0x140005142
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, [0x140005510]
xor ebx, ebx
mov qword [rsp + 0x68], rax
mov rax, qword [0x140024bf8]
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 [0x14001ebf0]
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.1400061e0
mov ecx, dword [0x140024bcc]
test eax, eax
mov dword [0x140024b74], eax
cmove ecx, ebx
mov dword [0x140024bcc], ecx
lea ecx, [rbx + 0x70]
call fcn.140006758
test rax, rax
je 0x140005279
mov rcx, rax
call fcn.140004020
jmp 0x14000527c
mov rax, rbx
mov qword [0x140024be8], rax
call fcn.140004280
lea rcx, str.FMAPP.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140024c20], rax
test rax, rax
je 0x1400052fe
lea rcx, str.Load_Library_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140024c20]
lea rdx, str.DLL_SysInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140024c20]
lea rdx, str.DLL_SysDeinit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140024c20]
lea rdx, str.DLL_KeyboardProc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140024c20]
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, [0x140005760]
lea ecx, [r9 + 0xd]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140024bf0], rax
test rax, rax
jne 0x140005348
mov rcx, qword [0x140024bd0]
lea r8, str.FMAPP:Keyboard_Hook_error_r_n
lea edx, [rax + 1]
call qword [0x140024c18]
or eax, 0xffffffff
jmp 0x1400054f4
call fcn.140004b40
test eax, eax
jne 0x1400053ac
call fcn.140004c60
cmp eax, 1
jne 0x1400053ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140005850]
lea ecx, [r9 + 0xe]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140024bd8], rax
test rax, rax
jne 0x1400053ac
lea rcx, str.FMAPP:Mouse_Hook_error_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140024bd0]
lea r8, str.FMAPP:Mouse_Hook_error_r_n
mov edx, 1
call qword [0x140024c18]
mov rax, qword [0x140024bf8]
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, [0x140004950]
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 0x14000545a
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 0x140005430
mov rcx, qword [0x140024bf0]
test rcx, rcx
je 0x14000546c
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140024bd8]
test rcx, rcx
je 0x14000547e
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp qword [0x140024be8], rbx
mov qword [0x140024bf0], rbx
mov qword [0x140024bd8], rbx
je 0x1400054b8
call fcn.1400044d0
mov rcx, qword [0x140024be8]
test rcx, rcx
je 0x1400054b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [0x140024be8], rbx
mov rcx, qword [0x140024c10]
test rcx, rcx
je 0x1400054ca
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [0x140024b80]
test rcx, rcx
je 0x1400054dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x140024bf8]
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.1400065a0
add rsp, 0x9d0
pop rdi
pop rbx
pop rbp
ret