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

Disassembly:
mov eax, 0x4e96eb
call fcn.004b48a0
mov eax, 0x41b4
call fcn.004b3e50
push ebx
push esi
mov dword [ebp - 0x3c], ecx
push edi
lea ecx, [ebp + 8]
call fcn.0041edaf
xor esi, esi
mov dword [ebp - 0x18], 1
mov byte [ebp - 0xe], 0
xor bl, bl
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x60], eax
push 4
lea eax, [ebp + 8]
push eax
push str.sys
mov dword [ebp - 0x48], 0x3e8
call fcn.0044b960
mov byte [ebp - 0x28], al
push 5
lea eax, [ebp + 8]
push eax
push str.sys0
call fcn.0044b960
add esp, 0x18
test al, al
je 0x4354f3
mov byte [ebp - 0x28], 0x41
push 7
lea eax, [ebp + 8]
push eax
push str.syscmd
call fcn.0044b960
add esp, 0xc
test al, al
je 0x43550e
mov byte [ebp - 0x28], 0x10
push 8
lea eax, [ebp + 8]
push eax
push str.sys0cmd
call fcn.0044b960
add esp, 0xc
test al, al
je 0x435529
mov byte [ebp - 0x28], 0x50
cmp byte [ebp - 0x28], 0
je 0x435660
mov ebx, 0x51d5ec
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
push str.GlobalPECMD:main:lock
call fcn.0042118e
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
and eax, 0x40
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], eax
call fcn.00421155
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x20], eax
call edi
mov esi, eax
add esi, 0x10
lea eax, [esi + 0x65]
push eax
lea ecx, [ebp - 0x18]
call fcn.004494b0
mov eax, dword [ebp - 0x18]
and word [eax], 0
test byte [ebp - 0x28], 0x10
mov byte [ebp - 4], 2
jne 0x4355ac
push dword [ebp - 0x60]
push str.THREAD_WAIT__cur:_lu
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
inc esi
push esi
push dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, dword [ebp - 0x18]
push esi
call edi
shl eax, 1
push eax
push esi
push 1
push str.HOTKEY9000000
push str.SOFTWAREPELOGON
push SysReAllocStringLen
call fcn.00444820
add esp, 0x18
cmp dword [ebp - 0x20], 0
jne 0x435600
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
call fcn.004275af
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x435634
push 0
push 0x895440
push 0x312
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00443880
cmp dword [ebp - 0x14], 0
je 0x435652
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x435652
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00443880
cmp dword [ebp - 0x14], 0
je 0x43564f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x435e51
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x2d
jne 0x4357c0
push 5
lea eax, [ebp + 8]
push eax
push str._cont
call fcn.0044b960
add esp, 0xc
test al, al
je 0x43568d
mov dword [ebp - 0x40], 0x10000
jmp 0x4356f1
push 8
lea eax, [ebp + 8]
push eax
push str._scanall
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4356a8
mov bl, 1
jmp 0x4356f1
push 4
lea eax, [ebp + 8]
push eax
push str._ncd
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4356c8
mov dword [ebp - 0x20], 0x40
jmp 0x4356f1
push 5
push dword [ebp + 8]
push str._cur:
call fcn.004449d0
add esp, 0xc
test al, al
je 0x435700
add dword [ebp + 8], 0xa
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x2d
je 0x43566d
jmp 0x435703
mov ecx, dword [ebp + 8]
test bl, bl
je 0x4357c0
lea ecx, [ebp - 0x20]
mov ebx, str.PressKey
call fcn.00449480
mov eax, dword [ebp + 8]
cmp word [eax], si
mov dword [ebp - 4], 3
je 0x43573c
push 0x2c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044c770
mov ebx, dword [ebp - 0x20]
add esp, 0xc
push 0x3f
xor eax, eax
mov byte [ebp - 0x1bc], 0
pop ecx
lea edi, [ebp - 0x1bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
mov word [ebp - 0x41c0], si
lea edi, [ebp - 0x41c0]
movzx eax, byte [ebp + esi - 0x1bc]
push eax
push 0x4f6f7c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc esi
add edi, 0xa
cmp esi, 0x100
jl 0x43576f
mov ecx, dword [ebp - 0x3c]
and word [ebp - 0x37c2], 0
lea eax, [ebp - 0x41c0]
push eax
push ebx
call fcn.00448be0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00443880
and dword [ebp - 0x18], 0
jmp 0x435e44
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1c], esi
cmp word [ecx], 0x2d
jne 0x4357f6
lea eax, [ecx + 2]
mov dx, word [eax]
or dx, 0x20
cmp dx, 0x63
je 0x4357f6
cmp dx, 0x64
je 0x4357f6
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
mov byte [ebp - 0xe], 1
call fcn.0041edaf
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x3d
jne 0x435808
mov al, byte [ecx]
inc ecx
inc ecx
mov byte [ebp - 0xd], al
mov dword [ebp + 8], ecx
jmp 0x43580c
mov byte [ebp - 0xd], 0
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.00423b98
add esp, 4
test al, al
je 0x435830
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x2a
pop edi
cmp word [ecx], di
je 0x43596f
cmp dword [ebp - 0x1c], esi
je 0x43596f
and word [ebp - 0xba], 0
and word [ebp - 0xbc], 0
lea ecx, [ebp - 0x14]
mov ebx, str.PressKey
call fcn.00449480
mov eax, dword [ebp + 8]
cmp word [eax], 0x2c
mov dword [ebp - 4], 4
jne 0x435893
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044c770
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp word [eax], 0
je 0x435893
mov ebx, eax
cmp byte [ebp - 0xe], 0
mov ecx, dword [ebp - 0x1c]
jne 0x4358ec
test ecx, ecx
je 0x4358e7
jl 0x435951
cmp byte [ebp - 0xd], 0
push ecx
je 0x4358da
and dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
cmp word [eax], 0
jne 0x435951
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00443880
xor eax, eax
jmp 0x435e51
mov ecx, dword [ebp - 0x3c]
call fcn.0042072b
mov dword [ebp - 0x18], eax
jmp 0x43594e
push 2
pop eax
jmp 0x4358ef
xor eax, eax
inc eax
or eax, dword [ebp - 0x40]
push eax
push ecx
call fcn.0042a3ac
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x18], ecx
je 0x43593e
cmp ecx, 0x41
jl 0x43590e
cmp ecx, 0x5a
jle 0x43591b
push ecx
call fcn.00423b98
add esp, 4
test al, al
je 0x435928
movsx ax, cl
mov word [ebp - 0xbc], ax
jmp 0x43593e
push ecx
lea eax, [ebp - 0xbc]
push str.0x_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0xbc]
push eax
push ebx
call fcn.00448be0
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 8]
call fcn.0041edaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0xe], 0
call fcn.00443880
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
je 0x435e44
xor ebx, ebx
mov dword [ebp - 0x38], ebx
or esi, 0xffffffff
cmp word [ecx], di
mov byte [ebp - 0x21], bl
jne 0x4359a1
mov eax, dword [ebp - 0x60]
inc ecx
xor esi, esi
inc ecx
inc esi
mov dword [ebp - 0x38], eax
jmp 0x435999
inc esi
inc ecx
inc ecx
mov dword [ebp + 8], ecx
cmp word [ecx], di
je 0x435996
cmp esi, ebx
jle 0x4359fb
mov ax, word [ecx]
cmp ax, 0x2d
jne 0x4359b8
inc ecx
inc ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x38], ebx
jmp 0x4359fb
cmp ax, 0x3d
jne 0x4359c7
inc ecx
inc ecx
mov dword [ebp + 8], ecx
mov byte [ebp - 0x21], 1
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.00423b98
add esp, 4
test al, al
je 0x4359e9
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
pop ecx
pop ecx
dec esi
cmp esi, ebx
jle 0x4359fb
push esi
push dword [ebp - 0x38]
call fcn.00421f85
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
or dword [ebp - 0x44], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041edaf
mov eax, dword [ebp + 8]
cmp word [eax], 0x3d
jne 0x435a1c
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 0xd], cl
mov dword [ebp + 8], eax
jmp 0x435a20
mov byte [ebp - 0xd], 0
movzx eax, word [eax]
push eax
call fcn.00423b98
add esp, 4
test al, al
je 0x435a3f
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
pop ecx
pop ecx
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
je 0x435a7e
cmp byte [ebp - 0x21], 0
push dword [ebp - 0x38]
push ebx
push 0x100000
je 0x435a68
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x435a6e
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x435a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x209
lea ecx, [ebp - 0x34]
call fcn.004494b0
mov eax, dword [ebp - 0x34]
mov word [eax], bx
push dword [ebp - 0x34]
mov esi, 0x208
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.004565f0
push 0x5c
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov eax, dword [ebp - 0x34]
push esi
mov word [eax], bx
push dword [ebp - 0x34]
push 0x4f0208
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + 8]
call fcn.0041edaf
lea ecx, [ebp - 0x5c]
call fcn.00449780
mov eax, dword [ebp + 8]
cmp word [eax], bx
mov byte [ebp - 4], 8
mov dword [ebp - 0x4c], ebx
je 0x435c40
push 4
pop edi
cmp byte [0x519300], 0
jle 0x435c40
push 7
lea eax, [ebp + 8]
push eax
push str._delms:
call fcn.0044b960
add esp, 0xc
test al, al
je 0x435b47
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
cmp dword [ebp - 0x48], ebx
pop ecx
pop ecx
jge 0x435c2c
mov dword [ebp - 0x48], ebx
jmp 0x435c2c
push edi
lea eax, [ebp + 8]
push eax
push str._del
call fcn.0044b960
add esp, 0xc
test al, al
je 0x435c0c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x40], ebx
call fcn.00428699
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.00449480
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00449480
push dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.00449600
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call fcn.00422660
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00443880
cmp dword [ebp - 0x40], ebx
jle 0x435bf6
push edi
call fcn.004cc845
cmp eax, ebx
pop ecx
je 0x435bdb
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov esi, eax
jmp 0x435bdd
xor esi, esi
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x54]
call fcn.00449730
add esp, 0x10
mov dword [eax], esi
inc dword [ebp - 0x54]
lea ecx, [ebp + 8]
call fcn.0041edaf
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00443880
jmp 0x435c2c
push edi
lea eax, [ebp + 8]
push eax
push str._cmd
call fcn.0044b960
add esp, 0xc
test al, al
jne 0x435c3a
lea eax, [ebp + 8]
push eax
call fcn.00417e2a
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x435b03
jmp 0x435c40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
cmp byte [ebp - 0xe], 0
je 0x435c49
neg dword [ebp - 0x1c]
cmp dword [ebp - 0x20], ebx
jne 0x435c5c
cmp dword [ebp - 0x30], ebx
je 0x435c5c
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
add edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], 0
je 0x435d0c
jmp 0x435cff
cmp dword [ebp - 0x1c], 0
je 0x435d0c
mov esi, 0x3e8
jle 0x435c9a
call ebx
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x1c], ecx
js 0x435d0c
cmp ecx, esi
jge 0x435c9a
mov esi, ecx
push 0x4ff
push esi
push 0
lea eax, [ebp - 0x30]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x435d0c
cmp byte [0x519300], 0
mov dword [ebp - 0x2c], 0x64
jle 0x435d0c
xor esi, esi
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x435cff
dec dword [ebp - 0x2c]
je 0x435cff
cmp dword [ebp - 0x78], 0x12
je 0x435cff
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x519300], 0
jg 0x435cc4
cmp byte [0x519300], 0
jg 0x435c78
xor ebx, ebx
cmp dword [ebp - 0x44], ebx
jl 0x435d2b
cmp byte [ebp - 0xd], bl
push dword [ebp - 0x44]
je 0x435d23
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x435d2b
mov ecx, dword [ebp - 0x3c]
call fcn.0042072b
cmp dword [ebp - 0x54], ebx
jle 0x435de6
cmp byte [0x519300], 0
jle 0x435de6
cmp dword [ebp - 0x20], ebx
jne 0x435d4f
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
jle 0x435de6
cmp byte [0x519300], 0
jle 0x435de6
mov eax, dword [ebp - 0x54]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
jle 0x435de6
cmp byte [0x519300], 0
jle 0x435dcc
mov eax, dword [ebp - 0x40]
lea esi, [eax + edi*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x435dc4
mov eax, dword [eax]
push 0
push eax
call fcn.004346d2
mov eax, dword [esi]
push dword [eax]
call fcn.004b0b20
add esp, 0xc
test eax, eax
jne 0x435dbe
mov ebx, dword [esi]
test ebx, ebx
je 0x435db9
mov ecx, ebx
call fcn.00443880
push ebx
call fcn.004cc875
pop ecx
and dword [esi], 0
jmp 0x435dc4
lea eax, [edi + 1]
mov dword [ebp - 0x2c], eax
inc edi
xor ebx, ebx
cmp edi, dword [ebp - 0x14]
jl 0x435d76
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
jle 0x435de6
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
call fcn.0042072b
mov dword [ebp - 0x54], esi
jmp 0x435d5e
cmp dword [ebp - 0x20], ebx
jne 0x435df9
cmp dword [ebp - 0x30], ebx
je 0x435df9
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x435e14
cmp word [eax], bx
je 0x435e14
mov ecx, dword [ebp - 0x3c]
push ebx
push ebx
push ebx
push eax
call fcn.00437b3d
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00423baf
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00443880
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00443880
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004165a1
mov ecx, dword [ebp - 0x3c]
push 0
call fcn.004631f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4