Function at 0x51ccc0
Capabilities:
Terminate process

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x138
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x85016c]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb00
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateJobObject_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0xb2]
mov dword [esp + 4], str.sync_kernel32_process__lx
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.0050d7a0
lea eax, [ebp - 0xad]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb05
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateSemaphoreA_failed_le_lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.0050e8b0
lea ecx, [ebp - 0x108]
lea edx, [ebp - 0xb2]
mov eax, 0xb06
call fcn.0050e8d0
mov eax, dword [ebp - 0x108]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov dword [ebp - 0x12c], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb09
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.AssignProcessToJobObject_error__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x12c]
mov dword [esp], edx
call fcn.0050e8b0
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x108]
sub esp, 0xc
call fcn.0050e290
lea ecx, [ebp - 0x108]
mov edx, str.wait
mov eax, 0xb0e
call fcn.0050e8d0
mov eax, dword [ebp - 0x108]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb10
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.AssignProcessToJobObject_error__lu_n
call fcn.0050e8b0
lea ecx, [ebp - 0xf8]
mov edx, str.wait
mov eax, 0xb12
call fcn.0050e8d0
mov eax, dword [ebp - 0xf8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb14
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.AssignProcessToJobObject_error__lu_n
call fcn.0050e8b0
lea eax, [ebp - 0x128]
mov dword [esi + 0x34], 0xdeadbeef
mov edi, dword [sym.imp.kernel32.dll_QueryInformationJobObject]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], 8
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov dword [esp], ebx
call edi
sub esp, 0x14
mov dword [ebp - 0x12c], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb19
xor eax, eax
mov dword [esp + 4], str.QueryInformationJobObject_expected_failure_n
mov edx, dword [ebp - 0x12c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x12c], edx
call fcn.0057d110
mov edx, dword [ebp - 0x12c]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb1a
xor eax, eax
cmp edx, 0x18
sete al
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.Expected_GetLastError___to_be__d__ERROR_BAD_LENGTH__is__d_n
call fcn.0050e8b0
lea eax, [ebp - 0x128]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x124], 0x2a
mov dword [ebp - 0x120], 0x2a
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov dword [esp], ebx
call edi
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb22
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.QueryInformationJobObject_expected_failure_n
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [esi + 0x34]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb23
xor eax, eax
cmp esi, 0xea
sete al
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xea
mov dword [esp + 4], str.Expected_GetLastError___to_be__d__ERROR_MORE_DATA__is__d_n
mov dword [esp], eax
call fcn.0050e8b0
test edi, edi
jne 0x51d6c8
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x124], edx
add eax, 4
cmp eax, 0x1c
jb 0x51d074
lea eax, [ebp - 0x128]
mov dword [esp + 0xc], 0x1c
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov dword [esp], ebx
call dword [0x850158]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.QueryInformationJobObject_error__lu_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0050e8b0
test esi, esi
je 0x51d1fa
cmp dword [ebp - 0x124], 3
je 0x51d738
mov eax, 0xb35
call fcn.0050dc60
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], str.QueryInformationJobObject_returned_ret_len_lu_n
cmp eax, 0x10
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [ebp - 0x124]
mov eax, 0xb38
call fcn.0050dc60
xor eax, eax
mov dword [esp + 8], 2
cmp esi, 2
mov dword [esp + 0xc], esi
sete al
mov dword [esp + 4], str.Expected_pid_list__NumberOfAssignedProcesses_to_be__d__2__is__d_n
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [ebp - 0x120]
mov eax, 0xb39
call fcn.0050dc60
xor eax, eax
mov dword [esp + 8], 2
cmp esi, 2
mov dword [esp + 0xc], esi
sete al
mov dword [esp + 4], str.Expected_pid_list__NumberOfProcessIdsInList_to_be__d__2__is__d_n
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0xb3a
mov esi, dword [ebp - 0x11c]
call fcn.0050dc60
mov eax, dword [ebp - 0x100]
mov dword [esp + 4], str.Expected_list_0__to_be__d__pi_0_.dwProcessId__is__d_n
mov dword [esp + 0xc], esi
cmp esi, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0xb3b
mov esi, dword [ebp - 0x118]
call fcn.0050dc60
mov eax, dword [ebp - 0xf0]
mov dword [esp + 4], str.Expected_list_1__to_be__d__pi_1_.dwProcessId__is__d_n
mov dword [esp + 0xc], esi
cmp esi, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
lea esi, [ebp - 0x80]
lea eax, [ebp - 0x128]
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2f
mov dword [esp + 4], 2
call dword [0x850158]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb42
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.QueryInformationJobObject_expected_failure_n
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword fs:[0x18]
mov edi, dword [edx + 0x34]
mov dword [ebp - 0x12c], edx
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb43
xor eax, eax
cmp edi, 0x18
sete al
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.Expected_GetLastError___to_be__d__ERROR_BAD_LENGTH__is__d_n
call fcn.0050e8b0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0xdeadbeef
mov dword [ebp - 0x80], 0x11111111
mov dword [ebp - 0x7c], 0x11111111
mov dword [ebp - 0x78], 0x11111111
mov dword [ebp - 0x74], 0x11111111
mov dword [ebp - 0x70], 0x11111111
mov dword [ebp - 0x6c], 0x11111111
mov dword [ebp - 0x68], 0x11111111
mov dword [ebp - 0x64], 0x11111111
mov dword [ebp - 0x60], 0x11111111
mov dword [ebp - 0x5c], 0x11111111
mov dword [ebp - 0x58], 0x11111111
mov dword [ebp - 0x54], 0x11111111
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x30
mov dword [esp + 4], 2
call dword [0x850158]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x12c]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb49
mov eax, dword [edx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.QueryInformationJobObject_error__lu_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb4a
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], str.QueryInformationJobObject_returned_ret_len_lu_n
cmp eax, 0x30
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov edi, dword [ebp - 0x70]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb4b
xor eax, eax
test edi, edi
sete al
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Expected_basic_limit_info__LimitFlags_to_be__d__0__is__d_n
call fcn.0050e8b0
lea eax, [ebp - 0x128]
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f
mov dword [esp + 4], 9
call dword [0x850158]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb50
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.QueryInformationJobObject_expected_failure_n
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword [ebp - 0x12c]
mov edi, dword [edx + 0x34]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb51
xor eax, eax
cmp edi, 0x18
sete al
mov dword [esp + 0xc], edi
mov edi, esi
mov dword [esp], eax
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.Expected_GetLastError___to_be__d__ERROR_BAD_LENGTH__is__d_n
call fcn.0050e8b0
mov eax, 0x11111111
mov ecx, 0x1c
mov dword [ebp - 0x128], 0xdeadbeef
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x128]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x70
mov dword [esp + 4], 9
call dword [0x850158]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x12c]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb57
mov eax, dword [edx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.QueryInformationJobObject_error__lu_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb58
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], str.QueryInformationJobObject_returned_ret_len_lu_n
cmp eax, 0x70
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [ebp - 0x70]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb59
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Expected_basic_limit_info__LimitFlags_to_be__d__0__is__d_n
call fcn.0050e8b0
lea eax, [ebp - 0x128]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xe8]
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call dword [0x850158]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x12c]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb5e
mov eax, dword [edx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.QueryInformationJobObject_error__lu_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb5f
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], str.QueryInformationJobObject_returned_ret_len_lu_n
cmp eax, 0x30
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [ebp - 0xc4]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb60
xor eax, eax
cmp esi, 3
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], 3
mov dword [esp + 4], str.Expected_basic_accounting_info.TotalProcesses_to_be__d__3__is__d_n
call fcn.0050e8b0
mov esi, dword [ebp - 0xc0]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xb61
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str.Expected_basic_accounting_info.ActiveProcesses_to_be__d__2__is__d_n
call fcn.0050e8b0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x108]
mov edi, dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x108]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 8
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x104]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0xf8]
sub esp, 8
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xf4]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov esi, dword [ebp - 0x124]
mov eax, 0xb26
call fcn.0050dc60
xor eax, eax
mov dword [esp + 8], 0x2a
cmp esi, 0x2a
mov dword [esp + 0xc], esi
sete al
mov dword [esp + 4], str.Expected_pid_list__NumberOfAssignedProcesses_to_be__d__42__is__d_n
mov dword [esp], eax
call fcn.0050e8b0
mov esi, dword [ebp - 0x120]
mov eax, 0xb27
call fcn.0050dc60
xor eax, eax
mov dword [esp + 8], 0x2a
cmp esi, 0x2a
mov dword [esp + 0xc], esi
sete al
mov dword [esp + 4], str.Expected_pid_list__NumberOfProcessIdsInList_to_be__d__42__is__d_n
mov dword [esp], eax
call fcn.0050e8b0
jmp 0x51d070
mov eax, 0xb30
call fcn.0050dc60
mov dword [esp], str.Number_of_assigned_processes_broken_on_Win_8_n
call fcn.0050e770
jmp 0x51d1fa