Function at 0x140045fc0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1028
call fcn.140190c30
sub rsp, rax
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
cmp r8, 0x10
jne 0x140046654
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x40], rcx
call fcn.140046f20
mov r14, rax
lea rbx, [rsp + 0x270]
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov r15, qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
lea rbp, [0x14004667c]
xor r12d, r12d
mov dword [rsp + 0x4c], 0
test r12d, r12d
jne 0x140046625
mov rcx, rbx
mov edx, 0xffffffff
call rdi
mov esi, 1
test eax, eax
je 0x140046627
xor r12d, r12d
mov r13d, 0x10002
mov eax, dword [rsp + 0x270]
dec eax
cmp eax, 5
ja case.default.0x14004607b
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
mov edx, dword [rsp + 0x278]
mov rcx, r14
call fcn.140047020
cmp rax, 0xffffffffffffffff
je 0x140046627
mov rcx, rax
mov rbp, r14
mov r14d, dword [rsp + 0x278]
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0xb80], 0x100007
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0xb50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor r12d, r12d
mov edi, 0
test eax, eax
je 0x140046153
mov ecx, 0x8000
call fcn.1400a12f0
mov edi, 0
test rax, rax
je 0x140046153
mov r15, rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, 0x8000
mov rcx, qword [rsp + 0x40]
mov r8, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140046149
cmp qword [rsp + 0x320], 0x8000
jne 0x140046149
xor esi, esi
xor eax, eax
cmp dword [r15 + rax*4], r14d
je 0x140046232
inc rax
add rsi, 8
cmp rax, 0x2000
jb 0x140046130
mov rcx, r15
call fcn.1400a1350
xor edi, edi
test edi, edi
jne 0x140046181
mov eax, dword [rsp + 0x48]
xor eax, 0x80000003
mov ecx, dword [rsp + 0x4c]
or eax, ecx
mov r13d, 0x10002
mov eax, 0x80010001
cmovne r13d, eax
mov eax, 1
cmove ecx, eax
mov dword [rsp + 0x4c], ecx
mov r14, rbp
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov rbp, qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
mov r15, rbp
lea rbp, [0x14004667c]
jmp case.default.0x14004607b
mov r8, qword [rsp + 0x280]
jmp 0x1400461be
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x290]
mov edx, dword [rsp + 0x278]
mov rcx, r14
call fcn.140046f90
test eax, eax
jne case.default.0x14004607b
jmp 0x140046627
mov edx, dword [rsp + 0x278]
mov rcx, r14
call fcn.140047050
jmp case.default.0x14004607b
mov edx, dword [rsp + 0x278]
mov rcx, r14
call fcn.140047050
mov r12d, 1
jmp case.default.0x14004607b
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x274]
mov edx, dword [rsp + 0x278]
mov r8d, r13d
call r15
mov esi, 0
test eax, eax
jne 0x140046038
jmp 0x140046627
mov rcx, r15
call fcn.1400a1350
mov rax, qword [rsp + 0x60]
add rsi, qword [rax]
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
lea r8, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, 0
test eax, eax
je 0x140046153
cmp qword [rsp + 0x320], 8
mov edi, 0
jne 0x140046153
mov rsi, qword [rsp + 0x260]
mov edi, 0
test rsi, rsi
je 0x140046153
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, 0x148
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
lea r8, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, 0
test eax, eax
je 0x140046153
cmp qword [rsp + 0x320], 0x148
mov edi, 0
jne 0x140046153
mov rdx, qword [rsp + 0x1e0]
lea rax, [rsp + 0xa68]
mov qword [rsp + 0x20], rax
mov r9d, 0x748
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, 0
test eax, eax
je 0x140046153
cmp qword [rsp + 0xa68], 0x748
mov edi, 0
jne 0x140046153
mov cl, byte [rsp + 0x320]
mov r15d, 1
shl r15, cl
mov rax, qword [rsp + 0xc48]
mov rcx, qword [rsp + 0x338]
mov edi, 0
cmp rax, rcx
jb 0x140046153
add rcx, r15
mov edi, 0
cmp rax, rcx
jae 0x140046153
cmp dword [rsp + 0xa28], 0
je 0x140046484
mov rdx, qword [rsp + 0x1e0]
mov eax, 0x70c
add rdx, rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xa68], eax
mov eax, dword [rsp + 0xa2c]
inc eax
mov dword [rsp + 0x70], eax
mov r9d, 4
mov r14, qword [rsp + 0x40]
mov rcx, r14
lea r8, [rsp + 0x70]
call fcn.140046720
xor edi, edi
test eax, eax
je 0x140046153
add rsi, 0x100
mov r9d, 4
mov rcx, r14
mov rdx, rsi
lea r8, [rsp + 0xa68]
call fcn.140046720
test eax, eax
je 0x140046153
cmp qword [rsp + 0xa30], 0xffffffffffffffff
je 0x140046153
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
jne 0x140046458
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0xa30]
xor edi, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 2
mov rcx, r14
mov r8, rax
lea r9, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140046153
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, 0
test eax, eax
je 0x140046153
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edi, edi
cmp eax, 0xffffffff
setne dil
jmp 0x140046153
lea rdi, [rsp + 0x70]
mov rcx, rdi
lea rdx, [rsp + 0xb50]
call fcn.140048340
lea rax, [rsp + 0x320]
mov qword [rsp + 0x1e0], rax
mov rcx, rdi
lea rdx, [rsp + 0x118]
call fcn.1400391d0
mov edi, 0
test eax, eax
je 0x140046153
test byte [rsp + 0x208], 1
mov edi, 0
je 0x140046153
mov r14d, dword [rsp + 0x230]
mov eax, dword [rsp + 0x234]
mov dword [rsp + 0x26c], eax
mov edi, 0
test eax, eax
jne 0x140046153
mov dword [rsp + 0x26c], 1
add rsi, 0x11c
mov r9d, 4
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
lea r8, [rsp + 0x26c]
call fcn.140046720
mov edi, 0
test eax, eax
je 0x140046153
test byte [rsp + 0xa10], 0x1f
mov edi, 0
jne 0x140046153
mov eax, dword [rsp + 0xbe8]
add eax, 0xffffff80
test r14d, r14d
cmovne eax, r14d
add eax, 0xffffff20
and eax, 0xfffffff0
lea r14d, [rax - 8]
mov qword [rsp + 0x50], rax
lea eax, [rax + 0xe0]
mov edi, 0
cmp eax, r14d
jb 0x140046153
mov edi, 0
cmp r15, rax
jb 0x140046153
lea rsi, [rsp + 0xa68]
mov rcx, rsi
lea rdx, [rsp + 0x70]
mov r8, qword [rsp + 0x50]
call fcn.140039260
mov rdx, qword [rsp + 0x338]
add rdx, r14
mov r9d, 0xe8
mov rcx, qword [rsp + 0x40]
mov r8, rsi
call fcn.140046720
mov edi, 0
test eax, eax
je 0x140046153
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0xc00], rax
mov rax, qword [rsp + 0x338]
mov ecx, dword [rsp + 0xa10]
add rcx, rax
mov qword [rsp + 0xc48], rcx
add r14, rax
mov qword [rsp + 0xbe8], r14
and byte [rsp + 0xb95], 0xfb
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xb50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, eax
jmp 0x140046153
xor esi, esi
mov rcx, r14
call fcn.140046f70
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140046640
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov rcx, qword [rsp + 0x40]
je 0x140046654
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0x1028
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret