Function at 0x40bf50
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a64b
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
mov edi, 7
push ebx
mov eax, 0x472048
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.00406cc0
mov dword [esp + 0x49c], ebx
cmp dword [0x471ee4], ebx
je 0x40bfd0
push 0xffffffffffffffff
push ebx
mov eax, 0x471eec
lea ecx, [esp + 0x5c]
call fcn.00406cc0
push 0xe
push str.Binwebapi.dll
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00406f20
mov eax, esi
push eax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a0], 1
call fcn.00427350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a4], 2
call fcn.00406cc0
mov ebp, 8
cmp dword [esp + 0x50], ebp
jb 0x40c034
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043ef40
add esp, 4
mov byte [esp + 0x49c], bl
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x40c05b
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ef40
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0042a990
mov byte [esp + 0x49c], 3
push 0xc
push str.regsvr32.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00406f20
mov eax, esi
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a0], 4
call fcn.00427350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a4], 5
call fcn.00406cc0
cmp dword [esp + 0x50], ebp
jb 0x40c0cb
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043ef40
add esp, 4
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x40c0f3
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [0x471ee4], ebx
je 0x40c10f
push 0x6bd0
mov ecx, 1
call fcn.00418f60
add esp, 4
jmp 0x40c12a
call fcn.00406bc0
fld dword [0x466438]
mov eax, dword [eax + 0x40]
push eax
push ecx
fstp dword [esp]
call fcn.0040b580
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [esp + 0x34], ebx
mov ebp, 1
lea ebx, [ebx]
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40c14f
lea eax, [esp + 0x58]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x40c17a
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x40c292
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
push 0x460f38
push 0x400
lea eax, [esp + 0x98]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x49c], 7
mov edi, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c1c7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x20]
call fcn.00406f20
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 8
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c218
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40c233
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40c26d
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c242
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x50], 8
jb 0x40c3c0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
jmp 0x40c3c0
call eax
cmp eax, ebx
jge 0x40c3b8
push eax
push ebp
push 0x460f98
push 0x400
lea ecx, [esp + 0x9c]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x49c], 9
mov edi, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c2f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x20]
call fcn.00406f20
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0xa
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c341
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40c35c
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40c39a
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c370
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c370
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x50], 8
jb 0x40c3c0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
jmp 0x40c3c0
mov dword [esp + 0x34], 1
add ebp, 1
cmp dword [esp + 0x34], ebx
jne 0x40c3d5
lea eax, [ebp - 1]
cmp eax, 2
jb 0x40c140
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0xffffffffffffffff
push ebx
mov eax, 0x472048
lea ecx, [esp + 0x5c]
call fcn.00406cc0
cmp dword [0x471ee4], ebx
je 0x40c405
push 0xffffffffffffffff
push ebx
mov eax, 0x471eec
lea ecx, [esp + 0x5c]
call fcn.00406cc0
push 0x12
mov edi, 7
push str.BinOPIEModule.dll
lea esi, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00406f20
mov ecx, esi
push ecx
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a0], 0xb
call fcn.00427350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a4], 0xc
call fcn.00406cc0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c46e
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ef40
add esp, 4
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x50], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x40c496
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
mov edx, dword [0x470ce4]
mov eax, dword [edx + 0xc]
mov ecx, 0x470ce4
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x49c], 0xd
cmp dword [esp + 0x6c], esi
mov eax, dword [esp + 0x58]
jae 0x40c4c3
lea eax, [esp + 0x58]
push eax
push str._s___s_
lea edi, [esp + 0x3c]
call fcn.0040f5c0
mov eax, dword [esp + 0x7c]
add esp, 8
cmp dword [esp + 0x88], 8
jae 0x40c4e7
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x34]
push 5
push ebx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebp, ebp
cmp eax, 0x20
jg 0x40c65d
cmp ebp, 2
jae 0x40c65d
push eax
add ebp, 1
push ebp
push 0x461038
push 0x400
lea edx, [esp + 0x9c]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x49c], 0xe
mov edi, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c560
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x20]
call fcn.00406f20
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0xf
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c5b1
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40c5cc
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40c60a
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c5e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c5e0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x49c], 0xd
cmp dword [esp + 0x50], 8
jb 0x40c626
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x40c643
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x34]
push 5
push ebx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40c503
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x4a4]
lea edx, [esp + 0x8c]
push eax
push str._Setup_
push 0x400
push 0x200
push edx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x49c], 0x10
mov edi, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c6b7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x20]
call fcn.00406f20
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0x11
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c708
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40c723
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40c75c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c732
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov esi, 8
mov byte [esp + 0x49c], 0xd
cmp dword [esp + 0x50], esi
jb 0x40c77c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [0x471ee4], ebx
je 0x40c798
push 0x6cfc
mov ecx, 1
call fcn.00418f60
add esp, 4
jmp 0x40c7b3
call fcn.00406bc0
fld dword [0x466434]
mov eax, dword [eax + 0x40]
push eax
push ecx
fstp dword [esp]
call fcn.0040b580
add esp, 8
mov byte [esp + 0x49c], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x88], esi
jb 0x40c7f1
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40c81b
mov edx, dword [esp + 0x58]
push edx
call fcn.0043ef40
add esp, 4
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0043ef12
add esp, 0x48c
ret