Function at 0x1401736a0
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.14020a8a0
nop
xor r15d, r15d
mov qword [rbp - 0x41], r15
lea edx, [r15 + 6]
lea rcx, [rbp - 0x49]
call fcn.1401ff260
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.1402bd21c
lea edx, [r15 + 6]
lea rcx, [rbp - 0x49]
call fcn.140200570
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.140200570
nop
cmp dword [rbp - 0x21], r15d
jle 0x140173772
mov rcx, qword [rbp - 0x29]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x41], 0
jle 0x140173781
mov rcx, qword [rbp - 0x49]
call fcn.1402b9c20
mov qword [rbp - 0x41], r15
mov edx, 6
lea rcx, [rbp - 0x49]
call fcn.1401ff260
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
mov r9d, 6
lea r8, str.Health
mov rcx, qword [rbp - 0x49]
call fcn.1402bd21c
mov edx, 6
lea rcx, [rbp - 0x49]
call fcn.140200570
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.140200570
nop
cmp dword [rbp - 0x21], 0
jle 0x140173815
mov rcx, qword [rbp - 0x29]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x41], 0
jle 0x140173824
mov rcx, qword [rbp - 0x49]
call fcn.1402b9c20
mov qword [rbp - 0x41], r15
mov edx, 0xb
lea rcx, [rbp - 0x49]
call fcn.1401ff260
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.1402bd21c
mov edx, 0xb
lea rcx, [rbp - 0x49]
call fcn.140200570
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x39]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x39]
call fcn.140200570
nop
cmp dword [rbp - 0x21], 0
jle 0x1401738b8
mov rcx, qword [rbp - 0x29]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x41], 0
jle 0x1401738c7
mov rcx, qword [rbp - 0x49]
call fcn.1402b9c20
mov qword [rbp - 0x41], r15
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.1401ff260
mov eax, dword [rbp - 0x41]
inc eax
movsxd rdx, eax
mov r9d, 4
lea r8, [0x140350f50]
mov rcx, qword [rbp - 0x49]
call fcn.1402bd21c
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.140200570
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.1400d2bd0
nop
cmp dword [rbp - 0x41], 0
jle 0x140173927
mov rcx, qword [rbp - 0x49]
call fcn.1402b9c20
mov qword [rbp - 0x21], r15
mov edx, 8
lea rcx, [rbp - 0x29]
call fcn.1401ff260
mov eax, dword [rbp - 0x21]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Incoming
mov rcx, qword [rbp - 0x29]
call fcn.1402bd21c
mov edx, 8
lea rcx, [rbp - 0x29]
call fcn.140200570
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x17]
call fcn.1400d2bd0
nop
cmp dword [rbp - 0x21], 0
jle 0x140173987
mov rcx, qword [rbp - 0x29]
call fcn.1402b9c20
cmp qword [r14 + 0x18], 0x10
jb 0x140173991
mov r14, qword [r14]
mov r8, r14
lea rdx, str._S.json
lea rcx, [rbp + 7]
call fcn.1401ff700
nop
lea r8, [rbp + 7]
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 9]
call fcn.1400d2bd0
nop
lea r8, [rbp + 7]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x19]
call fcn.1400d2bd0
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 0x140173a2d
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.140170d40
xor dil, dil
jmp 0x140173af7
cmp qword [rsi + 0x18], 0x10
jb 0x140173a39
mov rdx, qword [rsi]
jmp 0x140173a3c
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 0x140173a6c
mov rbx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140348d58]
jmp 0x140173acf
cmp dword [rbp + 0x67], ebx
je 0x140173aa9
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, [0x140348d58]
lea rdx, str._s___failed___ls____s
mov ecx, 2
call fcn.140170d40
jmp 0x140173aed
xor r8d, r8d
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x140173aea
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.140170d40
jmp 0x140173aed
mov dil, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x11], 0
jle 0x140173b07
mov rcx, qword [rbp - 0x19]
call fcn.1402b9c20
nop
cmp dword [rbp - 1], 0
jle 0x140173b17
mov rcx, qword [rbp - 9]
call fcn.1402b9c20
nop
cmp dword [rbp + 0xf], 0
jle 0x140173b27
mov rcx, qword [rbp + 7]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x1f], 0
jle 0x140173b37
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x2f], 0
jle 0x140173b47
mov rcx, qword [rbp + 0x27]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x31], 0
jle 0x140173b56
mov rcx, qword [rbp - 0x39]
call fcn.1402b9c20
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