Function at 0x401946
Capabilities:
Create process on windows
Get common file path
Get disk information
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x7f
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov dword [ebp + 0xc], eax
cmp eax, esi
jle 0x401f05
xor edi, edi
cmp dword [ebx + 2], 0x5c003a
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 8], esi
pop eax
jne 0x4019d3
mov ecx, dword [section..data]
and ecx, eax
cmp dword [ebp + 0xc], 3
mov dword [ebp - 0x4c], ecx
jne 0x40199a
mov dword [ebp - 0x4c], eax
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
shr eax, 0xc
xor eax, dword [ebp - 0x4c]
je 0x4019c2
mov eax, dword [ebx]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 3
jg 0x401b33
mov edi, ebx
jmp 0x401a6a
mov eax, dword [ebx]
cmp eax, 0x5c005c
je 0x401b33
cmp eax, 0x30a430de
je 0x4019f5
cmp eax, 0x306e3053
je 0x4019f5
cmp eax, 0x79004d
jne 0x4019fc
add ebx, 4
sub dword [ebp + 0xc], 2
mov ax, word [ebx]
cmp ax, 0x20
je 0x401a0b
cmp ax, 0x3000
jne 0x401a10
inc ebx
inc ebx
dec dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, 0x30f330b3
cmp eax, ecx
jne 0x401a74
cmp dword [ebx + 4], 0x30ed30c8
je 0x401a4a
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, si
je 0x401a6a
mov edx, dword [ebp - 0xc]
inc edx
inc edx
cmp ax, 0x5c
je 0x401a44
mov ax, word [edx]
cmp ax, si
jne 0x401a32
jmp 0x401a6a
mov eax, dword [edx]
cmp eax, ecx
jne 0x401a51
mov edi, str.::21EC2020_3AEA_1069_A2DD_08002B30309D
jmp 0x401a6a
cmp eax, 0x307f3054
jne 0x401a5f
mov edi, str.::645FF040_5081_101B_9F08_00AA002F954E
jmp 0x401a6a
cmp eax, 0x30c330cd
je 0x401b76
mov ebx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
jmp 0x401b88
cmp eax, 0x307f3054
jne 0x401a85
mov ebx, str.::645FF040_5081_101B_9F08_00AA002F954E
jmp 0x401b88
cmp eax, 0x30ad30c9
jne 0x401a96
mov ebx, str.::450D8FBA_AD25_11D0_98A8_0800361B1103
jmp 0x401b88
cmp eax, 0x30c330cd
je 0x401b76
mov ecx, eax
and ecx, 0xffdfffdf
cmp ecx, 0x430050
je 0x401a6a
cmp eax, 0x30b930c7
jne 0x401abe
cmp dword [ebp + 0xc], 0xc
je 0x401acb
cmp eax, 0x650044
jne 0x401ad4
cmp dword [ebp + 0xc], 7
jne 0x401ad4
mov dword [ebp - 4], 0x10
jmp 0x401b1c
cmp eax, 0x30af30d4
jne 0x401aea
cmp dword [ebp + 0xc], 4
jne 0x401aea
mov dword [ebp - 4], 0x27
jmp 0x401b1c
cmp eax, 0x30e530df
jne 0x401b00
cmp dword [ebp + 0xc], 6
jne 0x401b00
mov dword [ebp - 4], 0xd
jmp 0x401b1c
cmp eax, 0x30c730d3
jne 0x401f05
cmp dword [ebp + 0xc], 3
jne 0x401f05
mov dword [ebp - 4], 0xe
mov ebx, dword [ebp - 0xc]
push esi
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401f05
mov ecx, dword [ebp - 0xc]
mov ax, word [ecx]
cmp ax, si
je 0x401f05
cmp ax, 0x5c
jne 0x401b4d
inc dword [ebp - 8]
mov edi, ecx
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, si
jne 0x401b42
cmp dword [ebp - 8], esi
je 0x401f05
cmp dword [ebp - 8], 3
jg 0x401b7d
cmp word [ebx], 0x5c
jne 0x401b7d
mov edi, dword [ebp - 8]
dec edi
neg edi
sbb edi, edi
and edi, ebx
mov ebx, str.::208D2C60_3AEA_1069_A2D7_08002B30309D
jmp 0x401b88
inc edi
inc edi
movzx eax, word [edi]
mov dword [ebp - 8], eax
mov word [edi], si
cmp dword [ebp + 8], esi
jne 0x401bca
mov eax, dword [ebp + 0x10]
push 0x51
mov dword [0x4037c8], eax
push esi
movsx eax, word [ebp + 0x16]
push esi
push eax
movsx eax, word [ebp + 0x14]
push eax
push 0xffffffffffffffff
push dword [0x40300c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push 1
push 0x86
push dword [0x40300c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401f05
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x401f05
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x401efc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push esi
push edx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push edx
push ebx
push esi
push esi
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x10], esi
je 0x401ef3
push esi
push esi
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp edi, esi
je 0x401c79
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 0x402128
mov ecx, dword [eax]
push esi
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x401efc
cmp word [edi], si
jne 0x401c62
mov cx, word [ebp - 8]
mov word [edi], cx
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push esi
push edx
lea edx, [ebp - 0x4c]
push edx
push edi
push esi
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
jmp 0x401c85
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
je 0x401ef6
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push esi
lea edx, [ebp - 0x1c]
push 0x402118
push edx
push 1
push esi
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x401ee2
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x402108
push eax
call dword [ecx]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], esi
je 0x401ee2
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push esi
push 0x7fff
push 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push esi
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x401ed0
mov eax, dword [ebp - 0x14]
push 0x10
mov dword [0x403560], eax
pop eax
cmp edi, esi
mov dword [ebp + 0xc], eax
je 0x401dae
cmp dword [ebp - 4], 4
jne 0x401d46
cmp word [edi + 2], 0x3a
je 0x401d1b
mov edi, ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x17c
push eax
push 0x4033e4
push 1
push edi
call sub.MPR.dll_WNetGetUniversalNameW
test eax, eax
jne 0x401dae
mov ebx, dword [0x4033e4]
mov dword [ebp + 0xc], 0x1b
jmp 0x401d95
cmp dword [ebp - 4], esi
jle 0x401dae
cmp dword [ebp - 4], 6
jg 0x401dae
cmp word [edi + 2], 0x3a
mov dword [ebp + 0xc], 0x2a
je 0x401da7
cmp dword [ebp - 8], 3
jne 0x401d78
cmp word [edi], 0x5c
jne 0x401d6f
mov ebx, edi
jmp 0x401d78
cmp dword [ebp - 8], 3
jne 0x401d78
mov word [edi], si
sub ebx, eax
mov dword [ebx], 0x53002f
mov dword [ebx + 4], 0x4c0045
mov dword [ebx + 8], 0x430045
mov dword [ebx + 0xc], 0x2c0054
sub ebx, 8
mov dword [ebx], 0x4e002f
mov dword [ebx + 4], 0x20002c
jmp 0x401db0
mov ebx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
jmp 0x401db0
xor ebx, ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ecx + 0x403020]
push ecx
push eax
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ModifyMenuA]
push esi
push 0x8000
push 0xc00
push 1
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InsertMenuA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_mouse_event]
push esi
push 2
push esi
push esi
call dword [sym.imp.USER32.dll_keybd_event]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
call edi
movsx eax, word [ebp + 0x16]
push esi
push dword [ebp + 8]
push esi
push eax
movsx eax, word [ebp + 0x14]
push eax
push 0x102
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x401ebd
cmp eax, dword [ebp - 4]
je 0x401e9a
mov ebx, dword [ebp + 0x10]
push ebx
call edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push esi
push 0x86
push ebx
call edi
mov eax, dword [ebp + 0x14]
add eax, 0xb0000
push eax
push ebx
push 0x800d
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], 0x24
movzx eax, ax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
jmp 0x401ed0
cmp ebx, esi
jne 0x401ea7
push esi
push esi
push 0x10
push dword [ebp + 0x10]
jmp 0x401eca
push 1
push esi
push ebx
push str.explorer
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x401ed0
push 4
push dword [ebp + 0x10]
push 0x8013
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
jmp 0x401ef6
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret