Function at 0x140078dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rbp - 0x38], r15d
mov rdi, qword [0x1400d4cc8]
mov qword [rsp + 0x70], r15
lea rax, [0x1400b36f0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], r15
mov rax, qword [rdi]
cmp dword [rax], r15d
je 0x140078e5f
mov qword [rbp - 0x38], r15
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea r8, [0x1400aa868]
mov qword [rsp + 0x28], r8
lea rax, str._DLLPROTECT__::_DumpEventToFile___
mov qword [rsp + 0x20], rax
lea r9, str._s_s
xor edx, edx
mov rcx, rdi
call fcn.140082fb0
nop
lea rcx, [rbp - 0x70]
call fcn.14007c6f0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x10], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x140078f19
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140078e91
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rsp + 0x30], setsockopt
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x10], xmm0
lea rax, str.event_dump_is:_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], setsockopt
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14009a7b0
nop
mov esi, 3
mov dword [rbp - 0x38], esi
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x1400b3758]
xor ecx, ecx
call fcn.140082e20
nop
test sil, 1
je 0x140078f5f
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140078f5f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078f5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140078f5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a280
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140084830
test al, al
jne 0x140078fca
lea rcx, [rbp - 0x70]
call fcn.14007c6f0
mov rax, qword [rax]
cmp dword [rax], 0
je 0x140079076
lea r8, str.encrypt_failed
lea rdx, str._DLLPROTECT__::_DumpEventToFile____
xor ecx, ecx
call fcn.140083140
jmp 0x140079076
mov eax, 0xffffffff
cmp qword [rbp - 0x20], rax
ja 0x140079076
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x40], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x38]
mov r8d, 4
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140079039
cmp dword [rbp - 0x38], 4
jne 0x140079039
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x38]
mov r8d, dword [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140079039
mov eax, dword [rbp - 0x40]
cmp dword [rbp - 0x38], eax
jne 0x140079039
mov bl, 1
jmp 0x140079078
lea rcx, [rbp - 0x70]
call fcn.14007c6f0
mov rax, qword [rax]
cmp dword [rax], 0
je 0x140079076
mov ebx, dword [rbp - 0x40]
mov edi, dword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9d, eax
lea r8, str.WriteFile_failed_0x_x__dw:_0x_x_size:_0x_x
lea rdx, str._DLLPROTECT__::_WriteStringToFile____
xor ecx, ecx
call fcn.140083140
xor bl, bl
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400790b7
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400790b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400790b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a280
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400790f5
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400790f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400790f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a280
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
lea rcx, [rsp + 0x70]
call fcn.140076690
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14006a600
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret