Function at 0x40f9e6
Capabilities:
Accept command line arguments
Check os version
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13ec
call fcn.00406700
push ebx
push esi
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40fa38
mov eax, dword [esp + 0x44]
cmp eax, 2
jle 0x40fa38
add eax, 0xfffffffe
push eax
lea ebx, [esi + 8]
call fcn.0040d04d
push eax
call fcn.0040cbf7
test al, al
je 0x40fa38
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0xfa
mov dword [esp + 0x2c], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov cl, byte [esp + 0x2c]
add dword [esp + 0x2c], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x1c]
inc esi
cmp dword [esp + 0x2c], 5
jl 0x40fa69
inc esi
dec dword [esp + 0x14]
jne 0x40fa5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esi + 2], 0
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov edx, ecx
and edx, 0x80000001
jns 0x40faca
dec edx
or edx, 0xfffffffe
inc edx
cmp word [eax + edx*2], 0
je 0x40fadc
add ecx, 0xa
cmp ecx, 0xc8
jl 0x40fabb
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x70]
push eax
call esi
call fcn.0040c55b
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
push eax
call esi
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0xfa
mov dword [esp + 0x1c], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x30]
mov al, byte [eax]
mov cl, byte [esp + 0x1c]
add dword [esp + 0x1c], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x30]
inc esi
cmp dword [esp + 0x1c], 5
jl 0x40fb38
inc esi
dec dword [esp + 0x14]
jne 0x40fb2b
mov byte [esi + 2], 0
mov dword [esp + 0x14], 1
xor esi, esi
inc esi
push 1
call edi
push 0
call edi
call fcn.0040c55b
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40fb91
inc esi
cmp esi, 8
jle 0x40fb75
call fcn.0040c55b
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40fd67
fild dword [esp + 0x14]
xor esi, esi
inc esi
mov dword [esp + 0x18], esi
fdiv qword [0x418318]
fsub qword [0x418310]
fmul qword [0x418308]
fstp qword [esp + 0x48]
jmp 0x40fbc9
xor esi, esi
inc esi
fild dword [esp + 0x18]
push esi
fdiv qword [0x418300]
fsub qword [0x418310]
fmul qword [0x418308]
fsub qword [0x4182f8]
fstp qword [esp + 0x34]
call edi
push 0
call edi
fldz
fst qword [esp + 0x38]
mov dword [esp + 0x1c], esi
fstp qword [esp + 0x20]
call fcn.0040c55b
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40fc66
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fsubp st(1)
fadd qword [esp + 0x30]
fld qword [esp + 0x38]
fadd st(0), st(0)
fmul qword [esp + 0x20]
fadd qword [esp + 0x48]
fstp qword [esp + 0x20]
fst qword [esp + 0x38]
fld st(0)
fmulp st(1)
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
faddp st(1)
fcomp qword [0x4182f0]
fnstsw ax
test ah, 0x41
jne 0x40fc5b
mov dword [esp + 0x1c], 0x1869f
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x64
jl 0x40fbfe
call fcn.0040c55b
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40fd47
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x30], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x38]
mov al, byte [eax]
mov cl, byte [esp + 0x30]
add dword [esp + 0x30], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x38]
inc esi
cmp dword [esp + 0x30], 5
jl 0x40fcb7
inc esi
dec dword [esp + 0x20]
jne 0x40fcaa
push 0x1a
mov byte [esi + 2], 0
pop esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x28], 0x214
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
dec esi
jne 0x40fcec
cmp dword [esp + 0x1c], 0x1869f
jge 0x40fd47
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov edx, ecx
and edx, 0x80000001
jns 0x40fd28
dec edx
or edx, 0xfffffffe
inc edx
cmp word [eax + edx*2], 0
je 0x40fd35
inc ecx
cmp ecx, 0x14
jl 0x40fd19
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0xaa
jle 0x40fbc6
call fcn.0040c55b
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40fd67
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x141
jle 0x40fb72
push 0
call dword [sym.imp.USER32.dll_GetKeyboardType]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x40fd93
inc esi
dec dword [esp + 0x20]
jne 0x40fd86
mov byte [esi + 2], 0
call fcn.0040d04d
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5804], ecx
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x40fdf7
inc esi
dec dword [esp + 0x20]
jne 0x40fdea
mov byte [esi + 2], 0
call fcn.0040d04d
call fcn.0040f8fd
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x40fe57
inc esi
dec dword [esp + 0x20]
jne 0x40fe4a
pop edi
mov byte [esi + 2], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10