Function at 0x403fbc
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, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x7f
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov dword [ebp + 0xc], eax
cmp eax, esi
jle 0x404560
xor ebx, ebx
cmp dword [edi + 2], 0x5c003a
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], esi
jne 0x40404b
mov ecx, dword [0x406c98]
mov eax, 0x200
and ecx, eax
cmp dword [ebp + 0xc], 3
mov dword [ebp - 0x50], ecx
jne 0x404012
mov dword [ebp - 0x50], eax
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
shr eax, 6
xor eax, dword [ebp - 0x50]
je 0x40403a
mov eax, dword [edi]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 3
jg 0x4041ab
mov ebx, edi
jmp 0x4040e2
mov eax, dword [edi]
cmp eax, 0x5c005c
je 0x4041ab
cmp eax, 0x30a430de
je 0x40406d
cmp eax, 0x306e3053
je 0x40406d
cmp eax, 0x79004d
jne 0x404074
add edi, 4
sub dword [ebp + 0xc], 2
mov ax, word [edi]
cmp ax, 0x20
je 0x404083
cmp ax, 0x3000
jne 0x404088
inc edi
inc edi
dec dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, 0x30f330b3
cmp eax, ecx
jne 0x4040ec
cmp dword [edi + 4], 0x30ed30c8
je 0x4040c2
mov eax, dword [ebp - 8]
mov ax, word [eax]
cmp ax, si
je 0x4040e2
mov edx, dword [ebp - 8]
inc edx
inc edx
cmp ax, 0x5c
je 0x4040bc
mov ax, word [edx]
cmp ax, si
jne 0x4040aa
jmp 0x4040e2
mov eax, dword [edx]
cmp eax, ecx
jne 0x4040c9
mov ebx, str.::21EC2020_3AEA_1069_A2DD_08002B30309D
jmp 0x4040e2
cmp eax, 0x307f3054
jne 0x4040d7
mov ebx, str.::645FF040_5081_101B_9F08_00AA002F954E
jmp 0x4040e2
cmp eax, 0x30c330cd
je 0x4041ee
mov edi, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
jmp 0x404200
cmp eax, 0x307f3054
jne 0x4040fd
mov edi, str.::645FF040_5081_101B_9F08_00AA002F954E
jmp 0x404200
cmp eax, 0x30ad30c9
jne 0x40410e
mov edi, str.::450D8FBA_AD25_11D0_98A8_0800361B1103
jmp 0x404200
cmp eax, 0x30c330cd
je 0x4041ee
mov ecx, eax
and ecx, 0xffdfffdf
cmp ecx, 0x430050
je 0x4040e2
cmp eax, 0x30b930c7
jne 0x404136
cmp dword [ebp + 0xc], 0xc
je 0x404143
cmp eax, 0x650044
jne 0x40414c
cmp dword [ebp + 0xc], 7
jne 0x40414c
mov dword [ebp - 4], 0x10
jmp 0x404194
cmp eax, 0x30af30d4
jne 0x404162
cmp dword [ebp + 0xc], 4
jne 0x404162
mov dword [ebp - 4], 0x27
jmp 0x404194
cmp eax, 0x30e530df
jne 0x404178
cmp dword [ebp + 0xc], 6
jne 0x404178
mov dword [ebp - 4], 0xd
jmp 0x404194
cmp eax, 0x30c730d3
jne 0x404560
cmp dword [ebp + 0xc], 3
jne 0x404560
mov dword [ebp - 4], 0xe
mov edi, dword [ebp - 8]
push esi
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404560
mov ecx, dword [ebp - 8]
mov ax, word [ecx]
cmp ax, si
je 0x404560
cmp ax, 0x5c
jne 0x4041c5
inc dword [ebp - 0xc]
mov ebx, ecx
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, si
jne 0x4041ba
cmp dword [ebp - 0xc], esi
je 0x404560
cmp dword [ebp - 0xc], 3
jg 0x4041f5
cmp word [edi], 0x5c
jne 0x4041f5
mov ebx, dword [ebp - 0xc]
dec ebx
neg ebx
sbb ebx, ebx
and ebx, edi
mov edi, str.::208D2C60_3AEA_1069_A2D7_08002B30309D
jmp 0x404200
inc ebx
inc ebx
movzx eax, word [ebx]
mov dword [ebp - 0xc], eax
mov word [ebx], si
cmp dword [0x406cbc], 1
ja 0x404221
mov eax, dword [ebp + 0x10]
push 0x78
push 0xa
mov dword [0x406cbc], eax
call fcn.00404c25
pop ecx
pop ecx
jmp 0x404560
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x404560
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x404557
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push esi
push edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push edx
push edi
push esi
push esi
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x10], esi
je 0x40454e
push esi
push esi
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp ebx, esi
je 0x4042d0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 0x405220
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 - 0x28]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x404557
cmp word [ebx], si
jne 0x4042b9
mov cx, word [ebp - 0xc]
mov word [ebx], cx
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push esi
push edx
lea edx, [ebp - 0x50]
push edx
push ebx
push esi
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
jmp 0x4042dc
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 0x404551
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push esi
lea edx, [ebp - 0x1c]
push 0x405210
push edx
push 1
push esi
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x40453d
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x405200
push eax
call dword [ecx]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], esi
je 0x40453d
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push esi
push 0x7fff
push 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push esi
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40452b
mov eax, dword [ebp - 0x14]
cmp ebx, esi
mov dword [0x4063f0], eax
mov dword [ebp + 0xc], esi
je 0x404408
cmp dword [ebp - 4], 4
jne 0x40439a
cmp word [ebx + 2], 0x3a
jne 0x40436f
mov edi, ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x17c
push eax
push 0x406514
push 1
push edi
call sub.MPR.dll_WNetGetUniversalNameW
test eax, eax
jne 0x404408
mov edi, dword [0x406514]
mov dword [ebp + 0xc], 0xb
jmp 0x4043ea
cmp dword [ebp - 4], esi
jle 0x404408
cmp dword [ebp - 4], 6
jg 0x404408
cmp word [ebx + 2], 0x3a
mov dword [ebp + 0xc], 0x1a
je 0x4043ff
cmp dword [ebp - 0xc], 3
jne 0x4043cc
cmp word [ebx], 0x5c
jne 0x4043c3
mov edi, ebx
jmp 0x4043cc
cmp dword [ebp - 0xc], 3
jne 0x4043cc
mov word [ebx], si
sub edi, 0x10
mov dword [edi], 0x53002f
mov dword [edi + 4], 0x4c0045
mov dword [edi + 8], 0x430045
mov dword [edi + 0xc], 0x2c0054
sub edi, 8
mov dword [ebp - 8], edi
mov dword [edi], 0x4e002f
mov dword [edi + 4], 0x20002c
jmp 0x40440b
mov dword [ebp - 8], str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
jmp 0x40440b
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x24]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ecx + 0x40613c]
push ecx
push eax
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuA]
push esi
push 0x8000
push 0xc00
push 1
push ebx
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 ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ebx, eax
cmp ebx, esi
je 0x404518
cmp ebx, dword [ebp - 4]
je 0x4044f2
push dword [ebp + 0x10]
call edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push esi
push 0x86
push dword [ebp + 0x10]
call edi
mov eax, dword [ebp + 0x14]
add eax, 0xb0000
push eax
push dword [ebp + 0x10]
push 0x800c
push dword [ebp + 8]
call edi
mov eax, dword [ebp + 0x10]
dec ebx
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x50]
movzx eax, bx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0x24
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
jmp 0x40452b
cmp dword [ebp - 8], esi
jne 0x404500
push esi
push esi
push 0x10
push dword [ebp + 0x10]
jmp 0x404525
push 1
push esi
push dword [ebp - 8]
push str.explorer
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40452b
push 4
push dword [ebp + 0x10]
push 0x800d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x24]
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 - 0x28]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
jmp 0x404551
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret