Function at 0x10002030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
cmp dword [ebp + 8], 0
jne 0x10002067
mov eax, dword [ebp - 0x44]
jmp 0x100024e7
push str.___Mapping_Target_PE_File_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
push str.___Loader_Base_Orig:_0x_08x_New:_0x_08x_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 0x10
mov esi, esp
push str.ZwUnmapViewOfSection
mov edi, esp
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, esp
call fcn.10001159
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10001159
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1000210d
push str.___Failed_to_resolve_address_of_NtUnmapViewOfSection_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x34]
push edx
push str.___Target_PE_Load_Base:_0x_08x_Image_Size:_0x_08x_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 8], ecx
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.10001159
test eax, eax
je 0x1000217f
cmp dword [ebp - 0x1c], 0x10000
jne 0x10002174
jmp 0x1000217f
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x1000214c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
cmp eax, dword [edx + 0x18]
jb 0x10002250
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x34]
cmp edx, dword [ebp - 8]
jae 0x10002250
cmp dword [ebp - 0x50], 0
je 0x10002250
push str.___Unmapping_original_loader_mapping_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.10001159
push eax
call dword [ebp - 0x50]
cmp esi, esp
call fcn.10001159
test eax, eax
jne 0x1000222e
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x50]
add edx, 1
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10001159
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
jmp 0x10002250
push str.____Failed_to_unmap_original_loader_mapping_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x50]
add edx, 1
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10001159
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x100022b8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x34]
push edx
push str.____Failed_to_allocate_PE_ImageBase:_0x_08x_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x1000237c
push str.___Attempting_to_allocate_new_memory_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, 8
imul eax, edx, 5
cmp dword [ecx + eax + 0x7c], 0
jne 0x10002351
push str.____Failed_to_map_required_memory_address__need_relocation_to_continue_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
push str._____WARNING__Forcing_re_use_of_mapped_memory_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x20], eax
jmp 0x1000237c
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x50]
add edx, 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10001159
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x100023ac
push str.____Failed_to_map_memory_for_Target_PE_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
jmp 0x100024e4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
push str.___Allocated_memory_for_Target_PE:_0x_08x_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 0xc
push str.___Copying_Headers_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
call sub.VCRUNTIME140D.dll_memcpy
add esp, 0xc
push str.___Copying_Sections_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], 0
jmp 0x10002462
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jae 0x100024d5
imul eax, dword [ebp - 8], 0x28
add eax, dword [ebp - 0x38]
push eax
push str._____Copying_Section:__s_n
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.10001159
push eax
call fcn.1000114f
add esp, 0xc
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x38]
add edx, dword [ecx + eax + 0x14]
push edx
imul edx, dword [ebp - 8], 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x38]
add ecx, dword [eax + edx + 0xc]
push ecx
call sub.VCRUNTIME140D.dll_memcpy
add esp, 0xc
jmp 0x10002459
mov dword [ebp - 0x44], 1
xor eax, eax
jne 0x1000210d
mov eax, dword [ebp - 0x44]
push edx
mov ecx, ebp
push eax
lea edx, [0x1000250c]
call fcn.1000110e
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x114
cmp ebp, esp
call fcn.10001159
mov esp, ebp
pop ebp
ret