Function at 0x442f80
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 0x4433b0
cmp word [edi], 0x5a4d
jne 0x443390
mov eax, dword [edi + 0x3c]
lea edx, [eax + 0xf8]
cmp dword [esp + 0xa4], edx
jb 0x4433b0
lea esi, [edi + eax]
cmp dword [esi], 0x4550
jne 0x443390
cmp word [esi + 4], 0x14c
jne 0x443390
mov ebp, dword [esi + 0x38]
test ebp, 1
jne 0x443390
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 0x44303d
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 0x443010
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 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 eax, dword [esi + 0x34]
mov dword [esp], eax
call dword [esp + 0xa8]
mov dword [esp + 0x38], eax
test eax, eax
je 0x4433c8
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 0x4437b8
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 0x443415
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 0x443246
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 0x443448
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x38]
test ecx, ecx
jle 0x443222
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 0x4434b8
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 0x4431ba
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 0x4436db
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x18], edx
mov esi, dword [eax + 0x84]
test esi, esi
je 0x4434c5
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 0x4434bf
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4434bf
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 0x4437a3
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 0x443810
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 0x443349
jmp 0x443438
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 0x44336a
mov eax, dword [esi + 4]
add esi, 4
add ebp, 4
test eax, eax
je 0x443438
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x28]
mov dword [esp + 8], ecx
test eax, eax
jns 0x443320
movzx eax, ax
mov dword [esp], edi
mov dword [esp + 4], eax
call edx
mov dword [ebp], eax
test eax, eax
jne 0x443338
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 0x443425
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 0x4433a0
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 0x4430a1
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4433a0
mov ebx, edi
mov dword [esp], 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov dword [esp], ebx
call fcn.00442ce0
jmp 0x4433a0
add dword [esp + 0x28], 0x14
jmp 0x443280
mov ecx, dword [ebp + 0x14]
add ecx, eax
cmp dword [esp + 0xa4], ecx
jb 0x443413
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 0x4434b8
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 0x443222
mov ebx, edi
jmp 0x443425
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 0x443510
test dl, 0x40
jne 0x443760
mov eax, edx
and eax, 0x80
je 0x443510
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 0x4437ee
lea eax, [esp + 0x48]
mov dword [esp + 0x24], ebx
mov ecx, 1
mov edx, ebp
mov dword [esp + 0x3c], eax
mov ebx, esi
jmp 0x4435bb
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
call fcn.00443be0
test eax, eax
je 0x44379a
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 0x443631
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 0x4435db
mov esi, dword [edi + 0x24]
test esi, 0x40
je 0x443620
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x20]
mov eax, dword [esp + 0x28]
cmp ebx, eax
je 0x4435f1
mov eax, dword [esp + 0x50]
add eax, edx
cmp ebx, eax
jae 0x443558
mov ebx, dword [esp + 0x54]
mov eax, dword [edi + 0x24]
or eax, ebx
test dword [edi + 0x24], 0x2000000
je 0x44360b
and ebx, 0x2000000
jne 0x443610
and eax, 0xfdffffff
sub ebp, edx
mov dword [esp + 0x54], eax
add ebp, esi
mov dword [esp + 0x50], ebp
jmp 0x4435a1
and esi, 0x80
je 0x4435db
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x24]
jmp 0x4435db
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x58], 1
call fcn.00443be0
test eax, eax
je 0x443425
mov edx, dword [ebx]
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x443693
mov edi, dword [ebx + 4]
mov esi, dword [edi + eax + 0xc]
test esi, esi
je 0x443693
mov eax, dword [esi]
test eax, eax
je 0x443693
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 0x443670
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x443754
mov edi, dword [esp + 0x38]
mov edx, dword [ebx + 0x14]
add eax, edi
test edx, edx
je 0x4437e6
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call eax
sub esp, 0xc
test eax, eax
je 0x4437fb
mov dword [ebx + 0x10], 1
jmp 0x4433a2
mov eax, dword [esp + 0x30]
xor edx, edx
mov edi, dword [eax + 0xa4]
test edi, edi
je 0x443258
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 0x44374a
lea esi, [esi]
mov edi, dword [esi + 4]
lea ebx, [edi - 8]
mov eax, ebx
shr eax, 1
je 0x44373c
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 0x443770
mov ecx, ebx
add eax, 1
shr ecx, 1
cmp eax, ecx
jb 0x443720
add esi, edi
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x443708
mov ebx, edx
mov edx, 1
jmp 0x443258
mov dword [ebx + 0x38], 0
jmp 0x4433a2
mov eax, dword [ecx + 0x20]
jmp 0x443510
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 0x443720
jmp 0x44373c
mov ebx, dword [esp + 0x24]
jmp 0x443425
mov dword [esp], 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443425
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 0x443401
mov dword [ebx + 0x38], eax
jmp 0x4433a2
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
jmp 0x443635
mov dword [esp], 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x443425
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 0x443425