Function at 0x502380
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x6c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x4c]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x5023c0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 1
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053c370
test eax, eax
jne 0x5023f4
call fcn.00401d00
mov ecx, eax
call fcn.00401bf0
cmp eax, 4
jle 0x502474
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x502970
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053c370
mov dword [esp], esi
mov dword [esp + 4], 0x64
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x4c]
setne bl
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x30
mov esi, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], esi
call fcn.00646810
lea edi, [ebp - 0x20]
mov ebx, eax
mov dword [esp + 4], 2
mov ecx, eax
mov dword [esp], edi
call dword [method.QTextStream.QTextStream_QString__QFlags_QIODevice::OpenModeFlag__]
sub esp, 8
mov eax, 1
lea edi, [ebp - 0x48]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 1
mov esi, dword [method.QString.fromUtf8_helper_char_const__int_]
mov dword [ebx + 0x10], 0
mov word [ebx + 0x14], ax
mov dword [ebx + 0x18], 2
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0x40000000
mov dword [ebp - 0x1c], ebx
mov dword [esp + 8], 5
mov dword [esp + 4], 0x6ba18a
mov dword [esp], edi
call esi
mov ecx, ebx
mov dword [esp], edi
mov ebx, dword [method.QTextStream.operator___QString_const_]
call ebx
mov eax, dword [ebp - 0x48]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502537
cmp edx, 0xffffffff
je 0x502550
lock sub dword [eax], 1
mov eax, dword [ebp - 0x48]
jne 0x502550
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x5029b0
lea eax, [ebp - 0x44]
mov dword [esp + 8], 0x1a
mov dword [esp + 4], str.Can_not_set_SE_DEBUG_NAME.
mov dword [esp], eax
call esi
lea eax, [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x44]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5025a0
cmp edx, 0xffffffff
je 0x5025b9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x44]
jne 0x5025b9
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x502990
lea eax, [ebp - 0x40]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6ba1ab
mov dword [esp], eax
call esi
lea eax, [ebp - 0x40]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502604
cmp edx, 0xffffffff
je 0x50261d
lock sub dword [eax], 1
mov eax, dword [ebp - 0x40]
jne 0x50261d
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x502ae0
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0x38
mov dword [esp + 4], str.static_bool_ProcessUtils::killProcessByPid_unsigned_int_
mov dword [esp], eax
call esi
lea eax, [ebp - 0x3c]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502670
cmp edx, 0xffffffff
je 0x502689
lock sub dword [eax], 1
mov eax, dword [ebp - 0x3c]
jne 0x502689
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x502ac0
lea eax, [ebp - 0x38]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6ba1ad
mov dword [esp], eax
call esi
lea eax, [ebp - 0x38]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x38]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5026d4
cmp edx, 0xffffffff
je 0x5026ed
lock sub dword [eax], 1
mov eax, dword [ebp - 0x38]
jne 0x5026ed
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x502aa0
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x11
mov dword [esp + 4], 0x6ba1d9
mov dword [esp], eax
call esi
lea eax, [ebp - 0x34]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x34]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502740
cmp edx, 0xffffffff
je 0x502759
lock sub dword [eax], 1
mov eax, dword [ebp - 0x34]
jne 0x502759
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x502a80
lea eax, [ebp - 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6ba1ad
mov dword [esp], eax
call esi
lea eax, [ebp - 0x30]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5027a4
cmp edx, 0xffffffff
je 0x5027bd
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
jne 0x5027bd
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x14], 0
mov ecx, eax
jne 0x502a60
mov dword [esp], 0x265
call dword [method.QTextStream.operator___int_]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x502a40
lea edi, [ebp - 0x2c]
mov dword [esp + 8], 9
mov dword [esp + 4], 0x6ba1eb
mov dword [esp], edi
call esi
mov dword [esp], edi
mov ecx, dword [ebp - 0x5c]
call ebx
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502830
cmp edx, 0xffffffff
je 0x502849
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
jne 0x502849
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x502a20
call dword [method.QThread.currentThreadId__]
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [method.QTextStream.operator___void_const_]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
cmp byte [ecx + 0x14], 0
jne 0x5029f0
call dword [method.QThread.currentThread__]
mov dword [esp], eax
mov ecx, edi
call dword [method.QObject.objectName___const]
mov eax, dword [ebp - 0x2c]
sub esp, 4
lea ecx, [ebp - 0x1c]
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
add eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [method.QDebug.putString_QChar_const__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
sub esp, 8
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x5029d0
lea eax, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6ba1ab
mov dword [esp], eax
call esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x502900
cmp edx, 0xffffffff
je 0x502919
lock sub dword [eax], 1
mov eax, dword [ebp - 0x28]
jne 0x502919
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
jne 0x502a05
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x502940
cmp edx, 0xffffffff
je 0x502959
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
jne 0x502959
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea ecx, [ebp - 0x24]
call fcn.004021c0
jmp 0x5023f4
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x5023b0
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5025c8
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x50255f
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x5028bb
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
jmp 0x50287b
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
jmp 0x502926
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x502859
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x5027ec
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov ecx, dword [ebp - 0x1c]
jmp 0x5027cc
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x502768
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5026fc
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x502698
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x50262c