Function at 0x42f330
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x6db3f0]
xor eax, ebp
mov dword [ebp - 0x94], eax
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x42f355
xor eax, eax
jmp 0x42fa74
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
push 0x40
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x42f373
xor eax, eax
jmp 0x42fa74
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
push 0xf8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x42f39a
xor eax, eax
jmp 0x42fa74
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x42f3b7
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x42f3be
xor eax, eax
jmp 0x42fa74
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp ecx, 1
jge 0x42f3d1
xor eax, eax
jmp 0x42fa74
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x84], edx
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 6]
imul edx, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov word [ebp - 0x18], cx
jmp 0x42f426
mov dx, word [ebp - 0x18]
add dx, 1
mov word [ebp - 0x18], dx
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 6]
cmp eax, edx
jae 0x42f4fa
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x18]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x84]
add eax, dword [edx + ecx + 0x10]
cmp dword [ebp - 0x10], eax
jae 0x42f485
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x18]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x84]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x18]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x84]
add eax, dword [edx + ecx + 8]
cmp dword [ebp - 0x10], eax
jae 0x42f4d1
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x18]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x84]
add eax, dword [edx + ecx + 8]
mov dword [ebp - 0x10], eax
push str..rsrc
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x28
add eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x42f4f5
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x38], ecx
jmp 0x42f41a
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x74]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x74]
test edx, edx
je 0x42f524
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x74]
mov dword [ebp - 0x54], ecx
push 0x40
push 0x1000
mov edx, dword [ebp - 0x54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x42f551
xor eax, eax
jmp 0x42fa74
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00545110
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x18], ax
jmp 0x42f58e
mov cx, word [ebp - 0x18]
add cx, 1
mov word [ebp - 0x18], cx
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp edx, ecx
jge 0x42f5f5
movzx edx, word [ebp - 0x18]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x24], ecx
movzx edx, word [ebp - 0x18]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x44], ecx
movzx edx, word [ebp - 0x18]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00545110
add esp, 0xc
jmp 0x42f582
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xf8
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x42f646
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x42fa74
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x42f663
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
jmp 0x42f67b
push 0x8000
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x42fa74
mov edx, 1
test edx, edx
je 0x42f934
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x42f69f
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x42f69f
jmp 0x42f934
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0x10], 0
je 0x42f6c5
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42f6d8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42f6eb
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42f7f0
mov ecx, 6
mov esi, str.Can_not_find_required_DLL
lea edi, [ebp - 0x1a0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0xe9
push 0
lea ecx, [ebp - 0x185]
push ecx
call fcn.00542b10
add esp, 0xc
lea edx, [ebp - 0x1a0]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42f74a
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
jmp 0x42f72c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
je 0x42f7a7
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x1a0]
sub eax, ecx
cmp eax, 0x82
jl 0x42f777
jmp 0x42f7a7
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x1a4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
jmp 0x42f753
mov ecx, dword [ebp - 0x90]
mov byte [ecx], 0
push str.._If_this_is_a_MFC_DLL__then_you_need_to_create_a_MFC_project.
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push str.Error
lea eax, [ebp - 0x1a0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x42fa74
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x42f808
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
jmp 0x42f817
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x80]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x8c]
cmp dword [eax], 0
je 0x42f926
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x80]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1a8], VariantInit
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
and ecx, dword [ebp - 0x1a8]
je 0x42f8a8
cmp dword [ebp + 0x14], 0
je 0x42f885
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [ebp + 0x14]
add esp, 8
mov edx, dword [ebp - 0x88]
mov dword [edx], eax
jmp 0x42f8a6
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
jmp 0x42f8e2
cmp dword [ebp + 0x14], 0
je 0x42f8c9
mov edx, dword [ebp - 0x34]
add edx, 2
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
jmp 0x42f8e2
mov edx, dword [ebp - 0x34]
add edx, 2
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
cmp dword [ebp - 0x88], 0
jne 0x42f903
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x42fa74
mov eax, dword [ebp - 0x88]
add eax, 4
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 4
mov dword [ebp - 0x8c], ecx
jmp 0x42f826
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x42f67b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x42fa4e
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1b4]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x80]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x42fa4e
mov ecx, dword [ebp - 0x3c]
add ecx, 8
mov dword [ebp - 0x1b8], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
add eax, dword [edx + 4]
cmp dword [ebp - 0x1b8], eax
jae 0x42fa3d
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx]
and edx, 0xf000
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x3000
jne 0x42fa0e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
add ecx, dword [eax]
mov edx, dword [ebp - 0x1b8]
movzx eax, word [edx]
and eax, 0xfff
add ecx, eax
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
add edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x1ac], edx
mov ecx, dword [ebp - 0x1ac]
cmp ecx, dword [ebp - 0x1b4]
jb 0x42fa0c
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1b0]
jae 0x42fa0c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x42fa29
cmp dword [ebp - 0x50], 0
je 0x42fa29
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x42fa74
mov eax, dword [ebp - 0x1b8]
add eax, 2
mov dword [ebp - 0x1b8], eax
jmp 0x42f986
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
jmp 0x42f96e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 0xc], 0
jne 0x42fa66
mov edx, dword [ebp - 0x28]
mov dword [ebp + 0xc], edx
push 0
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 0x94]
xor ecx, ebp
call fcn.00541930
mov esp, ebp
pop ebp
ret