Function at 0x140107420
Capabilities:
Hash data using sha512

Disassembly:
test rdx, rdx
je 0x140107d49
mov r11, rsp
push rbp
push rbx
push r12
push r13
lea rbp, [r11 - 0x58]
sub rsp, 0x138
mov rax, qword [0x1403c1628]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, r8d
mov rbx, rdx
mov r13, rcx
test rcx, rcx
je 0x140107d30
movaps xmm0, xmmword [0x140381bb0]
xor ecx, ecx
movaps xmm1, xmmword [0x140381bc0]
movabs rax, 0x6a09e667f2bdc948
mov qword [r11 + 0x20], rsi
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140381bd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rdx + 0x54]
mov dword [rbp - 0x80], eax
mov eax, dword [rdx + 8]
lea rdx, [rsp + 0x20]
mov qword [r11 - 0x28], rdi
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov ecx, 4
mov qword [r11 - 0x30], r14
mov dword [rsp + 0x20], eax
lea rax, [rbp - 0x80]
mov qword [r11 - 0x38], r15
mov r15d, ecx
movaps xmmword [rsp + 0x40], xmm1
mov r8d, r15d
movaps xmm1, xmmword [0x140381be0]
mov qword [rbp], rcx
add rcx, rax
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
call fcn.140279d40
mov rcx, qword [rbp]
lea rsi, [rsp + 0x20]
mov eax, dword [rbx + 0x50]
add rcx, r15
mov dword [rsp + 0x20], eax
mov r14d, r15d
mov qword [rbp], rcx
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x1401075c8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
xor ecx, ecx
lea rsi, [rsp + 0x20]
add rsi, rdi
mov qword [rbp], rcx
sub r14, rdi
cmp r14, 0x80
jbe 0x1401075c8
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107590
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
lea rsi, [rsp + 0x20]
mov eax, dword [rbx + 0x4c]
add rcx, r14
mov dword [rsp + 0x20], eax
mov r14, r15
mov qword [rbp], rcx
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x1401076b8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
xor ecx, ecx
lea rsi, [rsp + 0x20]
add rsi, rdi
mov qword [rbp], rcx
sub r14, rdi
cmp r14, 0x80
jbe 0x1401076b8
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107680
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
lea rsi, [rsp + 0x20]
mov eax, dword [rbx + 0x5c]
add rcx, r14
mov dword [rsp + 0x20], eax
mov r14, r15
mov qword [rbp], rcx
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x1401077a8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
xor ecx, ecx
lea rsi, [rsp + 0x20]
add rsi, rdi
mov qword [rbp], rcx
sub r14, rdi
cmp r14, 0x80
jbe 0x1401077a8
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107770
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
lea rsi, [rsp + 0x20]
add rcx, r14
mov dword [rsp + 0x20], r12d
mov qword [rbp], rcx
mov r14, r15
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x140107899
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
xor r12d, r12d
lea rsi, [rsp + 0x20]
add rsi, rdi
sub r14, rdi
mov ecx, r12d
mov qword [rbp], rcx
cmp r14, 0x80
jbe 0x14010789c
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop dword [rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], r12
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107860
mov rcx, qword [rbp]
jmp 0x14010789c
xor r12d, r12d
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
lea rsi, [rsp + 0x20]
mov eax, dword [rbx + 0x18]
add rcx, r14
mov dword [rsp + 0x20], eax
mov r14, r15
mov qword [rbp], rcx
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x140107988
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
lea rsi, [rsp + 0x20]
sub r14, rdi
add rsi, rdi
mov rcx, r12
mov qword [rbp], rcx
cmp r14, 0x80
jbe 0x140107988
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107950
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
mov rdx, qword [rbx + 0x10]
add rcx, r14
mov qword [rbp], rcx
test rdx, rdx
je 0x1401079d5
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x30]
call fcn.14010e960
test byte [rbx + 0x70], 1
je 0x1401079d1
mov ecx, dword [rbx + 0x18]
xor eax, eax
mov rdi, qword [rbx + 0x10]
rep stosb byte [rdi], al
mov dword [rbx + 0x18], r12d
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x28]
lea rsi, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov r14, r15
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x140107aa8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
lea rsi, [rsp + 0x20]
sub r14, rdi
add rsi, rdi
mov rcx, r12
mov qword [rbp], rcx
cmp r14, 0x80
jbe 0x140107aa8
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop dword [rax + rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107a70
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
mov rdx, qword [rbx + 0x20]
add rcx, r14
mov qword [rbp], rcx
test rdx, rdx
je 0x140107ae0
mov r8d, dword [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14010e960
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
lea rsi, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov r14, r15
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x140107bb8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
lea rsi, [rsp + 0x20]
sub r14, rdi
add rsi, rdi
mov rcx, r12
mov qword [rbp], rcx
cmp r14, 0x80
jbe 0x140107bb8
lea rdi, [r14 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r14, rax
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107b80
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r14
add rcx, rax
mov rdx, rsi
call fcn.140279d40
mov rcx, qword [rbp]
mov rdx, qword [rbx + 0x30]
add rcx, r14
mov r14, qword [rsp + 0x128]
mov qword [rbp], rcx
test rdx, rdx
je 0x140107c0d
mov r8d, dword [rbx + 0x38]
lea rcx, [rsp + 0x30]
call fcn.14010e960
test byte [rbx + 0x70], 2
je 0x140107c09
mov ecx, dword [rbx + 0x38]
xor eax, eax
mov rdi, qword [rbx + 0x30]
rep stosb byte [rdi], al
mov dword [rbx + 0x38], r12d
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x48]
lea rsi, [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rax, [rcx + 4]
cmp rax, 0x80
jbe 0x140107cd8
lea rax, [rbp - 0x80]
mov edi, 0x80
sub rdi, rcx
lea rdx, [rsp + 0x20]
mov r8, rdi
add rcx, rax
call fcn.140279d40
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
sub rax, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
lea rsi, [rsp + 0x20]
sub r15, rdi
add rsi, rdi
mov rcx, r12
mov qword [rbp], rcx
cmp r15, 0x80
jbe 0x140107cd8
lea rdi, [r15 - 0x81]
shr rdi, 7
inc rdi
imul rax, rdi, 0xffffffffffffff80
add r15, rax
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rax, 0xffffffffffffff80
mov rdx, rsi
cmp rax, 0x80
mov qword [rsp + 0x70], rax
adc qword [rsp + 0x78], 0
xor r8d, r8d
call fcn.14010c850
sub rsi, 0xffffffffffffff80
sub rdi, 1
jne 0x140107ca0
mov rcx, qword [rbp]
lea rax, [rbp - 0x80]
mov r8, r15
add rcx, rax
mov rdx, rsi
call fcn.140279d40
add qword [rbp], r15
mov rdx, qword [rbx + 0x40]
mov r15, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x130]
mov rsi, qword [rsp + 0x178]
test rdx, rdx
je 0x140107d1d
mov r8d, dword [rbx + 0x48]
lea rcx, [rsp + 0x30]
call fcn.14010e960
mov r8d, 0x40
lea rcx, [rsp + 0x30]
mov rdx, r13
call fcn.14010ea60
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1402776b0
add rsp, 0x138
pop r13
pop r12
pop rbx
pop rbp
ret