Function at 0x401d4d
Capabilities:
Copy file
Create process on windows
Get file attributes
Log keystrokes via polling
Move file
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 0x5c]
push edi
xor ebx, ebx
push eax
mov dword [0x404100], ebx
mov dword [0x4040f0], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_mouse_event]
push ebx
push 2
push ebx
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push 0x110
push dword [0x404274]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, ebx
mov dword [0x404108], eax
je 0x4022ec
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
movzx esi, ax
push 0x1d
shr esi, 1
call edi
movzx eax, ax
or esi, eax
shr esi, 0xe
cmp dword [ebp + 0xc], 1
mov dword [0x40410c], esi
jne 0x401df0
or dword [0x404104], 1
or esi, 1
mov dword [0x40410c], esi
mov eax, dword [0x404104]
or eax, esi
test al, 1
je 0x401e89
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x401e76
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401e76
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x401e70
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov dword [ebp - 0x20], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401e67
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x401e67
push ebx
push ebx
push dword [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x20]
push ebx
push ebx
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x11
call edi
test ax, ax
jge 0x401e89
push 0x1c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401e76
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
mov ecx, eax
shl ecx, 3
mov eax, dword [ecx + 0x404100]
mov ecx, dword [ecx + 0x404104]
cmp eax, 0x7d
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ecx
jne 0x401f0c
push 1
pop eax
test al, cl
mov dword [ebp - 0x20], eax
jne 0x401ec1
or dword [0x404278], eax
test cl, 2
jne 0x4021fa
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [0x404110]
push str.open
push str..txt
push 2
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringA]
test eax, eax
jne 0x401f07
mov eax, dword [0x404110]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x404114
jmp 0x4021a1
mov dword [ebp - 4], ebx
jmp 0x401efb
jle 0x4021fa
mov edx, dword [0x40427c]
sub eax, 0x7e
mov dword [ebp - 8], eax
lea eax, [eax + eax*4]
mov esi, dword [edx + eax*4 + 8]
lea eax, [edx + eax*4]
cmp esi, ebx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
je 0x401f48
cmp byte [esi], bl
jne 0x401f3a
xor esi, esi
jmp 0x401f48
cmp dword [esi], 0x43444441
jne 0x401f48
or ecx, 4
mov dword [ebp - 0x1c], ecx
test cl, 1
je 0x401f54
mov edi, dword [ebp - 0x18]
cmp edi, ebx
jne 0x401f57
mov edi, dword [ebp + 0xc]
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x401f67
cmp byte [edi], bl
jne 0x401f67
xor edi, edi
mov dword [ebp - 4], edi
test cl, 2
je 0x401f75
cmp edi, ebx
jne 0x401f79
jmp 0x4021a1
cmp edi, ebx
jne 0x401f8a
test cl, 4
jne 0x4021a1
mov dword [ebp - 4], esi
jmp 0x4021a1
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, 0x80000010
jg 0x402048
test byte [ebp - 0x1c], 4
je 0x4021a1
mov cl, byte [esi + 4]
add esi, 4
xor edi, edi
cmp cl, bl
mov eax, esi
je 0x401fcd
cmp cl, 0x25
jne 0x401fc1
cmp byte [eax + 1], 0x31
jne 0x401fc1
mov edi, eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401fb4
cmp edi, ebx
jne 0x401fcf
mov edi, eax
sub eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x401fde
inc eax
jmp 0x401fd7
sub eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4021a1
mov edx, eax
cmp esi, edi
jae 0x40200b
mov cl, byte [esi]
mov byte [eax], cl
inc eax
inc esi
jmp 0x401fff
cmp byte [eax], 0x20
je 0x402014
mov byte [eax], 0x20
inc eax
mov esi, dword [ebp - 4]
mov cl, byte [esi]
cmp cl, bl
je 0x402023
mov byte [eax], cl
inc eax
inc esi
jmp 0x402017
cmp byte [edi], bl
je 0x40203e
inc edi
inc edi
cmp byte [edi], 0x20
je 0x402032
mov byte [eax], 0x20
inc eax
mov cl, byte [edi]
cmp cl, bl
je 0x40203e
mov byte [eax], cl
inc eax
inc edi
jmp 0x402032
mov byte [eax], bl
mov dword [ebp - 4], edx
jmp 0x4021a1
cmp byte [edi], bl
mov eax, edi
mov dword [ebp - 0x1c], ebx
je 0x402056
inc eax
cmp byte [eax], bl
jne 0x402051
sub eax, edi
mov dword [ebp - 8], eax
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4021a1
mov esi, eax
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, bl
je 0x402094
cmp cl, 0x3a
je 0x402093
cmp cl, 0x5c
jne 0x402090
cmp byte [eax + 1], cl
jne 0x402090
cmp byte [eax - 1], bl
jg 0x402094
inc eax
jmp 0x402076
dec eax
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
jne 0x4020a8
cmp byte [eax], bl
mov dword [ebp - 0x1c], eax
je 0x4021a1
jmp 0x4020d4
cmp eax, edi
jbe 0x4020b9
mov cl, byte [edi]
mov byte [esi], cl
inc esi
inc edi
cmp edi, eax
jb 0x4020ac
mov dword [ebp - 0x1c], edi
mov cl, byte [esi - 1]
lea edi, [esi - 1]
cmp cl, 0x20
jbe 0x4020c9
cmp cl, 0x22
jne 0x4020cd
mov esi, edi
jmp 0x4020b9
mov byte [esi], bl
inc esi
cmp byte [eax], bl
je 0x4020d9
add eax, 3
jmp 0x402076
mov eax, dword [ebp - 0xc]
mov byte [esi], bl
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 2
mov word [ebp - 0x4c], 0x200
mov dword [ebp - 0x4a], 1
mov dword [ebp - 0x46], ebx
mov dword [ebp - 0x42], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x4021a1
mov edx, dword [ebp - 0x10]
mov dword [0x404114], 0x202c4e2f
mov dword [0x404118], 0x4c45532f
mov dword [0x40411c], 0x2c544345
mov al, byte [edx]
mov ecx, 0x404120
cmp al, bl
je 0x40214f
sub edx, ecx
mov byte [ecx], al
mov al, byte [edx + ecx + 1]
inc ecx
cmp al, bl
jne 0x402144
mov eax, dword [ebp - 0xc]
xor esi, esi
mov edi, eax
mov al, byte [eax]
cmp al, bl
je 0x4021a1
cmp al, 0x5c
jne 0x402164
mov esi, edi
jmp 0x402179
cmp al, 0x81
jb 0x402179
cmp al, 0x9f
jbe 0x402174
cmp al, 0xe0
jb 0x402179
cmp al, 0xfc
ja 0x402179
inc edi
cmp byte [edi], bl
je 0x402181
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40215c
cmp esi, ebx
je 0x4021a1
mov al, byte [esi]
cmp al, bl
je 0x402191
mov byte [ecx], al
inc ecx
inc esi
jmp 0x402185
mov byte [ecx], bl
mov dword [ebp - 0x10], str.explorer.exe
mov dword [ebp - 4], 0x404114
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x58], 0x2000700
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4021ec
cmp dword [ebp - 0x14], ebx
je 0x4021ec
push 0xfe
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xc], ebx
je 0x4021fa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jle 0x401e8f
cmp dword [ebp - 0x18], ebx
je 0x402215
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x20], ebx
je 0x4022ec
movzx eax, word [0x4040f0]
test byte [0x4040f2], 0x10
mov dword [ebp - 8], eax
je 0x402256
push 0x400
lea ecx, [ebp - 0x5c]
push 0x3c
push ecx
push eax
lea esi, [ebp - 0x5c]
push dword [0x4040f4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
cmp eax, ebx
je 0x4022ec
jmp 0x40227e
add eax, 0xffffff82
cmp eax, ebx
jl 0x4022ec
mov ecx, dword [0x40427c]
lea eax, [eax + eax*4]
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x4022ec
cmp byte [esi], bl
je 0x4022ec
mov eax, esi
inc eax
cmp byte [eax], bl
jne 0x402277
sub eax, esi
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x4022ec
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
cmp cl, bl
je 0x4022a1
mov byte [eax], cl
inc eax
inc esi
jmp 0x402295
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4022e5
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4022c9
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4022dd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4022ec
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret