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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x14022c008]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
xor esi, esi
lea r8, [rbp - 0x78]
mov rbx, rdx
mov r13d, ecx
lea rdx, [rbp - 0x70]
xor ecx, ecx
mov r15d, esi
mov edi, esi
lea r14d, [rsi + 2]
mov r12d, esi
call fcn.140009430
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140009d80
call fcn.1401b11b0
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x140001112
movzx eax, byte [0x1401b958c]
cmp al, byte [rcx]
jne 0x140001112
movzx eax, byte [0x1401b958d]
cmp al, byte [rcx + 1]
jne 0x140001112
movzx eax, byte [0x1401b958e]
cmp al, byte [rcx + 2]
jne 0x140001112
lea rcx, str.gif2h5
call fcn.1401b1310
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp r13d, 4
jge 0x140001122
call fcn.140001900
jmp 0x14000181d
mov rax, qword [rbx + 0x10]
add rbx, 0x10
dec r13d
mov qword [rsp + 0x70], rax
cmp r13d, r14d
jle 0x1400011be
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
lea rbx, [rbx + 8]
inc r14d
movzx eax, byte [rdx]
cmp al, byte [0x1401b9598]
jne 0x140001175
movzx eax, byte [rdx + 1]
cmp al, byte [0x1401b9599]
jne 0x140001175
movzx eax, byte [rdx + 2]
cmp al, byte [0x1401b959a]
jne 0x140001175
mov edi, 1
jmp 0x1400011b4
test edi, edi
je 0x1400011f5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], sil
jne 0x140001180
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx]
mov r12, rax
mov r8, rax
nop dword [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x1400011a0
mov edi, esi
cmp r14d, r13d
jl 0x140001140
mov rax, qword [rsp + 0x70]
lea rdx, [0x1401b959c]
mov dword [0x140236028], 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14022c0e0], rax
test rax, rax
jne 0x1400011ff
lea rcx, str.Error_opening_gif_file_for_output._Aborting._n
call fcn.140001860
jmp 0x1400017ee
call fcn.140001900
jmp 0x1400017ee
mov edx, 0xa
lea ecx, [rdx - 9]
lea r8d, [rdx - 4]
call fcn.140003e40
call fcn.140004150
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.14000a1f0
mov rbx, rax
test rax, rax
jns 0x14000124b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_open_HDF_file_for_input._Aborting._n
call fcn.140001010
jmp 0x1400017ee
lea rax, [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x80]
lea rax, [rbp - 0x48]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x78]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
call fcn.140001fc0
test eax, eax
js 0x1400017ee
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffff
ja 0x1400017cb
mov rax, qword [rbp - 0x80]
cmp rax, 0xffff
ja 0x1400017cb
cmp qword [rbp - 0x68], 1
jbe 0x1400012cb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cannot_handle_multiple_planes_image_n
call fcn.140001010
jmp 0x1400017ee
imul rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, r12
mov rcx, rbx
mov r8, rax
mov qword [rbp - 0x60], rax
call fcn.140002680
test eax, eax
js 0x1400017ee
cmp qword [rsp + 0x70], rsi
je 0x14000138c
lea r9, [rbp - 0x58]
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.140002490
test eax, eax
js 0x1400017ee
mov rcx, qword [rbp - 0x58]
imul rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r8d, r8d
mov rdx, r12
mov r9, rax
mov rcx, rbx
mov rdi, rax
call fcn.1400022b0
test eax, eax
js 0x1400017ee
mov r15d, dword [rbp - 0x58]
test r15d, r15d
jle 0x140001383
lea rcx, [rdi + 1]
mov r8d, r15d
lea rdx, [rbp + 0x6d1]
nop word [rax + rax]
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 3]
mov byte [rdx - 1], al
lea rdx, [rdx + 3]
movzx eax, byte [rcx - 3]
mov byte [rdx - 3], al
movzx eax, byte [rcx - 2]
mov byte [rdx - 2], al
sub r8, 1
jne 0x140001360
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.14000a070
mov ebx, dword [rsp + 0x78]
mov edi, dword [rbp - 0x80]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], edi
cmp qword [rsp + 0x70], rsi
jne 0x1400013e4
mov r15d, pe_nt_image_headers64
mov edx, esi
mov rcx, rsi
nop word [rax + rax]
movzx eax, dl
lea rcx, [rcx + 1]
not al
inc edx
mov byte [rbp + rcx - 0x31], al
mov byte [rbp + rcx + 0xcf], al
mov byte [rbp + rcx + 0x1cf], al
cmp edx, r15d
jl 0x1400013c0
jmp 0x140001431
test r15d, r15d
jle 0x140001476
lea rcx, [rbp + 0x6d1]
mov r8d, r15d
mov rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 3]
mov byte [rbp + rdx - 0x30], al
lea rdx, [rdx + 1]
movzx eax, byte [rcx - 3]
mov byte [rbp + rdx + 0xcf], al
movzx eax, byte [rcx - 2]
mov byte [rbp + rdx + 0x1cf], al
sub r8, 1
jne 0x140001400
test r15d, r15d
jle 0x140001476
mov ecx, esi
nop dword [rax]
nop word [rax + rax]
movsxd rax, ecx
cmp rax, 0x100
jae 0x140001852
inc ecx
mov byte [rbp + rax + 0x3d0], sil
mov byte [rbp + rax + 0x4d0], sil
mov byte [rbp + rax + 0x5d0], sil
mov byte [rbp + rax + 0x2d0], sil
cmp ecx, r15d
jl 0x140001440
mov r11d, esi
mov r9d, esi
test r15d, r15d
jle 0x140001530
mov rdx, rsi
nop dword [rax + rax]
mov r8d, esi
mov rax, rsi
test r9d, r9d
jle 0x1400014d5
movzx r10d, byte [rbp + rdx - 0x30]
cmp r10b, byte [rbp + rax - 0x30]
jne 0x1400014ca
movzx ecx, byte [rbp + rax + 0xd0]
cmp byte [rbp + rdx + 0xd0], cl
jne 0x1400014ca
movzx ecx, byte [rbp + rax + 0x1d0]
cmp byte [rbp + rdx + 0x1d0], cl
je 0x1400014d5
inc r8d
inc rax
cmp r8d, r9d
jl 0x1400014a1
cmp r8d, r9d
jne 0x140001510
movzx eax, byte [rbp + rdx - 0x30]
movzx r8d, r11b
movsxd rcx, r11d
inc r11d
mov byte [rbp + rcx + 0x5d0], al
movzx eax, byte [rbp + rdx + 0xd0]
mov byte [rbp + rcx + 0x4d0], al
movzx eax, byte [rbp + rdx + 0x1d0]
mov byte [rbp + rcx + 0x3d0], al
jmp 0x140001519
movzx r8d, byte [rbp + rax + 0x2d0]
mov byte [rbp + rdx + 0x2d0], r8b
inc r9d
inc rdx
cmp r9d, r15d
jl 0x140001490
mov r14d, 1
nop word [rax + rax]
mov ecx, r14d
mov eax, 1
shl eax, cl
cmp eax, r11d
jge 0x140001558
inc r14d
cmp r14d, 8
jl 0x140001540
mov r9, qword [0x14022c0e0]
mov ecx, r14d
mov r15d, 1
mov r13d, r14d
shl r15d, cl
mov eax, 2
cmp r14d, 1
cmovle r13d, eax
test r9, r9
jne 0x14000159c
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.WriteGIF:_file_not_open_for_writing_n
call fcn.140001010
jmp 0x1400017ee
mov edx, 1
lea rcx, str.GIF87a
lea r8d, [rdx + 5]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, qword [0x14022c0e0]
mov ecx, ebx
call fcn.1400018c0
mov rdx, qword [0x14022c0e0]
mov ecx, edi
call fcn.1400018c0
mov rdx, qword [0x14022c0e0]
lea edi, [r14 - 1]
mov ecx, edi
or ecx, 0x70
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x14022c0e0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x14022c0e0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x14022c0e0]
mov ecx, 0x2c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rbx, qword [0x14022c0e0]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rbx, qword [0x14022c0e0]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x14022c0e0]
mov ecx, dword [rsp + 0x60]
call fcn.1400018c0
mov rdx, qword [0x14022c0e0]
mov ecx, dword [rsp + 0x68]
call fcn.1400018c0
mov rdx, qword [0x14022c0e0]
bts edi, 7
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
test r15d, r15d
jle 0x1400016d9
mov ebx, r15d
nop dword [rax]
movzx ecx, byte [rbp + rsi + 0x5d0]
mov rdx, qword [0x14022c0e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movzx ecx, byte [rbp + rsi + 0x4d0]
mov rdx, qword [0x14022c0e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movzx ecx, byte [rbp + rsi + 0x3d0]
mov rdx, qword [0x14022c0e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
lea rsi, [rsi + 1]
sub rbx, 1
jne 0x140001690
mov rdx, qword [0x14022c0e0]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov r9d, dword [rsp + 0x68]
lea rax, [rbp + 0x2d0]
mov rdx, qword [rbp - 0x60]
xor r8d, r8d
mov rcx, qword [0x14022c0e0]
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x48], pe_nt_image_headers64
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x5d0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.140001960
mov rdx, qword [0x14022c0e0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [0x14022c0e0]
mov ecx, 0x3b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
jne 0x140001798
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_
call fcn.140001010
jmp 0x1400017ee
mov rcx, qword [0x14022c0e0]
test rcx, rcx
je 0x1400017aa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r12, r12
je 0x1400017b8
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rbp - 0x78]
xor ecx, ecx
mov rdx, qword [rbp - 0x70]
call fcn.140009d80
xor eax, eax
jmp 0x140001822
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xffff
lea rdx, str.HDF5_image_is_too_large._Limit_is__d_by__d._n
mov r8d, r9d
mov rcx, rax
call fcn.140001010
mov rcx, qword [0x14022c0e0]
test rcx, rcx
je 0x140001800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r12, r12
je 0x14000180e
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rbp - 0x78]
xor ecx, ecx
mov rdx, qword [rbp - 0x70]
call fcn.140009d80
mov eax, 1
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1401b16b0
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1401b1490
int3