Function at 0x10040a610
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rax, qword [0x100468920]
mov qword [rsp + 0x30], rax
mov rax, qword [0x100468928]
cmp r8d, 0xfffffff8
mov rbp, rcx
mov r13, rdx
mov r15d, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [0x100468930]
mov qword [rsp + 0x40], rax
mov rax, qword [0x100468938]
mov qword [rsp + 0x48], rax
jl 0x10040a88e
lea eax, [r8*8]
movsxd r14, r8d
xor ebx, ebx
lea rsi, [rsp + 0x70]
mov dword [rsp + 0x2c], eax
lea r12, [rsp + 0x30]
add r14, rsi
cmp r15d, 0x3f
jle 0x10040a89d
cmp r15d, 0x40
je 0x10040a8aa
mov r8d, 0x40
mov rdx, r13
mov rcx, rsi
sub rdx, rbx
call sym.memcpy
cmp r15d, 0x3f
ja 0x10040a6b7
mov byte [r14 + rbx], pe_nt_image_headers64
lea r9, [rsp + 0xb0]
mov rax, rsi
movzx ecx, byte [rax]
add rax, 4
movzx edx, byte [rax - 3]
movzx r8d, byte [rax - 1]
shl ecx, 0x18
shl edx, 0x10
add ecx, edx
movzx edx, byte [rax - 2]
add ecx, r8d
shl edx, 8
add edx, ecx
mov dword [rax - 4], edx
cmp rax, r9
jne 0x10040a6c2
cmp r15d, 0x37
jle 0x10040a8bf
mov rdx, rsi
mov rcx, r12
sub r15d, 0x40
call sym.sha256_transform.constprop.0
sub rbx, 0x40
cmp r15d, 0xfffffff8
jge 0x10040a684
mov rdx, qword [0x100468900]
mov rcx, rsi
mov rax, qword [0x100468920]
mov qword [rsp + 0x50], rdx
mov rdx, qword [0x100468908]
mov qword [rsp + 0x70], rax
mov rax, qword [0x100468928]
mov qword [r12 + 0x28], rdx
mov rdx, qword [0x100468910]
mov qword [rsp + 0x78], rax
mov rax, qword [0x100468930]
mov qword [r12 + 0x30], rdx
mov rdx, qword [0x100468918]
mov qword [rsp + 0x80], rax
mov rax, qword [0x100468938]
mov qword [r12 + 0x38], rdx
mov rdx, r12
mov qword [rsp + 0x88], rax
call sym.sha256_transform.constprop.0
mov eax, dword [rsp + 0x70]
mov edx, eax
mov byte [rbp + 3], al
shr edx, 8
mov byte [rbp + 2], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp], al
mov eax, dword [rsp + 0x74]
shr edx, 0x10
mov byte [rbp + 1], dl
mov edx, eax
mov byte [rbp + 7], al
shr edx, 8
mov byte [rbp + 6], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 4], al
mov eax, dword [rsp + 0x78]
shr edx, 0x10
mov byte [rbp + 5], dl
mov edx, eax
mov byte [rbp + 0xb], al
shr edx, 8
mov byte [rbp + 0xa], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 8], al
mov eax, dword [rsp + 0x7c]
shr edx, 0x10
mov byte [rbp + 9], dl
mov edx, eax
mov byte [rbp + 0xf], al
shr edx, 8
mov byte [rbp + 0xe], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0xc], al
mov eax, dword [rsp + 0x80]
shr edx, 0x10
mov byte [rbp + 0xd], dl
mov edx, eax
mov byte [rbp + 0x13], al
shr edx, 8
mov byte [rbp + 0x12], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0x10], al
mov eax, dword [rsp + 0x84]
shr edx, 0x10
mov byte [rbp + 0x11], dl
mov edx, eax
mov byte [rbp + 0x17], al
shr edx, 8
mov byte [rbp + 0x16], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0x14], al
mov eax, dword [rsp + 0x88]
shr edx, 0x10
mov byte [rbp + 0x15], dl
mov edx, eax
mov byte [rbp + 0x1b], al
shr edx, 8
mov byte [rbp + 0x1a], dl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [rbp + 0x19], dl
mov byte [rbp + 0x18], al
mov eax, dword [rsp + 0x8c]
mov edx, eax
mov byte [rbp + 0x1f], al
shr edx, 8
mov byte [rbp + 0x1e], dl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [rbp + 0x1c], al
mov byte [rbp + 0x1d], dl
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x30]
lea rsi, [rsp + 0x70]
jmp 0x10040a715
mov ecx, 8
mov rdi, rsi
xor eax, eax
rep stosq qword [rdi], rax
test r15d, r15d
mov r8d, 0
cmovns r8d, r15d
movsxd r8, r8d
jmp 0x10040a69e
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0xac], eax
jmp 0x10040a6f8