Function at 0x402440
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 eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [ebp - 0x3c], eax
test esi, esi
jle 0x4018a2
mov edi, eax
xor ebx, ebx
jmp 0x40185a
add ebx, 1
add edi, 4
cmp esi, ebx
je 0x4018a2
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x4018c0
test byte [section..data], 1
je 0x401850
call fcn.004010d0
mov dword [esp + 0xc], str.switch__s_not_supported_n
add ebx, 1
add edi, 4
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.process_args
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401580
cmp esi, ebx
jne 0x40185a
mov eax, 0x65
mov edi, 1
call fcn.00401450
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 eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.quit
mov dword [ebp - 0x40], eax
call eax
test eax, eax
je 0x4018ef
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 0x401900
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
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 0x40192c
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 0x40196d
test byte [section..data], 1
je 0x4018a2
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.00401580
jmp 0x4018a2
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 0x401a6f
add ebx, 1
cmp esi, ebx
jle 0x401ad0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 1]
cmp esi, eax
jle 0x4018a2
mov edx, dword [ebp - 0x3c]
lea ecx, [eax*4]
mov dword [esp + 4], 0x406104
mov dword [ebp - 0x48], ecx
mov eax, dword [edx + eax*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edi, eax
test eax, eax
jne 0x4018a2
add ebx, 2
mov ecx, dword [ebp - 0x48]
cmp esi, ebx
jle 0x4018a2
mov eax, dword [ebp - 0x3c]
sub esi, ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], esi
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], eax
movzx eax, byte [section..data]
mov dword [ebp - 0x30], 0
test al, 8
jne 0x401ae4
test esi, esi
jle 0x401b52
mov ebx, dword [ebp - 0x54]
jmp 0x401a2a
add edi, 1
cmp dword [ebp - 0x50], edi
je 0x401b2a
mov edx, eax
and edx, 8
je 0x401a1e
mov eax, dword [ebx + edi*4]
call fcn.004010d0
mov dword [esp + 0xc], 0x40610f
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401580
movzx eax, byte [section..data]
mov edx, eax
and edx, 8
jmp 0x401a1e
mov edx, dword [edi]
mov dword [ebp - 0x44], ebx
mov eax, str.baseboard
xor edi, edi
mov dword [ebp - 0x48], esi
mov ebx, dword [ebp - 0x40]
mov esi, edx
jmp 0x401a8c
mov eax, dword [edi*8 + 0x4064e0]
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
test eax, eax
je 0x401ab5
add edi, 1
cmp edi, 0xd
jne 0x401a85
mov eax, 0x66
mov edi, 1
call fcn.00401450
jmp 0x4018b1
mov eax, dword [edi*8 + 0x4064e4]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x40199b
jmp 0x401aa1
mov eax, 0x68
mov edi, 1
call fcn.00401450
jmp 0x4018b1
mov eax, dword [ebp - 0x44]
call fcn.004010d0
mov dword [esp + 0xc], 0x40610c
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401580
movzx eax, byte [section..data]
mov edx, eax
and edx, 8
cmp dword [ebp - 0x50], 0
jg 0x401a19
test dl, dl
je 0x401b52
mov dword [esp + 0xc], 0x406113
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401580
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
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], 0x406678
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x406698
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x402317
mov esi, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.ROOTCIMV2
mov dword [ebp - 0x60], esi
call esi
mov dword [ebp - 0x58], eax
sub esp, 4
mov ebx, eax
test eax, eax
je 0x402317
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], ebx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x24
test eax, eax
jne 0x4022ea
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call esi
mov dword [ebp - 0x4c], eax
sub esp, 4
mov esi, eax
test eax, eax
je 0x4023e3
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], esi
mov dword [esp], eax
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 0x18
mov dword [esp], esi
mov dword [ebp - 0x40], eax
call eax
sub esp, 4
test ebx, ebx
jne 0x4023b5
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x28]
test eax, eax
je 0x402387
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + ebx*4]
add ebx, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
add edi, eax
cmp ebx, dword [ebp - 0x50]
jne 0x401cd1
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 0x40237a
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x4c], 0
mov word [eax], dx
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
test eax, eax
je 0x402353
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 0x4022a0
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp word [edi], 0x20
mov edx, edi
lea eax, [edi + eax*2 - 2]
jne 0x401d97
lea esi, [esi]
add edx, 2
cmp word [edx], 0x20
je 0x401d78
jmp 0x401d97
cmp word [eax], 0x20
jne 0x401d9b
sub eax, 2
xor ecx, ecx
mov word [eax + 2], cx
cmp eax, edi
jae 0x401d88
mov ecx, ebx
mov eax, esi
call section..text
test eax, eax
js 0x402252
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 0x401d5d
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
mov dword [esp], ebx
call eax
add dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jne 0x401d19
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edx, dword [ebp - 0x44]
sub esp, 4
cmp word [edx], 0
mov eax, edx
je 0x401e0b
add eax, 2
cmp word [eax], 0
jne 0x401e02
sub eax, dword [ebp - 0x44]
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0x3c]
cmp word [eax], 0
je 0x40234b
add eax, 2
cmp word [eax], 0
jne 0x401e1f
mov edi, dword [ebp - 0x3c]
mov dword [esp], 0
sub eax, edi
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
sub esp, 8
mov esi, eax
test eax, eax
je 0x40236b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.SELECT__s_FROM__s
mov dword [esp], esi
call fcn.004014d0
mov dword [esp], 0x406144
mov eax, dword [ebp - 0x60]
call eax
mov dword [ebp - 0x4c], eax
sub esp, 4
mov ebx, eax
test eax, eax
je 0x402363
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], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0x18
test eax, eax
jne 0x402363
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 + 0xc], ecx
mov dword [esp + 8], 1
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 0x401ff5
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]
sub esp, 8
lea esi, [esi]
nop
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 0x401fe2
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 0x401f91
mov eax, ebx
call fcn.004015d0
mov edx, dword [ebp - 0x18]
cmp word [edx], 0
je 0x401fb2
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401fa0
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x44]
ja 0x401fcd
mov dword [esp], ebx
call edi
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 4
jmp 0x401f30
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x401fd0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
jmp 0x401fb2
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x401ece
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x54]
mov ecx, dword [eax]
mov dword [esp], eax
add esi, 2
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
sub esp, 0x14
test eax, eax
je 0x4020d0
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ecx + 0x20]
push eax
push eax
jmp 0x402082
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], str.__s
mov dword [esp + 8], eax
call fcn.00401350
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 4
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 0x40205d
mov dword [esp], 0x406156
call fcn.00401350
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
push eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 0xc]
mov dword [ebp - 0x44], edi
sub esp, 4
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 + 0xc], ecx
mov dword [esp + 8], 1
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 0x4021df
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]
sub esp, 8
jmp 0x40218a
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 0x40216b
mov eax, ebx
call fcn.004015d0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp], str.__s
mov dword [esp + 8], eax
call fcn.00401350
mov dword [esp], ebx
call edi
sub esp, 4
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 0x402140
mov dword [esp], 0x406156
call fcn.00401350
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x4020e1
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4021f4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402206
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402218
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x40]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4018b1
mov ebx, dword [ebp - 0x5c]
mov dword [esp], ebx
mov esi, dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x28]
or edi, 0xffffffff
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, 0x67
push ecx
call fcn.00401450
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x4021e2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp word [ebx], 0x20
mov edx, ebx
lea eax, [ebx + eax*2 - 2]
jne 0x4022cf
add edx, 2
cmp word [edx], 0x20
je 0x4022b5
jmp 0x4022cf
cmp word [eax], 0x20
jne 0x4022d3
sub eax, 2
xor edi, edi
mov word [eax + 2], di
cmp ebx, eax
jbe 0x4022c0
mov ecx, dword [ebp - 0x3c]
mov eax, esi
call section..text
test eax, eax
jns 0x401dd1
jmp 0x402255
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
jmp 0x4021e2
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], eax
jmp 0x4021e2
mov eax, dword [ebp - 0x3c]
jmp 0x401e28
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
jmp 0x402265
or edi, 0xffffffff
jmp 0x4021e2
mov dword [ebp - 0x4c], 0
or edi, 0xffffffff
jmp 0x4021e2
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], eax
jmp 0x402265
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 0x402265
mov eax, dword [ebp - 0x3c]
mov word [eax], 0
jmp 0x401de9
test byte [section..data], 4
jne 0x402409
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 0x4021e2
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], eax
jmp 0x4021e2
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.00401580
jmp 0x4023be
push ebp
mov eax, 0x601c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004030d8
sub esp, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0x406164
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
cmp ebx, 1
je 0x402490
add esi, 4
sub ebx, 1
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp 0x401820
mov dword [esp], 1
mov esi, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea ebx, [ebp - 0x600c]
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
call eax
mov dword [ebp - 0x6014], 0
lea esi, [esi]
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 0x40269e
mov dword [esp], ebx
mov edi, ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
xor ecx, ecx
mov dword [esp], ebx
mov word [ebp + eax*2 - 0x600e], cx
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp word [ebp - 0x600c], 0x20
lea eax, [ebx + eax*2 - 2]
jne 0x402547
lea esi, [esi]
add edi, 2
cmp word [edi], 0x20
je 0x402528
cmp eax, ebx
jb 0x40254b
lea esi, [esi]
cmp word [eax], 0x20
jne 0x40254b
sub eax, 2
xor edx, edx
mov word [eax + 2], dx
cmp eax, ebx
jae 0x402538
test byte [section..data], 8
jne 0x402660
mov dword [esp + 4], str.exit
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x402694
mov dword [esp + 4], str.quit
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x402694
cmp word [edi], 0
jne 0x402608
mov dword [esp], 0
lea edi, [ebp - 0x400c]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
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.00401410
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 0x4024d0
lea eax, [ebp - 0x400c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
sub esp, 8
mov edi, eax
test eax, eax
je 0x4026ac
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x400c]
mov dword [esp], eax
call 0x401820
mov dword [esp], edi
mov dword [ebp - 0x6014], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
mov dword [esp], 0x406156
call fcn.00401350
jmp 0x4025e3
mov eax, edi
call fcn.004010d0
mov dword [esp + 0xc], str.command:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4061d0
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.00401580
jmp 0x402558
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 0x40269e