Function at 0x14004c8d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call fcn.140059a70
mov qword [0x1400a8dc0], rax
test rax, rax
je 0x14004ca02
xor eax, eax
mov dword [0x1400a8ca8], ebx
cmp byte [0x1400a5d60], al
lea r8, [0x1400871b0]
mov qword [0x1400a8d40], rax
lea rcx, [rsp + 0x38]
mov qword [0x1400a8d48], rax
mov qword [0x1400a8d50], rax
mov qword [0x1400a8d58], rax
mov qword [0x1400a8d60], rax
mov qword [0x1400a8d68], rax
mov qword [0x1400a8d70], rax
mov qword [0x1400a8d78], rax
mov qword [0x1400a8d00], rax
mov qword [0x1400a8d08], rax
mov qword [0x1400a8d10], rax
mov qword [0x1400a8d18], rax
mov qword [0x1400a8d20], rax
mov qword [0x1400a8d28], rax
mov qword [0x1400a8d30], rax
mov qword [0x1400a8d38], rax
mov qword [0x1400a8cc0], rax
mov qword [0x1400a8cc8], rax
mov qword [0x1400a8cd0], rax
mov qword [0x1400a8cd8], rax
mov qword [0x1400a8ce0], rax
mov qword [0x1400a8ce8], rax
mov qword [0x1400a8cf0], rax
mov qword [0x1400a8cf8], rax
mov dword [0x1400a81a8], ebx
jne 0x14004c9d9
lea rdx, str.sntlconfig.xml
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
jmp 0x14004c9ec
lea rdx, [0x1400a5d60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov byte [0x1400a5d60], bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14004ca0f
mov rcx, qword [0x1400a8dc0]
call fcn.140059b70
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x14004ca48
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14004ca5b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x40]
inc ecx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x14004ca9d
mov rcx, qword [0x1400a8dc0]
call fcn.140059b70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
mov edx, 1
mov r9, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1400a8dc0]
lea r8, [0x14004c7a0]
lea rdx, [0x14004d070]
call fcn.14005a040
mov rcx, qword [0x1400a8dc0]
mov r9d, ebx
mov r8d, ebx
mov rdx, rsi
call fcn.1400598f0
test eax, eax
jne 0x14004cb2f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400a8dc0]
call fcn.140059b70
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x68], rax
mov qword [rdi + 0x70], rax
mov qword [rdi + 0x78], rax
mov qword [rdi + 0x80], rax
mov qword [rdi + 0x88], rax
mov qword [rdi + 0x90], rax
mov qword [rdi + 0x98], rax
mov qword [rdi + 0xa0], rax
mov qword [rdi + 0xa8], rax
mov qword [rdi + 0xb0], rax
mov qword [rdi + 0xb8], rax
mov qword [rdi + 0xc0], rax
mov qword [rdi + 0xc8], rax
mov qword [rdi + 0xd0], rax
mov qword [rdi + 0xd8], rax
mov qword [rdi + 0xe0], rax
mov qword [rdi + 0xe8], rax
mov qword [rdi + 0xf0], rax
mov qword [rdi + 0xf8], rax
movups xmm0, xmmword [0x1400a8d80]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x1400a8d90]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [0x1400a8da0]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [0x1400a8db0]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [0x1400a8d40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [0x1400a8d50]
movups xmmword [rdi + 0x50], xmm1
movups xmm0, xmmword [0x1400a8d60]
movups xmmword [rdi + 0x60], xmm0
movups xmm1, xmmword [0x1400a8d70]
movups xmmword [rdi + 0x70], xmm1
movups xmm0, xmmword [0x1400a8d00]
movups xmmword [rdi + 0x80], xmm0
movups xmm1, xmmword [0x1400a8d10]
movups xmmword [rdi + 0x90], xmm1
movups xmm0, xmmword [0x1400a8d20]
movups xmmword [rdi + 0xa0], xmm0
movups xmm1, xmmword [0x1400a8d30]
movups xmmword [rdi + 0xb0], xmm1
movups xmm0, xmmword [0x1400a8cc0]
movups xmmword [rdi + 0xc0], xmm0
movups xmm1, xmmword [0x1400a8cd0]
movups xmmword [rdi + 0xd0], xmm1
movups xmm0, xmmword [0x1400a8ce0]
movups xmmword [rdi + 0xe0], xmm0
movups xmm1, xmmword [0x1400a8cf0]
movups xmmword [rdi + 0xf0], xmm1
mov ecx, dword [0x1400a8ca8]
mov dword [rdi + 0x100], ecx
mov ecx, dword [0x1400a81a8]
mov dword [rdi + 0x104], ecx
mov rcx, qword [0x1400a8dc0]
call fcn.140059b70
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret