Function at 0x140182210
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x638
vmovups xmmword [rsp + 0x5d0], xmm6
vmovups xmmword [rsp + 0x5e0], xmm7
vmovups xmmword [rsp + 0x5f0], xmm8
vmovups xmmword [rsp + 0x600], xmm10
vmovups xmmword [rsp + 0x610], xmm12
vmovups xmmword [rsp + 0x620], xmm14
mov edi, dword [rcx + 0x8c]
mov r12, qword [rcx + 0x40]
mov r13, qword [rcx + 0x48]
mov ebx, edx
mov dword [rsp + 0x38], edi
movsxd rdx, dword [r9]
sub edi, 1
mov dword [rsp + 0xd0], edi
mov rax, rcx
mov r14, r8
mov rdi, qword [0x1403123d0]
shl rdx, 7
add rax, 0x40
vmovdqu xmm2, xmmword [rax + 0x10]
lea r10, [rsp + 0x31f]
mov qword [rsp + 0xa8], rdx
add rdx, qword [rdi]
and r10, 0xffffffffffffff80
lea r8, [0x1402f54c0]
mov rdi, qword [rax + 0x38]
vmovdqu xmm0, xmmword [rax + 0x20]
mov r15, r10
mov qword [rsp + 0xf8], rdx
mov rsi, qword [rax + 0x30]
mov rdx, qword [rax + 0x48]
mov qword [rsp + 0x698], r9
lea r9, [r10 + 0x100]
mov rax, qword [rax + 0x40]
mov qword [r10 + 0x138], rdi
lea r10, [r10 + 0x150]
lea rbp, [r15 + 0x2a0]
mov qword [r10 - 8], rdx
mov qword [r10 - 0x10], rax
mov qword [r10 - 0x20], rsi
vmovdqu xmmword [r10 - 0x30], xmm0
vmovdqu xmmword [r10 - 0x40], xmm2
mov qword [r10 - 0x50], r12
mov qword [r10 - 0x48], r13
mov qword [rsp + 0x680], rcx
lea rcx, [rsp + 0x100]
mov qword [r15 + 0x150], r12
lea r12, [r15 + 0x280]
mov qword [r15 + 0x180], rsi
lea rsi, [rsp + 0x1e0]
mov qword [r15 + 0x188], rdi
lea rdi, [rsp + 0x220]
vmovdqu xmmword [r15 + 0x160], xmm2
vmovdqu xmmword [r15 + 0x170], xmm0
mov qword [r15 + 0x158], r13
mov qword [r15 + 0x190], rax
mov qword [r15 + 0x198], rdx
mov rdx, r9
mov qword [rsp + 0x60], r10
mov qword [rsp + 0xa0], r9
call sym.sha256_x86_sha_transform_le
lea eax, [rbx - 2]
mov r10, qword [rsp + 0x60]
mov r9, qword [rsp + 0xa0]
mov dword [rsp + 0xd4], eax
lea rax, [r15 + 0x200]
vmovdqu xmm10, xmmword [0x1402f54a0]
lea rbx, [rsp + 0x260]
mov qword [rsp + 0x50], rax
lea rax, [r15 + 0x220]
vmovdqu xmm8, xmmword [0x1402f54b0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x140]
vmovdqu xmm12, xmmword [0x1402f5470]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x120]
vmovdqu xmm14, xmmword [0x1402f547c]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x1a0]
vmovdqu xmm6, xmmword [0x1402f5450]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x180]
vmovdqu xmm7, xmmword [0x1402f5490]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x40], rax
mov eax, 0x5c5c5c5c
vmovd xmm3, eax
mov qword [rsp + 0x690], r14
mov qword [rsp + 0xe8], r10
vpbroadcastd ymm3, xmm3
mov qword [rsp + 0xf0], r9
vmovdqu ymmword [rsp + 0xb0], ymm3
vzeroupper
nop
mov ecx, dword [rsp + 0xd0]
mov r8, qword [rsp + 0x100]
vmovdqu xmmword [rsp + 0x230], xmm7
lea r14, [0x1402f54c0]
mov r9, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x118]
vmovdqu xmmword [rsp + 0x240], xmm10
lea eax, [rcx + 1]
add ecx, 2
mov qword [r15 + 0x280], r8
mov dword [r15 + 0x14c], eax
mov rax, qword [0x140311cc0]
vmovdqu xmm4, xmmword [r15 + 0x140]
mov dword [r15 + 0x19c], ecx
mov eax, dword [rax]
mov qword [r15 + 0x288], r9
vmovdqu xmm5, xmmword [r15 + 0x190]
mov qword [r15 + 0x298], rdx
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x110]
mov qword [r15 + 0x2a0], r8
mov r8, rdi
mov qword [r15 + 0x290], rax
mov qword [r15 + 0x2b0], rax
mov qword [r15 + 0x2a8], r9
mov r9, rbx
mov qword [r15 + 0x2b8], rdx
mov rdx, rbp
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xd0], ecx
mov rcx, r12
vmovdqu xmmword [rsp + 0x220], xmm4
vmovdqu xmmword [rsp + 0x260], xmm5
vmovdqu xmmword [rsp + 0x250], xmm8
vmovdqu xmmword [rsp + 0x270], xmm7
vmovdqu xmmword [rsp + 0x280], xmm10
vmovdqu xmmword [rsp + 0x290], xmm8
mov qword [rsp + 0x28], rbp
call sym.sha256_x86_x2sha_transform_le
mov rdx, qword [rsp + 0x58]
mov r9, rbx
mov r8, rdi
vmovdqu ymm3, ymmword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
vmovdqu ymm2, ymmword [r15 + 0x280]
vmovdqu ymm1, ymmword [r15 + 0x2a0]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
vpxor ymm0, ymm2, ymm3
vmovdqu ymmword [rsp + 0x60], ymm1
vmovdqu ymmword [rsp + 0x220], ymm0
vpxor ymm0, ymm1, ymm3
vmovdqu ymmword [rsp + 0x280], ymm3
vmovdqu ymmword [rsp + 0x240], ymm3
vmovdqu ymmword [rsp + 0x80], ymm2
vmovdqu ymmword [rsp + 0x260], ymm0
vzeroupper
call sym.sha256_x86_x2sha_transform_le
mov eax, 0x36363636
mov rdx, rbp
vmovd xmm0, eax
vmovdqu ymm1, ymmword [rsp + 0x60]
mov rcx, r12
mov r9, rbx
vpbroadcastd ymm0, xmm0
mov qword [rsp + 0x28], r14
mov r8, rdi
vmovdqu ymm2, ymmword [rsp + 0x80]
mov qword [rsp + 0x20], r14
vpxor ymm1, ymm1, ymm0
vmovdqu ymmword [rsp + 0x260], ymm1
vpxor ymm2, ymm2, ymm0
vmovdqu ymmword [rsp + 0x220], ymm2
vmovdqu ymmword [rsp + 0x280], ymm0
vmovdqu ymmword [rsp + 0x240], ymm0
vzeroupper
call sym.sha256_x86_x2sha_transform_le
mov qword [rsp + 0x28], rbp
mov r9, qword [rsp + 0xe8]
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0xf0]
xor r13d, r13d
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call sym.sha256_x86_x2sha_transform_le
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x60], r12
lea rax, [0x1402f5460]
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov r12, r15
lea rax, [0x1402f5440]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rsp + 0x80], rbp
mov ebp, r13d
vmovdqu xmm4, xmmword [r15 + 0x140]
mov qword [rsp + 0x1b4], r8
vmovdqu xmm5, xmmword [r15 + 0x190]
mov qword [rsp + 0x1bc], r9
mov qword [rsp + 0x200], rax
mov r13, qword [rsp + 0x50]
mov qword [rsp + 0x208], rdx
mov qword [rsp + 0x234], r8
mov qword [rsp + 0x23c], r9
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x288], rdx
vmovdqu xmmword [rsp + 0x1c4], xmm12
vmovdqu xmmword [rsp + 0x244], xmm12
vmovdqu xmmword [rsp + 0x1a0], xmm4
vmovdqu xmmword [rsp + 0x1d0], xmm14
vmovdqu xmmword [rsp + 0x210], xmm6
vmovdqu xmmword [rsp + 0x220], xmm5
vmovdqu xmmword [rsp + 0x250], xmm14
vmovdqu xmmword [rsp + 0x290], xmm6
mov qword [rsp + 0x28], rbx
mov r8, qword [rsp + 0x38]
add ebp, 1
mov r9, rdi
mov qword [rsp + 0x20], rsi
mov rdx, rbx
mov rcx, rsi
add r12, 0x20
vmovdqu xmm3, xmmword [rsp + 0x120]
mov dword [rsp + 0x230], ebp
vmovdqu xmm4, xmmword [rsp + 0x130]
mov dword [rsp + 0x1b0], ebp
vmovdqu xmm5, xmmword [rsp + 0x140]
vmovdqu xmm1, xmmword [rsp + 0x150]
vmovdqu xmmword [rsp + 0x1e0], xmm3
vmovdqu xmmword [rsp + 0x1f0], xmm4
vmovdqu xmmword [rsp + 0x260], xmm5
vmovdqu xmmword [rsp + 0x270], xmm1
call sym.sha256_x86_x2sha_transform_le
mov qword [rsp + 0x28], r14
mov r9, rbx
mov r8, rsi
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
call sym.sha256_x86_x2sha_transform_le
mov edx, dword [rsp + 0x160]
bswap edx
mov dword [r12 - 0x20], edx
mov edx, dword [rsp + 0x180]
bswap edx
mov dword [r12 + 0x60], edx
mov edx, dword [rsp + 0x164]
bswap edx
mov dword [r12 - 0x1c], edx
mov edx, dword [rsp + 0x184]
bswap edx
mov dword [r12 + 0x64], edx
mov edx, dword [rsp + 0x168]
bswap edx
mov dword [r12 - 0x18], edx
mov edx, dword [rsp + 0x188]
bswap edx
mov dword [r12 + 0x68], edx
mov edx, dword [rsp + 0x16c]
bswap edx
mov dword [r12 - 0x14], edx
mov edx, dword [rsp + 0x18c]
bswap edx
mov dword [r12 + 0x6c], edx
mov edx, dword [rsp + 0x170]
bswap edx
mov dword [r12 - 0x10], edx
mov edx, dword [rsp + 0x190]
bswap edx
mov dword [r12 + 0x70], edx
mov edx, dword [rsp + 0x174]
bswap edx
mov dword [r12 - 0xc], edx
mov edx, dword [rsp + 0x194]
bswap edx
mov dword [r12 + 0x74], edx
mov edx, dword [rsp + 0x178]
bswap edx
mov dword [r12 - 8], edx
mov edx, dword [rsp + 0x198]
bswap edx
mov dword [r12 + 0x78], edx
mov edx, dword [rsp + 0x17c]
bswap edx
mov dword [r12 - 4], edx
mov edx, dword [rsp + 0x19c]
bswap edx
mov dword [r12 + 0x7c], edx
cmp ebp, 4
jne 0x14018275a
lea rcx, [0x1402b2300]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x80]
call sym.__emutls_get_address
mov r8d, dword [rsp + 0xa0]
mov rcx, r15
mov rdx, qword [rax]
call sym.scrypt_core_simd128_2buf
mov rcx, qword [0x1403123d0]
mov rax, qword [rsp + 0xa8]
add rax, qword [rcx]
movzx eax, byte [rax]
test al, al
jne 0x140182a85
mov qword [rsp + 0x28], rbp
mov r8, r15
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], r12
lea r9, [r15 + 0x80]
lea r13, [r15 + 0x1c0]
call sym.sha256_x86_x2sha_transform_be
mov qword [rsp + 0x28], rbp
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], r12
lea r9, [r15 + 0xc0]
lea r8, [r15 + 0x40]
call sym.sha256_x86_x2sha_transform_be
mov qword [rsp + 0x28], rbp
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], r12
lea r9, [0x1402f5400]
mov r8, r9
call sym.sha256_x86_x2sha_transform_le
vmovdqu xmm5, xmmword [rbp]
mov r9, rbx
mov r8, rdi
vmovdqu xmm0, xmmword [r12]
lea rax, [0x1402f5440]
vmovdqu xmm4, xmmword [r12 + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
vmovdqu xmmword [rbx], xmm5
vmovdqu xmmword [rdi], xmm0
vmovdqu xmm0, xmmword [rbp + 0x10]
vmovdqu xmmword [rdi + 0x10], xmm4
vmovdqu xmmword [rbx + 0x10], xmm0
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x248], rdx
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x288], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rax
mov qword [rsp + 0x28], rdx
vmovdqu xmmword [rsp + 0x250], xmm6
vmovdqu xmmword [rsp + 0x290], xmm6
call sym.sha256_x86_x2sha_transform_le
mov rdx, qword [rsp + 0x680]
mov rcx, r13
vmovdqu ymm4, ymmword [r15 + 0x200]
vmovdqu ymm5, ymmword [r15 + 0x220]
vpshufb ymm0, ymm4, ymmword [0x1402f54e0]
vmovdqu ymmword [r15 + 0x1c0], ymm0
vpshufb ymm0, ymm5, ymmword [0x1402f54e0]
vmovdqu ymmword [r15 + 0x1e0], ymm0
vzeroupper
call sym.valid_hash
test al, al
jne 0x140182b1c
lea r13, [r15 + 0x1e0]
mov rdx, qword [rsp + 0x680]
mov rcx, r13
call sym.valid_hash
test al, al
jne 0x140182b60
mov ecx, dword [rsp + 0xd4]
cmp dword [rsp + 0xd0], ecx
jae 0x140182aa8
mov rax, qword [rsp + 0xf8]
movzx eax, byte [rax]
test al, al
je 0x140182470
mov rsi, qword [rsp + 0x680]
mov edi, dword [rsp + 0xd0]
mov r14, qword [rsp + 0x690]
mov eax, edi
sub eax, dword [rsi + 0x8c]
mov qword [r14], rax
xor eax, eax
mov dword [rsi + 0x8c], edi
vmovups xmm6, xmmword [rsp + 0x5d0]
vmovups xmm7, xmmword [rsp + 0x5e0]
vmovups xmm8, xmmword [rsp + 0x5f0]
vmovups xmm10, xmmword [rsp + 0x600]
vmovups xmm12, xmmword [rsp + 0x610]
vmovups xmm14, xmmword [rsp + 0x620]
add rsp, 0x638
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [str.Zf2_]
cmp byte [rax], 0
jne 0x140182a66
mov eax, dword [r15 + 0x14c]
mov rcx, qword [rsp + 0x680]
mov rdx, r13
mov r8, qword [rsp + 0x698]
mov dword [rcx + 0x8c], eax
call sym.submit_solution
jmp 0x140182a66
mov rax, qword [str.Zf2_]
cmp byte [rax], 0
jne 0x140182a85
mov eax, dword [r15 + 0x19c]
mov rcx, qword [rsp + 0x680]
mov rdx, r13
mov r8, qword [rsp + 0x698]
mov dword [rcx + 0x8c], eax
call sym.submit_solution
jmp 0x140182a85