Function at 0x41ec33
Capabilities:
Get common file path
Log keystrokes via polling
Query environment variable

Disassembly:
push ebp
mov eax, 0x41b4
lea ebp, [esp - 0x74]
call fcn.0046d3f0
push ebx
push esi
mov dword [ebp + 0x54], ecx
push edi
lea ecx, [ebp + 0x7c]
call fcn.00409fda
xor esi, esi
mov dword [ebp + 0x6c], 1
mov byte [ebp + 0x73], 0
xor bl, bl
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 0x24], eax
push 4
lea eax, [ebp + 0x7c]
push eax
push str.sys
mov dword [ebp + 0x3c], 0x3e8
call fcn.0042e2da
mov byte [ebp + 0x58], al
push 5
lea eax, [ebp + 0x7c]
push eax
push str.sys0
call fcn.0042e2da
add esp, 0x18
test al, al
je 0x41eca3
mov byte [ebp + 0x58], 0x41
push 7
lea eax, [ebp + 0x7c]
push eax
push str.syscmd
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41ecbe
mov byte [ebp + 0x58], 0x10
push 8
lea eax, [ebp + 0x7c]
push eax
push str.sys0cmd
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41ecd9
mov byte [ebp + 0x58], 0x50
cmp byte [ebp + 0x58], 0
je 0x41edf7
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.GlobalPECMD:main:lock
call fcn.0040c1ec
mov ebx, dword [ebp + 0x58]
and ebx, 0x40
push ebx
mov dword [ebp + 0x68], eax
call fcn.0040c1b3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [ebp + 0x7c]
mov dword [ebp + 0x60], eax
call edi
mov esi, eax
add esi, 0x10
lea eax, [esi + 0x65]
push eax
lea ecx, [ebp + 0x6c]
call fcn.0042c827
mov eax, dword [ebp + 0x6c]
and word [eax], 0
test byte [ebp + 0x58], 0x10
jne 0x41ed49
push dword [ebp + 0x24]
push str.THREAD_WAIT__cur:_lu
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp + 0x6c]
call edi
mov ecx, dword [ebp + 0x6c]
inc esi
push esi
push dword [ebp + 0x7c]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, dword [ebp + 0x6c]
push esi
call edi
shl eax, 1
push eax
push esi
push 1
push str.HOTKEY9000000
push str.SOFTWAREPELOGON
push 0x80000002
call fcn.004280f8
add esp, 0x18
cmp dword [ebp + 0x60], 0
jne 0x41ed9b
push ebx
push dword [ebp + 0x54]
call fcn.00412724
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x60], eax
je 0x41edcb
push 0
push 0x895440
push 0x312
push dword [ebp + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0x6c]
mov esi, eax
call fcn.00427365
cmp dword [ebp + 0x68], 0
je 0x41ede5
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41ede5
lea ecx, [ebp + 0x6c]
call fcn.00427365
cmp dword [ebp + 0x68], 0
je 0x41ede2
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
inc esi
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x41f57a
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
jne 0x41ef4c
push 5
lea eax, [ebp + 0x7c]
push eax
push str._cont
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41ee24
mov dword [ebp + 0x40], 0x10000
jmp 0x41ee88
push 8
lea eax, [ebp + 0x7c]
push eax
push str._scanall
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41ee3f
mov bl, 1
jmp 0x41ee88
push 4
lea eax, [ebp + 0x7c]
push eax
push str._ncd
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41ee5f
mov dword [ebp + 0x60], 0x40
jmp 0x41ee88
push 5
push dword [ebp + 0x7c]
push str._cur:
call fcn.00428263
add esp, 0xc
test al, al
je 0x41ee97
add dword [ebp + 0x7c], 0xa
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
je 0x41ee04
jmp 0x41ee9a
mov ecx, dword [ebp + 0x7c]
test bl, bl
je 0x41ef4c
lea ecx, [ebp + 0x60]
mov ebx, str.PressKey
call fcn.0042c809
mov eax, dword [ebp + 0x7c]
cmp word [eax], si
je 0x41eecc
push 0x2c
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042ec20
mov ebx, dword [ebp + 0x60]
add esp, 0xc
push 0x3f
xor eax, eax
mov byte [ebp - 0x13c], 0
pop ecx
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
mov word [ebp - 0x4140], si
lea edi, [ebp - 0x4140]
movzx eax, byte [ebp + esi - 0x13c]
push eax
push 0x4840d8
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc esi
add edi, 0xa
cmp esi, 0x100
jl 0x41eeff
mov ecx, dword [ebp + 0x54]
and word [ebp - 0x3742], 0
lea eax, [ebp - 0x4140]
push eax
push ebx
call fcn.0042b2cd
lea ecx, [ebp + 0x60]
call fcn.00427365
and dword [ebp + 0x6c], 0
jmp 0x41f56d
mov esi, 0x80000000
mov dword [ebp + 0x64], esi
cmp word [ecx], 0x2d
jne 0x41ef82
lea eax, [ecx + 2]
mov dx, word [eax]
or dx, 0x20
cmp dx, 0x63
je 0x41ef82
cmp dx, 0x64
je 0x41ef82
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], eax
mov byte [ebp + 0x73], 1
call fcn.00409fda
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x3d
jne 0x41ef91
mov bl, byte [ecx]
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
jmp 0x41ef93
xor bl, bl
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040efef
add esp, 4
test al, al
je 0x41efb7
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2a
je 0x41f0d0
cmp dword [ebp + 0x64], esi
je 0x41f0d0
and word [ebp - 0x3a], 0
and word [ebp - 0x3c], 0
lea ecx, [ebp + 0x68]
mov edi, str.PressKey
call fcn.0042c809
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2c
jne 0x41f00b
add dword [ebp + 0x7c], 2
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042ec20
mov eax, dword [ebp + 0x68]
add esp, 0xc
cmp word [eax], 0
je 0x41f00b
mov edi, eax
cmp byte [ebp + 0x73], 0
mov ecx, dword [ebp + 0x64]
jne 0x41f05a
test ecx, ecx
je 0x41f055
jl 0x41f0b6
test bl, bl
push ecx
je 0x41f048
and dword [ebp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x64], esi
cmp word [eax], 0
jne 0x41f0b6
lea ecx, [ebp + 0x68]
call fcn.00427365
xor eax, eax
jmp 0x41f57a
mov ecx, dword [ebp + 0x54]
call fcn.0040b816
mov dword [ebp + 0x6c], eax
jmp 0x41f0b3
push 2
pop eax
jmp 0x41f05d
xor eax, eax
inc eax
or eax, dword [ebp + 0x40]
push eax
push ecx
call fcn.004152d7
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x6c], ecx
je 0x41f0a6
cmp ecx, 0x41
jl 0x41f07c
cmp ecx, 0x5a
jle 0x41f089
push ecx
call fcn.0040efef
add esp, 4
test al, al
je 0x41f093
movsx ax, cl
mov word [ebp - 0x3c], ax
jmp 0x41f0a6
push ecx
lea eax, [ebp - 0x3c]
push str.0x_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 0x54]
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.0042b2cd
mov dword [ebp + 0x64], esi
lea ecx, [ebp + 0x7c]
call fcn.00409fda
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x64], esi
mov byte [ebp + 0x73], 0
call fcn.00427365
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0
je 0x41f56d
xor edi, edi
mov dword [ebp + 0x48], edi
xor bl, bl
or esi, 0xffffffff
cmp word [ecx], 0x2a
jne 0x41f103
mov eax, dword [ebp + 0x24]
inc ecx
xor esi, esi
inc ecx
inc esi
mov dword [ebp + 0x48], eax
jmp 0x41f0fa
inc esi
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
cmp word [ecx], 0x2a
je 0x41f0f7
cmp esi, edi
jle 0x41f15b
mov ax, word [ecx]
cmp ax, 0x2d
jne 0x41f11a
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov dword [ebp + 0x48], edi
jmp 0x41f15b
cmp ax, 0x3d
jne 0x41f127
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov bl, 1
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040efef
add esp, 4
test al, al
je 0x41f149
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
dec esi
cmp esi, edi
jle 0x41f15b
push esi
push dword [ebp + 0x48]
call fcn.0040cf11
pop ecx
pop ecx
mov dword [ebp + 0x48], eax
or dword [ebp + 0x34], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00409fda
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x3d
jne 0x41f17c
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp + 0x5f], cl
mov dword [ebp + 0x7c], eax
jmp 0x41f180
mov byte [ebp + 0x5f], 0
movzx eax, word [eax]
push eax
call fcn.0040efef
add esp, 4
test al, al
je 0x41f19f
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
cmp dword [ebp + 0x48], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x6c], edi
je 0x41f1d5
test bl, bl
push dword [ebp + 0x48]
push edi
push 0x100000
je 0x41f1bf
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x41f1c5
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x44], eax
jne 0x41f1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x6c], eax
push 0x209
lea ecx, [ebp + 0x4c]
call fcn.0042c827
mov eax, dword [ebp + 0x4c]
mov word [eax], di
push dword [ebp + 0x4c]
mov esi, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0043660b
push 0x5c
push dword [ebp + 0x38]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov eax, dword [ebp + 0x4c]
push esi
mov word [eax], di
push dword [ebp + 0x4c]
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + 0x7c]
call fcn.00409fda
lea ecx, [ebp + 0x28]
call fcn.0042ca75
mov eax, dword [ebp + 0x7c]
cmp word [eax], di
mov dword [ebp + 0x20], edi
je 0x41f37b
push 4
pop ebx
cmp byte [0x495280], 0
jle 0x41f37b
push 7
lea eax, [ebp + 0x7c]
push eax
push str._delms:
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41f292
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042f0d0
cmp dword [ebp + 0x3c], edi
pop ecx
pop ecx
jge 0x41f367
mov dword [ebp + 0x3c], edi
jmp 0x41f367
push ebx
lea eax, [ebp + 0x7c]
push eax
push str._del
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x41f347
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x50], eax
push 1
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x50]
push eax
mov dword [ebp + 0x40], edi
call fcn.00413796
add esp, 0xc
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x7c], eax
call fcn.0042c809
lea ecx, [ebp + 0x58]
call fcn.0042c809
push dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
push dword [ebp + 0x50]
call fcn.0042c92f
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x58]
call fcn.0040d51a
pop ecx
pop ecx
lea ecx, [ebp + 0x58]
call fcn.00427365
cmp dword [ebp + 0x40], edi
jle 0x41f335
push ebx
call fcn.0046cbd8
cmp eax, edi
pop ecx
je 0x41f31a
mov ecx, dword [ebp + 0x68]
mov dword [eax], ecx
mov dword [ebp + 0x68], edi
mov esi, eax
jmp 0x41f31c
xor esi, esi
push ebx
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
call fcn.0042ca38
add esp, 0x10
mov dword [eax], esi
inc dword [ebp + 0x30]
lea ecx, [ebp + 0x7c]
call fcn.00409fda
lea ecx, [ebp + 0x68]
call fcn.00427365
jmp 0x41f367
push ebx
lea eax, [ebp + 0x7c]
push eax
push str._cmd
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x41f375
lea eax, [ebp + 0x7c]
push eax
call fcn.00403cc8
pop ecx
mov eax, dword [ebp + 0x7c]
cmp word [eax], di
jne 0x41f24e
jmp 0x41f37b
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x20], eax
cmp byte [ebp + 0x73], 0
je 0x41f384
neg dword [ebp + 0x64]
cmp dword [ebp + 0x60], edi
jne 0x41f397
cmp dword [ebp + 0x44], edi
je 0x41f397
push dword [ebp + 0x4c]
call fcn.0040a41e
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, eax
add esi, dword [ebp + 0x64]
cmp dword [ebp + 0x44], edi
je 0x41f446
jmp 0x41f439
cmp dword [ebp + 0x64], 0
je 0x41f446
mov edi, 0x3e8
jle 0x41f3d4
call ebx
mov ecx, esi
sub ecx, eax
mov dword [ebp + 0x64], ecx
js 0x41f446
cmp ecx, edi
jge 0x41f3d4
mov edi, ecx
push 0x4ff
push edi
push 0
lea eax, [ebp + 0x44]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x41f446
cmp byte [0x495280], 0
mov dword [ebp + 0x50], 0x64
jle 0x41f446
xor edi, edi
push 1
push edi
push edi
push edi
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41f439
dec dword [ebp + 0x50]
je 0x41f439
cmp dword [ebp + 8], 0x12
je 0x41f439
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x495280], 0
jg 0x41f3fe
cmp byte [0x495280], 0
jg 0x41f3b2
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jl 0x41f465
cmp byte [ebp + 0x5f], bl
push dword [ebp + 0x34]
je 0x41f45d
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41f465
mov ecx, dword [ebp + 0x54]
call fcn.0040b816
cmp dword [ebp + 0x30], ebx
jle 0x41f51f
cmp byte [0x495280], 0
jle 0x41f51f
cmp dword [ebp + 0x60], ebx
jne 0x41f489
push dword [ebp + 0x4c]
call fcn.0040a41e
pop ecx
cmp dword [ebp + 0x30], ebx
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x40], eax
jle 0x41f51f
cmp byte [0x495280], 0
jle 0x41f51f
mov eax, dword [ebp + 0x30]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x68], eax
jle 0x41f51f
cmp byte [0x495280], 0
jle 0x41f505
mov eax, dword [ebp + 0x40]
lea esi, [eax + edi*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x41f4fd
push 0
push dword [eax]
call fcn.0041df0d
mov eax, dword [esi]
push dword [eax]
call fcn.0046c575
add esp, 0xc
test eax, eax
jne 0x41f4f7
mov ebx, dword [esi]
test ebx, ebx
je 0x41f4f2
mov ecx, ebx
call fcn.00427365
push ebx
call fcn.0046ca10
pop ecx
and dword [esi], 0
jmp 0x41f4fd
lea eax, [edi + 1]
mov dword [ebp + 0x50], eax
inc edi
xor ebx, ebx
cmp edi, dword [ebp + 0x68]
jl 0x41f4b0
mov esi, dword [ebp + 0x50]
cmp esi, ebx
jle 0x41f51f
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x54]
call fcn.0040b816
mov dword [ebp + 0x30], esi
jmp 0x41f498
cmp dword [ebp + 0x60], ebx
jne 0x41f532
cmp dword [ebp + 0x44], ebx
je 0x41f532
push dword [ebp + 0x38]
call fcn.0040a41e
pop ecx
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x41f54d
cmp word [eax], bx
je 0x41f54d
mov ecx, dword [ebp + 0x54]
push ebx
push ebx
push ebx
push eax
call fcn.00420f64
mov dword [ebp + 0x6c], eax
lea ecx, [ebp + 0x28]
call fcn.00416dad
lea ecx, [ebp + 0x38]
call fcn.00427365
lea ecx, [ebp + 0x4c]
call fcn.00427365
lea ecx, [ebp + 0x44]
call fcn.00402a26
mov ecx, dword [ebp + 0x54]
push 0
call fcn.0044ba23
mov eax, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4