Function at 0x1400040c0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140028188]
lea r14, [0x140028150]
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
cmp rax, 2
jae 0x140004170
mov r8d, 2
lea rcx, [rax + r14]
sub r8, rax
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdx, rax
test rax, rax
jne 0x14000415f
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rbx
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [0x140028188]
add rax, rdx
mov qword [0x140028188], rax
cmp byte [0x140028150], 0x42
jne 0x140004369
cmp byte [0x140028151], 0x4d
jne 0x140004369
cmp rax, 0x2e
jae 0x1400041f9
mov r8d, 0x2e
lea rcx, [rax + r14]
sub r8, rax
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400041f2
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rbx
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add qword [0x140028188], rax
movzx eax, byte [0x140028164]
movzx ecx, byte [0x140028165]
shl ecx, 8
add ecx, eax
movaps xmmword [rsp + 0x50], xmm8
movzx eax, byte [0x140028163]
shl ecx, 8
add ecx, eax
movaps xmmword [rsp + 0x40], xmm9
movzx eax, byte [0x140028162]
shl ecx, 8
add ecx, eax
movaps xmmword [rsp + 0x30], xmm10
movzx eax, byte [0x140028168]
movaps xmmword [rsp + 0x20], xmm11
movd xmm11, ecx
movzx ecx, byte [0x140028169]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028167]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028166]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028178]
cvtdq2pd xmm11, xmm11
movd xmm10, ecx
movzx ecx, byte [0x140028179]
movaps xmm0, xmm11
mulsd xmm0, qword [0x14001de90]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028177]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028176]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002817c]
cvtdq2pd xmm10, xmm10
movd xmm9, ecx
movzx ecx, byte [0x14002817d]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002817b]
shl ecx, 8
cvtdq2pd xmm9, xmm9
add ecx, eax
movzx eax, byte [0x14002817a]
shl ecx, 8
add ecx, eax
divsd xmm0, xmm9
movd xmm8, ecx
addsd xmm0, qword [0x14001de50]
cvtdq2pd xmm8, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
cvttsd2si eax, xmm0
movaps xmm0, xmm10
mulsd xmm0, qword [0x14001de90]
mov dword [rsi], eax
divsd xmm0, xmm8
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov rax, qword [rsp + 0x90]
divsd xmm11, xmm9
movaps xmm9, xmmword [rsp + 0x40]
divsd xmm10, xmm8
movaps xmm8, xmmword [rsp + 0x50]
divsd xmm11, xmm10
movaps xmm10, xmmword [rsp + 0x30]
cvttsd2si ecx, xmm0
mov dword [rax], ecx
mov eax, 1
movsd qword [rbp], xmm11
movaps xmm11, xmmword [rsp + 0x20]
jmp 0x14000436b
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret