Function at 0x140041480
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.140183a10
sub rsp, rax
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
cmp r8, 0x10
jne 0x140041b41
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x60], rdx
call fcn.1400423c8
mov r15, rax
lea rsi, [rsp + 0x270]
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov r12, qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
lea rbp, [0x140041b68]
xor r14d, r14d
mov dword [rsp + 0x54], 0
test r14d, r14d
jne 0x140041b12
mov rcx, rsi
mov edx, 0xffffffff
call rbx
mov edi, 1
test eax, eax
je 0x140041b14
xor r14d, r14d
mov r13d, 0x10002
mov eax, dword [rsp + 0x270]
dec eax
cmp eax, 5
ja case.default.0x14004153b
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
mov edx, dword [rsp + 0x278]
mov rcx, r15
call fcn.1400424bd
cmp rax, 0xffffffffffffffff
je 0x140041b14
mov rbx, rax
mov rbp, r15
mov edi, dword [rsp + 0x278]
mov esi, dword [rsp + 0x280]
mov dword [rsp + 0xb80], 0x100007
mov rcx, rax
lea rdx, [rsp + 0xb50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor r14d, r14d
mov r12d, 0
test eax, eax
je 0x14004161c
mov ecx, 0x8000
call fcn.140095b30
mov r12d, 0
test rax, rax
je 0x14004161c
mov r15, rax
mov dword [rsp + 0x44], esi
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 + 0x48]
mov r8, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004160d
cmp qword [rsp + 0x320], 0x8000
jne 0x14004160d
mov rax, r15
xor esi, esi
cmp dword [rax], edi
je 0x1400416fe
add rsi, 0xfffffffffffffff8
add rax, 4
cmp rsi, 0xffffffffffff0000
jne 0x1400415f4
mov rcx, r15
call fcn.140095b90
xor r12d, r12d
mov esi, dword [rsp + 0x44]
test r12d, r12d
jne 0x140041648
xor esi, 0x80000003
mov ecx, dword [rsp + 0x54]
or esi, ecx
mov r13d, 0x10002
mov eax, 0x80010001
cmovne r13d, eax
mov eax, 1
cmove ecx, eax
mov dword [rsp + 0x54], ecx
lea rsi, [rsp + 0x270]
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov r15, rbp
mov r12, qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
lea rbp, [0x140041b68]
jmp case.default.0x14004153b
mov r8, qword [rsp + 0x280]
jmp 0x14004168a
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x290]
mov edx, dword [rsp + 0x278]
mov rcx, r15
call fcn.14004242f
test eax, eax
jne case.default.0x14004153b
jmp 0x140041b14
mov edx, dword [rsp + 0x278]
mov rcx, r15
call fcn.1400424ed
jmp case.default.0x14004153b
mov edx, dword [rsp + 0x278]
mov rcx, r15
call fcn.1400424ed
mov r14d, 1
jmp case.default.0x14004153b
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 r12
mov edi, 0
test eax, eax
jne 0x1400414f8
jmp 0x140041b14
mov rcx, r15
call fcn.140095b90
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
sub rdx, rsi
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r12d, 0
test eax, eax
mov esi, dword [rsp + 0x44]
je 0x14004161c
cmp qword [rsp + 0x320], 8
mov r12d, 0
jne 0x14004161c
mov rax, qword [rsp + 0x260]
mov r12d, 0
test rax, rax
je 0x14004161c
mov rdi, rax
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, 0x148
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
lea r8, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r12d, 0
test eax, eax
je 0x14004161c
cmp qword [rsp + 0x320], 0x148
mov r12d, 0
jne 0x14004161c
mov rdx, qword [rsp + 0x1e0]
lea rax, [rsp + 0xa68]
mov qword [rsp + 0x20], rax
mov r9d, 0x748
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r12d, 0
test eax, eax
je 0x14004161c
cmp qword [rsp + 0xa68], 0x748
mov r12d, 0
jne 0x14004161c
mov cl, byte [rsp + 0x320]
mov r15d, 1
shl r15, cl
mov rax, qword [rsp + 0xc48]
mov rcx, qword [rsp + 0x338]
mov r12d, 0
cmp rax, rcx
jb 0x14004161c
add rcx, r15
mov r12d, 0
cmp rax, rcx
jae 0x14004161c
cmp dword [rsp + 0xa28], 0
je 0x140041960
mov rdx, qword [rsp + 0x1e0]
mov eax, 0x70c
add rdx, rax
mov dword [rsp + 0xa68], esi
mov eax, dword [rsp + 0xa2c]
inc eax
mov dword [rsp + 0x70], eax
mov r9d, 4
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
lea r8, [rsp + 0x70]
call fcn.140041c00
xor r12d, r12d
test eax, eax
je 0x140041618
add rdi, 0x100
mov r9d, 4
mov rcx, rsi
mov rdx, rdi
lea r8, [rsp + 0xa68]
call fcn.140041c00
test eax, eax
je 0x140041618
cmp qword [rsp + 0xa30], 0xffffffffffffffff
je 0x140041618
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
jne 0x140041934
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0xa30]
xor r12d, r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x30], 2
mov rcx, rsi
mov r8, rax
lea r9, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140041618
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r12d, 0
test eax, eax
je 0x140041618
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor r12d, r12d
cmp eax, 0xffffffff
setne r12b
jmp 0x140041618
lea rsi, [rsp + 0x70]
mov rcx, rsi
lea rdx, [rsp + 0xb50]
call fcn.1400436c0
lea rax, [rsp + 0x320]
mov qword [rsp + 0x1e0], rax
mov rcx, rsi
mov esi, dword [rsp + 0x44]
lea rdx, [rsp + 0x118]
call fcn.140034c29
mov r12d, 0
test eax, eax
je 0x14004161c
test byte [rsp + 0x208], 1
mov r12d, 0
je 0x14004161c
mov eax, dword [rsp + 0x230]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x234]
mov dword [rsp + 0x26c], eax
mov r12d, 0
test eax, eax
jne 0x14004161c
mov dword [rsp + 0x26c], 1
add rdi, 0x11c
mov r9d, 4
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
lea r8, [rsp + 0x26c]
call fcn.140041c00
mov r12d, 0
test eax, eax
je 0x14004161c
test byte [rsp + 0xa10], 0x1f
mov r12d, 0
jne 0x14004161c
mov eax, dword [rsp + 0xbe8]
add eax, 0xffffff80
mov ecx, dword [rsp + 0x58]
test ecx, ecx
cmovne eax, ecx
add eax, 0xffffff20
and eax, 0xfffffff0
lea edi, [rax - 8]
mov qword [rsp + 0x58], rax
add eax, 0xe0
mov r12d, 0
cmp eax, edi
jb 0x14004161c
mov r12d, 0
cmp r15, rax
jb 0x14004161c
lea rsi, [rsp + 0xa68]
mov rcx, rsi
lea rdx, [rsp + 0x70]
mov r8, qword [rsp + 0x58]
call fcn.140034ca6
mov rdx, qword [rsp + 0x338]
add rdx, rdi
mov r9d, 0xe8
mov rcx, qword [rsp + 0x48]
mov r8, rsi
mov esi, dword [rsp + 0x44]
call fcn.140041c00
mov r12d, 0
test eax, eax
je 0x14004161c
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0xc00], rax
mov rax, qword [rsp + 0x338]
mov ecx, dword [rsp + 0xa10]
add rcx, rax
mov qword [rsp + 0xc48], rcx
add rdi, rax
mov qword [rsp + 0xbe8], rdi
and byte [rsp + 0xb95], 0xfb
mov rcx, rbx
lea rdx, [rsp + 0xb50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov r12d, eax
jmp 0x14004161c
xor edi, edi
mov rcx, r15
call fcn.140042412
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140041b2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov rcx, qword [rsp + 0x48]
je 0x140041b41
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x1028
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret