Function at 0x431f60
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 [0xfca838]
xor eax, ebp
mov dword [ebp - 0x94], eax
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x431f85
xor eax, eax
jmp 0x4326a4
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 0x431fa3
xor eax, eax
jmp 0x4326a4
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 0x431fca
xor eax, eax
jmp 0x4326a4
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x431fe7
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x431fee
xor eax, eax
jmp 0x4326a4
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp ecx, 1
jge 0x432001
xor eax, eax
jmp 0x4326a4
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 0x432056
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 0x43212a
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 0x4320b5
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 0x432101
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 0xf833e4
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 0x432125
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x38], ecx
jmp 0x43204a
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 0x432154
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 0x432181
xor eax, eax
jmp 0x4326a4
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052d330
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 0x4321be
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 0x432225
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.0052d330
add esp, 0xc
jmp 0x4321b2
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 0x432276
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4326a4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x432293
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
jmp 0x4322ab
push 0x8000
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4326a4
mov edx, 1
test edx, edx
je 0x432564
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4322cf
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x4322cf
jmp 0x432564
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 0x4322f5
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 0x432308
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 0x43231b
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 0x432420
mov ecx, 6
mov esi, 0xf833c8
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.00529cc0
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 0x43237a
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
jmp 0x43235c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
je 0x4323d7
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x1a0]
sub eax, ecx
cmp eax, 0x82
jl 0x4323a7
jmp 0x4323d7
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 0x432383
mov ecx, dword [ebp - 0x90]
mov byte [ecx], 0
push 0xf83388
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0xf83380
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 0x4326a4
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x432438
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
jmp 0x432447
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 0x432556
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 0x4324d8
cmp dword [ebp + 0x14], 0
je 0x4324b5
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 0x4324d6
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 0x432512
cmp dword [ebp + 0x14], 0
je 0x4324f9
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 0x432512
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 0x432533
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4326a4
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 0x432456
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x4322ab
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x43267e
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 0x43267e
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 0x43266d
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx]
and edx, 0xf000
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x3000
jne 0x43263e
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 0x43263c
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1b0]
jae 0x43263c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x432659
cmp dword [ebp - 0x50], 0
je 0x432659
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4326a4
mov eax, dword [ebp - 0x1b8]
add eax, 2
mov dword [ebp - 0x1b8], eax
jmp 0x4325b6
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
jmp 0x43259e
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 0x432696
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.00528b3b
mov esp, ebp
pop ebp
ret