Function at 0x140067c60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
xor eax, eax
cmp dword [0x14019b5e8], eax
xorps xmm0, xmm0
mov r10, rdx
mov dword [rsp + 0x50], ebx
mov edi, ebx
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x6c], ax
jne 0x140067cb2
mov ebx, 0x1000000b
jmp 0x140067ebe
cmp ecx, 0x10000000
je 0x140067eb9
cmp ecx, 9
ja 0x140067eb9
test r10, r10
je 0x140067eb9
movsxd rdx, ecx
lea r15, [0x14019f2c0]
imul rax, rdx, 0x3020
cmp r8d, dword [rax + r15 + 8]
jae 0x140067eb9
lfence
imul rdx, rdx, 0x604
mov eax, r8d
add rdx, rax
mov rax, qword [r10]
cmp qword [r15 + rdx*8 + 0x10], rax
lea rbp, [rdx*8]
je 0x140067eb5
mov r9d, 0xa
mov qword [r15 + rbp + 0x10], rax
mov rcx, qword [r10]
lea rdx, [rsp + 0x58]
lea r8d, [r9 + 0xc]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ui64toa_s]
test eax, eax
je 0x140067d48
cmp eax, 0x16
mov ebx, 0x10000016
mov ecx, 0x1000001d
cmove ebx, ecx
jmp 0x140067ebe
mov edx, reloc.WS2_32.dll_shutdown
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rsi, rax
cmp eax, 0x15
jb 0x140067d6a
mov ebx, 0x10000016
jmp 0x140067ebe
lfence
inc eax
lea r14, [r15 + rbp]
mov rcx, qword [r14 + 0x1028]
mov edx, 0xffffffff
add esi, 2
mov byte [rsp + rax + 0x58], 0x1a
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140067d9b
mov ebx, 0x10000003
jmp 0x140067ebe
lfence
mov rcx, qword [r15 + rbp + 0x2028]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov r9d, esi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x140067e09
mov eax, edi
inc edi
cmp eax, 0x400
jge 0x140067e2e
pause
mov rcx, qword [r15 + rbp + 0x2028]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov r9d, esi
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
je 0x140067dd2
lfence
mov rcx, qword [r15 + rbp + 0x2028]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140067e35
mov ebx, 0x10000018
jmp 0x140067e67
mov ebx, 0x1000001a
jmp 0x140067e91
lfence
mov rcx, qword [r15 + rbp + 0x2028]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0x10000032
mov ecx, 0x10000017
test eax, eax
cmove ebx, ecx
mov rcx, qword [r15 + rbp + 0x2028]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
mov ecx, 0x1000001c
cmove ebx, ecx
mov rcx, qword [r14 + 0x1028]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x140067d91
cmp ebx, 0x10000032
jne 0x140067ebe
xor eax, eax
jmp 0x140067ecb
mov ebx, 0x10000002
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret