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

Disassembly:
push ebp
mov eax, 0x41b4
lea ebp, [esp - 0x74]
call fcn.00470d80
push ebx
push esi
mov dword [ebp + 0x54], ecx
push edi
lea ecx, [ebp + 0x7c]
call fcn.0040ac34
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.0042fc5f
mov byte [ebp + 0x58], al
push 5
lea eax, [ebp + 0x7c]
push eax
push str.sys0
call fcn.0042fc5f
add esp, 0x18
test al, al
je 0x4204a2
mov byte [ebp + 0x58], 0x41
push 7
lea eax, [ebp + 0x7c]
push eax
push str.syscmd
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x4204bd
mov byte [ebp + 0x58], 0x10
push 8
lea eax, [ebp + 0x7c]
push eax
push str.sys0cmd
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x4204d8
mov byte [ebp + 0x58], 0x50
cmp byte [ebp + 0x58], 0
je 0x4205f6
push 0x49b604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.GlobalPECMD:main:lock
call fcn.0040ce02
mov ebx, dword [ebp + 0x58]
and ebx, 0x40
push ebx
mov dword [ebp + 0x68], eax
call fcn.0040cdc9
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.0042e1e2
mov eax, dword [ebp + 0x6c]
and word [eax], 0
test byte [ebp + 0x58], 0x10
jne 0x420548
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.004297ff
add esp, 0x18
cmp dword [ebp + 0x60], 0
jne 0x42059a
push ebx
push dword [ebp + 0x54]
call fcn.0041395c
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x60], eax
je 0x4205ca
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.00428a48
cmp dword [ebp + 0x68], 0
je 0x4205e4
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4205e4
lea ecx, [ebp + 0x6c]
call fcn.00428a48
cmp dword [ebp + 0x68], 0
je 0x4205e1
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
inc esi
push 0x49b604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x420d79
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
jne 0x42074b
push 5
lea eax, [ebp + 0x7c]
push eax
push str._cont
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x420623
mov dword [ebp + 0x40], 0x10000
jmp 0x420687
push 8
lea eax, [ebp + 0x7c]
push eax
push str._scanall
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x42063e
mov bl, 1
jmp 0x420687
push 4
lea eax, [ebp + 0x7c]
push eax
push str._ncd
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x42065e
mov dword [ebp + 0x60], 0x40
jmp 0x420687
push 5
push dword [ebp + 0x7c]
push str._cur:
call fcn.0042996a
add esp, 0xc
test al, al
je 0x420696
add dword [ebp + 0x7c], 0xa
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00430ad7
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
je 0x420603
jmp 0x420699
mov ecx, dword [ebp + 0x7c]
test bl, bl
je 0x42074b
lea ecx, [ebp + 0x60]
mov ebx, str.PressKey
call fcn.0042e1c4
mov eax, dword [ebp + 0x7c]
cmp word [eax], si
je 0x4206cb
push 0x2c
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0043060a
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 0x48820c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc esi
add edi, 0xa
cmp esi, 0x100
jl 0x4206fe
mov ecx, dword [ebp + 0x54]
and word [ebp - 0x3742], 0
lea eax, [ebp - 0x4140]
push eax
push ebx
call fcn.0042cbf7
lea ecx, [ebp + 0x60]
call fcn.00428a48
and dword [ebp + 0x6c], 0
jmp 0x420d6c
mov esi, 0x80000000
mov dword [ebp + 0x64], esi
cmp word [ecx], 0x2d
jne 0x420781
lea eax, [ecx + 2]
mov dx, word [eax]
or dx, 0x20
cmp dx, 0x63
je 0x420781
cmp dx, 0x64
je 0x420781
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], eax
mov byte [ebp + 0x73], 1
call fcn.0040ac34
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x3d
jne 0x420790
mov bl, byte [ecx]
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
jmp 0x420792
xor bl, bl
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
je 0x4207b6
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00430ad7
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2a
je 0x4208cf
cmp dword [ebp + 0x64], esi
je 0x4208cf
and word [ebp - 0x3a], 0
and word [ebp - 0x3c], 0
lea ecx, [ebp + 0x68]
mov edi, str.PressKey
call fcn.0042e1c4
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2c
jne 0x42080a
add dword [ebp + 0x7c], 2
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0043060a
mov eax, dword [ebp + 0x68]
add esp, 0xc
cmp word [eax], 0
je 0x42080a
mov edi, eax
cmp byte [ebp + 0x73], 0
mov ecx, dword [ebp + 0x64]
jne 0x420859
test ecx, ecx
je 0x420854
jl 0x4208b5
test bl, bl
push ecx
je 0x420847
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 0x4208b5
lea ecx, [ebp + 0x68]
call fcn.00428a48
xor eax, eax
jmp 0x420d79
mov ecx, dword [ebp + 0x54]
call fcn.0040c4a3
mov dword [ebp + 0x6c], eax
jmp 0x4208b2
push 2
pop eax
jmp 0x42085c
xor eax, eax
inc eax
or eax, dword [ebp + 0x40]
push eax
push ecx
call fcn.00416597
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x6c], ecx
je 0x4208a5
cmp ecx, 0x41
jl 0x42087b
cmp ecx, 0x5a
jle 0x420888
push ecx
call fcn.0040fd8a
add esp, 4
test al, al
je 0x420892
movsx ax, cl
mov word [ebp - 0x3c], ax
jmp 0x4208a5
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.0042cbf7
mov dword [ebp + 0x64], esi
lea ecx, [ebp + 0x7c]
call fcn.0040ac34
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x64], esi
mov byte [ebp + 0x73], 0
call fcn.00428a48
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0
je 0x420d6c
xor edi, edi
mov dword [ebp + 0x48], edi
xor bl, bl
or esi, 0xffffffff
cmp word [ecx], 0x2a
jne 0x420902
mov eax, dword [ebp + 0x24]
inc ecx
xor esi, esi
inc ecx
inc esi
mov dword [ebp + 0x48], eax
jmp 0x4208f9
inc esi
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
cmp word [ecx], 0x2a
je 0x4208f6
cmp esi, edi
jle 0x42095a
mov ax, word [ecx]
cmp ax, 0x2d
jne 0x420919
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov dword [ebp + 0x48], edi
jmp 0x42095a
cmp ax, 0x3d
jne 0x420926
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov bl, 1
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
je 0x420948
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00430ad7
pop ecx
pop ecx
dec esi
cmp esi, edi
jle 0x42095a
push esi
push dword [ebp + 0x48]
call fcn.0040dbaf
pop ecx
pop ecx
mov dword [ebp + 0x48], eax
or dword [ebp + 0x34], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.0040ac34
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x3d
jne 0x42097b
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp + 0x5f], cl
mov dword [ebp + 0x7c], eax
jmp 0x42097f
mov byte [ebp + 0x5f], 0
movzx eax, word [eax]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
je 0x42099e
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00430ad7
pop ecx
pop ecx
cmp dword [ebp + 0x48], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x6c], edi
je 0x4209d4
test bl, bl
push dword [ebp + 0x48]
push edi
push 0x100000
je 0x4209be
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x4209c4
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x44], eax
jne 0x4209d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x6c], eax
push 0x209
lea ecx, [ebp + 0x4c]
call fcn.0042e1e2
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.0043a50b
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.0040ac34
lea ecx, [ebp + 0x28]
call fcn.0042e430
mov eax, dword [ebp + 0x7c]
cmp word [eax], di
mov dword [ebp + 0x20], edi
je 0x420b7a
push 4
pop ebx
cmp byte [0x499280], 0
jle 0x420b7a
push 7
lea eax, [ebp + 0x7c]
push eax
push str._delms:
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x420a91
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00430ad7
cmp dword [ebp + 0x3c], edi
pop ecx
pop ecx
jge 0x420b66
mov dword [ebp + 0x3c], edi
jmp 0x420b66
push ebx
lea eax, [ebp + 0x7c]
push eax
push str._del
call fcn.0042fc5f
add esp, 0xc
test al, al
je 0x420b46
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.004149d8
add esp, 0xc
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x7c], eax
call fcn.0042e1c4
lea ecx, [ebp + 0x58]
call fcn.0042e1c4
push dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
push dword [ebp + 0x50]
call fcn.0042e2ea
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x58]
call fcn.0040e23e
pop ecx
pop ecx
lea ecx, [ebp + 0x58]
call fcn.00428a48
cmp dword [ebp + 0x40], edi
jle 0x420b34
push ebx
call fcn.00470568
cmp eax, edi
pop ecx
je 0x420b19
mov ecx, dword [ebp + 0x68]
mov dword [eax], ecx
mov dword [ebp + 0x68], edi
mov esi, eax
jmp 0x420b1b
xor esi, esi
push ebx
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
call fcn.0042e3f3
add esp, 0x10
mov dword [eax], esi
inc dword [ebp + 0x30]
lea ecx, [ebp + 0x7c]
call fcn.0040ac34
lea ecx, [ebp + 0x68]
call fcn.00428a48
jmp 0x420b66
push ebx
lea eax, [ebp + 0x7c]
push eax
push str._cmd
call fcn.0042fc5f
add esp, 0xc
test al, al
jne 0x420b74
lea eax, [ebp + 0x7c]
push eax
call fcn.00404037
pop ecx
mov eax, dword [ebp + 0x7c]
cmp word [eax], di
jne 0x420a4d
jmp 0x420b7a
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x20], eax
cmp byte [ebp + 0x73], 0
je 0x420b83
neg dword [ebp + 0x64]
cmp dword [ebp + 0x60], edi
jne 0x420b96
cmp dword [ebp + 0x44], edi
je 0x420b96
push dword [ebp + 0x4c]
call fcn.0040ca4b
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 0x420c45
jmp 0x420c38
cmp dword [ebp + 0x64], 0
je 0x420c45
mov edi, 0x3e8
jle 0x420bd3
call ebx
mov ecx, esi
sub ecx, eax
mov dword [ebp + 0x64], ecx
js 0x420c45
cmp ecx, edi
jge 0x420bd3
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 0x420c45
cmp byte [0x499280], 0
mov dword [ebp + 0x50], 0x64
jle 0x420c45
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 0x420c38
dec dword [ebp + 0x50]
je 0x420c38
cmp dword [ebp + 8], 0x12
je 0x420c38
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 [0x499280], 0
jg 0x420bfd
cmp byte [0x499280], 0
jg 0x420bb1
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jl 0x420c64
cmp byte [ebp + 0x5f], bl
push dword [ebp + 0x34]
je 0x420c5c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x420c64
mov ecx, dword [ebp + 0x54]
call fcn.0040c4a3
cmp dword [ebp + 0x30], ebx
jle 0x420d1e
cmp byte [0x499280], 0
jle 0x420d1e
cmp dword [ebp + 0x60], ebx
jne 0x420c88
push dword [ebp + 0x4c]
call fcn.0040ca4b
pop ecx
cmp dword [ebp + 0x30], ebx
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x40], eax
jle 0x420d1e
cmp byte [0x499280], 0
jle 0x420d1e
mov eax, dword [ebp + 0x30]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x68], eax
jle 0x420d1e
cmp byte [0x499280], 0
jle 0x420d04
mov eax, dword [ebp + 0x40]
lea esi, [eax + edi*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x420cfc
push 0
push dword [eax]
call fcn.0041f3fd
mov eax, dword [esi]
push dword [eax]
call fcn.0046ff04
add esp, 0xc
test eax, eax
jne 0x420cf6
mov ebx, dword [esi]
test ebx, ebx
je 0x420cf1
mov ecx, ebx
call fcn.00428a48
push ebx
call fcn.004703a0
pop ecx
and dword [esi], 0
jmp 0x420cfc
lea eax, [edi + 1]
mov dword [ebp + 0x50], eax
inc edi
xor ebx, ebx
cmp edi, dword [ebp + 0x68]
jl 0x420caf
mov esi, dword [ebp + 0x50]
cmp esi, ebx
jle 0x420d1e
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x54]
call fcn.0040c4a3
mov dword [ebp + 0x30], esi
jmp 0x420c97
cmp dword [ebp + 0x60], ebx
jne 0x420d31
cmp dword [ebp + 0x44], ebx
je 0x420d31
push dword [ebp + 0x38]
call fcn.0040ca4b
pop ecx
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x420d4c
cmp word [eax], bx
je 0x420d4c
mov ecx, dword [ebp + 0x54]
push ebx
push ebx
push ebx
push eax
call fcn.004228ce
mov dword [ebp + 0x6c], eax
lea ecx, [ebp + 0x28]
call fcn.00418070
lea ecx, [ebp + 0x38]
call fcn.00428a48
lea ecx, [ebp + 0x4c]
call fcn.00428a48
lea ecx, [ebp + 0x44]
call fcn.00402abc
mov ecx, dword [ebp + 0x54]
push 0
call fcn.004403ab
mov eax, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4