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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140028188]
lea r15, [0x140028150]
mov r14, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rax, 0x18
jae 0x14000494c
mov r8d, 0x18
lea rcx, [rax + r15]
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 0x140004945
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rsi
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
cmp byte [0x140028150], 0x89
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], r12
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x30], xmm10
movaps xmmword [rsp + 0x20], xmm11
jne 0x140004c73
cmp byte [0x140028151], 0x50
jne 0x140004c73
cmp byte [0x140028152], 0x4e
jne 0x140004c73
cmp byte [0x140028153], 0x47
jne 0x140004c73
cmp byte [0x140028154], 0xd
jne 0x140004c73
cmp byte [0x140028155], 0xa
jne 0x140004c73
cmp byte [0x140028156], 0x1a
jne 0x140004c73
cmp byte [0x140028157], 0xa
jne 0x140004c73
cmp byte [0x14002815c], 0x49
jne 0x140004c73
cmp byte [0x14002815d], 0x48
jne 0x140004c73
cmp byte [0x14002815e], 0x44
jne 0x140004c73
cmp byte [0x14002815f], 0x52
jne 0x140004c73
movzx ecx, byte [0x140028160]
xor r8d, r8d
movzx eax, byte [0x140028161]
movzx ebx, byte [0x14002815b]
shl ecx, 8
add ebx, 0x14
add ecx, eax
movzx eax, byte [0x140028162]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028163]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028165]
movd xmm8, ecx
movzx ecx, byte [0x140028164]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028166]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028167]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028159]
cvtdq2pd xmm8, xmm8
movd xmm9, ecx
movzx ecx, byte [0x140028158]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815a]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ebx, ecx
mov rcx, rdi
mov edx, ebx
cvtdq2pd xmm9, xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004c73
xor r12d, r12d
mov edx, 1
mov qword [0x140028188], r12
mov r9, rdi
mov rcx, r15
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140004cb3
add qword [0x140028188], rax
movzx eax, byte [0x140028151]
movzx ecx, byte [0x140028150]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028152]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028153]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028154]
cmp al, 0x70
jne 0x140004c39
cmp byte [0x140028155], 0x48
jne 0x140004c58
cmp byte [0x140028156], 0x59
jne 0x140004c58
cmp byte [0x140028157], 0x73
jne 0x140004c58
movzx eax, byte [0x140028159]
movzx ecx, byte [0x140028158]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815a]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815b]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815d]
movd xmm10, ecx
movzx ecx, byte [0x14002815c]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815e]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x14002815f]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028160]
cvtdq2pd xmm10, xmm10
movd xmm11, ecx
cvtdq2pd xmm11, xmm11
test eax, eax
je 0x140004c1d
cmp eax, 1
jne 0x140004c73
movaps xmm0, xmm8
mulsd xmm0, qword [0x14001de90]
divsd xmm0, xmm10
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
cvttsd2si eax, xmm0
movaps xmm0, xmm9
mulsd xmm0, qword [0x14001de90]
mov dword [r14], eax
divsd xmm0, xmm11
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov rax, qword [rsp + 0xa0]
cvttsd2si ecx, xmm0
mov dword [rax], ecx
divsd xmm8, xmm10
mov eax, 1
divsd xmm9, xmm11
divsd xmm8, xmm9
movsd qword [rbp], xmm8
jmp 0x140004c75
cmp al, 0x49
jne 0x140004c58
cmp byte [0x140028155], 0x44
jne 0x140004c58
cmp byte [0x140028156], 0x41
jne 0x140004c58
cmp byte [0x140028157], 0x54
je 0x140004c73
add ecx, 0xc
xor r8d, r8d
add ebx, ecx
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140004ac1
xor eax, eax
movaps xmm10, xmmword [rsp + 0x30]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
mov r12, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
movaps xmm11, xmmword [rsp + 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rsi
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