Function at 0x423970
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x423985
call fcn.004237c0
mov ebx, dword [esp + 0x50]
mov esi, dword [ebx + 0x3c]
add esi, ebx
lea eax, [esi + 0x50]
push 0x40
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push 0x1000
push eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [esi + 0x54]
push ecx
mov ebp, eax
push ebx
push ebp
mov dword [esp + 0x5c], ebp
call fcn.0043b7c0
movzx edx, word [esi + 0x14]
add esp, 0xc
cmp word [esi + 6], 0
lea eax, [esi + edx + 0x18]
mov dword [esp + 0x14], 0
jbe 0x423a3a
lea esi, [eax + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [esi - 8]
mov ebp, dword [esi - 4]
mov dword [esp + 0x1c], ecx
add ebp, dword [esp + 0x50]
push eax
push ebp
mov dword [esp + 0x20], eax
call fcn.0043b7a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ecx
jl 0x423a0c
mov eax, ecx
mov edx, dword [esi + 4]
push eax
add edx, ebx
push edx
push ebp
call fcn.0043b7c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
movzx edx, word [ecx + 6]
add esp, 0xc
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4239e0
mov ebp, dword [esp + 0x50]
mov esi, ecx
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0xa4]
mov ebx, ebp
sub ebx, edx
mov edx, dword [esi + 0xa0]
add edx, ebp
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jle 0x423aa4
jmp 0x423a60
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
test eax, eax
lea ecx, [edx + 8]
jle 0x423a96
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [ecx]
test ah, 0xf0
je 0x423a88
and eax, 0xfff
add eax, dword [edx]
add eax, ebp
add dword [eax], ebx
mov eax, dword [esp + 0x14]
add ecx, 2
dec eax
mov dword [esp + 0x14], eax
jne 0x423a73
mov eax, dword [esp + 0x1c]
mov edx, ecx
sub ecx, eax
cmp ecx, dword [esp + 0x18]
jl 0x423a60
mov ebx, dword [esi + 0x80]
mov eax, dword [ebx + ebp + 0xc]
add ebx, ebp
test eax, eax
mov dword [esp + 0x18], ebx
je 0x423cc6
lea esp, [esp]
add eax, ebp
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
push 0xc
mov dword [esp + 0x28], esi
call fcn.004a7960
mov dword [eax + 8], esi
mov edx, dword [edi + 0x1c]
xor ecx, ecx
add esp, 4
cmp edx, ecx
mov dword [eax + 4], ecx
jne 0x423af3
mov dword [eax], ecx
mov dword [edi + 0x1c], eax
jmp 0x423afe
mov edx, dword [edi + 0x20]
mov dword [eax], edx
mov edx, dword [edi + 0x20]
mov dword [edx + 4], eax
mov dword [edi + 0x20], eax
cmp dword [ebx + 4], ecx
mov eax, dword [esp + 0x50]
jne 0x423b0f
mov ebp, dword [ebx + 0x10]
jmp 0x423b11
mov ebp, dword [ebx]
add ebp, eax
cmp dword [ebp], 0
je 0x423cac
lea ecx, [ecx]
mov eax, dword [ebp]
test eax, eax
jns 0x423b3c
and eax, 0xffff
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp], eax
jmp 0x423c9e
mov ecx, dword [esp + 0x50]
lea ebx, [eax + ecx + 2]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, dword [edi]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
mov ecx, edi
call dword [edx + 4]
test eax, eax
je 0x423c00
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0x40
push 0x1000
push 0x12
push 0
mov byte [esp + 0x48], 0x58
mov byte [esp + 0x49], 0x68
mov dword [esp + 0x4a], ecx
mov byte [esp + 0x4e], 0x68
mov dword [esp + 0x4f], esi
mov byte [esp + 0x53], 0x50
mov byte [esp + 0x54], 0x68
mov dword [esp + 0x55], edx
mov byte [esp + 0x59], 0xc3
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0xc
mov esi, eax
call fcn.004a7960
mov dword [eax + 8], esi
mov edx, dword [edi + 8]
xor ecx, ecx
add esp, 4
cmp edx, ecx
mov dword [eax + 4], ecx
jne 0x423bd2
mov dword [eax], ecx
mov dword [edi + 8], eax
jmp 0x423bdd
mov ecx, dword [edi + 0xc]
mov dword [eax], ecx
mov edx, dword [edi + 0xc]
mov dword [edx + 4], eax
mov dword [edi + 0xc], eax
push 0x12
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0043b7c0
add esp, 0xc
push 0x12
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
mov dword [ebp], esi
xor esi, esi
push esi
call fcn.004a7e92
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, esi
jne 0x423c29
push 1
call fcn.004a7960
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [eax], 0
jmp 0x423c58
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
je 0x423c3a
mov dl, byte [eax + 1]
inc ecx
inc eax
test dl, dl
jne 0x423c31
lea esi, [ecx + 1]
push esi
call fcn.004a7960
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
mov dword [esp + 0x3c], eax
call fcn.0043b7c0
add esp, 0x10
xor esi, esi
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.0041f460
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + 0x14]
mov dword [esp + 0x38], ebp
call fcn.00423830
mov eax, dword [esp + 0x30]
push eax
call fcn.004a7e92
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x38], esi
call fcn.004a7e92
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x2c]
add esp, 8
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x423b20
mov eax, dword [ebx + 0x20]
mov ebp, dword [esp + 0x50]
add ebx, 0x14
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x423ac0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
mov ecx, dword [esi + 0x28]
lea eax, [ecx + ebp]
test eax, eax
mov dword [edi + 0x10], eax
je 0x423cf7
push 0
push 1
push ebp
call eax
push 0
push 2
push ebp
call dword [edi + 0x10]
mov dword [edi + 4], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret 8