Function at 0x40e550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4405b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
lea ecx, [ebp - 0x24]
call fcn.00409db0
push str.byod_agent.exe
lea ecx, [ebp - 0x5c]
call fcn.00412170
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040e430
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00412150
lea edx, [ebp - 0x24]
mov dword [ebp - 0x2c], edx
push 4
lea ecx, [ebp - 0x14]
call fcn.00409db0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00411e20
push 4
lea ecx, [ebp - 0x1c]
call fcn.00409db0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00411dd0
jmp 0x40e5fc
lea ecx, [ebp - 0x14]
call fcn.0040ae40
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040a530
movzx eax, al
test eax, eax
je 0x40e776
lea ecx, [ebp - 0x14]
call fcn.00411db0
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
push 4
lea ecx, [ebp - 0x18]
call fcn.00409db0
mov edx, dword [ebp - 0x28]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x18]
call fcn.004140d0
lea ecx, [ebp - 0x18]
call fcn.0040a610
test eax, eax
je 0x40e711
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40e6b8
mov dword [ebp - 0x34], 0x450fb0
push 0x5c
mov eax, dword [ebp - 0x34]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40e68f
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x40e695
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x28]
push eax
push str.Kill_Agent_Success_PID__u_
push 0x1df
mov ecx, dword [ebp - 0x38]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40e666
jmp 0x40e70f
mov dword [ebp - 0x40], 0x451050
push 0x5c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e6e1
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x44], ecx
jmp 0x40e6e7
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x28]
push eax
push str.Kill_Agent_Failed_PID__u___LastError__u_
push 0x1e3
mov ecx, dword [ebp - 0x44]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x18
xor edx, edx
jne 0x40e6b8
jmp 0x40e769
mov dword [ebp - 0x4c], 0x4510c0
push 0x5c
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x40e73a
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x40e740
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.byod_agent.exe
push str.can_not_find__s__error:_d
push 0x1e7
mov eax, dword [ebp - 0x50]
push eax
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x18
xor ecx, ecx
jne 0x40e711
lea ecx, [ebp - 0x18]
call fcn.0040bf90
jmp 0x40e5f4
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00409f80
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret