Function at 0x30673c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
jne 0x30673db
mov dword [ebp + 8], 0x301a4dc
push dword [ebp + 0xc]
call sym.dbghelp.dll_ImageNtHeader
mov esi, eax
test esi, esi
jne 0x30673f3
mov eax, 0xd000007b
jmp 0x30677aa
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0x18]
cmp eax, 0x10b
je 0x3067496
cmp eax, 0x20b
jne 0x3067514
mov eax, dword [esi + 0x84]
mov ebx, dword [esi + 0x54]
cmp eax, 6
jbe 0x3067439
lea ecx, [esi + 0xb8]
mov dword [ebp - 0x28], ecx
lea edi, [esi + 0x30]
mov ecx, dword [edi]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x2c], ecx
cmp eax, 5
jbe 0x306745b
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x34], ecx
cmp eax, 0xc
jbe 0x3067469
lea eax, [esi + 0xe8]
mov dword [ebp - 0x10], eax
test byte [ebp + 0x30], 4
je 0x3067514
lea eax, [ebp - 0x44]
push eax
push 8
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x30674f1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x3067517
cmp dword [esi + 0x74], 6
mov ebx, dword [esi + 0x54]
jbe 0x30674a8
lea eax, [esi + 0xa8]
mov dword [ebp - 0x28], eax
cmp dword [esi + 0x74], 5
lea edi, [esi + 0x34]
mov eax, dword [edi]
cdq
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], eax
jbe 0x30674c9
lea ecx, [esi + 0xa0]
mov dword [ebp - 0x34], ecx
cmp dword [esi + 0x74], 0xc
jbe 0x30674d8
lea eax, [esi + 0xd8]
mov dword [ebp - 0x10], eax
test byte [ebp + 0x30], 4
je 0x3067514
lea eax, [ebp - 0x44]
push eax
push 8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x306750d
mov eax, dword [ebp - 8]
push 0x301e9c0
push dword [eax + 4]
call fcn.03067a26
pop ecx
pop ecx
call fcn.030679e0
jmp 0x30677aa
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
jmp 0x3067517
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x2c]
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push 0
push ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push 0
push dword [ebp + 0x1c]
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.030672f2
test eax, eax
jne 0x30677aa
movzx eax, word [esi + 0x14]
xor ecx, ecx
and dword [ebp - 0x1c], 0
add eax, 0x18
add eax, esi
mov dword [ebp - 0x50], eax
cmp cx, word [esi + 6]
jae 0x30676e7
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
mov dword [ebp - 0x14], ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc], edx
add eax, 0x24
mov dword [ebp - 4], eax
cmp dword [edi], 0
mov ebx, dword [ebp - 8]
jne 0x3067595
add eax, 0x28
add edx, 0x28
add edi, 0x28
mov dword [ebp - 4], eax
add ecx, 0x28
jmp 0x30676c8
mov ebx, dword [ecx]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [edi]
mov dword [ebp - 0x40], ebx
mov ebx, dword [edx]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x30], ebx
mov ebx, dword [eax]
and ebx, 0x80000000
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 8]
je 0x30675ff
test dword [eax], 0x40000000
je 0x30675ff
test byte [eax], 0xc0
je 0x30675ff
test byte [ebp + 0x30], 1
jne 0x30675ff
cmp dword [ebp - 0x10], 0
je 0x3067581
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
cmp edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
jb 0x3067581
mov eax, dword [ecx]
add eax, dword [edi]
cmp dword [ebp - 0x18], eax
jae 0x306764e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ecx]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x48], 0
je 0x3067624
test dword [eax], 0x40000000
je 0x3067624
test byte [eax], 0xc0
je 0x3067624
test dword [eax], 0x10000000
je 0x3067624
test byte [ebp + 0x30], 2
jne 0x3067581
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
test eax, eax
je 0x306765e
mov ecx, dword [eax]
cmp ecx, edx
jb 0x306765e
mov eax, dword [edi]
add eax, edx
cmp ecx, eax
jae 0x306765e
cmp byte [ebp + 0x1c], 0
je 0x3067656
mov eax, dword [ebp - 0x4c]
sub eax, edx
add eax, ecx
add eax, dword [ebp + 0xc]
jmp 0x306765b
mov eax, dword [ebp - 4]
jmp 0x3067581
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
cmp edx, ecx
jae 0x306766d
mov eax, dword [edi]
add eax, edx
cmp eax, ecx
jbe 0x3067683
push dword [ebp - 0x1c]
push dword [ebp + 8]
push 0x301ea10
push dword [ebx + 4]
call fcn.03067a00
add esp, 0x10
push dword [ebp + 0x2c]
mov ecx, ebx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x40]
push dword [ebp - 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.030672f2
test eax, eax
jne 0x30677aa
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
push 0x28
pop eax
add dword [ebp - 4], eax
add edx, eax
add edi, eax
add ecx, eax
movzx eax, word [esi + 6]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], edx
jb 0x3067579
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp - 0x20], ecx
jne 0x30676f4
cmp dword [ebp - 0x24], edi
je 0x3067732
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x3067732
cmp dword [edx + 4], 0
je 0x3067732
sub ecx, dword [ebp - 0x20]
push eax
movzx eax, word [esi + 6]
push eax
push dword [ebp + 0x20]
mov eax, edi
push dword [ebp + 0x1c]
sbb eax, dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
movzx eax, word [esi + 4]
push ecx
push dword [edx]
mov ecx, ebx
push dword [edx + 4]
push eax
call fcn.03066c95
test eax, eax
jne 0x30677aa
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x30677a8
mov eax, dword [ebp - 0x28]
xor edx, edx
push 0x1c
pop ecx
mov eax, dword [eax + 4]
div ecx
mov edi, eax
test edi, edi
je 0x30677a8
add esi, 0x14
mov ecx, dword [esi]
dec edi
test ecx, ecx
je 0x30677a1
mov eax, dword [ebp - 0x2c]
cmp dword [esi + 4], eax
jb 0x30677a1
xor eax, eax
add ecx, dword [ebp + 0x14]
push 0
adc eax, dword [ebp + 0x18]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.03066a7e
test eax, eax
jne 0x30677a1
push dword [ebp + 0x2c]
mov ecx, ebx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi + 4]
push dword [esi - 4]
push dword [esi]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.030672f2
add esi, 0x1c
test edi, edi
jne 0x306774f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c