Function at 0x140001c70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbp
push r13
push r14
push r15
sub rsp, 0x20
movzx r13d, r9w
mov r15, r8
movzx ebp, dx
mov r14, rcx
test rcx, rcx
je 0x1400021df
test dx, dx
je 0x1400021df
test r8, r8
je 0x1400021df
test r9w, r9w
je 0x1400021df
mov qword [rsp + 0x40], rbx
mov ecx, 0x70
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140001d12
cmp byte [rsp + 0x60], dil
je 0x140001cf9
mov byte [rax], 0x36
mov ecx, dword [r14]
mov dword [rax + 1], ecx
mov eax, dword [r14 + 4]
mov dword [rbx + 5], eax
mov eax, dword [r14 + 8]
mov dword [rbx + 9], eax
mov eax, dword [r14 + 0xc]
jmp 0x140001d08
mov byte [rax], 0x34
mov eax, dword [r14]
mov dword [rbx + 1], eax
mov eax, edi
mov qword [rbx + 5], rdi
lea rcx, [rbx + 0xd]
mov dword [rcx], eax
mov word [rbx + 0x11], bp
xor edx, edx
mov rcx, rbx
call fcn.1400019c0
test eax, eax
jne 0x1400021d2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rbx + 0x2c]
mov qword [rbx + 0x18], rax
mov eax, dword [r15]
mov dword [rbx + 0x20], eax
cmp byte [rsp + 0x60], dil
je 0x140001d55
mov eax, dword [r15 + 4]
mov dword [rbx + 0x24], eax
mov eax, dword [r15 + 8]
mov dword [rbx + 0x28], eax
mov eax, dword [r15 + 0xc]
jmp 0x140001d5b
mov qword [rbx + 0x24], rdi
mov eax, edi
mov dword [rcx], eax
mov word [rbx + 0x30], r13w
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
movzx edx, byte [rbx + 4]
movzx ebp, byte [rbx + 8]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0xa]
shl ecx, 8
add ecx, 0x9e3779b9
add edx, ecx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 2]
shl ecx, 8
add ecx, 0xfeedbeef
add ebp, ecx
movzx ecx, byte [rbx + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
add ecx, eax
mov eax, ebp
sub ecx, edx
shr eax, 0xd
sub ecx, ebp
sub ecx, 0x61c88647
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 8
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xd
xor ebp, eax
sub ecx, edx
sub ecx, ebp
mov eax, ebp
shr eax, 0xc
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0x10
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 5
xor ebp, eax
sub ecx, edx
mov eax, ebp
sub ecx, ebp
shr eax, 3
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0xa
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xf
xor ebp, eax
add ebp, 0x13
movzx eax, byte [rbx + 0x12]
lea rsi, [rbx + 0x38]
shl eax, 0x10
mov r14, 0xffffffffffffffff
add edx, eax
movzx eax, byte [rbx + 0x11]
shl eax, 8
add edx, eax
movzx eax, byte [rbx + 0x10]
add edx, eax
movzx eax, byte [rbx + 0xf]
shl eax, 0x18
add ecx, eax
movzx eax, byte [rbx + 0xe]
shl eax, 0x10
add ecx, eax
movzx eax, byte [rbx + 0xd]
shl eax, 8
add ecx, eax
movzx eax, byte [rbx + 0xc]
add ecx, eax
mov qword [rbx + 0x60], rbx
sub ecx, ebp
mov dword [rbx + 0x68], 0x13
sub ecx, edx
mov eax, ebp
sub edx, ebp
shr eax, 0xd
xor ecx, eax
sub edx, ecx
mov eax, ecx
shl eax, 8
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xd
xor ebp, eax
sub ecx, edx
sub ecx, ebp
mov eax, ebp
shr eax, 0xc
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0x10
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 5
xor ebp, eax
sub ecx, edx
mov eax, ebp
sub ecx, ebp
shr eax, 3
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0xa
xor edx, eax
sub ebp, edx
shr edx, 0xf
sub ebp, ecx
xor ebp, edx
mov dword [rbx + 0x6c], ebp
mov rax, qword [0x140009798]
test rax, rax
jne 0x140001f93
mov ecx, 0x40
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x40], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x140002062
xorps xmm0, xmm0
mov ecx, 0x200
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov rax, qword [rsi]
mov qword [rax + 0x18], rsi
mov rax, qword [rsi]
mov dword [rax + 8], 0x20
mov rax, qword [rsi]
mov dword [rax + 0xc], 5
mov rax, qword [rsi]
mov qword [rax + 0x20], 0x38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsi]
mov qword [rcx], rax
mov rax, qword [rsi]
mov dword [rax + 0x38], 0xa0111fe1
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002062
xor edx, edx
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
mov qword [0x140009798], rbx
jmp 0x140001fde
mov rax, qword [rax + 0x38]
mov qword [rsi], rax
mov qword [rbx + 0x48], rdi
mov rax, qword [0x140009798]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x20]
mov qword [rbx + 0x40], rax
mov rax, qword [0x140009798]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx + 0x18]
mov qword [rax + 0x10], rbx
mov rax, qword [0x140009798]
mov rcx, qword [rax + 0x38]
mov qword [rcx + 0x18], rsi
mov rax, qword [0x140009798]
mov rax, qword [rax + 0x38]
inc dword [rax + 0x10]
mov rax, qword [0x140009798]
mov rcx, qword [rax + 0x38]
mov eax, ebp
mov edx, dword [rcx + 8]
dec edx
and rdx, rax
shl rdx, 4
add rdx, qword [rcx]
mov rax, qword [rdx]
inc dword [rdx + 8]
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x50], rdi
mov rax, qword [rdx]
test rax, rax
je 0x14000201b
mov qword [rax + 0x18], rsi
mov eax, dword [rdx + 0xc]
inc eax
mov qword [rdx], rsi
lea ecx, [rax + rax*4]
add ecx, ecx
cmp dword [rdx + 8], ecx
jb 0x1400021ae
mov rax, qword [rbx + 0x38]
cmp dword [rax + 0x34], edi
jne 0x1400021ae
mov edx, dword [rax + 8]
mov eax, 2
shl rdx, 4
mul rdx
cmovb rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x14000206c
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rbx + 0x38]
xor edx, edx
mov rcx, rsi
mov r8d, dword [rax + 8]
shl r8, 5
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rbx + 0x38]
mov r11d, edi
mov eax, dword [r9 + 8]
mov ecx, dword [r9 + 0xc]
mov r8d, dword [r9 + 0x10]
inc ecx
shr r8d, cl
lea eax, [rax*2 - 1]
test dword [r9 + 0x10], eax
mov eax, edi
setne al
add r8d, eax
mov dword [r9 + 0x28], r8d
mov rax, qword [rbx + 0x38]
mov dword [rax + 0x2c], edi
mov rax, qword [rbx + 0x38]
cmp dword [rax + 8], edi
jbe 0x140002164
nop word [rax + rax]
mov rax, qword [rax]
mov ecx, r11d
add rcx, rcx
mov r8, qword [rax + rcx*8]
test r8, r8
je 0x140002153
mov rax, qword [rbx + 0x38]
mov r10, qword [r8 + 0x20]
mov ecx, dword [rax + 8]
lea eax, [rcx*2 - 1]
mov ecx, dword [r8 + 0x34]
and rax, rcx
shl rax, 4
add rax, rsi
mov ecx, dword [rax + 8]
inc ecx
mov dword [rax + 8], ecx
mov rdx, qword [rbx + 0x38]
cmp ecx, dword [rdx + 0x28]
jbe 0x140002131
inc dword [rdx + 0x2c]
mov rcx, qword [rbx + 0x38]
mov r9d, dword [rax + 0xc]
mov edx, r9d
imul edx, dword [rcx + 0x28]
cmp dword [rax + 8], edx
jbe 0x140002131
lea ecx, [r9 + 1]
mov dword [rax + 0xc], ecx
mov qword [r8 + 0x18], rdi
mov rcx, qword [rax]
mov qword [r8 + 0x20], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x140002148
mov qword [rcx + 0x18], r8
mov qword [rax], r8
mov r8, r10
test r10, r10
jne 0x1400020e2
mov rax, qword [rbx + 0x38]
inc r11d
cmp r11d, dword [rax + 8]
jb 0x1400020d0
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 8]
add eax, eax
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
inc dword [rax + 0xc]
mov rax, qword [rbx + 0x38]
mov qword [rax], rsi
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 0x10]
shr eax, 1
cmp dword [rcx + 0x2c], eax
jbe 0x14000219a
mov edi, dword [rcx + 0x30]
inc edi
mov dword [rcx + 0x30], edi
mov rcx, qword [rbx + 0x38]
cmp dword [rcx + 0x30], 1
jbe 0x1400021ae
mov dword [rcx + 0x34], 1
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400021b3
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop r13
ret