Function at 0x14017a420
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rsi, r8
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x58]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movaps xmm0, xmmword [0x140289ac0]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x140289ad0]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x14017a580
mov r14, rdx
mov rbx, rcx
lea eax, [rdx*8]
mov rcx, rdx
shr rcx, 0x1d
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x50], eax
cmp rdx, 0x40
jb 0x14017a596
lea r12, [0x140049340]
lea r8, [rsp + 0x28]
mov qword [r8], r12
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
mov r15, r14
shr r15, 6
test byte [0x1402c5d1b], 0x20
jne 0x14017a8ea
lea r8, [rsp + 0x28]
mov qword [r8], r12
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
mov ebp, dword [0x1402c5d14]
bt ebp, 0x1c
jae 0x14017a899
lea r8, [rsp + 0x28]
mov qword [r8], r12
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
test byte [0x1402c5d13], 0x40
je 0x14017a899
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, r15
call fcn.140082f00
mov r8, r14
and r8, 0x3f
je 0x14017a5ac
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
jmp 0x14017a599
mov byte [rsp + 0x58], 0x80
mov ecx, 1
xor ebp, ebp
mov ebx, 0x20
xor r14d, r14d
jmp 0x14017a5dc
mov r8, r14
mov dword [rsp + 0x98], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.1401cd6e0
mov ebx, dword [rsp + 0x9c]
mov eax, dword [rsp + 0x98]
lea rcx, [rax + 1]
mov ebp, dword [rsp + 0x50]
mov r14d, dword [rsp + 0x54]
mov byte [rsp + rax + 0x58], 0x80
cmp rax, 0x38
jae 0x14017a79a
cmp rcx, 0x38
je 0x14017a5ef
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1401cdd80
bswap r14d
mov dword [rsp + 0x90], r14d
bswap ebp
mov dword [rsp + 0x94], ebp
lea r14, [0x140049340]
lea r8, [rsp + 0x28]
mov qword [r8], r14
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
test byte [0x1402c5d1b], 0x20
jne 0x14017a8be
lea r8, [rsp + 0x28]
mov qword [r8], r14
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
mov ebp, dword [0x1402c5d14]
bt ebp, 0x1c
jae 0x14017a871
lea r8, [rsp + 0x28]
mov qword [r8], r14
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
test byte [0x1402c5d13], 0x40
je 0x14017a871
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.140082f00
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
cmp ebx, 0x20
ja 0x14017a74c
cmp ebx, 4
jb 0x14017a74c
shr ebx, 2
mov eax, dword [rsp + 0x30]
bswap eax
mov dword [rsi], eax
cmp ebx, 1
je 0x14017a74c
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rsi + 4], eax
cmp ebx, 2
je 0x14017a74c
mov eax, dword [rsp + 0x38]
bswap eax
mov dword [rsi + 8], eax
cmp ebx, 3
je 0x14017a74c
mov eax, dword [rsp + 0x3c]
bswap eax
mov dword [rsi + 0xc], eax
cmp ebx, 4
je 0x14017a74c
mov eax, dword [rsp + 0x40]
bswap eax
mov dword [rsi + 0x10], eax
cmp ebx, 5
je 0x14017a74c
mov eax, dword [rsp + 0x44]
bswap eax
mov dword [rsi + 0x14], eax
cmp ebx, 6
je 0x14017a74c
mov eax, dword [rsp + 0x48]
bswap eax
mov dword [rsi + 0x18], eax
cmp ebx, 7
je 0x14017a74c
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rsi + 0x1c], eax
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140191d70
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp eax, 0x3f
je 0x14017a7b2
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.1401cdd80
lea r15, [0x140049340]
lea r8, [rsp + 0x28]
mov qword [r8], r15
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
test byte [0x1402c5d1b], 0x20
jne 0x14017a93c
lea r8, [rsp + 0x28]
mov qword [r8], r15
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
mov r12d, dword [0x1402c5d14]
bt r12d, 0x1c
jae 0x14017a913
lea r8, [rsp + 0x28]
mov qword [r8], r15
lea rcx, [0x1402c5d20]
lea rdx, [0x14002c010]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017a86c
test byte [0x1402c5d13], 0x40
je 0x14017a913
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.140082f00
xor ecx, ecx
jmp 0x14017a5dc
call fcn.1401aa3b0
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
bt ebp, 9
jb 0x14017a88f
call fcn.140080a40
jmp 0x14017a6bc
call fcn.140081fc0
jmp 0x14017a6bc
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, r15
bt ebp, 9
jb 0x14017a8b4
call fcn.140080a40
jmp 0x14017a56b
call fcn.140081fc0
jmp 0x14017a56b
mov ecx, 1
call fcn.14018de60
bt eax, 9
jae 0x14017a63e
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.140081c00
jmp 0x14017a6bc
mov ecx, 1
call fcn.14018de60
bt eax, 9
jae 0x14017a4f0
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, r15
call fcn.140081c00
jmp 0x14017a56b
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
bt r12d, 9
jb 0x14017a932
call fcn.140080a40
jmp 0x14017a865
call fcn.140081fc0
jmp 0x14017a865
mov ecx, 1
call fcn.14018de60
bt eax, 9
jae 0x14017a7ed
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.140081c00
jmp 0x14017a865