Function at 0x1400040e0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
mov ebx, 1
call fcn.14000409b
mov rdx, rcx
test al, al
je 0x1400043d8
xor eax, eax
mov ecx, 0x82
xor ebx, ebx
mov r8d, 0x104
lea rdi, [rsp + 0xb8]
mov dword [rsp + 0x50], 0xffffffff
rep stosd dword [rdi], eax
lea rcx, [rsp + 0xb8]
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x5c], ebx
call sub.msvcrt.dll_mbstowcs
lea rcx, [rsp + 0x50]
xor edx, edx
lea r8, [rsp + 0x76]
call qword [0x140016328]
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140004182
mov ebx, 2
cmp ecx, 0xffffffff
je 0x1400043d8
xor esi, esi
xor ebp, ebp
xor edi, edi
xor r12d, r12d
mov ebx, 2
jmp 0x14000438b
xor r9d, r9d
xor r10d, r10d
xor r11d, r11d
mov edx, 1
mov qword [rsp + 0x30], r9
lea r8, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r11
call qword [0x140016318]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov ebx, eax
jne 0x140004161
lea rsi, [rsp + 0x54]
lea rdi, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x58]
mov rdx, rsi
call qword [0x140016310]
cmp eax, 0xea
jne 0x1400041e6
mov ebx, dword [rsp + 0x54]
test ebx, ebx
jne 0x140004201
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xffffffff
je 0x1400043d8
xor esi, esi
xor ebp, ebp
xor edi, edi
xor r12d, r12d
jmp 0x14000438b
mov ecx, ebx
mov edx, 0x29c
call fcn.14000237a
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rsi
mov ecx, dword [rsp + 0x50]
mov r12, rax
mov r9, rax
call qword [0x140016310]
mov ebx, eax
test eax, eax
jne 0x14000436e
mov ecx, dword [rsp + 0x54]
mov edx, 8
xor r14d, r14d
xor r13d, r13d
xor esi, esi
call fcn.14000237a
mov ecx, dword [rsp + 0x54]
mov edx, 0xc
mov rdi, rax
call fcn.14000237a
mov rbp, rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x54], r14d
jle 0x140004302
imul rax, r14, 0x29c
mov r15d, dword [r12 + rax]
test r15d, r15d
je 0x1400042fa
mov rax, qword [0x140012890]
mov eax, dword [rax]
cmp eax, r15d
je 0x1400042fa
mov ecx, 0x401
mov r8d, r15d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
test rax, rax
je 0x1400042fa
mov qword [rsp + 0x48], rax
call fcn.140003fd0
mov rcx, qword [rsp + 0x48]
test al, al
je 0x1400042c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400042fa
movsxd rax, esi
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
inc esi
mov qword [rdi + rax*8], rcx
mov qword [rsp + 0x6c], r8
call fcn.140004062
test al, al
je 0x1400042fa
movsxd rax, r13d
mov rdx, qword [rsp + 0x6c]
inc r13d
imul rax, rax, 0xc
add rax, rbp
mov dword [rax], r15d
mov qword [rax + 4], rdx
inc r14
jmp 0x140004266
mov eax, esi
or eax, r13d
je 0x14000437b
test r13d, r13d
je 0x140004374
xor eax, eax
xor edx, edx
xor r8d, r8d
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x28], edx
mov r9d, r13d
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbp
call qword [0x140016318]
xor r8d, r8d
mov ecx, dword [rsp + 0x50]
mov edx, 1
call qword [0x140016308]
test eax, eax
je 0x140004382
mov r14, qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor r13d, r13d
test esi, esi
je 0x140004374
mov rcx, qword [rdi + r13*8]
test rcx, rcx
je 0x140004364
xor edx, edx
call r14
inc r13
cmp esi, r13d
jg 0x140004356
jmp 0x140004382
xor esi, esi
xor ebp, ebp
xor edi, edi
mov ebx, 2
jmp 0x140004382
xor esi, esi
mov ebx, 3
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xffffffff
je 0x140004391
call qword [0x140016320]
test r12, r12
je 0x14000439e
mov rcx, r12
call sub.msvcrt.dll_free
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
test rdi, rdi
je 0x1400043cb
cmp esi, r12d
jle 0x1400043c3
mov rcx, qword [rdi + r12*8]
test rcx, rcx
je 0x1400043be
call r13
inc r12
jmp 0x1400043ad
mov rcx, rdi
call sub.msvcrt.dll_free
test rbp, rbp
je 0x1400043d8
mov rcx, rbp
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret