Function at 0x423670
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x423880
mov esi, eax
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x423a52
mov edi, eax
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x423a56
mov ebx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x3c]
push 4
push 0x3000
push dword [eax + esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
push dword [ebx + esi + 0x54]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp word [ebx + esi + 6], 0
mov dword [esp + 0xc], ebx
mov dword [esp], ebp
je 0x42375b
mov ecx, esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x3c]
lea esi, [eax + edx]
add esi, 0x10c
xor ebx, ebx
mov edi, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 8]
add eax, ebp
mov ebp, ecx
mov ecx, dword [esi]
add ecx, edi
push dword [esi - 4]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, ebp
mov ebp, dword [esp + 0xc]
add esp, 0xc
inc ebx
movzx eax, word [edi + ecx + 6]
add esi, 0x28
cmp ebx, eax
jb 0x423730
mov edi, dword [ebp + 0x3c]
mov ecx, dword [ebp + edi + 0x34]
mov edx, dword [ebp + edi + 0xa4]
mov eax, dword [esp + 0x44]
mov dword [ebp + edi + 0x34], eax
mov dword [esp + 0x10], edx
test edx, edx
jle 0x423887
mov ebx, dword [ebp + edi + 0xa0]
lea edx, [ebx + ebp]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
shr eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edi
jmp 0x4237dd
mov esi, dword [edx + 4]
mov ebp, dword [esp]
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + edi + 0xa0]
mov eax, dword [ebp + edi + 0xa4]
mov dword [esp + 0x10], eax
add edx, esi
lea eax, [ebx + ebp]
add eax, dword [esp + 0x10]
cmp edx, eax
jae 0x423887
mov esi, dword [edx + 4]
test esi, esi
je 0x423887
lea eax, [esi - 8]
cmp eax, 2
jb 0x4237cc
mov esi, dword [edx]
add esi, ebp
shr eax, 1
xor ebx, ebx
jmp 0x423823
and ebp, 0xfff
sub word [ebp + esi], cx
movzx edi, word [edx + ebx*2 + 8]
and edi, 0xfff
mov ebp, dword [esp + 0x44]
add word [edi + esi], bp
inc ebx
cmp eax, ebx
je 0x4237b0
movzx ebp, word [edx + ebx*2 + 8]
mov edi, ebp
shr edi, 0xc
dec edi
cmp edi, 9
ja case.0x423833.4
jmp dword [edi*4 + 0x426004]
and ebp, 0xfff
sub dword [ebp + esi], ecx
movzx edi, word [edx + ebx*2 + 8]
and edi, 0xfff
mov ebp, dword [esp + 0x44]
add dword [edi + esi], ebp
jmp case.0x423833.4
and ebp, 0xfff
mov edi, dword [esp + 4]
sub word [ebp + esi], di
movzx edi, word [edx + ebx*2 + 8]
and edi, 0xfff
mov ebp, dword [esp + 8]
jmp 0x42381a
xor ebp, ebp
jmp 0x423a66
cmp dword [ebp + edi + 0x84], 0
je 0x423a3e
mov eax, dword [ebp + edi + 0x80]
cmp dword [ebp + eax], 0
je 0x423a3e
add eax, ebp
jmp 0x4238d0
push dword [esp + 4]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0
lea eax, [eax + 0x14]
mov ebp, dword [esp]
je 0x423a3e
mov dword [esp + 8], eax
mov edi, dword [eax + 0xc]
add edi, ebp
push 0x104
push edi
call fcn.00424d90
add esp, 8
mov esi, eax
lea ebx, [eax + 1]
push 2
push ebx
call sub.msvcrt.dll_calloc
add esp, 8
test eax, eax
je 0x4238bc
mov ebp, eax
push esi
push edi
push ebx
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs_s]
add esp, 0x14
push 4
push 0x42602c
push ebp
mov ebx, dword [sym.imp.msvcrt.dll__wcsnicmp]
call ebx
add esp, 0xc
test eax, eax
je 0x423937
push 4
push str.ext_
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x423987
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x48]
call fcn.00423140
add esp, 0xc
test eax, eax
je 0x423987
mov esi, eax
push ebp
call sub.msvcrt.dll_free
add esp, 4
mov edi, dword [esp + 0x20]
lea eax, [edi + 1]
push 2
push eax
call sub.msvcrt.dll_calloc
add esp, 8
test eax, eax
je 0x4238bc
mov ebp, eax
add edi, edi
push edi
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [sym.imp.msvcrt.dll__wcsnicmp]
call fcn.00423130
mov esi, eax
mov edi, eax
mov dword [esp + 4], ebp
jmp 0x4239a6
mov edi, dword [edi]
cmp edi, esi
je 0x4239d0
cmp word [edi + 0x1c], 3
jb 0x4239a0
movzx eax, word [edi + 0x24]
shr eax, 1
push eax
push dword [edi + 0x28]
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x4239a0
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x4239e1
jmp 0x4238b0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4238b0
mov eax, dword [esp + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 0x10]
test ebx, ebx
cmove ebx, ebp
mov eax, dword [esp]
mov eax, dword [eax + ebx]
test eax, eax
je 0x4238b0
mov edi, dword [esp]
jmp 0x423a35
mov ecx, dword [esp]
add eax, ecx
add eax, 2
push dword [esp + 4]
push eax
push esi
call fcn.00423bd0
mov dword [edi + ebp], eax
mov eax, dword [edi + ebx + 4]
add edi, 4
test eax, eax
je 0x4238b0
test eax, eax
jns 0x423a10
movzx eax, ax
jmp 0x423a18
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x423a58
xor ebp, ebp
jmp 0x423a5f
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret