Function at 0x432790
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 [0x703600]
xor eax, ebp
mov dword [ebp - 0x94], eax
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4327b5
xor eax, eax
jmp 0x432ed4
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 0x4327d3
xor eax, eax
jmp 0x432ed4
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
push pe_nt_image_headers32
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x4327fa
xor eax, eax
jmp 0x432ed4
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x432817
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x43281e
xor eax, eax
jmp 0x432ed4
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp ecx, 1
jge 0x432831
xor eax, eax
jmp 0x432ed4
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 0x432886
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 0x43295a
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 0x4328e5
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 0x432931
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 0x432955
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x38], ecx
jmp 0x43287a
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 0x432984
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 0x4329b1
xor eax, eax
jmp 0x432ed4
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00562eb0
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 0x4329ee
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 0x432a55
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.00562eb0
add esp, 0xc
jmp 0x4329e2
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 0x432aa6
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x432ed4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x432ac3
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
jmp 0x432adb
push 0x8000
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x432ed4
mov edx, 1
test edx, edx
je 0x432d94
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x432aff
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x432aff
jmp 0x432d94
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 0x432b25
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 0x432b38
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 0x432b4b
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 0x432c50
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.005608b0
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 0x432baa
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
jmp 0x432b8c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
je 0x432c07
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x1a0]
sub eax, ecx
cmp eax, 0x82
jl 0x432bd7
jmp 0x432c07
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 0x432bb3
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 0x432ed4
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x432c68
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
jmp 0x432c77
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 0x432d86
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 0x432d08
cmp dword [ebp + 0x14], 0
je 0x432ce5
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 0x432d06
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 0x432d42
cmp dword [ebp + 0x14], 0
je 0x432d29
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 0x432d42
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 0x432d63
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x432ed4
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 0x432c86
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x432adb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x432eae
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 0x432eae
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 0x432e9d
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx]
and edx, 0xf000
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x3000
jne 0x432e6e
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 0x432e6c
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1b0]
jae 0x432e6c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x432e89
cmp dword [ebp - 0x50], 0
je 0x432e89
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x432ed4
mov eax, dword [ebp - 0x1b8]
add eax, 2
mov dword [ebp - 0x1b8], eax
jmp 0x432de6
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
jmp 0x432dce
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 0x432ec6
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.0055f617
mov esp, ebp
pop ebp
ret