Function at 0x1400804b0
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 [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
xor eax, eax
cmp dword [0x140199e04], 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 0x140080502
mov ebx, 0x1000000b
jmp 0x14008070e
cmp ecx, 0x10000000
je 0x140080709
cmp ecx, 9
ja 0x140080709
test r10, r10
je 0x140080709
movsxd rdx, ecx
lea r15, [0x14019e2e0]
imul rax, rdx, 0x3020
cmp r8d, dword [rax + r15 + 8]
jae 0x140080709
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 0x140080705
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 0x140080598
cmp eax, 0x16
mov ebx, 0x10000016
mov ecx, 0x1000001d
cmove ebx, ecx
jmp 0x14008070e
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 0x1400805ba
mov ebx, 0x10000016
jmp 0x14008070e
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 0x1400805eb
mov ebx, 0x10000003
jmp 0x14008070e
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 0x140080659
mov eax, edi
inc edi
cmp eax, 0x400
jge 0x14008067e
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 0x140080622
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 0x140080685
mov ebx, 0x10000018
jmp 0x1400806b7
mov ebx, 0x1000001a
jmp 0x1400806e1
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 0x1400805e1
cmp ebx, 0x10000032
jne 0x14008070e
xor eax, eax
jmp 0x14008071b
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