Function at 0x41bd23
Capabilities:
Get common file path
Log keystrokes via polling
Query environment variable
Set current directory

Disassembly:
push ebp
mov eax, 0x41ac
lea ebp, [esp - 0x74]
call fcn.00467bd0
push ebx
push esi
mov dword [ebp + 0x4c], ecx
push edi
lea ecx, [ebp + 0x7c]
call fcn.00409aad
xor esi, esi
mov byte [ebp + 0x73], 0
xor bl, bl
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 0x2c], eax
push 4
lea eax, [ebp + 0x7c]
push eax
push str.sys
call fcn.0042c7e8
mov byte [ebp + 0x58], al
push 5
lea eax, [ebp + 0x7c]
push eax
push str.sys0
call fcn.0042c7e8
add esp, 0x18
test al, al
je 0x41bd85
mov byte [ebp + 0x58], 0x41
push 7
lea eax, [ebp + 0x7c]
push eax
push str.syscmd
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41bda0
mov byte [ebp + 0x58], 0x10
push 8
lea eax, [ebp + 0x7c]
push eax
push str.sys0cmd
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41bdbb
mov byte [ebp + 0x58], 0x50
cmp byte [ebp + 0x58], 0
je 0x41bed7
push 0x49062c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.GlobalPECMD:main:lock
call fcn.0040bd6b
mov ebx, dword [ebp + 0x58]
and ebx, 0x40
push ebx
mov dword [ebp + 0x68], eax
call fcn.0040bd32
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], eax
call edi
mov esi, eax
add esi, 0x10
lea eax, [esi + 0x65]
push eax
lea ecx, [ebp + 0x60]
call fcn.0042aed6
mov eax, dword [ebp + 0x60]
and word [eax], 0
test byte [ebp + 0x58], 0x10
jne 0x41be2b
push dword [ebp + 0x2c]
push str.THREAD_WAIT__cur:_lu
push dword [ebp + 0x60]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp + 0x60]
call edi
mov ecx, dword [ebp + 0x60]
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 + 0x60]
push esi
call edi
shl eax, 1
push eax
push esi
push 1
push str.HOTKEY9000000
push str.SOFTWAREPELOGON
push 0x80000002
call fcn.00426e2f
add esp, 0x18
cmp dword [ebp + 0x6c], 0
jne 0x41be7d
push ebx
push dword [ebp + 0x4c]
call fcn.00412e36
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
je 0x41bead
push 0
push 0x895440
push 0x312
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0x60]
mov esi, eax
call fcn.0042602e
cmp dword [ebp + 0x68], 0
je 0x41bec7
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41bec7
lea ecx, [ebp + 0x60]
call fcn.0042602e
cmp dword [ebp + 0x68], 0
je 0x41bec4
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
inc esi
push 0x49062c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41c5f2
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
jne 0x41c056
push 5
lea eax, [ebp + 0x7c]
push eax
push str._cont
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41bf04
mov dword [ebp + 0x68], 0x10000
jmp 0x41bf68
push 8
lea eax, [ebp + 0x7c]
push eax
push str._scanall
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41bf1f
mov bl, 1
jmp 0x41bf68
push 4
lea eax, [ebp + 0x7c]
push eax
push str._ncd
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41bf3f
mov dword [ebp + 0x60], 0x40
jmp 0x41bf68
push 5
push dword [ebp + 0x7c]
push str._cur:
call fcn.00426f79
add esp, 0xc
test al, al
je 0x41bf77
add dword [ebp + 0x7c], 0xa
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042dab0
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2d
je 0x41bee4
jmp 0x41bf7a
mov ecx, dword [ebp + 0x7c]
test bl, bl
je 0x41c029
lea ecx, [ebp + 0x6c]
mov ebx, str.PressKey
call fcn.0042aeb8
mov eax, dword [ebp + 0x7c]
cmp word [eax], si
je 0x41bfac
push 0x2c
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042d669
mov ebx, dword [ebp + 0x6c]
add esp, 0xc
push 0x3f
xor eax, eax
mov byte [ebp - 0x134], 0
pop ecx
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
mov word [ebp - 0x4138], si
lea edi, [ebp - 0x4138]
movzx eax, byte [ebp + esi - 0x134]
push eax
push 0x47dc10
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc esi
add edi, 0xa
cmp esi, 0x100
jl 0x41bfdf
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp - 0x4138]
push eax
xor esi, esi
push ebx
mov word [ebp - 0x373a], si
call fcn.00429dbf
lea ecx, [ebp + 0x6c]
call fcn.0042602e
jmp 0x41c5c4
cmp word [ecx], 0x2d
jne 0x41c056
push 4
push ecx
push str._cmd
call fcn.00426f79
add esp, 0xc
test al, al
jne 0x41c053
add dword [ebp + 0x7c], 2
lea ecx, [ebp + 0x7c]
mov byte [ebp + 0x73], 1
call fcn.00409aad
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x3d
jne 0x41c065
mov bl, byte [ecx]
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
jmp 0x41c067
xor bl, bl
mov edi, 0x80000000
xor eax, eax
mov dword [ebp + 0x64], edi
mov ax, word [ecx]
push eax
call fcn.0042aa31
add esp, 4
test al, al
je 0x41c093
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042dab0
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
cmp word [ecx], 0x2a
je 0x41c182
cmp dword [ebp + 0x64], edi
je 0x41c182
and word [ebp - 0x32], 0
and word [ebp - 0x34], 0
lea ecx, [ebp + 0x6c]
mov esi, str.PressKey
call fcn.0042aeb8
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2c
jne 0x41c0e7
add dword [ebp + 0x7c], 2
push 0x2c
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042d669
mov eax, dword [ebp + 0x6c]
add esp, 0xc
cmp word [eax], 0
je 0x41c0e7
mov esi, eax
cmp byte [ebp + 0x73], 0
mov ecx, dword [ebp + 0x64]
jne 0x41c112
test ecx, ecx
je 0x41c10d
jl 0x41c168
test bl, bl
push ecx
je 0x41c103
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41c168
mov ecx, dword [ebp + 0x4c]
call fcn.0040b352
jmp 0x41c168
push 2
pop eax
jmp 0x41c115
xor eax, eax
inc eax
or eax, dword [ebp + 0x68]
push eax
push ecx
call fcn.00415797
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41c15b
cmp ecx, 0x41
jl 0x41c131
cmp ecx, 0x5a
jle 0x41c13e
push ecx
call fcn.0042aa31
add esp, 4
test al, al
je 0x41c148
movsx ax, cl
mov word [ebp - 0x34], ax
jmp 0x41c15b
push ecx
lea eax, [ebp - 0x34]
push str.0x_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00429dbf
lea ecx, [ebp + 0x7c]
call fcn.00409aad
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x64], edi
mov byte [ebp + 0x73], 0
call fcn.0042602e
mov ecx, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x48], ebx
or esi, 0xffffffff
cmp word [ecx], 0x2a
mov byte [ebp + 0x5f], bl
jne 0x41c1ac
mov eax, dword [ebp + 0x2c]
inc ecx
xor esi, esi
inc ecx
inc esi
mov dword [ebp + 0x48], eax
jmp 0x41c1a3
inc esi
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
cmp word [ecx], 0x2a
je 0x41c1a0
cmp esi, ebx
jle 0x41c206
mov ax, word [ecx]
cmp ax, 0x2d
jne 0x41c1c3
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov dword [ebp + 0x48], ebx
jmp 0x41c206
cmp ax, 0x3d
jne 0x41c1d2
inc ecx
inc ecx
mov dword [ebp + 0x7c], ecx
mov byte [ebp + 0x5f], 1
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0042aa31
add esp, 4
test al, al
je 0x41c1f4
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042dab0
pop ecx
pop ecx
dec esi
cmp esi, ebx
jle 0x41c206
push esi
push dword [ebp + 0x48]
call fcn.0040c96d
pop ecx
pop ecx
mov dword [ebp + 0x48], eax
or dword [ebp + 0x3c], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00409aad
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x3d
jne 0x41c227
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp + 0x5e], cl
mov dword [ebp + 0x7c], eax
jmp 0x41c22b
mov byte [ebp + 0x5e], 0
movzx eax, word [eax]
push eax
call fcn.0042aa31
add esp, 4
test al, al
je 0x41c24a
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0042dab0
pop ecx
pop ecx
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x54], ebx
je 0x41c283
cmp byte [ebp + 0x5f], 0
push dword [ebp + 0x48]
push ebx
push 0x100000
je 0x41c269
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x41c26f
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 0x54], eax
jne 0x41c283
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41c5ea
push 0x209
lea ecx, [ebp + 0x50]
call fcn.0042aed6
mov eax, dword [ebp + 0x50]
mov word [eax], bx
push dword [ebp + 0x50]
mov esi, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x44]
call fcn.004346b2
push 0x5c
push dword [ebp + 0x44]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov eax, dword [ebp + 0x50]
push esi
mov word [eax], bx
push dword [ebp + 0x50]
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + 0x7c]
call fcn.00409aad
lea ecx, [ebp + 0x30]
call fcn.0042b079
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
mov dword [ebp + 0x28], ebx
je 0x41c3f2
push 4
pop edi
cmp byte [0x48e2ac], 0
jle 0x41c3f2
push edi
lea eax, [ebp + 0x7c]
push eax
push str._del
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x41c3be
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x40], eax
push 1
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x40]
push eax
mov dword [ebp + 0x58], ebx
call fcn.00413db8
add esp, 0xc
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x7c], eax
call fcn.0042aeb8
lea ecx, [ebp + 0x6c]
call fcn.0042aeb8
push dword [ebp + 0x58]
lea ecx, [ebp + 0x6c]
push dword [ebp + 0x40]
call fcn.00409fd6
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x6c]
call fcn.0040cf55
pop ecx
pop ecx
lea ecx, [ebp + 0x6c]
call fcn.0042602e
cmp dword [ebp + 0x58], ebx
jle 0x41c3ac
push edi
call fcn.004669a8
cmp eax, ebx
pop ecx
je 0x41c391
mov ecx, dword [ebp + 0x68]
mov dword [eax], ecx
mov dword [ebp + 0x68], ebx
mov esi, eax
jmp 0x41c393
xor esi, esi
push edi
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x38]
call fcn.0042b03c
add esp, 0x10
mov dword [eax], esi
inc dword [ebp + 0x38]
lea ecx, [ebp + 0x7c]
call fcn.00409aad
lea ecx, [ebp + 0x68]
call fcn.0042602e
jmp 0x41c3de
push edi
lea eax, [ebp + 0x7c]
push eax
push str._cmd
call fcn.0042c7e8
add esp, 0xc
test al, al
jne 0x41c3ec
lea eax, [ebp + 0x7c]
push eax
call fcn.00403b20
pop ecx
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
jne 0x41c2fc
jmp 0x41c3f2
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x28], eax
cmp byte [ebp + 0x73], 0
je 0x41c3fb
neg dword [ebp + 0x64]
cmp dword [ebp + 0x60], ebx
jne 0x41c414
cmp dword [ebp + 0x54], ebx
je 0x41c49f
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ebx, ebx
cmp dword [ebp + 0x54], ebx
je 0x41c49f
cmp byte [0x48e2ac], 0
jle 0x41c49f
mov ebx, 0x3e8
xor esi, esi
cmp dword [ebp + 0x64], esi
je 0x41c49f
mov eax, ebx
jle 0x41c43e
cmp dword [ebp + 0x64], ebx
jge 0x41c43e
mov eax, dword [ebp + 0x64]
sub dword [ebp + 0x64], eax
push 0x4ff
push eax
push esi
lea eax, [ebp + 0x54]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x41c49f
push 0x64
pop edi
jmp 0x41c48d
push 1
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41c496
dec edi
je 0x41c496
cmp dword [ebp + 0x10], 0x12
je 0x41c496
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x48e2ac], 0
jg 0x41c45d
cmp byte [0x48e2ac], 0
jg 0x41c42d
xor ebx, ebx
cmp dword [ebp + 0x3c], ebx
jl 0x41c4be
cmp byte [ebp + 0x5e], bl
push dword [ebp + 0x3c]
je 0x41c4b6
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41c4be
mov ecx, dword [ebp + 0x4c]
call fcn.0040b352
cmp dword [ebp + 0x38], ebx
jle 0x41c577
cmp byte [0x48e2ac], 0
jle 0x41c577
cmp dword [ebp + 0x60], ebx
jne 0x41c4e2
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 0x38], ebx
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x6c], eax
jle 0x41c577
cmp byte [0x48e2ac], 0
jle 0x41c577
mov eax, dword [ebp + 0x38]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x68], eax
jle 0x41c577
cmp byte [0x48e2ac], 0
jle 0x41c55e
mov eax, dword [ebp + 0x6c]
lea esi, [eax + edi*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x41c556
push 0
push dword [eax]
call fcn.004112f4
mov eax, dword [esi]
push dword [eax]
call fcn.00466361
add esp, 0xc
test eax, eax
jne 0x41c550
mov ebx, dword [esi]
test ebx, ebx
je 0x41c54b
mov ecx, ebx
call fcn.0042602e
push ebx
call fcn.004667e0
pop ecx
and dword [esi], 0
jmp 0x41c556
lea eax, [edi + 1]
mov dword [ebp + 0x40], eax
inc edi
xor ebx, ebx
cmp edi, dword [ebp + 0x68]
jl 0x41c509
mov esi, dword [ebp + 0x40]
cmp esi, ebx
jle 0x41c577
mov ecx, dword [ebp + 0x4c]
push 0x64
call fcn.0040b352
mov dword [ebp + 0x38], esi
jmp 0x41c4f1
mov esi, dword [ebp + 0x28]
cmp esi, ebx
je 0x41c5d0
cmp word [esi], bx
je 0x41c5d0
cmp dword [ebp + 0x60], ebx
jne 0x41c596
cmp dword [ebp + 0x54], ebx
je 0x41c596
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp + 0x4c]
push ebx
push ebx
push ebx
push esi
call fcn.0041ff01
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.0040f513
lea ecx, [ebp + 0x44]
call fcn.0042602e
lea ecx, [ebp + 0x50]
call fcn.0042602e
lea ecx, [ebp + 0x54]
call fcn.004029f8
mov ecx, dword [ebp + 0x4c]
push 0
call fcn.004488e0
jmp 0x41c5f2
lea ecx, [ebp + 0x30]
call fcn.0040f513
lea ecx, [ebp + 0x44]
call fcn.0042602e
lea ecx, [ebp + 0x50]
call fcn.0042602e
xor esi, esi
lea ecx, [ebp + 0x54]
call fcn.004029f8
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4