Function at 0x505690
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], eax
mov dword [esp + 8], edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x5056d0
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.0053d850
test eax, eax
jne 0x505b20
call fcn.00401d20
mov ecx, eax
call fcn.00401bb0
cmp eax, 4
jg 0x505b20
mov esi, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [esp], 0x30
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], esi
call fcn.0063fc20
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__]
lea edi, [ebp - 0x48]
sub esp, 8
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 0
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
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], 0x68d24a
mov dword [esp], edi
mov esi, dword [method.QString.fromUtf8_helper_char_const__int_]
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 0x505bc0
cmp edx, 0xffffffff
je 0x5057d2
lock sub dword [eax], 1
mov eax, dword [ebp - 0x48]
je 0x505bc0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505d35
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 0x505c20
cmp edx, 0xffffffff
je 0x505825
lock sub dword [eax], 1
mov eax, dword [ebp - 0x44]
je 0x505c20
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505d50
lea eax, [ebp - 0x40]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x68d26b
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 0x505c60
cmp edx, 0xffffffff
je 0x505878
lock sub dword [eax], 1
mov eax, dword [ebp - 0x40]
je 0x505c60
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505dd0
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 0x505c40
cmp edx, 0xffffffff
je 0x5058cb
lock sub dword [eax], 1
mov eax, dword [ebp - 0x3c]
je 0x505c40
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505d70
lea eax, [ebp - 0x38]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x68d26d
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 0x505ce0
cmp edx, 0xffffffff
je 0x50591e
lock sub dword [eax], 1
mov eax, dword [ebp - 0x38]
je 0x505ce0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505d00
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x11
mov dword [esp + 4], 0x68d299
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 0x505cc0
cmp edx, 0xffffffff
je 0x505971
lock sub dword [eax], 1
mov eax, dword [ebp - 0x34]
je 0x505cc0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x505d90
lea eax, [ebp - 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x68d26d
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 0x505ca0
cmp edx, 0xffffffff
je 0x5059c4
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x505ca0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x14], 0
mov ecx, eax
jne 0x505db0
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 0x505e10
lea edi, [ebp - 0x2c]
mov dword [esp + 8], 9
mov dword [esp + 4], 0x68d2ab
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 0x505c80
cmp edx, 0xffffffff
je 0x505a35
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
je 0x505c80
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x505df0
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 0x505e50
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 0x505e30
lea eax, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x68d26b
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 0x505be0
cmp edx, 0xffffffff
je 0x505aec
lock sub dword [eax], 1
mov eax, dword [ebp - 0x28]
je 0x505be0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
jne 0x505d20
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x505c00
cmp edx, 0xffffffff
je 0x505b18
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
je 0x505c00
lea ecx, [ebp - 0x24]
call fcn.00402140
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
test eax, eax
mov esi, eax
je 0x505ba0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053d850
mov dword [esp], esi
mov dword [esp + 4], 0x64
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x4c]
setne bl
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x5056c0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x5057d2
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505aec
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505b18
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505825
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x5058cb
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505878
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505a35
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x5059c4
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x505971
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x50591e
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x50592d
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
jmp 0x505af9
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5057e1
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x505834
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5058da
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x505980
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov ecx, dword [ebp - 0x1c]
jmp 0x5059d3
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x505887
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x505a45
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x5059f3
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x505aa7
mov dword [esp], 0x20
call dword [method.QTextStream.operator___char_]
sub esp, 4
jmp 0x505a67