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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438534
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x44e3ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push eax
push 1
call sub.WsmSvc.DLL_WSManInitialize
test eax, eax
jne 0x40aba6
lea eax, [ebp - 0x98]
mov dword [ebp - 0xe4], eax
cmp dword [esi + 0xa4], 8
lea eax, [esi + 0x90]
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
jb 0x40a69e
mov eax, dword [eax]
cmp dword [esi + 0xec], 8
mov dword [ebp - 0x110], eax
lea eax, [esi + 0xd8]
jb 0x40a6b5
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
lea eax, [esi + 0x78]
push eax
lea eax, [ebp - 0x58]
push str.http:__
push eax
call fcn.004026b0
push str.:5985
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
call fcn.00402510
add esp, 0x18
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00408230
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x9c]
push ecx
push 0
lea ecx, [ebp - 0x114]
push ecx
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push 0
push eax
push dword [ebp - 0x98]
call sub.WsmSvc.DLL_WSManCreateSession
test eax, eax
jne 0x40abc4
cmp dword [ebp - 0x9c], eax
je 0x40abe3
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xb4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xec], 0x401870
push eax
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x120], str.WINRS_NOPROFILE
push eax
push 0
push str.http:__schemas.microsoft.com_wbem_wsman_1_windows_shell_cmd
push 0
push dword [ebp - 0x9c]
mov dword [ebp - 0x11c], str.TRUE
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xc0], str.stdout
mov dword [ebp - 0x108], 1
call sub.WsmSvc.DLL_WSManCreateShell
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xd4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push dword [ebp - 0xb8]
mov byte [ebp - 4], 7
call ebx
test eax, eax
jne 0x40ac01
cmp dword [ebp - 0xb4], eax
jne 0x40ac1a
mov dword [ebp - 0xac], eax
push eax
push eax
push eax
push eax
call edi
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xd0], eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0x401800
call fcn.00406d60
push str.___command_install
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004093c0
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x58]
push str.___apiport
push eax
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00409390
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00408230
mov esi, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x18]
push eax
call fcn.00406d60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x70]
push str.___snapshot__
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xd
push eax
call fcn.00402510
add esp, 0x18
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.00409390
lea ecx, [ebp - 0x58]
call fcn.00408230
lea ecx, [ebp - 0x70]
call fcn.00408230
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00408230
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406d60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
push str.___cert_file__
lea eax, [ebp - 0x58]
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x10
push eax
call fcn.00402510
add esp, 0x18
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call fcn.00409390
lea ecx, [ebp - 0x70]
call fcn.00408230
lea ecx, [ebp - 0x58]
call fcn.00408230
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00408230
lea eax, [esi + 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406d60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x58]
push str.___key_file__
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x13
push eax
call fcn.00402510
add esp, 0x18
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
call fcn.00409390
lea ecx, [ebp - 0x70]
call fcn.00408230
lea ecx, [ebp - 0x58]
call fcn.00408230
lea ecx, [ebp - 0x28]
call fcn.00408230
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xf8]
push ecx
push 0
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push dword [ebp - 0xa0]
call sub.WsmSvc.DLL_WSManRunShellCommand
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xcc], eax
push 0xea60
push dword [ebp - 0xb0]
mov byte [ebp - 4], 0x15
call ebx
test eax, eax
jne 0x40ac3c
cmp dword [ebp - 0xac], eax
je 0x40aa44
lea ecx, [ebp - 0xac]
jmp 0x40ac20
mov dword [ebp - 0xa4], 0
push 0
push 0
push 0
push 0
call edi
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x100]
mov dword [ebp - 0xfc], 0x4018e0
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0xbc]
push dword [ebp - 0xa0]
call sub.WsmSvc.DLL_WSManReceiveShellOutput
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x94], eax
push 0xafc8
push dword [ebp - 0xa8]
mov byte [ebp - 4], 0x18
call ebx
test eax, eax
je 0x40aadb
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00407660
push 0x44c704
lea eax, [ebp - 0x1c]
jmp 0x40ac36
cmp dword [ebp - 0xa4], 0
je 0x40aaef
lea ecx, [ebp - 0xa4]
jmp 0x40ac20
lea ecx, [ebp - 0x94]
call fcn.00407ed0
lea ecx, [ebp - 0xc8]
call fcn.00407dc0
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x40ab15
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xcc]
call fcn.00407de0
lea ecx, [ebp - 0x40]
call fcn.00408230
lea ecx, [ebp - 0xd0]
call fcn.00407dc0
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x40ab43
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xd4]
call fcn.00407e20
lea ecx, [ebp - 0xd8]
call fcn.00407dc0
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x40ab69
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xdc]
call fcn.00407e10
lea ecx, [ebp - 0x90]
call fcn.00408230
lea ecx, [ebp - 0xe4]
call fcn.00407db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b949
mov esp, ebp
pop ebp
ret
push 0xb
lea ecx, [ebp - 0xe8]
call fcn.00407070
push 0x44c758
lea eax, [ebp - 0xe8]
push eax
call fcn.0041c83d
push eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0x20]
push 0xe
call fcn.00407600
push 0x44c770
lea eax, [ebp - 0x20]
push eax
call fcn.0041c83d
push 0xe
lea ecx, [ebp - 0xe0]
call fcn.00407070
push 0x44c758
lea eax, [ebp - 0xe0]
push eax
call fcn.0041c83d
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00407660
push 0x44c704
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c83d
lea ecx, [ebp - 0xb4]
call fcn.004090d0
push eax
lea ecx, [ebp - 0x78]
call fcn.00407090
push 0x44c7a8
lea eax, [ebp - 0x78]
push eax
call fcn.0041c83d
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00407660
push 0x44c704
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c83d
int3