Function at 0x431eb0
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 [0xfc6800]
xor eax, ebp
mov dword [ebp - 0x94], eax
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x431ed5
xor eax, eax
jmp 0x4325f4
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 0x431ef3
xor eax, eax
jmp 0x4325f4
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 0x431f1a
xor eax, eax
jmp 0x4325f4
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x431f37
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x431f3e
xor eax, eax
jmp 0x4325f4
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp ecx, 1
jge 0x431f51
xor eax, eax
jmp 0x4325f4
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 0x431fa6
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 0x43207a
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 0x432005
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 0x432051
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 0xf80374
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 0x432075
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x38], ecx
jmp 0x431f9a
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 0x4320a4
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 0x4320d1
xor eax, eax
jmp 0x4325f4
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.005297d0
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 0x43210e
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 0x432175
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.005297d0
add esp, 0xc
jmp 0x432102
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 0x4321c6
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4325f4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4321e3
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
jmp 0x4321fb
push 0x8000
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4325f4
mov edx, 1
test edx, edx
je 0x4324b4
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x43221f
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x43221f
jmp 0x4324b4
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 0x432245
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 0x432258
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 0x43226b
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 0x432370
mov ecx, 6
mov esi, 0xf80358
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.00527110
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 0x4322ca
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
jmp 0x4322ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
je 0x432327
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x1a0]
sub eax, ecx
cmp eax, 0x82
jl 0x4322f7
jmp 0x432327
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 0x4322d3
mov ecx, dword [ebp - 0x90]
mov byte [ecx], 0
push 0xf80318
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0xf80310
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 0x4325f4
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x432388
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
jmp 0x432397
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 0x4324a6
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 0x432428
cmp dword [ebp + 0x14], 0
je 0x432405
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 0x432426
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 0x432462
cmp dword [ebp + 0x14], 0
je 0x432449
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 0x432462
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 0x432483
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4325f4
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 0x4323a6
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x4321fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x4325ce
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 0x4325ce
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 0x4325bd
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx]
and edx, 0xf000
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x3000
jne 0x43258e
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 0x43258c
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1b0]
jae 0x43258c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x4325a9
cmp dword [ebp - 0x50], 0
je 0x4325a9
push 0x8000
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4325f4
mov eax, dword [ebp - 0x1b8]
add eax, 2
mov dword [ebp - 0x1b8], eax
jmp 0x432506
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
jmp 0x4324ee
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 0x4325e6
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.00525f29
mov esp, ebp
pop ebp
ret