Function at 0x442f70
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
cmp dword [esp + 0xa4], 0x3f
mov edi, dword [esp + 0xa0]
jbe 0x4433a0
cmp word [edi], 0x5a4d
jne 0x443380
mov eax, dword [edi + 0x3c]
lea edx, [eax + 0xf8]
cmp dword [esp + 0xa4], edx
jb 0x4433a0
lea esi, [edi + eax]
cmp dword [esi], 0x4550
jne 0x443380
cmp word [esi + 4], 0x14c
jne 0x443380
mov ebp, dword [esi + 0x38]
test ebp, 1
jne 0x443380
movzx ebx, word [esi + 6]
movzx eax, word [esi + 0x14]
lea edx, [esi + eax + 0x18]
mov eax, ebx
mov dword [esp + 0x24], ebx
xor ebx, ebx
test ax, ax
je 0x44302d
mov dword [esp + 0x28], esi
xor ecx, ecx
mov dword [esp + 0xa0], edi
mov esi, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
lea edi, [ebp + eax]
add eax, esi
test esi, esi
cmove eax, edi
cmp ebx, eax
cmovb ebx, eax
add ecx, 1
add edx, 0x28
cmp dword [esp + 0x24], ecx
jne 0x443000
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xa0]
lea eax, [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [esi + 0x50]
sub esp, 4
mov ecx, dword [esp + 0x60]
lea eax, [ecx - 1]
neg ecx
add edx, eax
add ebx, eax
and edx, ecx
and ebx, ecx
cmp ebx, edx
jne 0x443380
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x34]
mov dword [esp], eax
call dword [esp + 0xa8]
mov dword [esp + 0x38], eax
test eax, eax
je 0x4433b8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], 0x40
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4437a8
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
movzx eax, word [esi + 0x16]
shr ax, 0xd
and eax, 1
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0xac]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0xb0]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0xb8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x54]
cmp dword [esp + 0xa4], eax
jb 0x443405
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], edx
mov dword [esp], ecx
mov dword [esp + 8], 0x1000
call dword [esp + 0xa8]
mov ebp, eax
mov eax, dword [esi + 0x54]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x38]
add ebp, dword [edi + 0x3c]
mov dword [ebx], ebp
movzx edx, word [ebp + 0x14]
mov dword [ebp + 0x34], ecx
mov eax, ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ecx
mov ecx, ebp
lea ebp, [ebp + edx + 0x18]
cmp word [ecx + 6], 0
je 0x443236
mov dword [esp + 0xa0], edi
xor eax, eax
mov edi, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x443438
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x38]
test ecx, ecx
jle 0x443212
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
add eax, ebx
mov dword [esp], eax
call dword [edi + 0x1c]
test eax, eax
je 0x4434a8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
add eax, ebx
mov dword [ebp + 8], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
add esi, 1
add ebp, 0x28
movzx ecx, word [eax + 6]
cmp esi, ecx
jl 0x4431aa
mov ebx, edi
mov edi, dword [edi + 4]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x34]
mov dword [esp + 0x24], edi
sub eax, dword [esi + 0x34]
mov edx, 1
mov dword [esp + 0x2c], eax
jne 0x4436cb
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x18], edx
mov esi, dword [eax + 0x84]
test esi, esi
je 0x4434b5
mov edi, dword [esp + 0x24]
add edi, dword [eax + 0x80]
mov dword [esp + 0x28], edi
lea esi, [esi]
nop
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
sub esp, 8
test eax, eax
jne 0x4434af
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4434af
mov edi, dword [esp + 0x24]
mov edx, dword [ebx + 0x34]
add eax, edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ebx + 0x24]
mov edi, eax
test eax, eax
je 0x443793
mov eax, dword [ebx + 0xc]
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x443800
mov edx, dword [ebx + 0xc]
mov dword [ebx + 8], eax
lea ecx, [edx + 1]
mov dword [ebx + 0xc], ecx
mov dword [eax + edx*4], edi
mov edx, dword [esp + 0x28]
mov esi, edx
mov eax, dword [edx]
mov edx, dword [esp + 0x24]
mov ebp, dword [esi + 0x10]
lea esi, [edx + eax]
add ebp, edx
test eax, eax
cmove esi, ebp
mov eax, dword [esi]
test eax, eax
jne 0x443339
jmp 0x443428
mov ecx, dword [esp + 0x24]
mov dword [esp], edi
lea eax, [ecx + eax + 2]
mov dword [esp + 4], eax
call edx
mov dword [ebp], eax
test eax, eax
je 0x44335a
mov eax, dword [esi + 4]
add esi, 4
add ebp, 4
test eax, eax
je 0x443428
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x28]
mov dword [esp + 8], ecx
test eax, eax
jns 0x443310
movzx eax, ax
mov dword [esp], edi
mov dword [esp + 4], eax
call edx
mov dword [ebp], eax
test eax, eax
jne 0x443328
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x2c]
mov dword [esp], 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443415
mov dword [esp], 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
xor ebx, ebx
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443390
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [esp + 0xa8]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x443091
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443390
mov ebx, edi
mov dword [esp], 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov dword [esp], ebx
call fcn.00442cd0
jmp 0x443390
add dword [esp + 0x28], 0x14
jmp 0x443270
mov ecx, dword [ebp + 0x14]
add ecx, eax
cmp dword [esp + 0xa4], ecx
jb 0x443403
mov ecx, dword [edi + 0x34]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [esp], eax
call dword [edi + 0x1c]
test eax, eax
je 0x4434a8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xa0]
add eax, dword [ebp + 0x14]
add ecx, ebx
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x24], ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x24]
mov dword [ebp + 8], ecx
jmp 0x443212
mov ebx, edi
jmp 0x443415
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov esi, dword [ebx + 0x3c]
movzx eax, word [ecx + 0x14]
lea edi, [ecx + eax + 0x18]
mov eax, esi
mov edx, dword [edi + 8]
neg eax
mov dword [esp + 0x48], edx
mov ebp, edx
and edx, eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0x24]
test eax, eax
jne 0x443500
test dl, 0x40
jne 0x443750
mov eax, edx
and eax, 0x80
je 0x443500
mov eax, dword [ecx + 0x24]
lea esi, [esi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
add edi, 0x28
mov dword [esp + 0x54], edx
movzx eax, word [eax + 6]
mov dword [esp + 0x58], 0
mov word [esp + 0x2c], ax
cmp ax, 1
jbe 0x4437de
lea eax, [esp + 0x48]
mov dword [esp + 0x24], ebx
mov ecx, 1
mov edx, ebp
mov dword [esp + 0x3c], eax
mov ebx, esi
jmp 0x4435ab
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
call fcn.00443bd0
test eax, eax
je 0x44378a
mov eax, dword [edi + 0x24]
mov dword [esp + 0x48], ebp
mov edx, ebp
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], esi
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
movzx eax, word [eax + 6]
mov word [esp + 0x2c], ax
movzx eax, word [esp + 0x2c]
add ecx, 1
add edi, 0x28
cmp ecx, eax
jge 0x443621
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x3c]
mov ebp, dword [edi + 8]
mov esi, dword [edi + 0x10]
neg ebx
and ebx, ebp
test esi, esi
jne 0x4435cb
mov esi, dword [edi + 0x24]
test esi, 0x40
je 0x443610
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x20]
mov eax, dword [esp + 0x28]
cmp ebx, eax
je 0x4435e1
mov eax, dword [esp + 0x50]
add eax, edx
cmp ebx, eax
jae 0x443548
mov ebx, dword [esp + 0x54]
mov eax, dword [edi + 0x24]
or eax, ebx
test dword [edi + 0x24], 0x2000000
je 0x4435fb
and ebx, 0x2000000
jne 0x443600
and eax, 0xfdffffff
sub ebp, edx
mov dword [esp + 0x54], eax
add ebp, esi
mov dword [esp + 0x50], ebp
jmp 0x443591
and esi, 0x80
je 0x4435cb
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x24]
jmp 0x4435cb
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x58], 1
call fcn.00443bd0
test eax, eax
je 0x443415
mov edx, dword [ebx]
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x443683
mov edi, dword [ebx + 4]
mov esi, dword [edi + eax + 0xc]
test esi, esi
je 0x443683
mov eax, dword [esi]
test eax, eax
je 0x443683
lea esi, [esi]
add esi, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call eax
mov eax, dword [esi]
sub esp, 0xc
test eax, eax
jne 0x443660
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x443744
mov edi, dword [esp + 0x38]
mov edx, dword [ebx + 0x14]
add eax, edi
test edx, edx
je 0x4437d6
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call eax
sub esp, 0xc
test eax, eax
je 0x4437eb
mov dword [ebx + 0x10], 1
jmp 0x443392
mov eax, dword [esp + 0x30]
xor edx, edx
mov edi, dword [eax + 0xa4]
test edi, edi
je 0x443248
mov esi, dword [esp + 0x24]
add esi, dword [eax + 0xa0]
mov edx, ebx
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
je 0x44373a
lea esi, [esi]
mov edi, dword [esi + 4]
lea ebx, [edi - 8]
mov eax, ebx
shr eax, 1
je 0x44372c
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [esi + eax*2 + 8]
mov ebp, ecx
shr bp, 0xc
cmp bp, 3
je 0x443760
mov ecx, ebx
add eax, 1
shr ecx, 1
cmp eax, ecx
jb 0x443710
add esi, edi
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4436f8
mov ebx, edx
mov edx, 1
jmp 0x443248
mov dword [ebx + 0x38], 0
jmp 0x443392
mov eax, dword [ecx + 0x20]
jmp 0x443500
mov edi, dword [esp + 0x28]
and ecx, 0xfff
mov ebx, dword [esp + 0x2c]
add eax, 1
add ecx, edi
mov edi, dword [esp + 0x24]
add dword [edi + ecx], ebx
mov edi, dword [esi + 4]
lea ebx, [edi - 8]
mov ecx, ebx
shr ecx, 1
cmp eax, ecx
jb 0x443710
jmp 0x44372c
mov ebx, dword [esp + 0x24]
jmp 0x443415
mov dword [esp], 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443415
mov eax, dword [esp + 0xbc]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [esp + 0xac]
jmp 0x4433f1
mov dword [ebx + 0x38], eax
jmp 0x443392
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
jmp 0x443625
mov dword [esp], 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443415
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x2c]
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ecx
jmp 0x443415