Function at 0x1400bedf0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [r11 - 0x208]
sub rsp, 0x2e0
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
mov rdi, r9
mov qword [rsp + 0x68], rax
mov r12, r8
xor eax, eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rcx
mov r14, rcx
mov qword [rsp + 0x30], rax
mov r15d, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rax
mov qword [rdx], rax
test r8, r8
je 0x1400bf5c6
mov qword [r11 - 0x30], rbx
mov qword [r11 - 0x40], r13
call fcn.140093070
mov rcx, r14
mov ebx, eax
call fcn.140093070
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14009d0e0
mov qword [rsp + 0x48], rax
mov r13, rax
test rax, rax
jne 0x1400bee97
lea eax, [r15 + 0x1b]
jmp 0x1400bf5b6
test rdi, rdi
mov qword [rsp + 0x20], rax
lea r9, str.Content_Type:_multipart_form_data
cmovne r9, rdi
lea r8, str._s__boundary_s_r_n
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov ebx, eax
test eax, eax
je 0x1400beed3
mov rcx, r13
call qword [fcn.1400c607d]
mov eax, ebx
jmp 0x1400bf5b6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x2d0], rsi
cmp qword [rsp + 0x38], 0
je 0x1400bef0d
lea r8, [0x1400cd78c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
mov r9, r13
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
movsxd rbx, dword [r12 + 0x10]
lea ecx, [rax + 0x20]
mov rsi, qword [r12 + 8]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400bf54f
mov qword [rax], 0
test rbx, rbx
jne 0x1400bef89
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400bef80
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400bf546
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x10]
xor esi, esi
mov qword [rdi + 0x18], rbx
mov byte [rbx + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rdi + 8], esi
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x1400befd1
mov qword [rax], rdi
add qword [rsp + 0x38], rbx
lea r8, [0x1400d5120]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
cmp qword [r12 + 0x48], rsi
je 0x1400bf05d
mov rcx, r15
call qword [fcn.1400c607d]
mov rcx, r14
call fcn.140093070
mov rcx, r14
mov ebx, eax
call fcn.140093070
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14009d0e0
mov qword [rsp + 0x50], rax
mov r15, rax
test rax, rax
je 0x1400bf54f
mov r9, rax
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
mov r13, r12
cmp qword [r12 + 0x48], 0
je 0x1400bf0a3
mov r9, r15
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf556
lea r8, [rsp + 0x38]
mov rcx, r13
lea rdx, [rsp + 0x30]
call fcn.1400bf5f0
mov edi, eax
test eax, eax
jmp 0x1400bf0ce
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400bf0d4
cmp qword [r12 + 0x58], 0
jne 0x1400bf0b8
test al, 1
je 0x1400bf0cc
lea r8, [rsp + 0x38]
mov rcx, r12
lea rdx, [rsp + 0x30]
call fcn.1400bf5f0
mov edi, eax
test edi, edi
jne 0x1400bf556
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400bf0fd
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf556
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x1400bf13e
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf556
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400bf110
jmp 0x1400bf146
test edi, edi
jne 0x1400bf556
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf556
mov eax, dword [r12 + 0x50]
test al, 3
jne 0x1400bf2ae
lea ecx, [rdi + 0x20]
test al, 0x10
je 0x1400bf21e
movsxd rbx, dword [r12 + 0x30]
mov rsi, qword [r12 + 0x28]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400bf19e
lea edi, [rax + 0x1b]
jmp 0x1400bf455
mov qword [rax], 0
test rbx, rbx
jne 0x1400bf1b9
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400bf1b0
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400bf1df
mov rcx, rdi
call qword [fcn.1400c607d]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400bf455
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rdi + 8], 1
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x1400bf212
mov qword [rax], rdi
add qword [rsp + 0x38], rbx
xor edi, edi
jmp 0x1400bf455
test al, 0x40
je 0x1400bf26b
movsxd rdi, dword [r12 + 0x20]
mov rbx, qword [r12 + 0x60]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400bf23f
lea edi, [rax + 0x1b]
jmp 0x1400bf455
mov rcx, qword [rsp + 0x30]
mov qword [rax], rsi
mov qword [rax + 0x10], rbx
mov dword [rax + 8], 2
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x1400bf25f
mov qword [rcx], rax
add qword [rsp + 0x38], rdi
mov edi, esi
jmp 0x1400bf455
movsxd rbx, dword [r12 + 0x20]
mov rsi, qword [r12 + 0x18]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400bf28b
lea edi, [rax + 0x1b]
jmp 0x1400bf455
mov qword [rax], 0
test rbx, rbx
jne 0x1400bf1b9
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400bf2a0
jmp 0x1400bf1b9
mov rdx, qword [r13 + 0x18]
lea rcx, [0x1400cd030]
call fcn.1400a6a40
test eax, eax
je 0x1400bf2cb
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
jmp 0x1400bf2db
mov rcx, qword [r13 + 0x18]
lea rdx, [0x1400cd3b4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r15, rax
test rax, rax
je 0x1400bf487
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
cmp r15, rax
je 0x1400bf395
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rdi, qword [r13 + 0x18]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400bf1d5
mov qword [rax], rsi
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x1400bf33a
mov qword [rax], rbx
mov rdx, qword [rbx + 0x10]
lea rcx, [0x1400cd030]
call fcn.1400a6a40
test eax, eax
jne 0x1400bf264
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__stat64
test eax, eax
jne 0x1400bf38b
movzx eax, word [rsp + 0x76]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400bf38b
mov rax, qword [rbp - 0x78]
mov edi, esi
add qword [rsp + 0x38], rax
jmp 0x1400bf455
mov edi, Ordinal_46
jmp 0x1400bf455
mov r9, r15
lea rcx, [rbp - 0x50]
mov edx, 1
mov r8d, 0x200
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r14, rax
test rax, rax
je 0x1400bf450
mov edi, esi
mov rsi, qword [rsp + 0x30]
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400bf480
lea rcx, [r14 + 1]
mov qword [rax], 0
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400bf477
mov r8, r14
lea rdx, [rbp - 0x50]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], r14
mov qword [rsp + 0x30], rbx
mov byte [r14 + rax], 0
mov dword [rbx + 8], 1
test rsi, rsi
je 0x1400bf425
mov qword [rsi], rbx
add qword [rsp + 0x38], r14
lea rcx, [rbp - 0x50]
mov r9, r15
mov edx, 1
mov r8d, 0x200
mov rsi, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r14, rax
test rax, rax
jne 0x1400bf3c0
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400bf4b2
test edi, edi
jne 0x1400bf556
mov r15, qword [rsp + 0x50]
xor esi, esi
jmp 0x1400bf060
mov rcx, rbx
call qword [fcn.1400c607d]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400bf450
test r14, r14
je 0x1400bf49f
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r14
call fcn.14009af40
mov rsi, qword [rsp + 0x40]
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov qword [rsi], 0
jmp 0x1400bf45a
test edi, edi
jne 0x1400bf556
cmp qword [r12 + 0x48], 0
mov r15, qword [rsp + 0x50]
je 0x1400bf4e6
mov r9, r15
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf556
mov r12, qword [r12]
mov r13, qword [rsp + 0x48]
test r12, r12
jne 0x1400beee5
test edi, edi
jne 0x1400bf55b
mov r9, r13
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400beac0
mov edi, eax
test eax, eax
jne 0x1400bf55b
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r15
call qword [fcn.1400c607d]
mov rcx, r13
call qword [fcn.1400c607d]
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
xor eax, eax
jmp 0x1400bf5ae
mov rcx, rdi
call qword [fcn.1400c607d]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400bf55b
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x1400bf598
nop word [rax + rax]
cmp dword [r12 + 8], 1
mov rbx, qword [r12]
jg 0x1400bf587
mov rcx, qword [r12 + 0x10]
call qword [fcn.1400c607d]
mov rcx, r12
call qword [fcn.1400c607d]
mov r12, rbx
test rbx, rbx
jne 0x1400bf570
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400c607d]
mov rcx, r13
call qword [fcn.1400c607d]
mov eax, edi
mov rsi, qword [rsp + 0x2d0]
mov rbx, qword [rsp + 0x2d8]
mov r13, qword [rsp + 0x2c8]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400c5ce0
add rsp, 0x2e0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret