Function at 0x162f440
Capabilities:
Authenticate hmac
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x40
mov dword [ebp + 0xc], eax
jbe 0x162f555
lea ebx, [esi + 0x20]
push edi
push eax
push esi
mov dword [esi + 0x24], 0
mov dword [ebx], 0
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
call fcn.0162cc20
add esp, 0xc
lea edi, [ebp - 8]
mov dword [ebp + 0xc], 2
mov eax, dword [ebx]
push eax
push edi
call fcn.0162f670
mov eax, dword [ebp + 0xc]
add esp, 8
add ebx, 4
add edi, 4
dec eax
mov dword [ebp + 0xc], eax
jne 0x162f4ba
mov ecx, dword [esi + 0x24]
mov eax, 0x38
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
jb 0x162f4ed
mov eax, 0x78
sub eax, ecx
push eax
push 0x1631858
push esi
call fcn.0162cc20
lea ecx, [ebp - 8]
push 8
push ecx
push esi
call fcn.0162cc20
mov edi, esi
lea edx, [ebp - 0x26]
add esp, 0x18
sub edi, edx
lea ecx, [ebp - 0x26]
mov edx, 8
mov eax, dword [edi + ecx]
mov ebx, eax
mov byte [ecx + 1], al
shr ebx, 8
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0x10
shr eax, 0x18
mov byte [ecx - 1], bl
mov byte [ecx - 2], al
add ecx, 4
dec edx
jne 0x162f519
xor ebx, ebx
push 0x68
push ebx
push esi
call fcn.016267b0
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp + 0xc], eax
mov edi, 0x20
jmp 0x162f557
xor ebx, ebx
push 0x40
lea ecx, [ebp - 0x68]
push 0x36
push ecx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
call fcn.016267b0
add esp, 0xc
xor eax, eax
cmp edi, ebx
jbe 0x162f5c8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
sub edx, ecx
mov dword [ebp + 0x10], edx
jmp 0x162f5ba
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + eax - 0x68]
mov dl, byte [edx + ecx]
xor byte [ecx], dl
inc eax
cmp eax, edi
jb 0x162f5b7
lea eax, [ebp - 0x68]
push 0x40
push eax
push esi
call fcn.0162cc20
add esi, 0x68
push 0x40
lea ecx, [ebp - 0x68]
push 0x5c
push ecx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
call fcn.016267b0
add esp, 0x18
xor eax, eax
cmp edi, ebx
jbe 0x162f648
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
sub edx, ecx
mov dword [ebp + 0x10], edx
jmp 0x162f63a
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + eax - 0x68]
mov dl, byte [edx + ecx]
xor byte [ecx], dl
inc eax
cmp eax, edi
jb 0x162f637
lea eax, [ebp - 0x68]
push 0x40
push eax
push esi
call fcn.0162cc20
push 0x20
lea ecx, [ebp - 0x28]
push ebx
push ecx
call fcn.016267b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret