Function at 0x1006342
Capabilities:
Execute shell command via windows remote management

Disassembly:
push 0x244
mov eax, 0x1007f7b
call fcn.0100778e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x1d8], eax
xor eax, eax
mov edi, 0x100946c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [0x1009008]
cmp ecx, 0x1009008
je 0x10063bb
test byte [ecx + 0x1c], 1
je 0x10063bb
push 0x1001704
push 0x93
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001e7b
mov ecx, dword [0x1009008]
xor eax, eax
lea edi, [ebp - 0x1d4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
xor edi, edi
test byte [ebp + 0x10], 0x20
je 0x10063e8
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], esi
lea edi, [ebp - 0x1d4]
test dword [ebp + 0x10], 0x20000
je 0x1006401
mov dword [ebp - 0x1d4], 0x80
lea edi, [ebp - 0x1d4]
cmp byte [0x10094d4], bl
je 0x100645e
cmp byte [ebp + 0x28], bl
je 0x1006432
mov eax, esi
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1006413
sub eax, edi
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006432
mov byte [esi], bl
inc esi
dec eax
jne 0x1006426
mov ecx, dword [0x1009008]
cmp ecx, 0x1009008
je 0x1006456
test byte [ecx + 0x1c], 1
je 0x1006456
push ebx
push 0x1001704
push 0x94
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001ea2
xor eax, eax
call fcn.010077e2
ret
mov ecx, 0x10094f0
call fcn.0100265b
cmp eax, ebx
je 0x10064b0
cmp byte [ebp + 0x28], bl
je 0x100648f
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x1006476
sub ecx, edi
sar ecx, 1
inc ecx
cmp ecx, ebx
je 0x100648f
mov byte [esi], bl
inc esi
dec ecx
jne 0x1006489
mov ecx, dword [0x1009008]
cmp ecx, 0x1009008
je 0x1006456
test byte [ecx + 0x1c], 1
je 0x1006456
push eax
push 0x1001704
push 0x95
jmp 0x100644b
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x18c], ebx
call fcn.010028b2
test al, al
jne 0x1006540
cmp byte [ebp + 0x28], bl
je 0x1006510
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10064f7
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006510
mov byte [esi], bl
inc esi
dec eax
jne 0x100650a
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006456
test byte [eax + 0x1c], 1
je 0x1006456
push ebx
push 0x1001704
push 0x96
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x1006451
lea eax, [ebp - 0x190]
push eax
push ebx
call sub.WsmSvc.DLL_WSManInitialize
mov dword [ebp - 0x194], eax
cmp eax, ebx
je 0x10065d0
cmp byte [ebp + 0x28], bl
je 0x100657a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1006561
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x100657a
mov byte [esi], bl
inc esi
dec eax
jne 0x1006574
push 1
push 1
push dword [ebp - 0x194]
call fcn.01002988
test al, al
je 0x1006599
push ebx
push dword [ebp - 0x194]
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push dword [ebp - 0x194]
push 0x1001704
push 0x97
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov eax, dword [0x10094dc]
jmp 0x1006458
lea eax, [ebp - 0x190]
push eax
call fcn.01002e1a
test al, al
jne 0x1006642
cmp byte [ebp + 0x28], bl
je 0x1006603
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10065ea
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006603
mov byte [esi], bl
inc esi
dec eax
jne 0x10065fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, eax
push 1
push esi
call fcn.01002988
test al, al
je 0x1006620
push ebx
push esi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push esi
push 0x1001704
push 0x98
jmp 0x10065bb
push ebx
push 1
push ebx
call fcn.01002988
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.010028b2
test al, al
jne 0x10066bd
cmp byte [ebp + 0x28], bl
je 0x1006693
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100667a
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006693
mov byte [esi], bl
inc esi
dec eax
jne 0x100668d
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006456
test byte [eax + 0x1c], 1
je 0x1006456
push ebx
push 0x1001704
push 0x99
jmp 0x1006535
lea eax, [ebp - 0x188]
push eax
push ebx
push edi
push ebx
push dword [ebp - 0x1e0]
push dword [ebp - 0x190]
call sub.WsmSvc.DLL_WSManCreateSession
mov edi, eax
cmp edi, ebx
je 0x1006740
cmp byte [ebp + 0x28], bl
je 0x1006701
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10066e8
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006701
mov byte [esi], bl
inc esi
dec eax
jne 0x10066fb
push 1
push 1
push edi
call fcn.01002988
test al, al
je 0x1006716
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push edi
push 0x1001704
push 0x9a
jmp 0x10065bb
cmp byte [ebp + 0x28], bl
je 0x1006763
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100674a
sub eax, edx
sar eax, 1
inc eax
cmp eax, ebx
je 0x1006763
mov byte [esi], bl
inc esi
dec eax
jne 0x100675d
lea eax, [ebp - 0x188]
push eax
call fcn.01002d5d
test al, al
jne 0x10067ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, eax
push 1
push esi
call fcn.01002988
test al, al
je 0x1006790
push ebx
push esi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push esi
push 0x1001704
push 0x9b
jmp 0x10065bb
xor eax, eax
lea edi, [ebp - 0x1c0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
inc esi
test byte [ebp + 0x10], 0x10
stosd dword es:[edi], eax
mov dword [ebp - 0x1c0], 4
mov dword [ebp - 0x1bc], esi
je 0x100683a
cmp dword [ebp + 0x2c], esi
jne 0x100683a
lea eax, [ebp - 0x1c0]
push eax
push 0x14
push dword [ebp - 0x188]
call sub.WsmSvc.DLL_WSManSetSessionOption
mov edi, eax
cmp edi, ebx
je 0x100683a
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x1006810
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push edi
push 0x1001704
push 0x9c
jmp 0x10065bb
cmp dword [0x10094d0], ebx
je 0x10068b4
xor eax, eax
lea edi, [ebp - 0x1c0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c0]
push eax
push 0x21
push dword [ebp - 0x188]
mov dword [ebp - 0x1c0], 4
mov dword [ebp - 0x1bc], esi
call sub.WsmSvc.DLL_WSManSetSessionOption
mov edi, eax
cmp edi, ebx
je 0x10068b4
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x100688a
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push edi
push 0x1001704
push 0x9d
jmp 0x10065bb
push ebx
push esi
push ebx
call fcn.01002988
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.010028b2
movzx eax, al
cmp eax, ebx
jne 0x100690e
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006456
test byte [eax + 0x1c], 1
je 0x1006456
push ebx
push 0x1001704
push 0x9e
jmp 0x1006535
xor eax, eax
test dword [ebp + 0x10], 0x10000
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1f8], 0x1001a60
mov dword [ebp - 0x1f4], 0x1001a54
jne 0x1006942
mov dword [ebp - 0x1f4], 0x1001a48
mov dword [ebp - 0x1f0], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push 0x10017e8
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.01003cd3
add esp, 0x10
cmp eax, ebx
jge 0x10069b8
mov ecx, eax
and ecx, 0x1fff0000
movzx edi, ax
cmp ecx, 0x70000
je 0x100697b
mov edi, eax
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x100698e
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x10065c6
test byte [eax + 0x1c], 1
je 0x10065c6
push edi
push 0x1001704
push 0x9f
jmp 0x10065bb
lea esi, [ebp - 0x1f8]
lea edi, [ebp - 0x250]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x220], eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x250]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x224], 0x1001a28
mov dword [ebp - 0x21c], ebx
lea esi, [ebp - 0x224]
lea edi, [ebp - 0x244]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1d8]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x200]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20c], 2
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x228], eax
mov byte [ebp - 0x1a4], bl
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1a4]
call fcn.0100265b
mov esi, eax
cmp esi, ebx
je 0x1006abd
push 1
push 1
push esi
call fcn.01002988
test al, al
je 0x1006a79
push ebx
push esi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006aa1
test byte [eax + 0x1c], 1
je 0x1006aa1
push esi
push 0x1001704
push 0xa0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov ebx, dword [0x10094dc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.01001bea
mov eax, ebx
jmp 0x1006458
xor eax, eax
lea edi, [ebp - 0x1b0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1a4]
xor esi, esi
mov dword [ebp - 0x1b0], eax
xor eax, eax
inc esi
mov dword [ebp - 0x1ac], 0x10052a3
cmp dword [0x10094c8], ebx
jne 0x1006aec
mov eax, esi
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
push ebx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push 0x10019b0
push eax
push dword [ebp - 0x188]
call sub.WsmSvc.DLL_WSManCreateShell
cmp dword [ebp - 0x1a0], ebx
je 0x1006b30
push 0xffffffffffffffff
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x184]
push eax
call fcn.010056f3
test al, al
jne 0x1006b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
push esi
push edi
call fcn.01002988
test al, al
je 0x1006b5b
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006aa1
test byte [eax + 0x1c], 1
je 0x1006aa1
push edi
push 0x1001704
push 0xa1
jmp 0x1006a96
cmp dword [ebp - 0x19c], ebx
je 0x1006bbc
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006aa1
test byte [eax + 0x1c], 1
je 0x1006aa1
push dword [ebp - 0x19c]
push 0x1001704
push 0xa2
jmp 0x1006a96
mov dword [ebp - 0x180], ebx
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
cmp edi, esi
jle 0x1006c7a
xor ecx, ecx
push 4
pop edx
lea eax, [edi - 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01001bb6
pop ecx
push eax
lea ecx, [ebp - 0x180]
call fcn.010050a1
cmp dword [ebp - 0x180], ebx
jne 0x1006c58
push 1
push 1
push 0xe
call fcn.01002988
test al, al
je 0x1006c14
push ebx
push 0xe
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006c3d
test byte [eax + 0x1c], 1
je 0x1006c3d
push 0xe
push 0x1001704
push 0xa3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov esi, dword [0x10094dc]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x180]
call fcn.01005275
mov ebx, esi
jmp 0x1006aa7
xor eax, eax
inc eax
cmp edi, eax
jle 0x1006c77
mov ecx, dword [ebp - 0x1a8]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ebp - 0x180]
mov dword [edx + eax*4 - 4], ecx
inc eax
cmp eax, edi
jl 0x1006c5f
xor esi, esi
inc esi
mov eax, dword [ebp - 0x180]
dec edi
test byte [ebp + 0x38], 2
mov dword [ebp - 0x1c8], edi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1ec], 0x100197c
mov dword [ebp - 0x1e8], 0x1001a54
jne 0x1006cb1
mov dword [ebp - 0x1e8], 0x1001a48
push ebx
push esi
lea eax, [ebp - 0x1ec]
push ebx
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
call fcn.01002988
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.010028b2
movzx eax, al
cmp eax, ebx
jne 0x1006d3a
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006d27
test byte [eax + 0x1c], 1
je 0x1006d27
push ebx
push 0x1001704
push 0xa4
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x180]
call fcn.01005275
jmp 0x1006aa7
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x1c8]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x1c8]
and eax, ecx
push eax
mov eax, dword [ebp - 0x1a8]
push dword [eax]
push ebx
push dword [ebp - 0x184]
call sub.WsmSvc.DLL_WSManRunShellCommand
cmp dword [ebp - 0x1a0], ebx
je 0x1006d8c
push 0xffffffffffffffff
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18c]
call fcn.010055f8
mov edi, eax
cmp edi, ebx
je 0x1006dda
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x1006db0
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006c3d
test byte [eax + 0x1c], 1
je 0x1006c3d
push edi
push 0x1001704
push 0xa5
jmp 0x1006c32
cmp dword [ebp - 0x19c], ebx
je 0x1006e11
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006c3d
test byte [eax + 0x1c], 1
je 0x1006c3d
push dword [ebp - 0x19c]
push 0x1001704
push 0xa6
jmp 0x1006c32
lea ecx, [ebp - 0x17c]
call fcn.01003d32
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.0100425d
mov edi, eax
cmp edi, ebx
je 0x1006e86
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x1006e44
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006e6c
test byte [eax + 0x1c], 1
je 0x1006e6c
push edi
push 0x1001704
push 0xa7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov esi, dword [0x10094dc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x17c]
call fcn.01003d76
jmp 0x1006c43
push ebx
push esi
push ebx
call fcn.01002988
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.010028b2
movzx eax, al
cmp eax, ebx
jne 0x1006ef2
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006ede
test byte [eax + 0x1c], 1
je 0x1006ede
push ebx
push 0x1001704
push 0xa8
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ea2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x17c]
call fcn.01003d76
jmp 0x1006d27
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x44], eax
mov eax, dword [0x10094ec]
push 0xfffffffffffffff6
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
lea ecx, [ebp - 0x17c]
call fcn.01001c28
mov edi, eax
cmp edi, ebx
je 0x1006f66
lea eax, [ebp - 0x17c]
push eax
call fcn.01005e35
push esi
push esi
push edi
call fcn.01002988
test al, al
je 0x1006f3c
push ebx
push edi
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006e6c
test byte [eax + 0x1c], 1
je 0x1006e6c
push edi
push 0x1001704
push 0xaa
jmp 0x1006e61
push dword [ebp - 0x16c]
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push esi
push ebx
call fcn.01002988
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.010028b2
movzx eax, al
cmp eax, ebx
jne 0x1006fdb
lea eax, [ebp - 0x17c]
push eax
call fcn.01005e35
mov eax, dword [0x1009008]
cmp eax, 0x1009008
je 0x1006ede
test byte [eax + 0x1c], 1
je 0x1006ede
push ebx
push 0x1001704
push 0xab
jmp 0x1006ed3
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
push ebx
push ebx
push dword [ebp - 0x18c]
mov dword [ebp - 0x1b4], ebx
push dword [ebp - 0x184]
call sub.WsmSvc.DLL_WSManReceiveShellOutput
cmp dword [ebp - 0x1a0], ebx
je 0x1007018
push 0xffffffffffffffff
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x1b4]
call sub.WsmSvc.DLL_WSManCloseOperation
mov ecx, dword [0x1009008]
mov edi, 0x1009008
cmp ecx, edi
je 0x1007052
test byte [ecx + 0x1c], 4
je 0x1007052
push eax
mov esi, 0x1001704
push esi
push 0xac
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001ea2
jmp 0x1007057
mov esi, 0x1001704
cmp dword [ebp - 0x19c], ebx
je 0x10070b2
lea eax, [ebp - 0x17c]
push eax
call fcn.01005e35
push 1
push 1
push dword [ebp - 0x19c]
call fcn.01002988
test al, al
je 0x100708a
push ebx
push dword [ebp - 0x19c]
call fcn.01005198
mov eax, dword [0x1009008]
cmp eax, edi
je 0x1006e6c
test byte [eax + 0x1c], 1
je 0x1006e6c
push dword [ebp - 0x19c]
push esi
push 0xad
jmp 0x1006e61
push ebx
push 1
push ebx
call fcn.01002988
lea eax, [ebp - 0x17c]
push eax
call fcn.01005e35
push 1
push ebx
push dword [ebp - 0x198]
call fcn.01002988
mov eax, dword [0x1009008]
cmp eax, edi
je 0x1006e6c
test byte [eax + 0x1c], 1
je 0x1006e6c
push dword [ebp - 0x19c]
push esi
push 0xae
jmp 0x1006e61