Function at 0x1400c26a0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2a0
xor eax, eax
mov rdi, r9
mov r12, r8
mov r14, rcx
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x30], rax
mov r15d, eax
mov qword [rsp + 0x40], rax
mov qword [rdx], rax
test r8, r8
je 0x1400c2e9a
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x38], r13
call fcn.1400a77e0
mov rcx, r14
mov ebx, eax
call fcn.1400a77e0
lea rcx, str._________________________08x_08x
mov r8d, ebx
mov edx, eax
call fcn.1400ba920
mov r13, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400c272a
lea eax, [r15 + 0x1b]
jmp 0x1400c2e8a
lea r9, str.Content_Type:_multipart_form_data
test rdi, rdi
lea r8, str._s__boundary_s_r_n
cmovne r9, rdi
lea rcx, [rbp + 0x1e0]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400c2130
mov ebx, eax
test eax, eax
je 0x1400c2768
mov rcx, r13
call qword [sub.msvcrt.dll_free]
mov eax, ebx
jmp 0x1400c2e8a
mov rax, qword [rbp + 0x1e0]
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x48], rax
nop dword [rax]
cmp qword [rsp + 0x30], 0
je 0x1400c27aa
lea r8, [0x1400e66ec]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
mov r9, r13
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
movsxd rbx, dword [r12 + 0x10]
mov rsi, qword [r12 + 8]
lea ecx, [rax + 0x20]
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c2e2e
mov qword [rax], 0
test rbx, rbx
jne 0x1400c2829
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400c2820
lea rcx, [rbx + 1]
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400c2e25
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x10]
xor esi, esi
mov qword [rdi + 0x18], rbx
mov byte [rbx + rax], 0
mov rax, qword [rbp + 0x1e0]
mov dword [rdi + 8], esi
mov qword [rbp + 0x1e0], rdi
test rax, rax
je 0x1400c2875
mov qword [rax], rdi
add qword [rsp + 0x30], rbx
lea r8, [0x1400ecc20]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
cmp qword [r12 + 0x48], rsi
je 0x1400c2905
mov rcx, r15
call qword [sub.msvcrt.dll_free]
mov rcx, r14
call fcn.1400a77e0
mov rcx, r14
mov ebx, eax
call fcn.1400a77e0
lea rcx, str._________________________08x_08x
mov edx, eax
mov r8d, ebx
call fcn.1400ba920
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400c2e2e
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
mov r9, rax
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
mov r13, r12
cmp qword [r12 + 0x48], 0
je 0x1400c294f
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
mov r9, r15
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e35
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x1e0]
mov rcx, r13
call fcn.1400c3900
mov edi, eax
test eax, eax
jmp 0x1400c297c
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400c2982
cmp qword [r12 + 0x58], 0
jne 0x1400c2964
test al, 1
je 0x1400c297a
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x1e0]
mov rcx, r12
call fcn.1400c3900
mov edi, eax
test edi, edi
jne 0x1400c2e35
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400c29ad
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e35
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x1400c29f0
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e35
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400c29c0
jmp 0x1400c29f8
test edi, edi
jne 0x1400c2e35
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e35
mov eax, dword [r12 + 0x50]
test al, 1
jne 0x1400c2b75
test al, 2
jne 0x1400c2b75
lea ecx, [rdi + 0x20]
test al, 0x10
je 0x1400c2ae2
movsxd rbx, dword [r12 + 0x30]
mov rsi, qword [r12 + 0x28]
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c2a5a
lea edi, [rax + 0x1b]
jmp 0x1400c2d2a
mov qword [rax], 0
test rbx, rbx
jne 0x1400c2a79
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400c2a70
lea rcx, [rbx + 1]
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400c2a9f
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
mov edi, 0x1b
jmp 0x1400c2d2a
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], 0
mov rax, qword [rbp + 0x1e0]
mov dword [rdi + 8], 1
mov qword [rbp + 0x1e0], rdi
test rax, rax
je 0x1400c2ad6
mov qword [rax], rdi
add qword [rsp + 0x30], rbx
xor edi, edi
jmp 0x1400c2d2a
test al, 0x40
je 0x1400c2b33
movsxd rdi, dword [r12 + 0x20]
mov rbx, qword [r12 + 0x60]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
jne 0x1400c2b03
lea edi, [rax + 0x1b]
jmp 0x1400c2d2a
mov rcx, qword [rbp + 0x1e0]
mov qword [rax], rsi
mov qword [rax + 0x10], rbx
mov dword [rax + 8], 2
mov qword [rbp + 0x1e0], rax
test rcx, rcx
je 0x1400c2b27
mov qword [rcx], rax
add qword [rsp + 0x30], rdi
mov edi, esi
jmp 0x1400c2d2a
movsxd rbx, dword [r12 + 0x20]
mov rsi, qword [r12 + 0x18]
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c2b53
lea edi, [rax + 0x1b]
jmp 0x1400c2d2a
mov qword [rax], 0
test rbx, rbx
jne 0x1400c2a79
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400c2b67
jmp 0x1400c2a79
mov rdx, qword [r13 + 0x18]
lea rcx, [0x1400e6cd8]
call fcn.1400b55a0
test eax, eax
je 0x1400c2b91
call qword [sym.imp.msvcrt.dll___iob_func]
jmp 0x1400c2ba2
mov rcx, qword [r13 + 0x18]
lea rdx, [0x1400e0744]
call qword [sym.imp.msvcrt.dll_fopen]
mov r15, rax
test rax, rax
je 0x1400c2d5e
call qword [sym.imp.msvcrt.dll___iob_func]
cmp r15, rax
je 0x1400c2c62
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fclose]
mov rdi, qword [r13 + 0x18]
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400c2a95
mov qword [rax], rsi
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x1e0], rbx
test rax, rax
je 0x1400c2c05
mov qword [rax], rbx
mov rdx, qword [rbx + 0x10]
lea rcx, [0x1400e6cd8]
call fcn.1400b55a0
test eax, eax
jne 0x1400c2b2c
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__stat64]
test eax, eax
jne 0x1400c2c58
movzx eax, word [rsp + 0x56]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400c2c58
mov rax, qword [rsp + 0x68]
mov edi, esi
add qword [rsp + 0x30], rax
jmp 0x1400c2d2a
mov edi, 0x2b
jmp 0x1400c2d2a
lea rcx, [rbp - 0x70]
mov r9, r15
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.msvcrt.dll_fread]
mov r14, rax
test rax, rax
je 0x1400c2d23
mov edi, esi
mov rsi, qword [rbp + 0x1e0]
nop
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400c2d57
lea rcx, [r14 + 1]
mov qword [rax], 0
call qword [sub.msvcrt.dll_malloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400c2d4e
lea rdx, [rbp - 0x70]
mov r8, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], r14
mov byte [r14 + rax], 0
mov qword [rbp + 0x1e0], rbx
mov dword [rbx + 8], 1
test rsi, rsi
je 0x1400c2cf7
mov qword [rsi], rbx
add qword [rsp + 0x30], r14
lea rcx, [rbp - 0x70]
mov r9, r15
mov edx, 1
mov r8d, 0x200
mov rsi, rbx
call qword [sym.imp.msvcrt.dll_fread]
mov r14, rax
test rax, rax
jne 0x1400c2c90
mov r14, qword [rbp + 0x1d0]
mov rsi, qword [rbp + 0x1d8]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400c2d8b
test edi, edi
jne 0x1400c2e35
mov r15, qword [rsp + 0x40]
xor esi, esi
jmp 0x1400c2908
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov edi, 0x1b
jmp 0x1400c2d23
test r14, r14
je 0x1400c2d76
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r14
call fcn.1400a8c50
mov rsi, qword [rbp + 0x1d8]
mov edi, 0x1a
mov qword [rsi], 0
jmp 0x1400c2d31
test edi, edi
jne 0x1400c2e35
cmp qword [r12 + 0x48], 0
mov r15, qword [rsp + 0x40]
je 0x1400c2dc1
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
mov r9, r15
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e35
mov r12, qword [r12]
mov r13, qword [rsp + 0x38]
test r12, r12
jne 0x1400c2780
test edi, edi
jne 0x1400c2e3a
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
mov r9, r13
call fcn.1400c2130
mov edi, eax
test eax, eax
jne 0x1400c2e3a
mov rcx, qword [rbp + 0x1f0]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r15
call qword [sub.msvcrt.dll_free]
mov rcx, r13
call qword [sub.msvcrt.dll_free]
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
xor eax, eax
jmp 0x1400c2e82
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
mov edi, 0x1b
jmp 0x1400c2e3a
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
test r12, r12
je 0x1400c2e6c
cmp dword [r12 + 8], 1
mov rbx, qword [r12]
jg 0x1400c2e5b
mov rcx, qword [r12 + 0x10]
call qword [sub.msvcrt.dll_free]
mov rcx, r12
call qword [sub.msvcrt.dll_free]
mov r12, rbx
test rbx, rbx
jne 0x1400c2e44
mov rcx, qword [rsp + 0x40]
call qword [sub.msvcrt.dll_free]
mov rcx, r13
call qword [sub.msvcrt.dll_free]
mov eax, edi
mov rsi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x290]
add rsp, 0x2a0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret