Function at 0x482070
Capabilities:
Check for foreground window switch
Check mutex on windows
Create directory
Create process on windows
Encode data using xor
Find taskbar
Log keystrokes
Read file via mapping
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xf8
mov ecx, 0x57c740
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4820a7
test dx, dx
je 0x4820a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4820a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x482081
xor eax, eax
jmp 0x4820ac
sbb eax, eax
or eax, 1
push ebx
push esi
test eax, eax
je 0x4821f0
xor eax, eax
mov dword [ebp - 0xc], 0
push eax
push 0x104
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402d00
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [ebp - 8], 8
lea eax, [ebp + 8]
lea esi, [ebp - 0x1c]
mov dword [ebp + 0x10], 1
cmovae esi, dword [ebp - 0x1c]
xor ebx, ebx
push eax
push 8
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x482151
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_process_token._Error_code:
push 0x5ba438
call fcn.0047c0e0
add esp, 8
mov ecx, eax
call fcn.0047cfc0
push eax
call fcn.0047c4f0
add esp, 4
xor bl, bl
jmp 0x4821bc
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push 4
lea eax, [ebp + 0x10]
push eax
push 0x12
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4821a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_token_information._Error_code:
push 0x5ba438
call fcn.0047c0e0
add esp, 8
mov ecx, eax
call fcn.0047cfc0
push eax
call fcn.0047c4f0
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x4821bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 2
mov eax, 1
cmove ebx, eax
push 1
push 0
push 0x57c740
mov ecx, str.open
test bl, bl
push esi
mov eax, str.runas
cmove eax, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.00403070
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
push edi
push 0
mov dword [0x5b970c], eax
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x54]
push eax
call fcn.00450d40
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x54]
add esp, 4
mov esi, 1
cmp dword [ebp - 0x40], 8
cmovae edx, dword [ebp - 0x54]
lea edi, [eax + eax]
lea ebx, [esi + 3]
test edi, edi
je 0x482251
nop word [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
mov ecx, esi
and ecx, 0x3f
add ecx, ebx
add ebx, 3
imul ecx, eax
mov eax, esi
shl eax, 8
add ecx, eax
xor esi, ecx
sub edi, 1
jne 0x482230
push esi
lea eax, [ebp - 0xd0]
push str.LucyMutex__08X
push eax
call fcn.004014d0
push esi
lea eax, [ebp - 0x84]
push str.LucyShareMemory__08X
push eax
call fcn.004014d0
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x482317
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x482310
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x482309
push 0
push 0
push 0x465
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x482a22
push str.IsWow64Process
push str.kernel32
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x482348
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp + 0x10], 0
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
je 0x482367
push 0x40030
push 0x57e820
push 0x57e828
push 0
call edi
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x57e84c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040bff0
add esp, 0xc
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4823b8
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 0
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00478990
mov ecx, eax
call fcn.0047ddb0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call fcn.00478990
push 0
push str.Progman
push 0
mov dword [eax + 0xc], esi
call fcn.00478990
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
mov eax, dword [eax + 0xc]
push eax
call ebx
mov esi, eax
call fcn.00478990
push 0
push str.Shell_TrayWnd
push 0
mov dword [eax + 0x10], esi
call fcn.00478990
mov eax, dword [eax + 0xc]
push eax
call ebx
mov esi, eax
call fcn.00478990
mov dword [eax + 0x14], esi
call fcn.00478990
cmp dword [eax + 0x14], 0
je 0x48243f
push 0
push str.TrayNotifyWnd
push 0
call fcn.00478990
mov eax, dword [eax + 0x14]
push eax
call ebx
mov esi, eax
call fcn.00478990
mov dword [eax + 0x18], esi
push 0x10
push str.R7_qsSb_YB_y3T
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.004027c0
lea eax, [ebp - 0x1c]
push eax
push 0x579f88
push 0xc9
call fcn.00409ab0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00402770
push 0xa
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.langzh_CN
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.00402e60
push 4
xor eax, eax
mov dword [ebp - 0xa8], 0
push str.gray
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00402e60
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x57e948
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x1c]
push 5
xor eax, eax
mov dword [ebp - 0xf4], 0x47f230
push str.skin_
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xb8]
push eax
push 0
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407c80
add esp, 0x14
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x482563
mov edx, dword [ecx]
lea eax, [ebp - 0xf8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xd4], 0
lea ecx, [ebp - 0xb8]
call fcn.00403070
lea ecx, [ebp - 0x3c]
call fcn.00403070
call fcn.00478990
cmp dword [eax + 0xa4], 0
je 0x4825e1
call fcn.00478990
add eax, 0x94
push eax
call fcn.0047e510
add esp, 4
test al, al
jne 0x4825e1
call fcn.00478990
add eax, 0x94
cmp dword [eax + 0x14], 8
jb 0x4825ad
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x3c]
push 0x57e88c
push eax
call fcn.004014d0
add esp, 0xc
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push 0x40030
push 0x57e820
push eax
push 0
call edi
lea ecx, [ebp - 0x3c]
call fcn.00403070
push 0x264
call fcn.00531cfc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x482642
mov dword [ebx + 8], 0x57e628
mov ecx, ebx
mov dword [ebx + method.nbase::SupportWeakCallback.virtual_0], vtable.nbase::SupportWeakCallback.0
push 0
mov dword [ebx + 0x25c], 0
mov dword [ebx + 0x260], 0
call fcn.00437fa0
mov eax, dword [ebx + 8]
mov dword [ebx], vtable.CHideWnd.0
mov dword [ebx + method.CHideWnd.virtual_60], vtable.CHideWnd.1.0
mov eax, dword [eax + 4]
mov dword [eax + ebx + 8], vtable.CHideWnd.2.0
jmp 0x482644
xor ebx, ebx
cmp dword [0x5b3818], 8
lea edx, [ebp - 0x14]
mov eax, dword [ebx]
mov ecx, 0x5b3804
cmovae ecx, dword [0x5b3804]
xorps xmm0, xmm0
push edx
push 1
push 0
push 0x80880000
push ecx
push 0
mov ecx, ebx
movups xmmword [ebp - 0x14], xmm0
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push 1
push 0
call dword [eax + 0x14]
push 0x1554
call fcn.00531cfc
add esp, 4
test eax, eax
je 0x4826a4
push 1
push dword [ebp + 8]
mov ecx, eax
call fcn.00485af0
mov edi, eax
mov dword [ebp - 0x20], eax
jmp 0x4826a9
xor edi, edi
mov dword [ebp - 0x20], edi
cmp dword [0x5b3818], 8
lea ecx, [ebp - 0x14]
mov esi, dword [edi]
mov eax, 0x5b3804
cmovae eax, dword [0x5b3804]
xorps xmm0, xmm0
push ecx
push 1
push 0
push 0xce0000
push eax
mov ecx, ebx
movups xmmword [ebp - 0x14], xmm0
call fcn.00423fd0
push eax
mov ecx, edi
call dword [esi + 0xc]
mov ecx, edi
call fcn.00423fd0
mov esi, eax
call fcn.00478990
mov dword [eax + 8], esi
call fcn.00478990
mov dword [eax + 4], 0
call fcn.00478990
cmp byte [eax + 0x2f], 0
jne 0x482733
call fcn.00478990
cmp byte [eax + 0x30], 0
jne 0x482733
call fcn.00478990
cmp byte [eax + 0x2e], 0
jne 0x482733
call fcn.00478990
cmp byte [eax + 0x2d], 0
jne 0x482733
call fcn.00478990
cmp byte [eax], 0
je 0x48274f
push 0
push dword [ebp + 8]
push 0x47ee90
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov esi, eax
call fcn.00478990
mov dword [eax + 4], esi
lea eax, [ebp + 8]
push eax
push 0x58d6c4
push 1
push 0
push 0x58d694
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x482790
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, edi
mov esi, dword [eax]
call fcn.00423fd0
push eax
push dword [ebp + 8]
call dword [esi + 0x14]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call fcn.00478990
mov ecx, edi
cmp byte [eax + 0x23], 0
je 0x4827a7
call fcn.0048b930
jmp 0x4828ab
mov eax, dword [edi]
push 1
push 1
call dword [eax + 0x14]
mov ecx, edi
call fcn.00423fd0
mov esi, eax
push esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.USER32.dll_IsHungAppWindow]
test eax, eax
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4827f6
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp + 0xb], 0
jne 0x4828c5
mov dword [ebp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x482884
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 3
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
inc edi
mov dword [ebp + 8], edi
cmp edi, 0xa
jl 0x482807
mov edi, dword [ebp - 0x20]
push dword [edi + 0x10]
call sub.IMM32.dll_ImmGetContext
push 0
push eax
mov dword [edi + 0x1544], eax
call sub.IMM32.dll_ImmSetOpenStatus
push dword [edi + 0x1544]
push dword [edi + 0x10]
call sub.IMM32.dll_ImmAssociateContext
call fcn.00478990
cmp byte [eax + 0x22], 0
je 0x4828d5
push 1
mov ecx, ebx
call fcn.00439cb0
mov byte [ebp + 8], 1
jmp 0x4828d9
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x482887
mov byte [ebp + 8], 0
push dword [ebp + 8]
mov ecx, edi
call fcn.00439cb0
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
test eax, eax
je 0x482930
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x482930
mov ecx, edi
call fcn.00423fd0
mov dword [esi], eax
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0xa0]
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
push 0
push eax
movups xmmword [ebp - 0xa0], xmm0
movq qword [ebp - 0x90], xmm0
call esi
test eax, eax
je 0x482999
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [ebp - 0xa0]
push eax
call edi
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
jne 0x482970
call fcn.00478990
cmp dword [eax + 4], 0
je 0x4829b3
call fcn.00478990
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.00478990
mov ecx, ebx
mov dword [eax + 4], 0
call fcn.004277a0
push eax
mov ecx, ebx
call fcn.00424e80
mov eax, dword [ebx + 8]
push 1
mov ecx, dword [eax + 4]
add ecx, 8
add ecx, ebx
mov eax, dword [ecx]
call dword [eax]
call fcn.004082d0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4829f2
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 8]
test eax, eax
je 0x482a00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x482a0e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov esi, dword [ebp - 0x98]
lea ecx, [ebp - 0x6c]
call fcn.00403070
lea ecx, [ebp - 0x84]
call fcn.00403070
lea ecx, [ebp - 0xd0]
call fcn.00403070
lea ecx, [ebp - 0x54]
call fcn.00403070
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10