Function at 0x402390
Capabilities:
Accept command line arguments
Connect to wmi namespace via wbemlocator

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x74
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
test ebx, ebx
jle 0x401846
mov edi, eax
xor esi, esi
jmp 0x401800
inc esi
add edi, 4
cmp ebx, esi
je 0x401846
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x401868
test byte [section..data], 1
je 0x4017f8
call fcn.004010d0
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.switch__s_not_supported_n
mov dword [esp + 8], str.process_args
mov dword [esp + 4], 0x404000
mov dword [esp], 0
add edi, 4
call fcn.00401550
cmp ebx, esi
jne 0x401800
mov eax, 0x65
mov edi, 1
call fcn.00401430
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], eax
mov dword [esp + 4], 0x406150
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x40], eax
call eax
test eax, eax
je 0x401897
mov dword [esp + 4], str.exit
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x4018a8
lea esp, [ebp - 0x10]
xor edi, edi
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.class
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
je 0x4018d4
mov dword [esp + 4], str.context
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x401915
test byte [section..data], 1
je 0x401846
mov eax, dword [edi]
call fcn.004010d0
mov dword [esp + 0xc], str.command__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.process_args
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401550
jmp 0x401846
mov dword [esp + 4], str.path
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x401a05
inc esi
cmp ebx, esi
jle 0x401a68
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x44], eax
lea ecx, [esi + 1]
cmp ebx, ecx
jle 0x401846
shl ecx, 2
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0x4060fa
mov dword [ebp - 0x48], ecx
mov eax, dword [eax + ecx]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edi, eax
test eax, eax
jne 0x401846
lea edx, [esi + 2]
mov ecx, dword [ebp - 0x48]
cmp ebx, edx
jle 0x401846
mov eax, dword [ebp - 0x3c]
sub ebx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x38], 0
lea esi, [eax + ecx + 4]
mov al, byte [section..data]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test al, 8
jne 0x401a7c
test ebx, ebx
jg 0x4019c2
jmp 0x401ae8
inc edi
cmp dword [ebp - 0x50], edi
je 0x401ac0
mov dl, al
and edx, 8
je 0x4019b8
mov eax, dword [esi + edi*4]
call fcn.004010d0
mov dword [esp + 0xc], 0x406105
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401550
mov al, byte [section..data]
mov dl, al
and edx, 8
jmp 0x4019b8
mov edx, dword [edi]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
mov eax, str.bios
xor edi, edi
mov esi, edx
mov ebx, dword [ebp - 0x40]
jmp 0x401a22
mov eax, dword [edi*8 + 0x406440]
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
test eax, eax
je 0x401a49
inc edi
cmp edi, 0xb
jne 0x401a1b
mov eax, 0x66
mov edi, 1
call fcn.00401430
jmp 0x401855
mov eax, dword [edi*8 + 0x406444]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x401941
jmp 0x401a35
mov eax, 0x68
mov edi, 1
call fcn.00401430
jmp 0x401855
mov eax, dword [ebp - 0x44]
call fcn.004010d0
mov dword [esp + 0xc], 0x406102
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401550
mov al, byte [section..data]
mov dl, al
and edx, 8
cmp dword [ebp - 0x50], 0
jg 0x4019c2
test dl, dl
je 0x401ae8
mov dword [esp + 0xc], 0x406109
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401550
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x38]
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4065c8
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4065e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x40225d
mov ebx, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.ROOTCIMV2
mov dword [ebp - 0x5c], ebx
call ebx
mov edi, eax
mov dword [ebp - 0x58], eax
push ecx
test eax, eax
je 0x40225d
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x24
test eax, eax
jne 0x402230
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call ebx
mov edi, eax
mov dword [ebp - 0x4c], eax
push edx
test eax, eax
je 0x402329
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0x18
mov ebx, eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], edi
mov dword [ebp - 0x40], eax
call eax
test ebx, ebx
push eax
jne 0x4022fb
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4022cd
xor edx, edx
xor ebx, ebx
mov edi, edx
mov eax, dword [esi + ebx*4]
inc ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
add edi, eax
cmp ebx, dword [ebp - 0x50]
jne 0x401c64
lea eax, [edi + edi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4022c0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], 0
mov word [eax], 0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [esi + eax*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
test eax, eax
je 0x402299
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0x406000
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcstok_s]
mov edi, eax
test eax, eax
je 0x402210
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, edi
cmp word [edi], 0x20
lea eax, [edi + eax*2 - 2]
jne 0x401d17
nop
add edx, 2
cmp word [edx], 0x20
je 0x401cf8
jmp 0x401d17
cmp word [eax], 0x20
jne 0x401d1b
sub eax, 2
mov word [eax + 2], 0
cmp eax, edi
jae 0x401d08
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
call section..text
test eax, eax
js 0x4021c8
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0x406000
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_wcstok_s]
mov edi, eax
test eax, eax
jne 0x401ce2
mov eax, dword [ebp - 0x48]
mov dword [esp], ebx
call eax
mov edi, dword [ebp - 0x54]
inc edi
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x50]
jne 0x401ca7
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push edx
mov edx, dword [ebp - 0x44]
mov eax, edx
cmp word [edx], 0
je 0x401d8b
add eax, 2
cmp word [eax], 0
jne 0x401d82
mov ebx, dword [ebp - 0x44]
sub eax, ebx
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0x3c]
cmp word [eax], 0
je 0x402291
add eax, 2
cmp word [eax], 0
jne 0x401da1
mov esi, dword [ebp - 0x3c]
mov dword [esp], 0
sub eax, esi
sar eax, 1
lea ebx, [edx + eax + 0xf]
mov dword [esp + 4], ebx
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebp - 0x50], eax
test eax, eax
push ecx
push ecx
je 0x4022b1
mov edx, dword [ebp - 0x44]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], str.SELECT__s_FROM__s
mov dword [esp], eax
mov ebx, eax
call fcn.004014a0
mov dword [esp], 0x40613a
mov eax, dword [ebp - 0x5c]
call eax
mov esi, eax
mov dword [ebp - 0x4c], eax
push edx
test eax, eax
je 0x4022a9
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0x18
test eax, eax
jne 0x4022a9
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x24]
sub esp, 0x14
test eax, eax
je 0x401f63
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
lea esi, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov edi, dword [sym.imp.oleaut32.dll_VariantClear]
push eax
push eax
lea esi, [esi]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
jne 0x401f52
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x401f05
mov eax, ebx
call fcn.004015a0
mov edx, dword [ebp - 0x18]
cmp word [edx], 0
je 0x401f22
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x401f10
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x44]
ja 0x401f39
mov dword [esp], ebx
call edi
push eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
push eax
jmp 0x401ea8
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401f40
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
jmp 0x401f22
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
jmp 0x401e4d
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x54]
add esi, 2
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x24]
sub esp, 0x14
test edx, edx
je 0x40203a
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
push eax
push eax
jmp 0x401fec
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.__s
call fcn.00401340
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
je 0x401fc9
mov dword [esp], 0x40614c
call fcn.00401340
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x44], edi
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x24]
sub esp, 0x14
test ebx, ebx
je 0x40213b
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov edi, dword [sym.imp.oleaut32.dll_VariantClear]
push ecx
push ecx
jmp 0x4020e8
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x4020cb
mov eax, ebx
call fcn.004015a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.__s
call fcn.00401340
mov dword [esp], ebx
call edi
push edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
je 0x4020a0
mov dword [esp], 0x40614c
call fcn.00401340
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
jmp 0x402049
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40214e
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40215e
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40216e
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x40]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x50]
push ecx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x4c]
push esi
mov dword [esp], eax
call ebx
push eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401855
cmp word [eax], 0x20
jne 0x4021b5
sub eax, 2
mov word [eax + 2], 0
cmp ebx, eax
jbe 0x4021a2
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
call section..text
test eax, eax
jns 0x401d50
mov dword [esp], ebx
mov ebx, dword [ebp - 0x48]
call ebx
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
or edi, 0xffffffff
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, 0x67
call fcn.00401430
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x40213e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, ebx
cmp word [ebx], 0x20
lea eax, [ebx + eax*2 - 2]
jne 0x4021b1
add edx, 2
cmp word [edx], 0x20
je 0x402225
jmp 0x4021b1
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
jmp 0x40213e
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], eax
jmp 0x40213e
mov eax, dword [ebp - 0x3c]
jmp 0x401daa
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
jmp 0x4021d8
or edi, 0xffffffff
jmp 0x40213e
mov dword [ebp - 0x4c], 0
or edi, 0xffffffff
jmp 0x40213e
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], eax
jmp 0x4021d8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], edx
test eax, eax
je 0x4021d8
mov eax, dword [ebp - 0x3c]
mov word [eax], 0
jmp 0x401d6b
test byte [section..data], 4
jne 0x40234f
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
jmp 0x40213e
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x50], 0
or edi, 0xffffffff
mov dword [ebp - 0x48], eax
jmp 0x40213e
mov eax, dword [ebp - 0x44]
call fcn.004010d0
mov dword [esp + 0xc], str.Unrecognized_class__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 2
call fcn.00401550
jmp 0x402304
push ebp
mov eax, 0x601c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00403028
sub esp, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0x40615a
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
cmp ebx, 1
je 0x4023d8
add esi, 4
dec ebx
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4017d0
mov dword [esp], 1
mov esi, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call esi
mov dword [esp], str.wmic:rootcli_
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ucrtbase.dll_fputws]
mov dword [ebp - 0x6010], eax
lea ebx, [ebp - 0x600c]
call eax
mov dword [ebp - 0x6014], 0
nop
mov dword [esp], 0
call esi
mov dword [esp + 4], 0x2000
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fgetws]
test eax, eax
je 0x4025d6
mov dword [esp], ebx
mov edi, ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], ebx
mov word [ebp + eax*2 - 0x600e], 0
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp word [ebp - 0x600c], 0x20
lea eax, [ebx + eax*2 - 2]
jne 0x402487
lea esi, [esi]
add edi, 2
cmp word [edi], 0x20
je 0x402468
cmp eax, ebx
jb 0x40248b
lea esi, [esi]
cmp word [eax], 0x20
jne 0x40248b
sub eax, 2
mov word [eax + 2], 0
cmp eax, ebx
jae 0x402478
test byte [section..data], 8
jne 0x402598
mov dword [esp + 4], str.exit
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x4025cc
mov dword [esp + 4], 0x406150
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x4025cc
cmp word [edi], 0
jne 0x402548
mov dword [esp], 0
lea edi, [ebp - 0x400c]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push ecx
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], edi
mov dword [esp + 4], 0x69
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
mov dword [esp], 2
call esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x406020
mov dword [esp], eax
call fcn.004013f0
mov dword [esp], 1
call esi
mov dword [esp], str.wmic:rootcli_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6010]
call eax
jmp 0x402410
lea eax, [ebp - 0x400c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov edi, eax
test eax, eax
push edx
push edx
je 0x4025e4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x400c]
mov dword [esp], eax
call 0x4017d0
mov dword [esp], edi
mov dword [ebp - 0x6014], eax
call dword [sym.imp.kernel32.dll_LocalFree]
push eax
mov dword [esp], 0x40614c
call fcn.00401340
jmp 0x402521
mov eax, edi
call fcn.004010d0
mov dword [esp + 0xc], str.command:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4061c4
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401550
jmp 0x402498
mov dword [ebp - 0x6014], 0
mov eax, dword [ebp - 0x6014]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x6014], 1
jmp 0x4025d6