Function at 0x10012160
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 0x10012275
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.1000f940
add esp, 0xc
lea edi, [ebp - 8]
mov dword [ebp + 0xc], 2
mov eax, dword [ebx]
push eax
push edi
call fcn.10012390
mov eax, dword [ebp + 0xc]
add esp, 8
add ebx, 4
add edi, 4
dec eax
mov dword [ebp + 0xc], eax
jne 0x100121da
mov ecx, dword [esi + 0x24]
mov eax, 0x38
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
jb 0x1001220d
mov eax, 0x78
sub eax, ecx
push eax
push 0x10014830
push esi
call fcn.1000f940
lea ecx, [ebp - 8]
push 8
push ecx
push esi
call fcn.1000f940
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 0x10012239
xor ebx, ebx
push 0x68
push ebx
push esi
call fcn.1000b730
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp + 0xc], eax
mov edi, 0x20
jmp 0x10012277
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.1000b730
add esp, 0xc
xor eax, eax
cmp edi, ebx
jbe 0x100122e8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
sub edx, ecx
mov dword [ebp + 0x10], edx
jmp 0x100122da
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 0x100122d7
lea eax, [ebp - 0x68]
push 0x40
push eax
push esi
call fcn.1000f940
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.1000b730
add esp, 0x18
xor eax, eax
cmp edi, ebx
jbe 0x10012368
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
sub edx, ecx
mov dword [ebp + 0x10], edx
jmp 0x1001235a
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 0x10012357
lea eax, [ebp - 0x68]
push 0x40
push eax
push esi
call fcn.1000f940
push 0x20
lea ecx, [ebp - 0x28]
push ebx
push ecx
call fcn.1000b730
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret