Function at 0x45474d
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0x2700
mov dword [ebp - 0xc], esi
je 0x45478c
cmp edi, 0xffffffff
je 0x45478c
lea eax, [ebp - 0x574]
lea ecx, [esi + 0xaac]
push eax
push edi
call fcn.00449fc4
cmp eax, 0xffffffff
jne 0x454793
xor eax, eax
jmp 0x454c16
and byte [ebp - 0x574], 0
push ebx
lea ecx, [esi + 0xaac]
push edi
call fcn.00449fd9
mov dword [ebp - 4], eax
mov ebx, 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, esi
call fcn.00454fa6
lea edi, [ebp - 0x574]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov ecx, edx
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
je 0x454819
cmp eax, 7
je 0x454819
cmp eax, 4
je 0x45480c
cmp eax, 9
je 0x45480c
lea edx, [ebp - 0x164]
mov edi, 0x40a0a0
jmp 0x454824
lea edx, [ebp - 0x164]
mov edi, 0x411220
jmp 0x454824
lea edx, [ebp - 0x164]
mov edi, 0x40e804
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [0x536190]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
mov esi, 0x400
push esi
push 0
push eax
mov dword [ebp - 8], eax
call edi
push esi
push 0
push dword [ebp - 8]
call edi
push esi
push 1
push dword [ebp - 8]
call edi
cmp dword [ebp + 8], 0x2700
je 0x454899
cmp dword [ebp + 8], 0xffffffff
jne 0x4548a9
push 0x401
push 1
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x40], 0x30
push eax
push 0x9b
push dword [0x536190]
call esi
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x470]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x470]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push dword [ebp - 8]
mov dword [ebp - 0x3c], 0x43
not ecx
dec ecx
mov dword [ebp - 0x30], 0x8070
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
push 0
push ecx
push 1
push eax
push dword [ebp - 8]
call fcn.00433910
mov al, byte [0x460a68]
add esp, 0x1c
mov byte [ebp - 0x268], al
xor eax, eax
push 0x40
lea edi, [ebp - 0x267]
pop ecx
cmp dword [ebp - 4], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0xc41
je 0x454956
cmp dword [ebp - 4], 4
je 0x454956
cmp dword [ebp - 4], 2
jne 0x45495b
mov eax, 0xc40
lea ecx, [ebp - 0x268]
push ebx
push ecx
push eax
push dword [0x536190]
call esi
lea eax, [ebp - 0x268]
lea edi, [ebp - 0x268]
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x3c], 0x40
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x40]
push eax
push 0
not ecx
push 0x80a7
dec ecx
push dword [ebp - 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
lea esi, [eax + 0xaac]
mov ecx, esi
call fcn.0045db53
mov edi, dword [ebp - 0xc]
push dword [ebp - 8]
lea ecx, [edi + 0x948]
call fcn.004337bf
push 0
push dword [edi + 0xab0]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
sub eax, 0x8021
je 0x454bd3
sub eax, 0x4f
je 0x454b57
sub eax, 0x37
je 0x454aae
sub eax, 0x16
jne 0x454c09
cmp dword [ebp - 4], 4
je 0x454a67
cmp dword [ebp - 4], 3
je 0x454a67
lea eax, [ebp - 0x164]
push eax
push 0x72
call fcn.004252ac
pop ecx
push eax
lea eax, [ebp - 0x36c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x36c]
push 0x21
push 0x40a37c
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x454a95
lea eax, [ebp - 0x164]
push 3
push eax
call fcn.00425d14
pop ecx
pop ecx
jmp 0x454a95
push 0x21
push 0x40a37c
push 0xbf
call fcn.004252ac
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x454a95
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.00454c1c
push dword [edi + 0xab0]
mov ecx, edi
push 0x3e9
jmp 0x454bcc
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x60], 0x20
push eax
mov dword [ebp - 0x5c], 1
call fcn.0045a30a
test eax, eax
pop ecx
je 0x454afe
cmp dword [ebp - 4], 8
jne 0x454ae2
push 2
pop edi
jmp 0x454af0
xor eax, eax
cmp dword [ebp - 4], 7
setne al
add eax, 3
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.0045a2a4
jmp 0x454b26
cmp dword [ebp - 4], 2
jne 0x454b09
push 8
pop edi
jmp 0x454b1a
xor eax, eax
cmp dword [ebp - 4], 3
setne al
dec eax
and al, 0xfe
add eax, 9
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.0045a25d
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
call fcn.00449faf
push 0
push 0
push 3
mov ecx, 0x498a78
call fcn.0041cacd
mov ecx, 0x49a108
call fcn.00455470
jmp 0x454c09
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.0044906a
pop ecx
lea eax, [ebp - 0x36c]
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
push 0x9c
call fcn.004252ac
pop ecx
push eax
push dword [edi + 4]
call fcn.0042745a
add esp, 0x10
test eax, eax
je 0x454c09
lea edi, [ebp - 0x36c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4767dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00454c1c
push dword [esi + 0xab0]
mov ecx, esi
push 0x3e9
call fcn.00455006
jmp 0x454c09
cmp dword [ebp - 4], 4
je 0x454bdf
cmp dword [ebp - 4], 3
jne 0x454bee
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, edi
call fcn.00454fa6
push 0xa
push 0
lea eax, [ebp - 0x164]
push 0
push eax
push 0x40a7e0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.00433880
pop ecx
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 0xc