Function at 0x6d101451
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0xc4], eax
mov eax, dword [ebp + 0xd0]
push ebx
push esi
mov esi, dword [ebp + 0xd8]
xor ebx, ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x6d1014b3
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x1fffff
lea ecx, [ebp - 0x60]
push ecx
push eax
push eax
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x6d1014b3
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x60], ebx
jne 0x6d101659
push esi
push ebx
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x6d101659
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x6d10160e
mov esi, dword [sym.imp.kernel32.dll_GetCurrentThread]
push edi
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x28
mov dword [ebp - 0x78], ebx
call esi
mov edi, dword [sym.imp.advapi32.dll_OpenThreadToken]
push eax
call edi
test eax, eax
jne 0x6d101533
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3f0
je 0x6d101517
xor eax, eax
jmp 0x6d10160a
push 2
call dword [sym.imp.advapi32.dll_ImpersonateSelf]
test eax, eax
je 0x6d101510
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x28
call esi
push eax
call edi
test eax, eax
je 0x6d101510
lea eax, [ebp - 0x80]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x6d101561
call dword [sym.imp.kernel32.dll_GetLastError]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x6d101510
push 0x10
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.msvcr100.dll_memset
mov eax, dword [ebp - 0x80]
mov esi, dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x6c], ebx
call esi
test eax, eax
je 0x6d1015ec
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
test eax, eax
jne 0x6d1015d4
push dword [ebp - 0x68]
push ebx
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x78], eax
cmp eax, ebx
jne 0x6d1015db
call edi
mov dword [ebp - 0x6c], eax
jmp 0x6d1015db
mov dword [ebp - 0x6c], 5
push ebx
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
push eax
push ebx
push dword [ebp - 0x64]
call esi
jmp 0x6d1015f5
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x64]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
pop edi
cmp dword [ebp - 0x60], ebx
jne 0x6d101659
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0x57
jne 0x6d10162f
push str.no_such_process
push dword [ebp - 0x70]
call sub.java.dll__JNU_ThrowIOException_8
jmp 0x6d101653
call esi
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x3c]
push str.OpenProcess_pid_d__failed__LastError0x_x
push eax
call dword [sym.imp.msvcr100.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
call sub.java.dll__JNU_ThrowIOExceptionWithLastError_8
xor eax, eax
xor edx, edx
jmp 0x6d1016a6
cmp dword [0x6d104018], ebx
je 0x6d1016a2
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [0x6d104018]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x60]
call dword [0x6d104018]
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x68]
je 0x6d1016a2
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_CloseHandle]
push str.Unable_to_attach_to_64_bit_process
push str.com_sun_tools_attach_AttachNotSupportedException
push dword [ebp - 0x70]
call sub.java.dll__JNU_ThrowByName_12
mov eax, dword [ebp - 0x60]
cdq
mov ecx, dword [ebp + 0xc4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d101a3a
add ebp, 0xc8
leave
ret 0xc