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

Disassembly:
push 0xffffffffffffffff
push 0x45cf2b
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
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, 0x475158
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.00406d10
mov dword [esp + 0x49c], ebx
cmp dword [0x474f6c], ebx
je 0x40be20
push 0xffffffffffffffff
push ebx
mov eax, 0x474f74
lea ecx, [esp + 0x5c]
call fcn.00406d10
push 0xa
push str.WebAPI.dll
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00406f80
mov eax, esi
push eax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a0], 1
call fcn.00428b10
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a4], 2
call fcn.00406d10
mov ebp, 8
cmp dword [esp + 0x50], ebp
jb 0x40be84
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004415cb
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 0x40beab
mov edx, dword [esp + 0x1c]
push edx
call fcn.004415cb
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0042be80
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.00406f80
mov eax, esi
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a0], 4
call fcn.00428b10
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a4], 5
call fcn.00406d10
cmp dword [esp + 0x50], ebp
jb 0x40bf1b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004415cb
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 0x40bf43
mov edx, dword [esp + 0x1c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [0x474f6c], ebx
je 0x40bf5f
push 0x6bd0
mov ecx, 1
call fcn.00419130
add esp, 4
jmp 0x40bf7a
call fcn.00406c10
fld dword [0x468788]
mov eax, dword [eax + 0x40]
push eax
push ecx
fstp dword [esp]
call fcn.0040b680
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 0x40bf9f
lea eax, [esp + 0x58]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x40bfca
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x40c0f0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
push 0x462ef0
lea eax, [esp + 0x94]
push 0x200
push eax
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x38]
mov word [esp + 0x48a], bx
call fcn.0042bd40
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]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c020
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x20]
call fcn.00406f80
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 8
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c071
mov eax, dword [esp + 0x1c]
push eax
call fcn.004415cb
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 0x40c08c
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x40c0cb
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c0a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c0a0
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x50], 8
jb 0x40c220
mov eax, dword [esp + 0x3c]
push eax
call fcn.004415cb
add esp, 4
jmp 0x40c220
call eax
cmp eax, ebx
jge 0x40c218
push eax
push ebp
push 0x462f50
lea ecx, [esp + 0x98]
push 0x200
push ecx
call fcn.004414db
add esp, 0x14
lea ecx, [esp + 0x38]
mov word [esp + 0x48a], bx
call fcn.0042bd40
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]
jmp 0x40c150
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c150
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x20]
call fcn.00406f80
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0xa
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c1a1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004415cb
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 0x40c1bc
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x40c1fa
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c1d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c1d0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov byte [esp + 0x49c], 3
cmp dword [esp + 0x50], 8
jb 0x40c220
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
add esp, 4
jmp 0x40c220
mov dword [esp + 0x34], 1
add ebp, 1
cmp dword [esp + 0x34], ebx
jne 0x40c235
lea eax, [ebp - 1]
cmp eax, 2
jb 0x40bf90
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0xffffffffffffffff
push ebx
mov eax, 0x475158
lea ecx, [esp + 0x5c]
call fcn.00406d10
cmp dword [0x474f6c], ebx
je 0x40c265
push 0xffffffffffffffff
push ebx
mov eax, 0x474f74
lea ecx, [esp + 0x5c]
call fcn.00406d10
push 0xe
mov edi, 7
push str.OPIEModule.dll
lea esi, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00406f80
mov ecx, esi
push ecx
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a0], 0xb
call fcn.00428b10
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a4], 0xc
call fcn.00406d10
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c2ce
mov edx, dword [esp + 0x1c]
push edx
call fcn.004415cb
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 0x40c2f6
mov eax, dword [esp + 0x3c]
push eax
call fcn.004415cb
add esp, 4
mov edx, dword [0x473cfc]
mov eax, dword [edx + 0xc]
mov ecx, 0x473cfc
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 0x40c323
lea eax, [esp + 0x58]
push eax
push str._s___s_
lea edi, [esp + 0x3c]
call fcn.004073c0
mov eax, dword [esp + 0x7c]
add esp, 8
cmp dword [esp + 0x88], 8
jae 0x40c347
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 0x40c4bd
cmp ebp, 2
jae 0x40c4bd
push eax
add ebp, 1
push ebp
push 0x462fe8
lea edx, [esp + 0x98]
push 0x200
push edx
call fcn.004414db
add esp, 0x14
lea ecx, [esp + 0x38]
mov word [esp + 0x48a], bx
call fcn.0042bd40
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]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c3c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x20]
call fcn.00406f80
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0xf
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c411
mov edx, dword [esp + 0x1c]
push edx
call fcn.004415cb
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 0x40c42c
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x40c46a
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c440
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c440
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov byte [esp + 0x49c], 0xd
cmp dword [esp + 0x50], 8
jb 0x40c486
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x40c4a3
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 0x40c363
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x4a4]
lea edx, [esp + 0x8c]
push eax
push str._Setup_
push 0x200
push edx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x38]
mov word [esp + 0x48a], bx
call fcn.0042bd40
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]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c520
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x20]
call fcn.00406f80
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4a4], 0x11
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40c571
mov edx, dword [esp + 0x1c]
push edx
call fcn.004415cb
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 0x40c58c
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x40c5ca
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c5a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c5a0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov byte [esp + 0x49c], 0xd
cmp dword [esp + 0x50], esi
jb 0x40c5ea
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [0x474f6c], ebx
je 0x40c606
push 0x6cfc
mov ecx, 1
call fcn.00419130
add esp, 4
jmp 0x40c621
call fcn.00406c10
fld dword [0x468784]
mov eax, dword [eax + 0x40]
push eax
push ecx
fstp dword [esp]
call fcn.0040b680
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 0x40c649
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x88], esi
jb 0x40c65f
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40c689
mov edx, dword [esp + 0x58]
push edx
call fcn.004415cb
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.004414cc
add esp, 0x48c
ret