Function at 0x140002300
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140040090]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r15, rdx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x70]
call fcn.14000d6c0
xor r13d, r13d
mov r14d, r13d
xor eax, eax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
call fcn.140007260
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r13b
mov qword [rbp - 0x30], r13
xor r8d, r8d
lea rdx, [0x14003a04d]
lea rcx, [rbp - 0x40]
call fcn.14000cf80
mov byte [rbp - 0x40], r13b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea r8, [rsp + 0x50]
lea edx, [r13 + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002439
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140002439
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002449
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400024c6
lea r8, [rsp + 0x50]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400024c6
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400024d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [r15 + 0x18]
movdqa xmm0, xmmword [0x14003a620]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [r9 + rbx], 0
jne 0x1400024f0
lea rcx, [rbp - 0x18]
cmp rbx, 0xf
ja 0x14000251a
mov qword [rbp - 8], rbx
mov r8, rbx
mov rdx, r9
call fcn.14000cf80
mov byte [rbp + rbx - 0x18], 0
jmp 0x140002523
mov rdx, rbx
call fcn.140006640
nop
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
lea rcx, str.Waiting_for__s..._n
call fcn.140001150
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
cmp qword [rbp - 8], 0xb
jne 0x14000256d
mov r8d, 0xb
lea rdx, str.WarRock.exe
call fcn.14000d880
test eax, eax
jne 0x14000256d
call fcn.140002050
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x58]
call fcn.140002ef0
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
call fcn.140007260
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [0x14003a620]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x140002608
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400025dc
mov r9, qword [rbx]
mov rdi, qword [rbx + 0x10]
lea rcx, [rbp - 0x78]
cmp rdi, 0xf
ja 0x140002600
mov qword [rbp - 0x68], rdi
mov r8, rdi
mov rdx, r9
call fcn.14000cf80
mov byte [rbp + rdi - 0x78], 0
jmp 0x140002608
mov rdx, rdi
call fcn.140006640
mov qword [rbp - 0x58], r13
mov rax, qword [rbx + 0x18]
cmp rax, 0x10
jb 0x14000264f
mov rcx, qword [rbx]
inc rax
cmp rax, 0x1000
jb 0x14000264a
test cl, 0x1f
jne 0x140002644
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140002644
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140002644
mov rcx, rax
jmp 0x14000264a
call fcn.140011f3c
int3
call fcn.14000b954
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea rcx, [rsp + 0x78]
call fcn.140006f10
lea rcx, [rsp + 0x78]
call fcn.140007090
mov rcx, qword [rbp - 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140002936
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140002936
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.1400082f0
nop
mov rdi, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
cmp rdi, r12
je 0x1400028dc
nop dword [rax + rax]
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x58], xmm0
cmp r14d, 1
je 0x1400028d8
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
call fcn.140007260
mov qword [rbp + 8], rax
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
mov qword [rbp + 0x28], r13
xor r8d, r8d
lea rdx, [0x14003a04d]
lea rcx, [rbp + 0x18]
call fcn.14000cf80
mov byte [rbp + 0x18], 0
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x38], rax
mov r9d, 1
mov r8d, r9d
mov rsi, qword [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140007e50
test al, al
jne 0x140002799
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14003a134]
call fcn.140005780
mov rcx, rax
mov edx, ebx
call fcn.140002fc0
mov rcx, rax
call fcn.140005aa0
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400028bb
lea rcx, [rsp + 0x58]
call fcn.140001e80
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400027b0
mov r8, qword [rax]
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [r15 + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea rdx, str._s.exex__d___s___s__s__s
lea rcx, [rbp + 0x70]
call fcn.140005dc0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x140002831
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x14000282c
test cl, 0x1f
jne 0x1400028d2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400028d2
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400028d2
mov rcx, rax
call fcn.14000b954
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rdx, [rbp + 0x70]
call fcn.140007c10
test rax, rax
jne 0x140002872
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14003a154]
call fcn.140005780
mov rcx, rax
mov edx, ebx
call fcn.140002fc0
mov rcx, rax
call fcn.140005aa0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140007e50
test al, al
jne 0x1400028ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14003a158]
call fcn.140005780
mov rcx, rax
mov edx, ebx
call fcn.140002fc0
mov rcx, rax
call fcn.140005aa0
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
lea rcx, [rbp + 8]
call fcn.140006c00
add rdi, 0x10
cmp rdi, r12
je 0x1400028d8
jmp 0x1400026d0
call fcn.140011f3c
nop
mov rdi, qword [rbp + 0x40]
test rdi, rdi
je 0x140002936
mov rax, qword [rbp + 0x50]
sub rax, rdi
sar rax, 4
movabs rcx, 0xfffffffffffffff
cmp rax, rcx
ja 0x140002930
shl rax, 4
cmp rax, 0x1000
jb 0x140002926
test dil, 0x1f
jne 0x140002930
mov rax, qword [rdi - 8]
cmp rax, rdi
jae 0x140002930
sub rdi, rax
sub rdi, 8
cmp rdi, 0x1f
ja 0x140002930
mov rdi, rax
mov rcx, rdi
call fcn.14000b954
jmp 0x140002936
call fcn.140011f3c
int3
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400029b3
lea r8, [rsp + 0x50]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400029b3
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400029c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002a40
lea r8, [rsp + 0x50]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140002a40
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002a50
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x140002aa9
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x140002aa4
test cl, 0x1f
jne 0x140002a9e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140002a9e
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140002a9e
mov rcx, rax
jmp 0x140002aa4
call fcn.140011f3c
int3
call fcn.14000b954
movdqa xmm0, xmmword [0x14003a620]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x78]
call fcn.1400054f0
mov rax, qword [rsp + 0x78]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x78]
mov qword [rax], rax
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x80], r13
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call fcn.14000b954
nop
mov rax, qword [rbp]
cmp rax, 0x10
jb 0x140002b3d
inc rax
mov rcx, qword [rbp - 0x18]
cmp rax, 0x1000
jb 0x140002b38
test cl, 0x1f
jne 0x140002b32
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140002b32
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140002b32
mov rcx, rax
jmp 0x140002b38
call fcn.140011f3c
int3
call fcn.14000b954
movdqa xmm0, xmmword [0x14003a620]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140002b9c
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140002b97
test cl, 0x1f
jne 0x140002b91
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140002b91
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140002b91
mov rcx, rax
jmp 0x140002b97
call fcn.140011f3c
int3
call fcn.14000b954
movdqa xmm0, xmmword [0x14003a620]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdi, qword [rbp - 0x50]
mov rdx, qword [rdi + 8]
lea rcx, [rbp - 0x50]
call fcn.1400054f0
mov rax, qword [rbp - 0x50]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x50]
mov qword [rax], rax
mov rax, qword [rbp - 0x50]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x48], r13
mov rdi, qword [rbp - 0x50]
mov rcx, rdi
call fcn.14000b954
xor eax, eax
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14000b5d0
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret