Function at 0x1400d4a30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
mov qword [rsp + 0x58], rcx
mov rcx, qword [rbp + 0x240]
mov rbx, r9
mov qword [rsp + 0x78], rcx
mov r12, r8
xor ecx, ecx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x38], rcx
mov r15d, ecx
mov qword [rsp + 0x30], rcx
mov r14d, ecx
mov qword [rsp + 0x40], rcx
mov qword [rdx], rcx
test r8, r8
jne 0x1400d4a9f
xor eax, eax
jmp 0x1400d5180
mov r8d, 2
mov qword [rsp + 0x2d8], r13
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400dc580
test eax, eax
jne 0x1400d5218
mov r8d, dword [rsp + 0x64]
lea rcx, str._________________________08x_08x
mov edx, dword [rsp + 0x60]
call fcn.1400ba5a0
mov qword [rsp + 0x50], rax
mov r13, rax
test rax, rax
je 0x1400d5218
test rbx, rbx
mov qword [rsp + 0x20], rax
lea r9, str.Content_Type:_multipart_form_data
cmovne r9, rbx
lea r8, str._s__boundary_s_r_n
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov ebx, eax
test eax, eax
je 0x1400d4b24
mov rcx, r13
call qword [fcn.1400de23c]
mov eax, ebx
jmp 0x1400d5178
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x2e0], rdi
test r15, r15
je 0x1400d4b5b
lea r8, [0x1400e4f1c]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51bb
mov r9, r13
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51bb
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51bb
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.1400d4600
mov edi, eax
test eax, eax
jne 0x1400d51bb
lea r8, [0x1400ee9e0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51bb
cmp qword [r12 + 0x48], 0
je 0x1400d4c5c
mov rcx, r14
call qword [fcn.1400de23c]
lea r8d, [rdi + 2]
mov rcx, rsi
lea rdx, [rsp + 0x68]
call fcn.1400dc580
test eax, eax
jne 0x1400d51a0
mov r8d, dword [rsp + 0x6c]
lea rcx, str._________________________08x_08x
mov edx, dword [rsp + 0x68]
call fcn.1400ba5a0
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
je 0x1400d51a7
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.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51b1
mov r13, r12
nop
cmp qword [r12 + 0x48], 0
je 0x1400d4ca3
mov r9, r14
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51b6
lea r8, [rsp + 0x30]
mov rcx, r13
lea rdx, [rsp + 0x38]
call fcn.1400d5230
mov edi, eax
test eax, eax
jmp 0x1400d4cce
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400d4cd4
cmp qword [r12 + 0x58], 0
jne 0x1400d4cb8
test al, 1
je 0x1400d4ccc
lea r8, [rsp + 0x30]
mov rcx, r12
lea rdx, [rsp + 0x38]
call fcn.1400d5230
mov edi, eax
test edi, edi
jne 0x1400d51b6
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400d4cfd
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51b6
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x1400d4d3e
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51b6
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400d4d10
jmp 0x1400d4d46
test edi, edi
jne 0x1400d51b6
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51b6
mov eax, dword [r12 + 0x50]
test al, 3
jne 0x1400d4e59
test al, 0x10
je 0x1400d4da4
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.1400d4600
mov r15, qword [rsp + 0x30]
mov edi, eax
jmp 0x1400d506a
test al, 0x40
je 0x1400d4e1f
test al, al
jns 0x1400d4db3
mov rbx, qword [r12 + 0x68]
jmp 0x1400d4db8
movsxd rbx, dword [r12 + 0x20]
mov rdi, qword [r12 + 0x60]
mov r15, qword [rsp + 0x30]
test rbx, rbx
js 0x1400d4f54
test r15, r15
js 0x1400d4f54
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400d4dec
lea edi, [rax + 0x1b]
jmp 0x1400d506a
mov rcx, qword [rsp + 0x38]
add r15, rbx
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400d4e18
mov qword [rcx], rax
xor edi, edi
jmp 0x1400d506a
test al, al
jns 0x1400d4e2a
mov r9, qword [r12 + 0x68]
jmp 0x1400d4e2f
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.1400d4600
mov r15, qword [rsp + 0x30]
mov edi, eax
jmp 0x1400d506a
mov rcx, qword [r13 + 0x18]
movzx eax, byte [0x1400e4700]
cmp al, byte [rcx]
jne 0x1400d4e7d
movzx eax, byte [0x1400e4701]
cmp al, byte [rcx + 1]
jne 0x1400d4e7d
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
jmp 0x1400d4e89
lea rdx, [0x1400e4aa4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r14, rax
test rax, rax
je 0x1400d50a1
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
cmp r14, rax
je 0x1400d4f5e
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov r15, qword [rsp + 0x30]
mov rdi, qword [r13 + 0x18]
test r15, r15
js 0x1400d4f54
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 0x1400d4eda
lea edi, [rax + 0x1b]
jmp 0x1400d506a
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 4
movzx eax, byte [0x1400e4700]
cmp al, byte [rdi]
jne 0x1400d4f03
movzx eax, byte [0x1400e4701]
cmp al, byte [rdi + 1]
je 0x1400d4f32
lea rdx, [rbp - 0x80]
mov rcx, rdi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__stat64
test eax, eax
jne 0x1400d4f4b
movzx eax, word [rbp - 0x7a]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400d4f4b
add r15, qword [rbp - 0x68]
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x1400d4f44
mov qword [rax], rbx
xor edi, edi
jmp 0x1400d506a
mov rcx, rbx
call qword [fcn.1400de23c]
mov edi, Ordinal_46
jmp 0x1400d506a
mov r9, r14
lea rcx, [rbp - 0x40]
mov edx, 1
mov r8d, 0x200
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r15, qword [rsp + 0x30]
mov rbx, rax
test rax, rax
je 0x1400d506a
mov rsi, qword [rsp + 0x38]
nop dword [rax + rax]
test rbx, rbx
js 0x1400d509a
test r15, r15
js 0x1400d509a
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 0x1400d5093
mov qword [rax], 0
test rbx, rbx
jne 0x1400d4fd9
lea rax, [rbp - 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400d4fd0
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 0x1400d508a
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x10]
add r15, rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rdi
mov byte [rbx + rax], 0
mov qword [rdi + 0x18], rbx
mov dword [rdi + 8], 2
test rsi, rsi
je 0x1400d5027
mov qword [rsi], rdi
mov rsi, rdi
mov rcx, r14
xor edi, edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
jne 0x1400d5065
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x1400d5065
mov r9, r14
lea edx, [rdi + 1]
mov r8d, 0x200
lea rcx, [rbp - 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rbx, rax
test rax, rax
jne 0x1400d4f90
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400d50d1
test edi, edi
jne 0x1400d51b6
mov r14, qword [rsp + 0x40]
jmp 0x1400d4c60
mov rcx, rdi
call qword [fcn.1400de23c]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400d5065
mov edi, Ordinal_46
jmp 0x1400d5065
test rsi, rsi
je 0x1400d50b9
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, rsi
call fcn.1400aeb70
mov rbx, qword [rsp + 0x48]
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov r15, qword [rsp + 0x30]
mov qword [rbx], 0
jmp 0x1400d506f
test edi, edi
jne 0x1400d51b6
cmp qword [r12 + 0x48], 0
mov r14, qword [rsp + 0x40]
je 0x1400d510e
mov r9, r14
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d520e
mov r15, qword [rsp + 0x30]
mov r12, qword [r12]
mov r13, qword [rsp + 0x50]
test r12, r12
jne 0x1400d4b36
test edi, edi
jne 0x1400d51bb
mov r9, r13
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400d47a0
mov edi, eax
test eax, eax
jne 0x1400d51bb
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r14
call qword [fcn.1400de23c]
mov rcx, r13
call qword [fcn.1400de23c]
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
xor eax, eax
mov rdi, qword [rsp + 0x2e0]
mov r13, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14009e1d0
add rsp, 0x2e8
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
xor esi, esi
lea edi, [rsi + 0x1b]
jmp 0x1400d51c0
mov rsi, rax
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400d51c0
mov rsi, r14
jmp 0x1400d51c0
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x1400d51f5
nop word [rax + rax]
cmp dword [r15 + 8], 2
mov rbx, qword [r15]
jg 0x1400d51e4
mov rcx, qword [r15 + 0x10]
call qword [fcn.1400de23c]
mov rcx, r15
call qword [fcn.1400de23c]
mov r15, rbx
test rbx, rbx
jne 0x1400d51d0
mov rcx, rsi
call qword [fcn.1400de23c]
mov rcx, r13
call qword [fcn.1400de23c]
mov eax, edi
jmp 0x1400d5170
mov r13, qword [rsp + 0x50]
mov rsi, r14
jmp 0x1400d51c0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400d5178