Function at 0x140001aa0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rdi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x6c], 0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x60]
call fcn.140001410
call fcn.1400016e0
call fcn.1400018d0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [rsp + 0x40], 1
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x70]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x72]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x74]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x76]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x78]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x7a]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x7c]
add eax, ecx
mov dword [rsp + 0x40], eax
imul eax, dword [rsp + 0x40], 0x200ab
movzx ecx, word [rsp + 0x7e]
add eax, ecx
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
nop
mov dword [rsp + 0x44], 0
jmp 0x140001bd7
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
cmp rax, 0x20
jae 0x140001c04
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov ecx, dword [rsp + 0x44]
mov byte [rsp + rcx + 0x98], al
jmp 0x140001bcd
mov dword [rsp + 0x48], 0
jmp 0x140001c18
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
cmp rax, 0x10
jae 0x140001c45
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov ecx, dword [rsp + 0x48]
mov byte [rsp + rcx + 0x88], al
jmp 0x140001c0e
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rsp + 0x88]
mov edx, 0x20
lea rcx, [rsp + 0x98]
call fcn.1400010d0
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.140001650
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, str.flag.png.laika
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140001d0e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error:_CreateFile_n
mov rcx, rax
call fcn.140001060
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001d69
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error:_WriteFile_n
mov rcx, rax
call fcn.140001060
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x58], 0
je 0x140001d94
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp qword [rsp + 0x60], 0
je 0x140001db3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
xor eax, eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140001de0
add rsp, 0xc0
pop rdi
ret