Function at 0x40beb0
Capabilities:
Copy file
Create process on windows
Get file attributes
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4189bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x608
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x40bef2
xor eax, eax
jmp 0x40befa
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x2c], eax
jge 0x40c563
mov ecx, dword [edi + 0x10]
mov eax, dword [ebx + ecx]
mov edx, dword [eax - 0xc]
test edx, edx
push ecx
mov dword [esp + 0x1c], esp
mov ebp, esp
jl 0x40bf2a
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40bfcb
mov eax, dword [0x41d050]
mov dword [ebp], eax
mov esi, dword [ebx + ecx]
test esi, esi
jne 0x40bf3d
xor ebx, ebx
jmp 0x40bf46
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
cmp edx, 1
lea ecx, [eax - 0xc]
jg 0x40bf59
cmp ebx, dword [eax - 4]
jle 0x40bf95
mov edx, dword [0x41d054]
add eax, 0xfffffff4
cmp eax, edx
je 0x40bf89
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40bf80
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.0040f26f
add esp, 4
mov ecx, dword [0x41d050]
mov dword [ebp], ecx
push ebx
mov ecx, ebp
call fcn.004018f0
test eax, eax
je 0x40bfc7
mov edx, dword [ebp]
lea eax, [ebx + ebx]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x40bfb8
mov ecx, eax
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
call fcn.004048c0
add esp, 8
mov esi, eax
push 0x41952c
push edi
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x62c], 0
call fcn.00404800
push esi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x62c], 1
call fcn.00404750
mov eax, dword [esp + 0x38]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c038
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c038
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [0x41d054]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x620], 3
je 0x40c06f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c06f
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
mov ecx, dword [edi + 0x10]
mov eax, dword [ebx + ecx + 4]
mov edx, dword [eax - 0xc]
test edx, edx
push ecx
mov dword [esp + 0x1c], esp
mov ebp, esp
jl 0x40c096
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40c12e
mov eax, dword [0x41d050]
mov dword [ebp], eax
mov esi, dword [ebx + ecx + 4]
test esi, esi
jne 0x40c0aa
xor ebx, ebx
jmp 0x40c0b3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
cmp edx, 1
lea ecx, [eax - 0xc]
jg 0x40c0c6
cmp ebx, dword [eax - 4]
jle 0x40c102
mov edx, dword [0x41d054]
add eax, 0xfffffff4
cmp eax, edx
je 0x40c0f6
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c0ed
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.0040f26f
add esp, 4
mov ecx, dword [0x41d050]
mov dword [ebp], ecx
push ebx
mov ecx, ebp
call fcn.004018f0
test eax, eax
je 0x40c12e
mov edi, dword [ebp]
lea eax, [ebx + ebx]
lea edx, [eax + 2]
cmp edx, eax
jb 0x40c11f
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
lea eax, [esp + 0x14]
push eax
call fcn.004025c0
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esp + 0x624], 5
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x40c198
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
jl 0x40c177
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40c188
mov eax, dword [0x41d050]
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
push edx
call fcn.00403230
call fcn.0040b760
add esp, 4
test al, al
je 0x40c507
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push esi
lea ecx, [esp + 0x210]
push str.Copy_From:_s_r_n____To:_s
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea edx, [esp + 0x208]
push edx
call edi
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax + 4]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40c217
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20c]
push str.Copy_File_Error:_d
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call edi
mov dword [esp + 0x24], 0xffffffff
jmp 0x40c486
mov esi, dword [0x41d050]
mov dword [esp + 0x18], esi
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax]
cmp dword [eax - 0xc], 0
push ecx
mov byte [esp + 0x624], 6
mov dword [esp + 0x20], esp
mov ecx, esp
jl 0x40c24e
mov dword [ecx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40c25d
mov eax, dword [esp + 0x18]
mov dword [ecx], esi
mov edx, dword [edx + eax]
push edx
call fcn.00403230
lea eax, [esp + 0x34]
push eax
call fcn.004048c0
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x28]
push str._s_s
push eax
mov byte [esp + 0x638], 7
call fcn.00404730
mov eax, dword [esp + 0x48]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
add esp, 0x18
cmp ecx, edx
mov byte [esp + 0x620], 6
je 0x40c2c0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c2c0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
mov esi, dword [esp + 0x20]
push 0x64
lea edx, [esp + 0x7c]
push edx
push esi
mov ecx, ebx
call fcn.004013e0
mov ecx, dword [esp + 0x18]
push 0x64
lea eax, [esp + 0x144]
push eax
push ecx
mov ecx, ebx
call fcn.004013e0
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x210]
push str.Src:_s__r_nDst:_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x208]
push ecx
call edi
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x7c]
push eax
mov ecx, edx
push ecx
mov edx, eax
push edx
call fcn.0040f302
add esp, 8
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [esp + 0x214]
push str.Eequal:_d_Ver1__s__Ver2__s
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x208]
push ecx
call edi
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.0040f302
add esp, 8
test eax, eax
je 0x40c369
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x14]
cmp word [eax + ecx + 0xc], 3
je 0x40c384
cmp word [eax + ecx + 0xc], 4
jne 0x40c45e
cmp byte [eax + ecx + 0xe], 1
jne 0x40c45e
mov eax, dword [eax + ecx + 4]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
jl 0x40c3ae
mov esi, eax
lea ecx, [esi - 0xc]
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40c3c6
mov edx, dword [0x41d050]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00403230
mov esi, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x20]
push str.__s___s_
push eax
mov byte [esp + 0x62c], 8
call fcn.00404730
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x48], 0x3c
mov ecx, 0xe
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x50], str.regsvr32.exe
mov dword [esp + 0x4c], str.open
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c42d
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x74]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x41d054]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40c45e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c45e
push esi
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c486
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c486
push esi
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41d054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40c4b5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c4b5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [0x41d054]
lea eax, [esi - 0xc]
cmp eax, ecx
mov dword [esp + 0x620], 0xffffffff
je 0x40c4e8
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c4e8
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
inc ecx
add eax, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
mov ebx, eax
jmp 0x40bee7
mov eax, dword [esp + 0x10]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c536
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c536
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c55e
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c55e
push esi
call fcn.0040f26f
add esp, 4
or eax, 0xffffffff
jmp 0x40c567
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x618]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x614
ret 4