Function at 0x406630
Capabilities:
Accept command line arguments
Get hostname
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8018
call fcn.00409c40
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x800c], esi
lea eax, [esi*4]
mov dword [ebp - 0x8010], edi
push eax
mov dword [ebp - 0x8008], 0
call fcn.00407316
add esp, 4
mov ebx, eax
test esi, esi
je 0x40668a
mov ecx, esi
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x8010]
push edi
lea eax, [ebp - 0x800c]
push eax
push 0x422e4c
call fcn.004021a0
push edi
lea eax, [ebp - 0x800c]
push eax
push 0x422e4c
call fcn.004017b0
add esp, 0x18
test eax, eax
jne 0x4066cb
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004072de
add esp, 4
mov dword [ebp - 0x8018], 0x10
lea eax, [ebp - 0x8018]
push eax
push 0x455ac0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x406727
push str.PsExec_requires_Windows_NT_or_higher._n_n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.00408b5b
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x800c], esi
jbe 0x406786
mov eax, dword [ebp - 0x8010]
mov ecx, dword [eax + esi*4]
mov edx, ecx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406741
sub edx, ebx
sar edx, 1
cmp edx, 0x103
ja 0x406832
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406760
sub ecx, edx
sar ecx, 1
add edi, ecx
cmp edi, 0x1fff
ja 0x406808
inc esi
cmp esi, dword [ebp - 0x800c]
jb 0x406733
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406791
sub eax, edx
sar eax, 1
cmp eax, 0x4000
ja 0x406808
call esi
lea edx, [ebp - 0x8004]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4067b1
cmp word [ebp - 0x8004], 0x22
lea esi, [ebp - 0x8004]
jne 0x406865
mov cx, word [ebp - 0x8002]
lea esi, [ebp - 0x8002]
mov eax, esi
test cx, cx
je 0x406885
movzx ecx, cx
cmp cx, 0x22
je 0x406876
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4067f0
jmp 0x406876
push str.Arguments_too_long._n_n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.00408b5b
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8010]
push dword [eax + esi*4]
push str.Argument_to_long:__s_n_n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004082af
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8004]
push 0x20
push eax
call fcn.00408924
add esp, 8
test eax, eax
je 0x406885
cmp word [eax], 0
je 0x406885
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x8014]
push eax
push 0x451ac0
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x8014]
test eax, eax
je 0x4068ac
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x422ecc
push 0x4209a0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [0x42b378], eax
lea eax, [ebp - 0x8008]
push eax
push dword [ebp - 0x8010]
push dword [ebp - 0x800c]
call fcn.00404a30
add esp, 0xc
test al, al
je 0x406a8e
push 0x422ee4
push 0x422ef8
call ebx
push eax
call esi
test eax, eax
je 0x40691b
cmp dword [ebp - 0x8008], 0
jne 0x40691b
lea ecx, [ebp - 0x8008]
push ecx
push 0x42c380
push 0
call eax
cmp byte [0x42b37c], 0
je 0x406a11
cmp byte [0x42b37d], 0
jne 0x406a11
push 0x5c
push 0x42c380
call fcn.00408924
mov edi, eax
add esp, 8
test edi, edi
je 0x40694f
xor eax, eax
mov word [edi], ax
push 0x422f14
push 0x42c380
call fcn.00406e6e
add esp, 8
test eax, eax
je 0x4069f3
push 0x422f30
push 0x42c380
call fcn.00406e6e
add esp, 8
test eax, eax
je 0x4069f3
push str.Password:
call fcn.004073bd
call fcn.00407f6a
add eax, 0x20
push eax
call fcn.004080f9
add esp, 8
xor esi, esi
lea esp, [esp]
call fcn.0040760e
movzx eax, ax
cmp eax, 0xd
je 0x4069c7
cmp eax, 3
je 0x406a95
mov word [esi*2 + 0x4518a0], ax
inc esi
cmp esi, 0x207
jb 0x4069a0
add esi, esi
cmp esi, 0x208
jae 0x406ab2
xor eax, eax
push 0x422c10
mov word [esi + 0x4518a0], ax
call fcn.004073bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
jmp 0x406a05
xor eax, eax
mov dword [ebp - 0x8008], 1
mov word [0x4518a0], ax
test edi, edi
je 0x406a11
mov eax, 0x5c
mov word [edi], ax
push str.CreateProcessWithLogonW
push 0x4209a0
call ebx
push eax
call esi
push 0x42b380
push 0x455ac0
mov dword [0x4307a4], eax
call fcn.00406e6e
add esp, 8
test eax, eax
jne 0x406a69
cmp byte [0x430795], al
jne 0x406a69
cmp dword [ebp - 0x8008], eax
jne 0x406a69
cmp dword [0x4307a4], eax
je 0x406a69
call fcn.00404520
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
push 0x405530
push 0x42b380
push 1
call fcn.00402cb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004077dc
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.004072ca
push 0x4211ac
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.00408b5b
add esp, 8
push 0
call fcn.004072ca
call fcn.0040950c
int3