Function at 0x140002c20
Capabilities:
Create thread
Delete file
Enumerate files on windows
Enumerate processes
Get common file path
Log keystrokes via application hook
Print debug messages
Query or enumerate registry value
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov rax, qword [0x14002b010]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
mov rdi, rcx
mov rbx, r8
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rdx, str._STOP
mov rcx, rbx
call fcn.140010a28
test eax, eax
jne 0x140002d8e
xor edx, edx
lea ecx, [rax + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ecx, dword [0x140026b60]
mov rdi, rax
movups xmm0, xmmword [str.fmapp.exe]
mov dword [rbp + 0x4b0], ecx
lea rcx, str.Stop_FMAPP_r_n
movups xmmword [rbp + 0x4a0], xmm0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002d7e
movzx esi, word [rbp + 0x4b0]
mov r12, 0xffffffffffffffff
mov r14, qword [rbp + 0x4a8]
mov r15, qword [rbp + 0x4a0]
nop dword [rax]
lea rax, [rbp + 0x1c]
mov rdx, r12
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002cf0
inc rdx
lea rcx, [rbp + 0x1c]
call fcn.140010d1c
cmp qword [rbp + 0x1c], r15
jne 0x140002d69
cmp qword [rbp + 0x24], r14
jne 0x140002d69
cmp word [rbp + 0x2c], si
jne 0x140002d69
mov r8d, dword [rbp - 8]
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 0x140002d5c
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 0x140002d63
lea rcx, str.No_FMAPP_Window_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002ce0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000362d
lea rdx, str._START
mov rcx, rbx
call fcn.140010a28
test eax, eax
je 0x140002db4
lea rdx, [0x140026a04]
mov rcx, rbx
call fcn.140010a28
test eax, eax
jne 0x140002dd7
lea rdx, str.FM_Hook_Background
lea rcx, [0x140026c38]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140002dd7
mov eax, 1
jmp 0x14000362d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0xa38], r13
call fcn.1400047f0
cmp dword [0x14002cf00], 0
mov qword [0x14002cf20], rdi
jne 0x140002e14
lea rcx, [0x14002ceb8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x140004410]
mov qword [0x14002cf60], rax
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor r13d, r13d
mov rbx, rax
test rax, rax
jne 0x140002e35
mov ebx, r13d
jmp 0x140002ef1
lea rax, [rbp + 0x4a0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREFortemedia
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002ea4
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x10]
mov rcx, qword [rbp + 0x4a0]
lea rdx, str.TraceAppFlag
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14002ceb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x10]
bt eax, 0x1e
jae 0x140002ed1
btr eax, 0x1e
mov dword [rbx + 0x10], eax
lea rax, [0x140004420]
mov qword [0x14002cf60], rax
jmp 0x140002ede
lea rcx, str.FMAPP:_Debug_function_is_disable_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [0x14002cf00]
lea rcx, [0x14002ceb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0x104
mov qword [0x14002cf50], rbx
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, [rbp + 0x6d0]
mov edx, 0x208
lea r8, str._s_temp_sam.wav
lea rcx, [rbp + 0x4c0]
call fcn.140002560
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002fd5
nop word [rax + rax]
lea rax, [rbp + 0x27c]
mov edx, 0x208
lea r9, [rbp + 0x6d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_temp_s
lea rcx, [rbp + 0x4c0]
call fcn.140002560
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rbp + 0x4c0]
mov edx, 0x200
lea r8, str._s:__d
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x4c0]
call fcn.140002560
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp + 0x250]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002f50
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, [0x140003650]
mov dword [rsp + 0x70], 0x50
mov qword [rsp + 0x78], rax
mov edx, 0x7f00
mov rax, qword [0x14002cf20]
xor ecx, ecx
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x74], 3
mov dword [rbp - 0x80], r13d
mov dword [rbp - 0x7c], 4
mov qword [rbp - 0x70], r13
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [0x140027480]
lea rbx, str.FMHookBackgroundClass
lea rcx, [rsp + 0x70]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r13
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [0x14002cf2c], r13d
mov r12, 0xffffffffffffffff
je 0x140003356
mov ecx, 0x200
call fcn.1400051d8
mov dword [rsp + 0x60], 0x100
mov rdi, rax
movups xmm0, xmmword [str.PNP0C60]
movups xmmword [rbp + 0x4a0], xmm0
test rax, rax
je 0x140003202
lea r9d, [r12 + 7]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, r12
je 0x140003202
mov esi, r13d
mov r15d, r13d
lea r8, [rbp + 0x230]
mov dword [rbp + 0x230], 0x20
mov edx, esi
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400031eb
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x230]
mov dword [rsp + 0x28], 0x100
mov rcx, r14
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14000317e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400031e0
mov rcx, rdi
call fcn.140004d24
mov ecx, dword [rsp + 0x60]
mov eax, 2
shr rcx, 1
add rcx, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400051d8
mov rdi, rax
test rax, rax
je 0x1400031e0
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x230]
mov eax, dword [rsp + 0x60]
mov rcx, r14
mov dword [rsp + 0x28], eax
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x1400031e0
mov rbx, rdi
cmp word [rdi], r13w
je 0x1400031e0
nop word [rax + rax]
lea rdx, [rbp + 0x4a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400031be
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
cmp word [rbx + rax*2], r13w
lea rbx, [rbx + rax*2]
jne 0x140003190
jmp 0x1400031e0
mov rcx, qword [0x14002cf50]
lea r8, str.FMAPP:__s_r_n
mov r9, rbx
mov edx, 4
call qword [0x14002cf60]
mov r15d, 1
inc esi
test r15d, r15d
je 0x1400030b4
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov dword [0x14002cf04], r15d
test r15d, r15d
jne 0x140003210
jmp 0x140003209
mov dword [0x14002cf04], r13d
mov dword [0x14002cf28], r13d
mov ecx, 0x70
call fcn.14000519c
movss xmm1, dword [0x14002746c]
mov rbx, rax
movss xmm0, dword [0x140027470]
lea rax, vtable.CAmbientLightAwareSensorManagerEvents.0
movabs rcx, 0x8000000000000000
mov qword [rbx], rax
xor eax, eax
comiss xmm1, xmm0
mov qword [rbx + 8], r13
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x28], r13
mov qword [rbx + 0x30], r13
mov dword [rbx + 0x38], 0x11
mov dword [rbx + 0x58], r13d
mov dword [rbx + 0x5c], 0xa
mov qword [rbx + 0x60], r13
mov qword [rbx + 0x68], r13
mov dword [rbx + 0x3c], 0x3f400000
mov dword [rbx + 0x40], 0x3e800000
mov dword [rbx + 0x44], 0x40100000
jb 0x140003293
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x140003293
mov rax, rcx
cvttss2si rsi, xmm1
movss xmm1, dword [0x140027468]
add rsi, rax
xor eax, eax
comiss xmm1, xmm0
mov qword [rbx + 0x48], rsi
jb 0x1400032ba
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x1400032ba
mov rax, rcx
cvttss2si rdi, xmm1
add rdi, rax
mov qword [rbx + 0x50], rdi
cmp rdi, 0x11
jae 0x1400032d0
mov qword [rbx + 0x50], r13
mov ecx, 0x68
mov dword [rbx + 0x10], 1
call fcn.14000519c
lea rcx, vtable.CAmbientLightAwareSensorEvents.0
mov qword [rax], rcx
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov dword [rax + 0x30], 0x11
mov dword [rax + 0x50], r13d
mov dword [rax + 0x54], 0xa
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], r13
mov dword [rax + 0x34], 0x3f400000
mov dword [rax + 0x38], 0x3e800000
mov dword [rax + 0x3c], 0x40100000
mov qword [rax + 0x40], rsi
mov qword [rax + 0x48], rdi
cmp rdi, 0x11
jae 0x140003334
mov qword [rax + 0x48], r13
mov dword [rax + 8], 1
mov qword [rax + 0x18], rbx
mov qword [rbx + 0x18], rax
mov qword [0x14002cf30], rbx
call fcn.140002020
lea rbx, str.FMHookBackgroundClass
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140003910]
mov r8, rax
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14002cee8], rax
test rax, rax
jne 0x1400033a0
mov rcx, qword [0x14002cf50]
lea r8, str.FMAPP:Keyboard_Hook_error_r_n
lea edx, [rax + 1]
call qword [0x14002cf60]
mov eax, r12d
jmp 0x140003625
call fcn.140002950
mov dword [0x14002cf48], eax
call fcn.140002820
test eax, eax
jne 0x1400033ff
cmp dword [0x14002cf48], 1
jne 0x1400033ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140003a00]
mov r8, rax
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14002cf68], rax
test rax, rax
jne 0x1400033ff
mov rcx, qword [0x14002cf50]
lea r8, str.FMAPP:Mouse_Hook_error_r_n
lea edx, [rax + 1]
call qword [0x14002cf60]
mov rax, qword [0x14002cf20]
lea r8, str.FM_Hook_Background
mov qword [rsp + 0x58], r13
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rax
mov rdx, rbx
mov qword [rsp + 0x48], r13
xor ecx, ecx
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
mov qword [rsp + 0x28], r13
lea r8, [0x140002630]
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
lea rcx, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400034aa
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140003480
mov rcx, qword [0x14002cee8]
test rcx, rcx
je 0x1400034bc
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x14002cf68]
test rcx, rcx
je 0x1400034ce
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r11, qword [0x14002cf30]
mov qword [0x14002cee8], r13
mov qword [0x14002cf68], r13
test r11, r11
je 0x1400035e9
mov rsi, r11
cmp qword [r11 + 0x30], r13
je 0x1400035b7
mov r10d, dword [r11 + 0x38]
mov ecx, r13d
test r10d, r10d
je 0x1400035b7
mov rbx, qword [r11 + 0x28]
nop dword [rax]
mov eax, ecx
mov r9, qword [rbx + rax*8]
test r9, r9
jne 0x140003527
inc ecx
cmp ecx, r10d
jb 0x140003510
jmp 0x1400035b0
cmp qword [r9 + 0x18], r13
jne 0x140003557
mov eax, dword [r9 + 0x20]
xor edx, edx
div r10d
mov r8, r13
inc edx
nop dword [rax + rax]
cmp edx, r10d
jae 0x140003557
mov rcx, qword [rbx + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x140003540
mov rbx, qword [r9 + 0x10]
test rbx, rbx
je 0x1400035b0
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x88]
movups xmm0, xmmword [0x14001e4d0]
mov rax, qword [rbx]
lea rdx, [rbp + 0x4a0]
mov rcx, rbx
movups xmmword [rbp + 0x4a0], xmm0
call qword [rax + 0x18]
test eax, eax
js 0x1400035a0
lea rdx, [rbp + 0x4a0]
lea rcx, [rsi + 0x28]
call fcn.140002420
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov r11, qword [0x14002cf30]
lea rbx, str.FMHookBackgroundClass
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400035cf
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x30]
mov r11, qword [0x14002cf30]
test r11, r11
je 0x1400035e2
mov rax, qword [r11]
mov edx, 1
mov rcx, r11
call qword [rax + 0x20]
mov qword [0x14002cf30], r13
mov rcx, qword [0x14002cf10]
test rcx, rcx
je 0x1400035fb
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [0x14002cf40]
test rcx, rcx
je 0x14000360d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x14002cf20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnregisterClassW]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov r13, qword [rsp + 0xa38]
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.140004d00
add rsp, 0x9f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret