Function at 0x5da740
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x338
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x2b4], 0x40
mov dword [ebp - 0x2ec], 0x28
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2bc], 8
mov byte [ebp - 0x2c9], 1
mov dword [ebp - 0x2f0], 0
cmp dword [ebp + 0x20], 0x100000
jae 0x5da7a6
mov dword [ebp - 0x304], 1
jmp 0x5da7b0
mov dword [ebp - 0x304], 0
cmp dword [ebp - 0x304], 0
jne 0x5da7c0
xor eax, eax
jmp 0x5db3ad
push 0x72d2b4
mov eax, dword [ebp + 8]
push eax
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da823
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.00625bf0
add esp, 4
test eax, eax
jg 0x5da7ef
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db3c0
mov dword [ebp - 0x2c8], 0x625c40
mov dword [ebp - 0x2d0], 0x10
mov dword [ebp - 0x2ec], 0x30
mov byte [ebp - 0x2c9], 0
jmp 0x5da9f5
push str.SHA1
mov edx, dword [ebp + 8]
push edx
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da875
lea eax, [ebp - 0x2ac]
push eax
call fcn.0060f540
add esp, 4
test eax, eax
jg 0x5da852
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db540
mov dword [ebp - 0x2c8], 0x60f590
mov dword [ebp - 0x2d0], 0x14
jmp 0x5da9f5
push str.SHA2_224
mov ecx, dword [ebp + 8]
push ecx
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da8c7
lea edx, [ebp - 0x2ac]
push edx
call fcn.0060f8b0
add esp, 4
test eax, eax
jg 0x5da8a4
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db790
mov dword [ebp - 0x2c8], 0x60fdf0
mov dword [ebp - 0x2d0], 0x1c
jmp 0x5da9f5
push str.SHA2_256
mov eax, dword [ebp + 8]
push eax
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da919
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0060fd30
add esp, 4
test eax, eax
jg 0x5da8f6
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db790
mov dword [ebp - 0x2c8], 0x60fdf0
mov dword [ebp - 0x2d0], 0x20
jmp 0x5da9f5
push str.SHA2_384
mov edx, dword [ebp + 8]
push edx
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da97c
lea eax, [ebp - 0x2ac]
push eax
call fcn.0060ffd0
add esp, 4
test eax, eax
jg 0x5da948
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db850
mov dword [ebp - 0x2c8], 0x6109c0
mov dword [ebp - 0x2d0], 0x30
mov dword [ebp - 0x2b4], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x5da9f5
push str.SHA2_512
mov ecx, dword [ebp + 8]
push ecx
call fcn.005551b0
add esp, 8
test eax, eax
je 0x5da9df
lea edx, [ebp - 0x2ac]
push edx
call fcn.006108a0
add esp, 4
test eax, eax
jg 0x5da9ab
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e8], 0x5db850
mov dword [ebp - 0x2c8], 0x6109c0
mov dword [ebp - 0x2d0], 0x40
mov dword [ebp - 0x2b4], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x5da9f5
cmp dword [ebp + 0x10], 0
je 0x5da9ee
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
jmp 0x5db3ad
cmp dword [ebp - 0x2bc], 0x10
ja 0x5daa0a
mov dword [ebp - 0x308], 1
jmp 0x5daa14
mov dword [ebp - 0x308], 0
cmp dword [ebp - 0x308], 0
je 0x5daa70
cmp dword [ebp - 0x2b4], 0x80
ja 0x5daa35
mov dword [ebp - 0x30c], 1
jmp 0x5daa3f
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
je 0x5daa70
cmp dword [ebp - 0x2d0], 0x40
ja 0x5daa5d
mov dword [ebp - 0x310], 1
jmp 0x5daa67
mov dword [ebp - 0x310], 0
cmp dword [ebp - 0x310], 0
jne 0x5daa77
xor eax, eax
jmp 0x5db3ad
mov dword [ebp - 0x2e0], 0xd
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x5daa9c
mov edx, dword [ebp - 0x2ec]
mov eax, dword [ebp + 0x28]
lea ecx, [eax + edx + 0xb]
mov dword [ebp - 0x2e0], ecx
movsx edx, byte [ebp + 0x2c]
test edx, edx
je 0x5daab0
mov dword [ebp - 0x314], 2
jmp 0x5daad4
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2d0]
lea eax, [ecx + eax + 0xff]
xor edx, edx
div dword [ebp - 0x2b4]
add eax, 1
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
sub ecx, dword [ebp - 0x2d0]
sub ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x328]
lea ecx, [eax + edx + 1]
mov edx, dword [ebp - 0x2b4]
lea eax, [ecx + edx - 1]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2d8], 0
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2fc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x324], edx
mov eax, dword [ebp - 0x2fc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x2fc]
add eax, dword [ebp - 0x2bc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x330], eax
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x5daba5
mov dword [ebp - 0x318], 1
jmp 0x5dabaf
mov dword [ebp - 0x318], 0
mov edx, dword [ebp - 0x300]
add edx, dword [ebp - 0x318]
cmp dword [ebp - 0x31c], edx
jbe 0x5dabe8
mov eax, dword [ebp - 0x31c]
sub eax, dword [ebp - 0x300]
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x2fc]
shl edx, 3
mov dword [ebp - 0x2d4], edx
movsx eax, byte [ebp + 0x2c]
test eax, eax
jne 0x5dacd6
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x2d4]
lea eax, [edx + ecx*8]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2b4]
push ecx
push 0
lea edx, [ebp - 0x94]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x28], 0x80
ja 0x5dac45
mov dword [ebp - 0x320], 1
jmp 0x5dac4f
mov dword [ebp - 0x320], 0
cmp dword [ebp - 0x320], 0
jne 0x5dac5f
xor eax, eax
jmp 0x5db3ad
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
lea edx, [ebp - 0x94]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x2b8], 0
jmp 0x5dac91
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
cmp ecx, dword [ebp - 0x2b4]
jae 0x5dacbf
mov edx, dword [ebp - 0x2b8]
movzx eax, byte [ebp + edx - 0x94]
xor eax, 0x36
mov ecx, dword [ebp - 0x2b8]
mov byte [ebp + ecx - 0x94], al
jmp 0x5dac82
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2c8]
add esp, 8
movsx ecx, byte [ebp - 0x2c9]
test ecx, ecx
je 0x5dad44
mov edx, dword [ebp - 0x2bc]
sub edx, 4
push edx
push 0
lea eax, [ebp - 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
shr ecx, 0x18
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x18], cl
mov eax, dword [ebp - 0x2d4]
shr eax, 0x10
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x17], al
mov edx, dword [ebp - 0x2d4]
shr edx, 8
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x16], dl
mov ecx, dword [ebp - 0x2bc]
mov dl, byte [ebp - 0x2d4]
mov byte [ebp + ecx - 0x15], dl
jmp 0x5dada2
mov eax, dword [ebp - 0x2bc]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x2d4]
shr edx, 0x18
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x19], dl
mov ecx, dword [ebp - 0x2d4]
shr ecx, 0x10
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x1a], cl
mov eax, dword [ebp - 0x2d4]
shr eax, 8
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x1b], al
mov edx, dword [ebp - 0x2bc]
mov al, byte [ebp - 0x2d4]
mov byte [ebp + edx - 0x1c], al
cmp dword [ebp - 0x2d8], 0
jbe 0x5daf57
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x5daeb6
mov edx, dword [ebp - 0x2e0]
cmp edx, dword [ebp - 0x2b4]
ja 0x5dadd0
xor eax, eax
jmp 0x5db3ad
mov eax, dword [ebp - 0x2e0]
sub eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
mov eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x154]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x2b4]
sub eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x2f8]
lea eax, [ebp + edx - 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x154]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
mov dword [ebp - 0x2b8], 1
jmp 0x5dae6f
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b4]
sub eax, 1
cmp dword [ebp - 0x2b8], eax
jae 0x5daeb1
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x2b8]
add ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0x2f8]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x5dae60
jmp 0x5daf57
push 0xd
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x154]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x2b4]
sub edx, 0xd
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x147]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2c8]
add esp, 8
mov dword [ebp - 0x2b8], 1
jmp 0x5daf1a
mov ecx, dword [ebp - 0x2b8]
add ecx, 1
mov dword [ebp - 0x2b8], ecx
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b4]
cmp dword [ebp - 0x2b8], eax
jae 0x5daf57
mov edx, dword [ebp - 0x2b4]
imul edx, dword [ebp - 0x2b8]
mov eax, dword [ebp + 0x18]
lea ecx, [eax + edx - 0xd]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x5daf0b
push 0x40
push 0
lea eax, [ebp - 0xd4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2b8], ecx
jmp 0x5daf87
mov edx, dword [ebp - 0x2b8]
add edx, 1
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2f4]
add eax, dword [ebp - 0x300]
cmp dword [ebp - 0x2b8], eax
ja 0x5db209
mov ecx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x2b8]
push edx
call fcn.0052f610
add esp, 8
mov byte [ebp - 0x2bd], al
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0x2b8]
push ecx
call fcn.0052f610
add esp, 8
mov byte [ebp - 0x2be], al
mov dword [ebp - 0x2c4], 0
jmp 0x5daff2
mov edx, dword [ebp - 0x2c4]
add edx, 1
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2c4]
cmp eax, dword [ebp - 0x2b4]
jae 0x5db177
mov byte [ebp - 0x2ad], 0
mov ecx, dword [ebp - 0x2d8]
cmp ecx, dword [ebp - 0x2e0]
jae 0x5db02c
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x2d8]
mov al, byte [edx]
mov byte [ebp - 0x2ad], al
jmp 0x5db055
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp - 0x2e0]
cmp dword [ebp - 0x2d8], ecx
jae 0x5db055
mov edx, dword [ebp - 0x2d8]
sub edx, dword [ebp - 0x2e0]
mov eax, dword [ebp + 0x18]
mov cl, byte [eax + edx]
mov byte [ebp - 0x2ad], cl
mov edx, dword [ebp - 0x2d8]
add edx, 1
mov dword [ebp - 0x2d8], edx
movzx ebx, byte [ebp - 0x2bd]
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.005da6b0
add esp, 8
movzx edx, al
and ebx, edx
mov byte [ebp - 0x2e1], bl
movzx ebx, byte [ebp - 0x2bd]
mov eax, dword [ebp - 0x324]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.005da6b0
add esp, 8
movzx edx, al
and ebx, edx
mov byte [ebp - 0x2e2], bl
movzx eax, byte [ebp - 0x2ad]
push eax
push 0x80
movzx ecx, byte [ebp - 0x2e1]
push ecx
call fcn.005da720
add esp, 0xc
mov byte [ebp - 0x2ad], al
movzx edx, byte [ebp - 0x2ad]
movzx eax, byte [ebp - 0x2e2]
not eax
and edx, eax
mov byte [ebp - 0x2ad], dl
movzx ecx, byte [ebp - 0x2be]
not ecx
movzx edx, byte [ebp - 0x2bd]
or ecx, edx
movzx eax, byte [ebp - 0x2ad]
and eax, ecx
mov byte [ebp - 0x2ad], al
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
cmp dword [ebp - 0x2c4], ecx
jb 0x5db15f
movzx edx, byte [ebp - 0x2ad]
push edx
mov eax, dword [ebp - 0x2b4]
sub eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2c4]
sub ecx, eax
movzx edx, byte [ebp + ecx - 0x14]
push edx
movzx eax, byte [ebp - 0x2be]
push eax
call fcn.005da720
add esp, 0xc
mov byte [ebp - 0x2ad], al
mov ecx, dword [ebp - 0x2c4]
mov dl, byte [ebp - 0x2ad]
mov byte [ebp + ecx - 0x1d4], dl
jmp 0x5dafe3
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2e8]
add esp, 8
mov dword [ebp - 0x2c4], 0
jmp 0x5db1c0
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x2d0]
jae 0x5db204
mov eax, dword [ebp - 0x2c4]
movzx ecx, byte [ebp + eax - 0x1d4]
movzx edx, byte [ebp - 0x2be]
and ecx, edx
mov eax, dword [ebp - 0x2c4]
movzx edx, byte [ebp + eax - 0xd4]
or edx, ecx
mov eax, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0xd4], dl
jmp 0x5db1b1
jmp 0x5daf78
call fcn.0055a960
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
jne 0x5db222
jmp 0x5db398
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00559fe0
add esp, 0xc
test eax, eax
jg 0x5db240
jmp 0x5db398
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x5db2c7
mov ecx, dword [ebp - 0x2ec]
push ecx
push 0x5c
lea edx, [ebp - 0x94]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
jle 0x5db2bd
mov eax, dword [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
jle 0x5db2bd
mov eax, dword [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
jg 0x5db2c2
jmp 0x5db398
jmp 0x5db354
mov dword [ebp - 0x2b8], 0
jmp 0x5db2e2
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
cmp ecx, dword [ebp - 0x2b4]
jae 0x5db310
mov edx, dword [ebp - 0x2b8]
movzx eax, byte [ebp + edx - 0x94]
xor eax, 0x6a
mov ecx, dword [ebp - 0x2b8]
mov byte [ebp + ecx - 0x94], al
jmp 0x5db2d3
mov edx, dword [ebp - 0x2b4]
push edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.0055a020
add esp, 0xc
test eax, eax
jle 0x5db352
mov edx, dword [ebp - 0x2d0]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.0055a020
add esp, 0xc
test eax, eax
jg 0x5db354
jmp 0x5db398
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.00559b70
add esp, 0xc
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0
je 0x5db38e
cmp dword [ebp + 0x10], 0
je 0x5db38e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x334]
mov dword [edx], eax
mov dword [ebp - 0x2f0], 1
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.0055a890
add esp, 4
mov eax, dword [ebp - 0x2f0]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret