Function at 0x140172410
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, rdx
mov r14, rcx
xor dil, dil
mov edx, 0x23
lea rcx, [rbp - 0x39]
call fcn.1402081e0
nop
xor r15d, r15d
mov qword [rbp - 0x41], r15
lea edx, [r15 + 6]
lea rcx, [rbp - 0x49]
call fcn.1401fcb40
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
lea r9d, [r15 + 6]
lea r8, str.Sophos
mov rcx, qword [rbp - 0x49]
call fcn.1402ba94c
lea edx, [r15 + 6]
lea rcx, [rbp - 0x49]
call fcn.1401fde50
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x31]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x39]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fde50
nop
cmp dword [rbp - 0x21], r15d
jle 0x1401724e2
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
nop
cmp dword [rbp - 0x41], 0
jle 0x1401724f1
mov rcx, qword [rbp - 0x49]
call fcn.1402b7350
mov qword [rbp - 0x41], r15
mov edx, 6
lea rcx, [rbp - 0x49]
call fcn.1401fcb40
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
mov r9d, 6
lea r8, str.Health
mov rcx, qword [rbp - 0x49]
call fcn.1402ba94c
mov edx, 6
lea rcx, [rbp - 0x49]
call fcn.1401fde50
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x31]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x39]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fde50
nop
cmp dword [rbp - 0x21], 0
jle 0x140172585
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
nop
cmp dword [rbp - 0x41], 0
jle 0x140172594
mov rcx, qword [rbp - 0x49]
call fcn.1402b7350
mov qword [rbp - 0x41], r15
mov edx, 0xb
lea rcx, [rbp - 0x49]
call fcn.1401fcb40
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
mov r9d, 0xb
lea r8, str.Event_Store
mov rcx, qword [rbp - 0x49]
call fcn.1402ba94c
mov edx, 0xb
lea rcx, [rbp - 0x49]
call fcn.1401fde50
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x31]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x39]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401fde50
nop
cmp dword [rbp - 0x21], 0
jle 0x140172628
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
nop
cmp dword [rbp - 0x41], 0
jle 0x140172637
mov rcx, qword [rbp - 0x49]
call fcn.1402b7350
mov qword [rbp - 0x41], r15
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.1401fcb40
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
mov r9d, 4
lea r8, [0x14034ef80]
mov rcx, qword [rbp - 0x49]
call fcn.1402ba94c
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.1401fde50
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x41], 0
jle 0x140172697
mov rcx, qword [rbp - 0x49]
call fcn.1402b7350
mov qword [rbp - 0x21], r15
mov edx, 8
lea rcx, [rbp - 0x29]
call fcn.1401fcb40
mov eax, dword [rbp - 0x21]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Incoming
mov rcx, qword [rbp - 0x29]
call fcn.1402ba94c
mov edx, 8
lea rcx, [rbp - 0x29]
call fcn.1401fde50
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x17]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x21], 0
jle 0x1401726f7
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
cmp qword [r14 + 0x18], 0x10
jb 0x140172701
mov r14, qword [r14]
mov r8, r14
lea rdx, str._S.json
lea rcx, [rbp + 7]
call fcn.1401fcfe0
nop
lea r8, [rbp + 7]
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 9]
call fcn.1400d2ba0
nop
lea r8, [rbp + 7]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x19]
call fcn.1400d2ba0
nop
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x84000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14017279d
mov rbx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.CreateFile
lea rdx, str._s___failed__error__d____s
lea ecx, [r14 + 2]
call fcn.14016fab0
xor dil, dil
jmp 0x140172867
cmp qword [rsi + 0x18], 0x10
jb 0x1401727a9
mov rdx, qword [rsi]
jmp 0x1401727ac
mov rdx, rsi
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x67]
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401727dc
mov rbx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140346d98]
jmp 0x14017283f
cmp dword [rbp + 0x67], ebx
je 0x140172819
mov rbx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x28], rbx
lea rax, str.not_enough_written
mov qword [rsp + 0x20], rax
lea r8, [0x140346d98]
lea rdx, [0x140358d08]
mov ecx, 2
call fcn.14016fab0
jmp 0x14017285d
xor r8d, r8d
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x14017285a
mov rbx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateHardLink
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea rdx, str._s___failed__error__d____s
mov ecx, 2
call fcn.14016fab0
jmp 0x14017285d
mov dil, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x11], 0
jle 0x140172877
mov rcx, qword [rbp - 0x19]
call fcn.1402b7350
nop
cmp dword [rbp - 1], 0
jle 0x140172887
mov rcx, qword [rbp - 9]
call fcn.1402b7350
nop
cmp dword [rbp + 0xf], 0
jle 0x140172897
mov rcx, qword [rbp + 7]
call fcn.1402b7350
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401728a7
mov rcx, qword [rbp + 0x17]
call fcn.1402b7350
nop
cmp dword [rbp + 0x2f], 0
jle 0x1401728b7
mov rcx, qword [rbp + 0x27]
call fcn.1402b7350
nop
cmp dword [rbp - 0x31], 0
jle 0x1401728c6
mov rcx, qword [rbp - 0x39]
call fcn.1402b7350
movzx eax, dil
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret