Function at 0x10001677
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
jmp 0x10010010
mov eax, 0x328
call fcn.10056cb0
mov eax, dword [0x10092c20]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [esp + 0x330]
mov ecx, dword [esp + 0x32c]
push ebx
mov ebx, dword [esp + 0x338]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x33c]
push ebp
push esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x348]
push edi
mov edi, dword [esp + 0x354]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x358]
mov ebp, 0x40
mov esi, 0x28
mov dword [esp + 0x80], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], 8
mov byte [esp + 0x13], 1
cmp edi, 0x100000
jae 0x100107bb
push ecx
call sub.libcrypto_1_1.dll_EVP_MD_CTX_md
push eax
call sub.libcrypto_1_1.dll_EVP_MD_type
add esp, 8
cmp eax, 0x2a0
jg 0x1001016e
je 0x1001013c
cmp eax, 4
je 0x100100fc
cmp eax, ebp
jne 0x1001017b
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_SHA1_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov dword [esp + 0x2c], 0x10010b50
mov dword [esp + 0x14], 0x100563c4
lea ecx, [ebp - 0x2c]
jmp 0x10010217
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_MD5_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov esi, 0x30
mov dword [esp + 0x2c], 0x10010ab0
mov dword [esp + 0x14], 0x100563f4
mov ecx, 0x10
mov dword [esp + 0x50], esi
mov byte [esp + 0x13], 0
jmp 0x10010217
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_SHA256_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov dword [esp + 0x2c], 0x10010c10
mov dword [esp + 0x14], 0x100563d6
mov ecx, 0x20
jmp 0x10010217
sub eax, 0x2a1
je 0x100101d9
dec eax
je 0x100101bd
dec eax
je 0x1001018e
test ebx, ebx
je 0x100107bb
mov dword [ebx], 0
jmp 0x100107bb
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_SHA224_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov dword [esp + 0x2c], 0x10010c10
mov dword [esp + 0x14], 0x100563d6
mov ecx, 0x1c
jmp 0x10010217
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_SHA512_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov ecx, ebp
jmp 0x100101f6
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_1_1.dll_SHA384_Init
add esp, 4
test eax, eax
jle 0x100107bb
mov ecx, 0x30
mov ebp, 0x80
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], 0x100563e8
mov dword [esp + 0x2c], 0x10010d30
cmp byte [esp + 0x360], 0
mov ebx, 0xd
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], ebx
je 0x10010248
mov ebx, dword [esp + 0x35c]
add ebx, 0xb
add ebx, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], 2
jmp 0x10010259
lea eax, [ebp + 0xff]
add eax, ecx
xor edx, edx
div ebp
inc eax
mov dword [esp + 0x24], eax
mov esi, ebx
sub esi, ecx
mov ecx, dword [esp + 0x18]
add ecx, esi
add ecx, ebp
xor edx, edx
lea eax, [edi - 1]
add eax, ecx
div ebp
add esi, dword [esp + 0x350]
xor edx, edx
mov dword [esp + 0x34], edx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], eax
mov eax, esi
div ebp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
add eax, esi
xor edx, edx
div ebp
cmp byte [esp + 0x360], cl
mov edx, dword [esp + 0x1c]
setne cl
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
add ecx, eax
cmp edx, ecx
jbe 0x100102c8
sub edx, eax
mov edi, edx
imul edi, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edi
cmp byte [esp + 0x360], 0
lea eax, [esi*8]
mov dword [esp + 0x1c], eax
jne 0x1001034c
lea eax, [eax + ebp*8]
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1b8]
push 0
push eax
call fcn.100573b0
mov eax, dword [esp + 0x368]
add esp, 0xc
cmp eax, 0x80
ja 0x100107bb
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x1bc]
push eax
call fcn.10056d60
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x10010331
xor byte [esp + eax + 0x1b4], 0x36
inc eax
cmp eax, ebp
jb 0x10010324
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0x90]
push eax
call esi
add esp, 8
jmp 0x10010350
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x100103a6
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x168]
push 0
push eax
call fcn.100573b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x16c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x16d], al
mov eax, ecx
add esp, 0xc
shr eax, 8
mov byte [esp + edx + 0x162], al
mov byte [esp + edx + 0x163], cl
jmp 0x100103ef
push dword [esp + 0x18]
lea eax, [esp + 0x168]
push 0
push eax
call fcn.100573b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x16b], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x16a], al
mov eax, ecx
add esp, 0xc
shr eax, 8
mov byte [esp + edx + 0x15d], al
mov byte [esp + edx + 0x15c], cl
test edi, edi
je 0x10010517
cmp byte [esp + 0x360], 0
je 0x10010498
cmp ebx, ebp
jbe 0x100107bb
push dword [esp + 0x3c]
lea eax, [esp + 0x90]
push eax
sub ebx, ebp
call esi
mov eax, dword [esp + 0x44]
add eax, ebp
push ebx
push eax
lea eax, [esp + 0x244]
push eax
call fcn.10056d60
mov eax, ebp
sub eax, ebx
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x250]
add eax, ebx
push eax
call fcn.10056d60
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call esi
xor edx, edx
mov eax, edi
div ebp
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x10010517
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
sub esi, ebx
add esi, ebp
lea ebx, [eax - 1]
mov edi, edi
lea eax, [esp + 0x8c]
push esi
push eax
call edi
add esp, 8
add esi, ebp
dec ebx
jne 0x10010480
jmp 0x10010513
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x23c], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x240], al
lea eax, [ebp - 0xd]
push eax
lea eax, [esp + 0x245]
push ebx
push eax
movq qword [esp + 0x240], xmm0
call fcn.10056d60
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x9c]
push eax
call esi
xor edx, edx
mov eax, edi
div ebp
add esp, 0x14
cmp eax, 1
jbe 0x10010517
mov edi, dword [esp + 0x14]
lea esi, [ebx - 0xd]
add esi, ebp
lea ebx, [eax - 1]
nop
lea eax, [esp + 0x8c]
push esi
push eax
call edi
add esp, 8
add esi, ebp
dec ebx
jne 0x10010500
mov edi, dword [esp + 0x30]
push 0x40
lea eax, [esp + 0x178]
push 0
push eax
call fcn.100573b0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
add eax, edx
add esp, 0xc
mov dword [esp + 0x88], eax
cmp edx, eax
ja 0x1001071b
mov eax, edx
xor eax, dword [esp + 0x78]
xor esi, esi
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
mov eax, edx
xor eax, dword [esp + 0x5c]
neg cl
lea ebx, [eax - 1]
shr ebx, 0x1f
not eax
shr eax, 0x1f
and bl, al
neg bl
mov dword [esp + 0x74], ecx
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x100106b5
mov eax, dword [esp + 0x40]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [esp + 0x6c], eax
movzx eax, cl
mov dword [esp + 0x64], eax
mov al, bl
not al
or al, cl
mov byte [esp + 0x2b], al
mov eax, ebp
sub eax, dword [esp + 0x18]
shr edx, 0x1f
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], edx
sub eax, ebp
or edx, 0xffffffff
sub edx, dword [esp + 0x40]
lea eax, [esp + eax + 0x164]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
nop
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x13], 0
cmp edi, ecx
jae 0x100105e3
mov eax, dword [esp + 0x3c]
jmp 0x100105f6
mov eax, dword [esp + 0x354]
add eax, ecx
cmp edi, eax
jae 0x100105fd
mov eax, dword [esp + 0x38]
sub eax, ecx
mov al, byte [eax + edi]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x6c]
lea ecx, [edx + 1]
mov edx, esi
lea ecx, [ecx + esi]
shr ecx, 0x1f
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
xor cl, dl
dec cl
movzx eax, cl
and eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
not eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x48]
and bl, byte [esp + 0x13]
mov eax, dword [esp + 0x4c]
lea ecx, [ecx + esi]
shr ecx, 0x1f
and al, 0x80
or bl, al
mov eax, dword [esp + 0x7c]
xor cl, al
xor al, dl
or cl, al
xor cl, dl
dec cl
and cl, byte [esp + 0x74]
inc edi
not cl
and cl, byte [esp + 0x2b]
and bl, cl
cmp esi, dword [esp + 0x84]
jb 0x1001068b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
movzx eax, al
mov dword [esp + 0x48], eax
not eax
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
and al, byte [edx]
and bl, cl
or bl, al
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
inc dword [esp + 0x24]
lea ecx, [esp + 0x2b5]
add ecx, dword [esp + 0x40]
lea eax, [edx + esi]
inc esi
mov byte [eax + ecx], bl
cmp esi, ebp
jb 0x100105d0
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x2b4]
push eax
lea eax, [esp + 0x90]
push eax
call dword [esp + 0x1c]
lea eax, [esp + 0x2bc]
push eax
lea eax, [esp + 0x98]
push eax
call dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add esp, 0x10
xor eax, eax
test edx, edx
je 0x10010705
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x2b4]
and cl, bl
or byte [esp + eax + 0x174], cl
inc eax
cmp eax, edx
jb 0x100106f0
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x88]
jbe 0x10010544
call sub.libcrypto_1_1.dll_EVP_MD_CTX_new
mov esi, eax
test esi, esi
je 0x100107b2
push 0
push dword [esp + 0x84]
call sub.libcrypto_1_1.dll_EVP_MD_CTX_md
add esp, 4
push eax
push esi
call sub.libcrypto_1_1.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
jle 0x100107b2
cmp byte [esp + 0x360], 0
je 0x100107d6
mov edi, dword [esp + 0x50]
push edi
lea eax, [esp + 0x1b8]
push 0x5c
push eax
call fcn.100573b0
push dword [esp + 0x368]
push dword [esp + 0x68]
push esi
call sub.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0x18
test eax, eax
jle 0x100107b2
push edi
lea eax, [esp + 0x1b8]
push eax
push esi
call sub.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x100107b2
push dword [esp + 0x20]
lea eax, [esp + 0x178]
push eax
push esi
call sub.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jg 0x1001081c
push esi
call sub.libcrypto_1_1.dll_EVP_MD_CTX_free
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10056cdb
add esp, 0x328
ret
xor eax, eax
test ebp, ebp
je 0x100107ed
lea esp, [esp]
xor byte [esp + eax + 0x1b4], 0x6a
inc eax
cmp eax, ebp
jb 0x100107e0
push ebp
lea eax, [esp + 0x1b8]
push eax
push esi
call sub.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x100107b2
push dword [esp + 0x20]
lea eax, [esp + 0x178]
push eax
push esi
call sub.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x100107b2
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x64]
push esi
call sub.libcrypto_1_1.dll_EVP_DigestFinal
add esp, 0xc
test eax, eax
je 0x10010840
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x10010840
mov eax, dword [esp + 0x70]
mov dword [ecx], eax
push esi
call sub.libcrypto_1_1.dll_EVP_MD_CTX_free
add esp, 4
mov eax, 1
jmp 0x100107bd