Function at 0x1400accb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
mov qword [rsp + 0x58], rcx
mov rcx, qword [rbp + 0x230]
mov rdi, r9
mov qword [rsp + 0x68], rcx
mov r12, r8
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov r14d, ecx
mov qword [rsp + 0x30], rcx
mov r15d, ecx
mov qword [rsp + 0x50], rcx
mov qword [rdx], rcx
test r8, r8
jne 0x1400acd1f
xor eax, eax
jmp 0x1400ad42b
mov qword [rsp + 0x2d0], rbx
mov rcx, rsi
mov qword [rsp + 0x2c8], r13
call fcn.14007eee0
mov rcx, rsi
mov ebx, eax
call fcn.14007eee0
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.140092c50
mov qword [rsp + 0x48], rax
mov r13, rax
test rax, rax
jne 0x1400acd68
lea eax, [r13 + 0x1b]
jmp 0x1400ad41b
test rdi, rdi
mov qword [rsp + 0x20], r13
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 + 0x38]
call fcn.1400aca20
mov ebx, eax
test eax, eax
je 0x1400acda4
mov rcx, r13
call qword [fcn.1400b5ea1]
mov eax, ebx
jmp 0x1400ad41b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
nop
test r14, r14
je 0x1400acdd5
lea r8, [0x1400c105c]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
mov r9, r13
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
movsxd r9, dword [r12 + 0x10]
lea rax, [rsp + 0x30]
mov r8, qword [r12 + 8]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400ac880
mov edi, eax
test eax, eax
jne 0x1400ad3cf
lea r8, [0x1400ca950]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
cmp qword [r12 + 0x48], 0
je 0x1400acecb
mov rcx, r15
call qword [fcn.1400b5ea1]
mov rcx, rsi
call fcn.14007eee0
mov rcx, rsi
mov ebx, eax
call fcn.14007eee0
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.140092c50
mov qword [rsp + 0x50], rax
mov r15, rax
test rax, rax
je 0x1400ad3c3
mov r9, rax
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
mov r13, r12
nop
cmp qword [r12 + 0x48], 0
je 0x1400acf13
mov r9, r15
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3ca
lea r8, [rsp + 0x30]
mov rcx, r13
lea rdx, [rsp + 0x38]
call fcn.1400ad450
mov edi, eax
test eax, eax
jmp 0x1400acf3e
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400acf44
cmp qword [r12 + 0x58], 0
jne 0x1400acf28
test al, 1
je 0x1400acf3c
lea r8, [rsp + 0x30]
mov rcx, r12
lea rdx, [rsp + 0x38]
call fcn.1400ad450
mov edi, eax
test edi, edi
jne 0x1400ad3ca
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400acf6d
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3ca
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x1400acfae
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3ca
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400acf80
jmp 0x1400acfb6
test edi, edi
jne 0x1400ad3ca
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3ca
mov eax, dword [r12 + 0x50]
test al, 3
jne 0x1400ad0c9
test al, 0x10
je 0x1400ad014
movsxd r9, dword [r12 + 0x30]
lea rax, [rsp + 0x30]
mov r8, qword [r12 + 0x28]
lea edx, [rdi + 2]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400ac880
mov r14, qword [rsp + 0x30]
mov edi, eax
jmp 0x1400ad2c3
test al, 0x40
je 0x1400ad08f
test al, al
jns 0x1400ad023
mov rbx, qword [r12 + 0x68]
jmp 0x1400ad028
movsxd rbx, dword [r12 + 0x20]
mov rdi, qword [r12 + 0x60]
mov r14, qword [rsp + 0x30]
test rbx, rbx
js 0x1400ad1cb
test r14, r14
js 0x1400ad1cb
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400ad05c
lea edi, [rax + 0x1b]
jmp 0x1400ad2c3
mov rcx, qword [rsp + 0x38]
add r14, rbx
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400ad088
mov qword [rcx], rax
xor edi, edi
jmp 0x1400ad2c3
test al, al
jns 0x1400ad09a
mov r9, qword [r12 + 0x68]
jmp 0x1400ad09f
movsxd r9, dword [r12 + 0x20]
mov r8, qword [r12 + 0x18]
lea rax, [rsp + 0x30]
mov edx, 2
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
call fcn.1400ac880
mov r14, qword [rsp + 0x30]
mov edi, eax
jmp 0x1400ad2c3
mov rcx, qword [r13 + 0x18]
movzx eax, byte [0x1400c0870]
cmp al, byte [rcx]
jne 0x1400ad0ee
movzx eax, byte [0x1400c0871]
cmp al, byte [rcx + 1]
jne 0x1400ad0ee
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1400ad0fb
lea rdx, [0x1400c0c00]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, rax
test rax, rax
je 0x1400ad2fa
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp r15, rax
je 0x1400ad1d5
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14, qword [rsp + 0x30]
mov rdi, qword [r13 + 0x18]
test r14, r14
js 0x1400ad1cb
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
jne 0x1400ad14e
lea edi, [rax + 0x1b]
jmp 0x1400ad2c3
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 4
movzx eax, byte [0x1400c0870]
cmp al, byte [rdi]
jne 0x1400ad177
movzx eax, byte [0x1400c0871]
cmp al, byte [rdi + 1]
je 0x1400ad1a9
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
jne 0x1400ad1c2
movzx eax, word [rsp + 0x76]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400ad1c2
add r14, qword [rbp - 0x78]
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x1400ad1bb
mov qword [rax], rbx
xor edi, edi
jmp 0x1400ad2c3
mov rcx, rbx
call qword [fcn.1400b5ea1]
mov edi, Ordinal_46
jmp 0x1400ad2c3
mov r9, r15
lea rcx, [rbp - 0x50]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, qword [rsp + 0x30]
mov rbx, rax
test rax, rax
je 0x1400ad2c3
mov rsi, qword [rsp + 0x38]
test rbx, rbx
js 0x1400ad2f3
test r14, r14
js 0x1400ad2f3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400ad2ec
mov qword [rax], 0
test rbx, rbx
jne 0x1400ad249
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ad240
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 0x1400ad2e3
mov r8, rbx
lea rdx, [rbp - 0x50]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x10]
add r14, rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
mov byte [rbx + rax], 0
mov qword [rdi + 0x18], rbx
mov dword [rdi + 8], 2
test rsi, rsi
je 0x1400ad297
mov qword [rsi], rdi
mov rsi, rdi
lea rcx, [rbp - 0x50]
xor edi, edi
mov r9, r15
mov r8d, 0x200
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test rax, rax
jne 0x1400ad203
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400ad32a
test edi, edi
jne 0x1400ad3ca
mov r15, qword [rsp + 0x50]
jmp 0x1400aced0
mov rcx, rdi
call qword [fcn.1400b5ea1]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400ad2be
mov edi, Ordinal_46
jmp 0x1400ad2be
test rsi, rsi
je 0x1400ad312
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, rsi
call fcn.140087170
mov rbx, qword [rsp + 0x40]
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov r14, qword [rsp + 0x30]
mov qword [rbx], 0
jmp 0x1400ad2c8
test edi, edi
jne 0x1400ad3ca
cmp qword [r12 + 0x48], 0
mov r15, qword [rsp + 0x50]
je 0x1400ad363
mov r9, r15
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3ca
mov r14, qword [rsp + 0x30]
mov r12, qword [r12]
mov r13, qword [rsp + 0x48]
test r12, r12
jne 0x1400acdb0
test edi, edi
jne 0x1400ad3cf
mov r9, r13
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400aca20
mov edi, eax
test eax, eax
jne 0x1400ad3cf
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r15
call qword [fcn.1400b5ea1]
mov rcx, r13
call qword [fcn.1400b5ea1]
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
xor eax, eax
jmp 0x1400ad41b
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400ad3cf
mov r13, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x1400ad405
nop dword [rax]
cmp dword [r14 + 8], 2
mov rbx, qword [r14]
jg 0x1400ad3f4
mov rcx, qword [r14 + 0x10]
call qword [fcn.1400b5ea1]
mov rcx, r14
call qword [fcn.1400b5ea1]
mov r14, rbx
test rbx, rbx
jne 0x1400ad3e0
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400b5ea1]
mov rcx, r13
call qword [fcn.1400b5ea1]
mov eax, edi
mov rbx, qword [rsp + 0x2d0]
mov r13, qword [rsp + 0x2c8]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x2d8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret