Function at 0x408700
Capabilities:
Copy file
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42227e
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x428060]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428060]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x11c]
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x408d55
mov dword [esp + 0x14], ebx
jmp 0x408780
push ebp
mov edi, 0x424de4
lea esi, [esp + 0xb8]
call fcn.00406a70
add esp, 4
mov esi, eax
mov dword [esp + 0x114], 0
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4087c4
call fcn.0040f353
mov eax, dword [ebp + 0x60]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x4087d6
mov eax, dword [eax + 4]
jmp 0x4087d9
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push esi
mov edi, eax
lea esi, [esp + 0xf0]
call fcn.00406a70
add esp, 4
mov byte [esp + 0x114], 2
cmp dword [esp + 0xcc], 0x10
jb 0x408814
mov edx, dword [esp + 0xb8]
push edx
call fcn.0040f38f
add esp, 4
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
cmp ebx, eax
jb 0x408852
call fcn.0040f353
mov eax, dword [ebp + 0x60]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
add eax, edi
add eax, 0x1c
push esi
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], esi
mov byte [esp + 0xa8], 0
call fcn.00401d00
mov byte [esp + 0x114], 3
cmp dword [esp + 0xb0], 0x10
mov eax, dword [esp + 0x9c]
jae 0x4088a8
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [esp + 0xb0], 0x10
mov eax, dword [esp + 0x9c]
jae 0x4088c7
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x408a29
xor ecx, ecx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], esi
mov word [esp + 0xb8], cx
mov byte [esp + 0x114], 4
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
mov eax, edx
cmp ecx, 0x10
jae 0x408917
lea eax, [esp + 0x9c]
mov ebx, dword [esp + 0xac]
lea edi, [ebx + eax]
cmp edi, esi
je 0x40894b
mov eax, edx
cmp ecx, 0x10
jae 0x408933
lea eax, [esp + 0x9c]
cmp eax, edi
ja 0x40894b
mov eax, edx
cmp ecx, 0x10
jae 0x408945
lea eax, [esp + 0x9c]
add eax, ebx
cmp edi, eax
jbe 0x40895e
call fcn.0040f353
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
lea ebx, [esp + 0x98]
cmp ecx, 0x10
jb 0x408a5f
mov esi, edx
test edx, edx
je 0x4089a1
mov eax, edx
cmp ecx, 0x10
jae 0x408982
lea eax, [esp + 0x9c]
cmp eax, esi
ja 0x4089a1
mov eax, edx
cmp ecx, 0x10
jae 0x408994
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0xac]
add eax, edx
cmp esi, eax
jbe 0x4089a6
call fcn.0040f353
push edi
push ebx
push esi
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0xc8]
call fcn.00402720
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
xor esi, esi
push 0xffffffffffffffff
mov edi, 7
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push esi
lea eax, [esp + 0xd8]
mov word [ecx + 4], dx
call fcn.00401de0
call fcn.0040aee0
add esp, 0x1c
test al, al
je 0x408d83
mov byte [esp + 0x114], 3
cmp dword [esp + 0xcc], 8
jb 0x408a1f
mov eax, dword [esp + 0xb8]
push eax
call fcn.0040f38f
add esp, 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x408a4b
call fcn.0040f353
mov eax, dword [ebp + 0x60]
add eax, edi
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x408a6b
mov eax, dword [eax + 0x20]
jmp 0x408a6e
lea esi, [esp + 0x9c]
jmp 0x408974
add eax, 0x20
cmp dword [esp + 0x104], ecx
mov ecx, dword [esp + 0xf0]
jae 0x408a85
lea ecx, [esp + 0xf0]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x408a9f
mov dword [esp + 0x18], 0xffffffff
jmp 0x408ccf
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408ac1
call fcn.0040f353
mov ecx, dword [ebp + 0x60]
cmp word [edi + ecx + 0x70], 3
je 0x408afd
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408aee
call fcn.0040f353
mov ecx, dword [ebp + 0x60]
cmp word [edi + ecx + 0x70], 4
jne 0x408ccf
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408b1f
call fcn.0040f353
mov ecx, dword [ebp + 0x60]
cmp byte [edi + ecx + 0x72], 1
jne 0x408ccf
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408b4f
call fcn.0040f353
mov eax, dword [ebp + 0x60]
push 0xffffffffffffffff
add eax, edi
add eax, 0x1c
push esi
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], esi
mov byte [esp + 0xe0], 0
call fcn.00401d00
lea ecx, [esp + 0xd0]
push ecx
lea edi, [esp + 0x28]
mov byte [esp + 0x118], 5
call fcn.0040a1d0
add esp, 4
push eax
mov edi, 0x424f6c
lea esi, [esp + 0x44]
mov byte [esp + 0x118], 6
call fcn.00406a70
add esp, 4
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x120], 7
call fcn.00401d00
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x408be9
mov edx, dword [esp + 0x44]
push edx
call fcn.0040f38f
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
cmp dword [esp + 0x3c], esi
jb 0x408c0d
mov eax, dword [esp + 0x28]
push eax
call fcn.0040f38f
add esp, 4
push 0x38
lea ecx, [esp + 0x64]
push edi
push ecx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
mov dword [esp + 0x68], 0x3c
call fcn.00411230
add esp, 0xc
mov dword [esp + 0x60], 0x40
mov dword [esp + 0x6c], str.regsvr32.exe
mov dword [esp + 0x68], str.open
cmp dword [esp + 0xe8], esi
jb 0x408c64
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x70], edx
jmp 0x408c6f
lea eax, [esp + 0xd4]
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x7c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x408c86
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x94]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0xe8], esi
jb 0x408caf
mov eax, dword [esp + 0xd4]
push eax
call fcn.0040f38f
add esp, 4
mov dword [esp + 0xe4], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0xe8], 0xf
mov byte [esp + 0xd4], 0
xor esi, esi
cmp dword [esp + 0xb0], 0x10
jb 0x408ce9
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0040f38f
add esp, 4
mov dword [esp + 0x114], 0xffffffff
cmp dword [esp + 0x104], 0x10
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
jb 0x408d28
mov edx, dword [esp + 0xf0]
push edx
call fcn.0040f38f
add esp, 4
mov ecx, dword [ebp + 0x64]
sub ecx, dword [ebp + 0x60]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ebx
add edi, 0x74
add eax, edx
cmp ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
jl 0x408780
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.0040efdf
add esp, 0x104
ret 4
cmp dword [esp + 0xcc], 8
jb 0x408d9d
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0040f38f
add esp, 4
mov dword [esp + 0xcc], edi
xor edx, edx
mov edi, 0x10
mov dword [esp + 0xc8], esi
mov word [esp + 0xb8], dx
cmp dword [esp + 0xb0], edi
jb 0x408dd3
mov eax, dword [esp + 0x9c]
push eax
call fcn.0040f38f
add esp, 4
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x104], edi
jb 0x408e06
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0040f38f
add esp, 4
or eax, 0xffffffff
jmp 0x408d59