Function at 0x140016800
Capabilities:
Contain obfuscated stackstrings
Delete file
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov qword [rsp + 0x50], r9
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x60], rdx
mov rcx, rdx
call fcn.140001cc0
test al, al
jne 0x140017d2f
mov rax, qword [r8]
mov rdx, qword [r8 + 8]
cmp rax, rdx
je 0x140017d2f
xor edi, edi
mov ecx, edi
sub rdx, rax
sar rdx, 7
test rdx, rdx
je 0x140017d2f
add rax, 0x7c
cmp byte [rax], dil
jne 0x14001689b
inc rcx
sub rax, 0xffffffffffffff80
cmp rcx, rdx
jb 0x140016885
jmp 0x140017d2f
mov r8, rbx
lea rdx, [rbp + 0x3f0]
call fcn.140018cd0
nop
xor eax, eax
mov qword [rbp + 0x360], rax
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x360], rdi
mov word [rbp + 0x368], ax
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0x360]
call fcn.1400070f0
xor eax, eax
mov qword [rbp + 0x3c0], rax
mov qword [rbp + 0x3c8], rax
lea rax, [rbp + 0x360]
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3c8], 0
mov rcx, qword [rbp + 0x360]
test rcx, rcx
jne 0x140016912
xor sil, sil
jmp 0x140016933
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140016929
xor sil, sil
jmp 0x140016933
mov byte [rbp + 0x368], 1
mov sil, 1
mov byte [rsp + 0x40], sil
mov byte [rbp + 0x3c8], sil
xor eax, eax
mov qword [rbp + 0x370], rax
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x380], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x370], xmm0
mov qword [rbp + 0x380], rdi
mov byte [rsp + 0x41], al
lea r9, [rsp + 0x41]
lea r8, [rbp + 0x370]
mov rdx, rbx
call fcn.140017d70
test al, al
jne 0x14001699b
cmp byte [rsp + 0x41], al
je 0x14001699b
mov rcx, rbx
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
mov byte [rsp + 0x41], bl
xor edx, edx
mov r12d, edx
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 7
test rax, rax
je 0x140017c34
mov r15d, edx
lea r14, [rcx + r15]
cmp byte [r14 + 0x7c], 0
je 0x140016ce3
mov rsi, rdx
mov edi, edx
mov rax, qword [rbp + 0x378]
mov rcx, qword [rbp + 0x370]
sub rax, rcx
sar rax, 7
test rax, rax
je 0x140016a4c
mov rbx, rdx
nop dword [rax]
nop word [rax + rax]
shl rbx, 7
add rbx, rcx
mov rcx, r14
call fcn.140001ccc
mov rdx, rax
mov rcx, rbx
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140016a47
inc edi
mov ebx, edi
mov rax, qword [rbp + 0x378]
mov rcx, qword [rbp + 0x370]
sub rax, rcx
sar rax, 7
cmp rbx, rax
jb 0x140016a00
jmp 0x140016a4a
mov rsi, rbx
xor edx, edx
test rsi, rsi
jne 0x140016b8e
lea rcx, [rbp + 0x410]
call fcn.140001f6c
nop
lea rcx, [rbp + 0x430]
call fcn.140001f6c
nop
lea rcx, [rbp + 0x450]
call fcn.140001f6c
nop
mov qword [rbp + 0x470], rdx
mov qword [rbp + 0x478], rdx
mov qword [rbp + 0x480], rdx
mov dword [rbp + 0x488], edx
mov byte [rbp + 0x48c], sil
mov rdx, qword [rbp + 0x378]
cmp qword [rbp + 0x380], rdx
je 0x140016b39
call fcn.140001c00
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x410]
mov rcx, rax
call fcn.140001f84
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x430]
call fcn.140001f84
nop
lea rcx, [rbx + 0x40]
lea rdx, [rbp + 0x450]
call fcn.140001f84
nop
mov rax, qword [rbp + 0x470]
mov qword [rbx + 0x60], rax
mov rax, qword [rbp + 0x478]
mov qword [rbx + 0x68], rax
mov rax, qword [rbp + 0x480]
mov qword [rbx + 0x70], rax
mov eax, dword [rbp + 0x488]
mov dword [rbx + 0x78], eax
movzx eax, byte [rbp + 0x48c]
mov byte [rbx + 0x7c], al
mov rcx, qword [rbp + 0x378]
sub rcx, 0xffffffffffffff80
mov qword [rbp + 0x378], rcx
jmp 0x140016b53
lea r8, [rbp + 0x410]
lea rcx, [rbp + 0x370]
call fcn.140019e30
mov rcx, qword [rbp + 0x378]
mov rax, qword [rbp + 0x370]
sub rcx, rax
and rcx, 0xffffffffffffff80
lea rsi, [rax - 0x80]
add rsi, rcx
lea rcx, [rbp + 0x450]
call fcn.140001dd0
nop
lea rcx, [rbp + 0x430]
call fcn.140001dd0
nop
lea rcx, [rbp + 0x410]
call fcn.140001dd0
mov rdx, rsi
lea rcx, [rbp + 0x490]
call fcn.140001f84
nop
lea rbx, [rsi + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x4b0]
call fcn.140001f84
nop
lea rdx, [rsi + 0x40]
lea rcx, [rbp + 0x4d0]
call fcn.140001f84
nop
mov rax, qword [rsi + 0x60]
mov qword [rbp + 0x4f0], rax
mov rax, qword [rsi + 0x68]
mov qword [rbp + 0x4f8], rax
mov rax, qword [rsi + 0x70]
mov qword [rbp + 0x500], rax
mov eax, dword [rsi + 0x78]
mov dword [rbp + 0x508], eax
movzx eax, byte [rsi + 0x7c]
mov byte [rbp + 0x50c], al
mov rdx, r14
mov rcx, rsi
call fcn.140001d5c
lea rdx, [r14 + 0x20]
mov rcx, rbx
call fcn.140001d5c
lea rdx, [r14 + 0x40]
lea rcx, [rsi + 0x40]
call fcn.140001d5c
mov r10, qword [r14 + 0x60]
mov qword [rsi + 0x60], r10
mov r11, qword [r14 + 0x68]
mov qword [rsi + 0x68], r11
mov rdi, qword [r14 + 0x70]
mov qword [rsi + 0x70], rdi
mov eax, dword [r14 + 0x78]
mov dword [rsp + 0x58], eax
mov dword [rsi + 0x78], eax
movzx eax, byte [r14 + 0x7c]
mov byte [rsi + 0x7c], al
lea rdx, [rbp + 0x490]
mov rcx, rsi
call fcn.140003b10
test al, al
je 0x140016ca7
lea rdx, [rbp + 0x4b0]
mov rcx, rbx
call fcn.140003b10
test al, al
je 0x140016ca7
cmp r10, qword [rbp + 0x4f0]
jne 0x140016ca7
cmp r11, qword [rbp + 0x4f8]
jne 0x140016ca7
cmp rdi, qword [rbp + 0x500]
jne 0x140016ca7
lea rdx, [rbp + 0x4d0]
lea rcx, [rsi + 0x40]
call fcn.140003b10
test al, al
je 0x140016ca7
mov eax, dword [rsp + 0x58]
cmp eax, dword [rbp + 0x508]
je 0x140016cb2
mov bl, 1
mov byte [rsp + 0x41], bl
mov byte [rsi + 0x7c], bl
jmp 0x140016cb7
movzx ebx, byte [rsp + 0x41]
lea rcx, [rbp + 0x4d0]
call fcn.140001dd0
nop
lea rcx, [rbp + 0x4b0]
call fcn.140001dd0
nop
lea rcx, [rbp + 0x490]
call fcn.140001dd0
mov rcx, qword [r13]
xor edx, edx
inc r12
sub r15, 0xffffffffffffff80
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 7
cmp r12, rax
jb 0x1400169c1
test bl, bl
je 0x140017c2f
mov rax, qword [rbp + 0x378]
cmp qword [rbp + 0x370], rax
je 0x140017c2f
xor eax, eax
mov qword [rbp + 0x388], rax
mov qword [rbp + 0x390], rax
mov qword [rbp + 0x398], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
xor r15d, r15d
mov qword [rbp + 0x398], r15
mov r9, qword [rbp + 0x378]
mov r10, r9
mov r8, qword [rbp + 0x370]
sub r10, r8
sar r10, 7
mov rcx, qword [rbp + 0x398]
sub rcx, qword [rbp + 0x388]
movabs rdi, 0x20c49ba5e353f7cf
mov rax, rdi
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10, rdx
jbe 0x140016ddd
movabs rax, 0x4189374bc6a7ef
mov qword [rsp + 0x58], rax
call fcn.140001c04
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.140002250
cmp r10, qword [rax]
ja 0x140017d5b
mov rdx, r10
lea rcx, [rbp + 0x388]
call fcn.140019530
mov r9, qword [rbp + 0x378]
mov r8, qword [rbp + 0x370]
mov r13, r15
mov rax, r9
sub rax, r8
sar rax, 7
test rax, rax
je 0x140017139
mov r12, r15
nop word [rax + rax]
lea rsi, [r8 + r12]
mov eax, dword [rsi + 0x78]
dec eax
cmp eax, 2
ja 0x14001711f
mov dword [rsp + 0x70], r15d
mov qword [rbp + 0x33c], r15
mov qword [rbp + 0x344], r15
mov qword [rbp + 0x34c], r15
mov dword [rbp + 0x354], r15d
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1f4]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [rbp + 0x2f4], rax
mov qword [rbp + 0x2fc], rax
mov qword [rbp + 0x304], rax
mov qword [rbp + 0x30c], rax
mov qword [rbp + 0x314], rax
mov qword [rbp + 0x31c], rax
mov qword [rbp + 0x324], rax
mov qword [rbp + 0x32c], rax
mov qword [rbp + 0x334], rax
mov rdx, qword [rbp + 0x390]
cmp qword [rbp + 0x398], rdx
je 0x140016f5f
call fcn.140001c00
mov rdx, rax
lea rcx, [rsp + 0x70]
mov eax, 7
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rax, 1
jne 0x140016ec0
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
mov rax, qword [rcx + 0x60]
mov qword [rdx + 0x60], rax
mov rdx, qword [rbp + 0x390]
add rdx, 0x3e8
mov qword [rbp + 0x390], rdx
jmp 0x140016f77
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0x388]
call fcn.140019bb0
mov rdx, qword [rbp + 0x390]
mov rcx, qword [rbp + 0x388]
sub rdx, rcx
mov rax, rdi
imul rdx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x3e8
lea r15, [rcx - 0x3e8]
add r15, rax
mov dword [r15], 0x23ab45db
lea rdi, [r15 + 4]
xor edx, edx
mov r8d, 0x280
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea r14, [r15 + 0x284]
xor edx, edx
mov r8d, 0x100
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
lea rbx, [r15 + 0x384]
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov rcx, rsi
call fcn.1400020d4
cmp rax, 0x13f
ja 0x140017032
call fcn.140001ccc
sub rdi, rax
nop dword [rax]
movzx ecx, word [rax]
mov word [rdi + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140017020
jmp 0x140017049
call fcn.140001ccc
mov rdx, rax
mov r8d, 0x13e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsi + 0x20]
call fcn.1400020d4
cmp rax, 0x7f
ja 0x140017073
call fcn.140001ccc
sub r14, rax
movzx ecx, word [rax]
mov word [r14 + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140017060
jmp 0x14001708a
call fcn.140001ccc
mov rdx, rax
mov r8d, 0x7e
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsi + 0x40]
call fcn.1400020d4
cmp rax, 0x23
ja 0x1400170c2
call fcn.140001ccc
sub rbx, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rax + rbx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x1400170b0
jmp 0x1400170d9
call fcn.140001ccc
mov rdx, rax
mov r8d, 0x23
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, qword [rsi + 0x60]
mov qword [r15 + 0x3cc], rax
mov rax, qword [rsi + 0x68]
mov qword [r15 + 0x3d4], rax
mov rax, qword [rsi + 0x70]
mov qword [r15 + 0x3dc], rax
mov eax, dword [rsi + 0x78]
mov dword [r15 + 0x3e4], eax
mov r9, qword [rbp + 0x378]
mov r8, qword [rbp + 0x370]
xor r15d, r15d
movabs rdi, 0x20c49ba5e353f7cf
inc r13
sub r12, 0xffffffffffffff80
mov rax, r9
sub rax, r8
sar rax, 7
cmp r13, rax
jb 0x140016e00
mov rcx, qword [rbp + 0x390]
cmp qword [rbp + 0x388], rcx
jne 0x1400172ab
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x1400171c0
mov rcx, qword [rbp + 0x398]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x1400171a6
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400171a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rbx, qword [rbp + 0x370]
test rbx, rbx
je 0x140017262
mov rdi, qword [rbp + 0x378]
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
je 0x140017212
lea rcx, [rbx + 0x40]
call fcn.140001dd0
nop
lea rcx, [rbx + 0x20]
call fcn.140001dd0
nop
mov rcx, rbx
call fcn.140001dd0
sub rbx, 0xffffffffffffff80
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
jne 0x1400171e1
mov rbx, qword [rbp + 0x370]
mov rdx, qword [rbp + 0x380]
sub rdx, rbx
and rdx, 0xffffffffffffff80
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017248
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017248
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x370], xmm0
mov qword [rbp + 0x380], r15
cmp byte [rsp + 0x40], 0
je 0x140017282
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x14001727b
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp + 0x368], 0
mov qword [rbp + 0x3c0], r15
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x140017d1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x360], r15
jmp 0x140017d1a
xor eax, eax
mov qword [rbp + 0x3a0], rax
mov qword [rbp + 0x3a8], rax
mov qword [rbp + 0x3b0], rax
mov r8, r15
mov qword [rbp + 0x3a0], r15
mov qword [rbp + 0x3a8], r15
mov r9, r15
mov qword [rbp + 0x3b0], r15
mov dword [rbp + 0x3d0], 0x2d2d4352
mov dword [rbp + 0x3d4], 0x35343332
mov dword [rbp + 0x3d8], 0x61534350
mov dword [rbp + 0x3dc], 0x2d302e32
mov dword [rbp + 0x3e0], 0x2d736843
mov dword [rbp + 0x3e4], 0x61435243
mov dword [rbp + 0x3e8], 0x38313031
mov dword [rbp + 0x3ec], 0x35313032
movdqa xmm2, xmmword [0x140034410]
mov eax, r15d
mov ecx, 1
movd xmm3, ecx
lea rcx, [rbp + 0x3d0]
nop dword [rax + rax]
movd xmm1, eax
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
movdqu xmm0, xmmword [rcx]
pslld xmm0, xmm3
paddd xmm1, xmm0
movdqu xmmword [rcx], xmm1
add eax, 4
lea rcx, [rcx + 0x10]
cmp eax, 8
jl 0x140017350
mov rcx, qword [rbp + 0x390]
mov r10, qword [rbp + 0x388]
sub rcx, r10
mov rax, rdi
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test r10, r10
je 0x140017adb
imul r8d, edx, 0x3e8
lea r9, [rbp + 0x3a0]
mov rdx, r10
lea rcx, [rbp + 0x3d0]
call fcn.14001cae0
test al, al
je 0x140017acd
mov rbx, qword [rbp + 0x3a0]
mov rsi, qword [rbp + 0x3a8]
cmp rbx, rsi
jne 0x14001753f
test rbx, rbx
je 0x140017434
mov rdx, qword [rbp + 0x3b0]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001741a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001741a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], r15
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x1400174a7
mov rcx, qword [rbp + 0x398]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x14001748d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001748d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rbx, qword [rbp + 0x370]
test rbx, rbx
je 0x140017262
mov rdi, qword [rbp + 0x378]
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
je 0x140017501
nop dword [rax + rax]
lea rcx, [rbx + 0x40]
call fcn.140001dd0
nop
lea rcx, [rbx + 0x20]
call fcn.140001dd0
nop
mov rcx, rbx
call fcn.140001dd0
sub rbx, 0xffffffffffffff80
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
jne 0x1400174d0
mov rbx, qword [rbp + 0x370]
mov rdx, qword [rbp + 0x380]
sub rdx, rbx
and rdx, 0xffffffffffffff80
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017248
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017248
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r14, qword [rsp + 0x60]
mov rcx, r14
call fcn.140001ccc
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r8d, r8d
mov edx, 0x40000000
call fcn.140006e90
mov rdi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1400175ea
lea rdx, [0x140032f18]
mov rcx, r14
call fcn.140003730
cmp rax, 0xffffffffffffffff
je 0x1400175ea
mov r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x3d0]
mov rcx, r14
call fcn.140003700
nop
lea rcx, [rbp + 0x3d0]
call fcn.140005c10
mov rcx, r14
call fcn.140001ccc
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r8d, r8d
mov edx, 0x40000000
call fcn.140006e90
mov rdi, rax
lea rcx, [rbp + 0x3d0]
call fcn.140001dd0
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400179a1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x3b8], r15d
mov r8d, esi
sub r8d, ebx
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x3b8]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsi, rbx
mov eax, dword [rbp + 0x3b8]
cmp rax, rsi
jne 0x140017875
lea rax, [rbp + 0x370]
mov r9, qword [rsp + 0x50]
cmp r9, rax
je 0x1400176a3
mov rcx, qword [r9]
mov rax, qword [rbp + 0x370]
mov qword [r9], rax
mov qword [rbp + 0x370], rcx
mov rcx, qword [r9 + 8]
mov rax, qword [rbp + 0x378]
mov qword [r9 + 8], rax
mov qword [rbp + 0x378], rcx
mov rcx, qword [r9 + 0x10]
mov rax, qword [rbp + 0x380]
mov qword [r9 + 0x10], rax
mov qword [rbp + 0x380], rcx
mov r8, r15
mov rcx, qword [r9]
mov rax, qword [r9 + 8]
sub rax, rcx
sar rax, 7
test rax, rax
je 0x1400176e2
mov rdx, r15
nop dword [rax]
mov byte [rdx + rcx + 0x7c], 0
inc r8
lea rdx, [rdx + 0x80]
mov rcx, qword [r9]
mov rax, qword [r9 + 8]
sub rax, rcx
sar rax, 7
cmp r8, rax
jb 0x1400176c0
test rbx, rbx
je 0x140017733
mov rdx, qword [rbp + 0x3b0]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017719
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017719
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], r15
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x1400177ad
mov rcx, qword [rbp + 0x398]
sub rcx, r8
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x140017793
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017793
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rdx, qword [rbp + 0x370]
test rdx, rdx
je 0x140017819
mov r8, qword [rbp + 0x378]
call fcn.140019690
mov rdx, qword [rbp + 0x380]
mov rcx, qword [rbp + 0x370]
sub rdx, rcx
and rdx, 0xffffffffffffff80
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017802
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017802
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x370], xmm0
mov qword [rbp + 0x380], r15
cmp byte [rsp + 0x40], 0
je 0x140017839
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x140017832
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp + 0x368], 0
mov qword [rbp + 0x3c0], r15
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x140017859
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x360], r15
mov word [rbp + 0x368], 0
lea rcx, [rbp + 0x3f0]
call fcn.140001dd0
mov al, 1
jmp 0x140017d31
test rbx, rbx
je 0x1400178c6
mov rdx, qword [rbp + 0x3b0]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400178ac
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400178ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], r15
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x140017940
mov rcx, qword [rbp + 0x398]
sub rcx, r8
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x140017926
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017926
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rdx, qword [rbp + 0x370]
test rdx, rdx
je 0x140017262
mov r8, qword [rbp + 0x378]
call fcn.140019690
mov rdx, qword [rbp + 0x380]
mov rcx, qword [rbp + 0x370]
sub rdx, rcx
and rdx, 0xffffffffffffff80
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001724b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001724b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x1400179f2
mov rdx, qword [rbp + 0x3b0]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400179d8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400179d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], r15
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x140017a6c
mov rcx, qword [rbp + 0x398]
sub rcx, r8
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x140017a52
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rcx, qword [rbp + 0x370]
test rcx, rcx
je 0x140017262
mov rdx, qword [rbp + 0x378]
call fcn.14001a050
mov rdx, qword [rbp + 0x380]
mov rcx, qword [rbp + 0x370]
sub rdx, rcx
and rdx, 0xffffffffffffff80
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001724b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001724b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r9, qword [rbp + 0x3b0]
mov r8, qword [rbp + 0x3a0]
test r8, r8
je 0x140017b28
sub r9, r8
mov rax, r8
cmp r9, 0x1000
jb 0x140017b0b
add r9, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017b0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r9
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], r15
mov r8, qword [rbp + 0x388]
test r8, r8
je 0x140017b9b
mov rcx, qword [rbp + 0x398]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x3e8
mov rax, r8
cmp rdx, 0x1000
jb 0x140017b81
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017b81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x388], xmm0
mov qword [rbp + 0x398], r15
mov rbx, qword [rbp + 0x370]
test rbx, rbx
je 0x140017262
mov rdi, qword [rbp + 0x378]
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
je 0x140017bf1
nop dword [rax]
lea rcx, [rbx + 0x40]
call fcn.140001dd0
nop
lea rcx, [rbx + 0x20]
call fcn.140001dd0
nop
mov rcx, rbx
call fcn.140001dd0
sub rbx, 0xffffffffffffff80
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
jne 0x140017bc0
mov rbx, qword [rbp + 0x370]
mov rdx, qword [rbp + 0x380]
sub rdx, rbx
and rdx, 0xffffffffffffff80
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017248
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017248
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movzx esi, byte [rsp + 0x40]
mov rbx, qword [rbp + 0x370]
test rbx, rbx
je 0x140017cd8
mov rdi, qword [rbp + 0x378]
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
je 0x140017c86
lea rcx, [rbx + 0x40]
call fcn.140001dd0
nop
lea rcx, [rbx + 0x20]
call fcn.140001dd0
nop
mov rcx, rbx
call fcn.140001dd0
sub rbx, 0xffffffffffffff80
mov qword [rsp + 0x50], rbx
cmp rbx, rdi
jne 0x140017c55
mov rbx, qword [rbp + 0x370]
mov rdx, qword [rbp + 0x380]
sub rdx, rbx
and rdx, 0xffffffffffffff80
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017cbc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017cbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001f8d4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x370], xmm0
xor edx, edx
mov qword [rbp + 0x380], rdx
test sil, sil
je 0x140017cf8
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x140017cf1
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edx, edx
mov byte [rbp + 0x368], 0
mov qword [rbp + 0x3c0], rdx
mov rcx, qword [rbp + 0x360]
test rcx, rcx
je 0x140017d1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov qword [rbp + 0x360], rdi
mov word [rbp + 0x368], 0
lea rcx, [rbp + 0x3f0]
call fcn.140001dd0
xor al, al
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.14001f5c0
mov rbx, qword [rsp + 0x660]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140003520
nop
int3