Function at 0x100010300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x198
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov dword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x98], 0x100
mov dword [rsp + 0x9c], 0x400
mov dword [rsp + 0xa0], 0x1000
mov dword [rsp + 0x94], 3
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x1b0]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1000103a6
mov al, 1
jmp 0x1000109a3
cmp qword [rsp + 0x1c8], 0
jne 0x1000103b8
xor al, al
jmp 0x1000109a3
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x90], 0
jmp 0x1000103e6
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x90], eax
jae 0x1000104f6
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
mov qword [rsp + 0x150], rax
mov eax, 2
mov rcx, qword [rsp + 0x150]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100018e70
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x100010479
lea rcx, [0x10000d360]
call fcn.100019ff0
xor al, al
jmp 0x1000109a3
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.100019c50
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x1c8]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.10001a0d8
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
jge 0x1000104ef
call fcn.10001a1b4
mov rcx, qword [rsp + 0x80]
call fcn.100019f30
jmp 0x1000104f1
jmp 0x1000104f6
jmp 0x1000103d5
mov qword [rsp + 0xf0], 0
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x90], eax
jne 0x1000105c6
lea rcx, [0x10000d380]
call fcn.100019fd0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
add rax, 1
mov qword [rsp + 0x160], rax
mov eax, 2
mov rcx, qword [rsp + 0x160]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100018e70
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x10001059b
xor al, al
jmp 0x1000109a3
mov rax, qword [rsp + 0x88]
add rax, 1
mov r9, qword [rsp + 0x88]
lea r8, [0x10000d380]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.100019d40
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rcx, qword [rsp + 0x1b8]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.100019fd0
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x80]
call fcn.100019fd0
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x20]
call fcn.100019fd0
mov rcx, qword [rsp + 0x178]
add rax, rcx
mov rcx, qword [rsp + 0x170]
lea rax, [rax + rcx + 0x3a]
mov qword [rsp + 0x88], rax
mov eax, 2
mul qword [rsp + 0x88]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100018e70
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x10001069f
xor al, al
jmp 0x1000109a3
mov rax, qword [rsp + 0x88]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call fcn.100019c50
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x188], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0xb6]
movzx edx, word [rsp + 0xb4]
movzx r8d, word [rsp + 0xb2]
movzx r9d, word [rsp + 0xb0]
movzx r10d, word [rsp + 0xae]
movzx r11d, word [rsp + 0xaa]
movzx ebx, word [rsp + 0xa8]
mov edi, dword [rsp + 0x1c0]
mov dword [rsp + 0x78], edi
mov rdi, qword [rsp + 0xd0]
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x68], rdi
mov rdi, qword [rsp + 0x1b0]
mov rdi, qword [rdi + 0x20]
mov qword [rsp + 0x60], rdi
mov edi, dword [rsp + 0x188]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
mov r9d, ebx
lea r8, [0x10000d400]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.10001a140
movzx eax, word [rsp + 0xa8]
movzx ecx, word [rsp + 0xaa]
imul ecx, ecx, 0x2710
movzx edx, word [rsp + 0xae]
imul edx, edx, 0xf4240
add edx, ecx
mov ecx, edx
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1b0]
cmp dword [rcx + 0x34], eax
je 0x10001084d
mov rax, qword [rsp + 0x1b0]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call fcn.100010a90
mov byte [rsp + 0x18c], al
movzx eax, byte [rsp + 0x18c]
test eax, eax
jne 0x100010816
mov dword [rsp + 0x118], 1
lea rdx, [0x10002aae8]
lea rcx, [rsp + 0x118]
call fcn.10001b27c
movzx eax, word [rsp + 0xa8]
movzx ecx, word [rsp + 0xaa]
imul ecx, ecx, 0x2710
movzx edx, word [rsp + 0xae]
imul edx, edx, 0xf4240
add edx, ecx
mov ecx, edx
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1b0]
mov dword [rcx + 0x34], eax
jmp 0x10001085b
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x10], 0
jne 0x100010871
xor al, al
jmp 0x1000109a3
mov rcx, qword [rsp + 0x1b0]
call fcn.1000114d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xb8]
mov r8d, 1
mov edx, 0x40000000
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0xffffffffffffffff
jne 0x1000108f7
mov rcx, qword [rsp + 0x1b0]
call fcn.100011510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x10000d488]
call fcn.100019ff0
xor al, al
jmp 0x1000109a3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0xe0]
call fcn.100019fd0
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov r8d, eax
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b0]
call fcn.100011510
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x138]
call fcn.100018dc4
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.100018dc4
mov al, 1
add rsp, 0x198
pop rdi
pop rbx
ret