Function at 0x180001b95
Capabilities:
Authenticate hmac

Disassembly:
jmp 0x180011d00
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x2c0]
mov eax, 0x3c0
call fcn.180066d80
sub rsp, rax
mov rax, qword [0x1800b3b80]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rax, qword [rbp + 0x310]
mov rbx, qword [rbp + 0x320]
mov r15d, 0x28
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x328]
mov qword [rsp + 0x58], r9
mov rsi, r8
mov qword [rbp - 0x58], r8
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x48], rcx
mov edi, 0x40
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x40], 8
mov byte [rsp + 0x20], 1
cmp rbx, 0x100000
jb 0x180011d8c
xor eax, eax
jmp 0x1800124fb
mov qword [rsp + 0x3b8], r12
mov qword [rsp + 0x3b0], r13
call sub.libcrypto_1_1_x64.dll_EVP_MD_CTX_md
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_EVP_MD_type
mov ecx, eax
cmp eax, 0x2a1
jg 0x180011e7a
je 0x180011e65
cmp eax, 4
je 0x180011e2c
cmp eax, edi
je 0x180011dfe
cmp eax, 0x2a0
jne 0x180011e86
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_SHA256_Init
test eax, eax
jle 0x180011e91
mov r13d, 0x20
lea rax, [0x180012960]
lea r12, [0x18006648a]
lea r11d, [r13 - 0x18]
jmp 0x180011eec
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_SHA1_Init
test eax, eax
jle 0x180011e91
mov r13d, 0x14
lea rax, [0x1800128b0]
lea r12, [0x180066478]
lea r11d, [r13 - 0xc]
jmp 0x180011eec
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_MD5_Init
test eax, eax
jle 0x180011e91
mov r13d, 0x10
mov r15d, 0x30
lea rax, [0x180012810]
lea r12, [0x1800664a8]
mov byte [rsp + 0x20], 0
lea r11d, [r13 - 8]
mov qword [rbp - 0x80], r15
jmp 0x180011eec
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_SHA384_Init
test eax, eax
jle 0x180011e91
mov r13d, 0x30
jmp 0x180011ecf
sub ecx, 0x2a2
je 0x180011ebf
dec ecx
je 0x180011e98
test rsi, rsi
je 0x180011e91
xor r15d, r15d
mov qword [rsi], r15
xor eax, eax
jmp 0x1800124eb
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_SHA224_Init
test eax, eax
jle 0x180011e91
mov r13d, 0x1c
lea rax, [0x180012960]
lea r12, [0x18006648a]
lea r11d, [r13 - 0x14]
jmp 0x180011eec
lea rcx, [rbp - 0x20]
call sub.libcrypto_1_1_x64.dll_SHA512_Init
test eax, eax
jle 0x180011e91
mov r13, rdi
mov r11d, 0x10
lea r12, [0x18006649c]
lea rax, [0x180012a80]
lea edi, [r11 + 0x70]
mov qword [rsp + 0x40], r11
cmp byte [rbp + 0x338], 0
mov qword [rsp + 0x3a8], r14
mov qword [rsp + 0x38], r13
mov r14d, 0xd
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x48], rax
je 0x180011f28
mov r14, qword [rbp + 0x330]
mov r9d, 2
add r14, 0xb
add r14, r15
jmp 0x180011f3b
lea rax, [rdi + 0xff]
xor edx, edx
add rax, r13
div rdi
lea r9, [rax + 1]
mov rsi, qword [rbp + 0x318]
xor edx, edx
lea rax, [rbx - 1]
mov r8, r14
xor r15d, r15d
mov qword [rsp + 0x28], r9
sub r8, r13
mov qword [rsp + 0x60], r15
mov ebx, r15d
add rsi, r8
lea rcx, [r8 + r11]
add rcx, rdi
add rax, rcx
mov ecx, r15d
div rdi
xor edx, edx
mov r10, rax
mov rax, rsi
div rdi
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x78], rdx
xor edx, edx
lea rax, [rsi + r11]
div rdi
mov qword [rbp - 0x60], rax
movzx eax, byte [rbp + 0x338]
test al, al
setne cl
add rcx, r9
cmp r10, rcx
jbe 0x180011fb5
mov rbx, r10
sub rbx, r9
mov qword [rsp + 0x60], rbx
imul rbx, rdi
lea rsi, [rsi*8]
test al, al
jne 0x180012033
lea rcx, [rbp + 0x110]
mov r8, rdi
xor edx, edx
lea rsi, [rsi + rdi*8]
call fcn.1800673a0
mov rax, qword [rbp + 0x330]
cmp rax, 0x80
ja 0x1800124e1
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp + 0x110]
mov r8, rax
call fcn.180066ea0
mov rax, r15
test rdi, rdi
je 0x180012020
nop word [rax + rax]
xor byte [rbp + rax + 0x110], 0x36
inc rax
cmp rax, rdi
jb 0x180012010
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x20]
call r12
mov r11, qword [rsp + 0x40]
xor edx, edx
lea rcx, [rbp + 0xc0]
cmp byte [rsp + 0x20], r15b
je 0x180012085
lea r8, [r11 - 4]
call fcn.1800673a0
mov rcx, qword [rsp + 0x40]
mov rax, rsi
shr rax, 0x18
mov byte [rbp + rcx + 0xbf], sil
mov byte [rbp + rcx + 0xbc], al
mov rax, rsi
shr rax, 0x10
mov byte [rbp + rcx + 0xbd], al
mov rax, rsi
shr rax, 8
mov byte [rbp + rcx + 0xbe], al
jmp 0x1800120c4
mov r8, r11
call fcn.1800673a0
mov rcx, qword [rsp + 0x40]
mov rax, rsi
shr rax, 0x18
mov byte [rbp + rcx + 0xb8], sil
mov byte [rbp + rcx + 0xbb], al
mov rax, rsi
shr rax, 0x10
mov byte [rbp + rcx + 0xba], al
mov rax, rsi
shr rax, 8
mov byte [rbp + rcx + 0xb9], al
test rbx, rbx
je 0x1800121f5
cmp byte [rbp + 0x338], r15b
je 0x180012176
cmp r14, rdi
jbe 0x1800124e1
mov rdx, qword [rsp + 0x58]
mov rsi, r14
lea rcx, [rbp - 0x20]
sub rsi, rdi
mov qword [rsp + 0x50], rsi
call r12
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x190]
mov r8, rsi
add rdx, rdi
call fcn.180066ea0
lea rcx, [rbp + 0x190]
mov r8, rdi
add rcx, rsi
sub r8, rsi
mov rsi, qword [rsp + 0x68]
mov rdx, rsi
call fcn.180066ea0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call r12
xor edx, edx
mov rax, rbx
div rdi
dec rax
cmp rax, 1
jbe 0x1800121f5
sub rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
lea r12, [rax - 1]
add rsi, rdi
lea rcx, [rbp - 0x20]
mov rdx, rsi
call r15
add rsi, rdi
dec r12
jne 0x180012162
jmp 0x1800121f2
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
lea r8, [rdi - 0xd]
mov rax, qword [rcx]
mov rdx, rsi
mov qword [rbp + 0x190], rax
mov eax, dword [rcx + 8]
mov dword [rbp + 0x198], eax
movzx eax, byte [rcx + 0xc]
lea rcx, [rbp + 0x19d]
mov byte [rbp + 0x19c], al
call fcn.180066ea0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call r12
xor edx, edx
mov rax, rbx
div rdi
cmp rax, 1
jbe 0x1800121f5
mov r15, qword [rsp + 0x30]
add rsi, 0xfffffffffffffff3
lea r12, [rax - 1]
add rsi, rdi
nop dword [rax]
lea rcx, [rbp - 0x20]
mov rdx, rsi
call r15
add rsi, rdi
dec r12
jne 0x1800121e0
xor r15d, r15d
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rax
mov rax, qword [rsp + 0x28]
add rax, rcx
mov qword [rbp - 0x38], rax
cmp rcx, rax
ja 0x180012441
nop dword [rax]
mov rax, rcx
mov r10, r15
xor rax, qword [rbp - 0x70]
lea r12, [rax - 1]
not rax
shr rax, 0x3f
shr r12, 0x3f
and r12b, al
mov rax, rcx
xor rax, qword [rbp - 0x60]
neg r12b
lea rsi, [rax - 1]
not rax
shr rsi, 0x3f
shr rax, 0x3f
and sil, al
neg sil
test rdi, rdi
je 0x1800123e7
mov rdx, qword [rsp + 0x78]
movzx ecx, r12b
mov dword [rsp + 0x74], ecx
lea rax, [rdx + 1]
lea rcx, [rbp + 0xc0]
shr rax, 0x3f
mov r8, rdx
mov qword [rbp - 0x40], rax
movzx eax, sil
shr r8, 0x3f
not al
mov qword [rbp - 0x30], r8
or al, r12b
mov byte [rsp + 0x20], al
mov rax, rdi
sub rax, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x20]
mov qword [rbp - 0x50], rax
mov rax, rdx
sub rax, rdi
add rax, qword [rsp + 0x40]
add rax, rcx
mov rcx, rdx
neg rcx
mov r13, rax
mov qword [rbp - 0x28], rcx
nop dword [rax]
xor r9b, r9b
cmp rbx, r14
jae 0x18001230f
mov rax, qword [rsp + 0x58]
jmp 0x180012326
mov rax, qword [rbp + 0x320]
add rax, r14
cmp rbx, rax
jae 0x18001232b
mov rax, qword [rsp + 0x68]
sub rax, r14
movzx r9d, byte [rax + rbx]
lea r11, [rcx + r10]
movzx eax, r8b
mov rdx, r10
shr rdx, 0x3f
mov rcx, r11
inc rbx
shr rcx, 0x3f
xor al, dl
xor cl, r8b
or cl, al
xor cl, dl
dec cl
movzx eax, cl
lea rcx, [r11 - 1]
and eax, dword [rsp + 0x74]
shr rcx, 0x3f
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x50], eax
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x28]
and al, 0x80
and r8b, r9b
or r8b, al
mov rax, qword [rbp - 0x40]
xor cl, al
xor al, dl
or cl, al
xor cl, dl
dec cl
and cl, r12b
not cl
and cl, r15b
and r8b, cl
cmp r10, qword [rbp - 0x50]
jb 0x1800123bb
movzx eax, sil
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
movzx ecx, byte [r11 + r13]
and cl, al
mov eax, dword [rsp + 0x50]
and r8b, al
or r8b, cl
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x210]
inc r10
add rax, qword [rsp + 0x78]
mov byte [r11 + rax], r8b
mov r8, qword [rbp - 0x30]
cmp r10, rdi
jb 0x180012300
mov r13, qword [rsp + 0x38]
xor r15d, r15d
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x30]
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x48]
mov rax, r15
test r13, r13
je 0x18001242a
nop dword [rax]
movzx ecx, byte [rbp + rax + 0x210]
inc rax
and cl, sil
or byte [rbp + rax + 0xcf], cl
cmp rax, r13
jb 0x180012410
mov rcx, qword [rsp + 0x60]
inc rcx
mov qword [rsp + 0x60], rcx
cmp rcx, qword [rbp - 0x38]
jbe 0x180012250
call sub.libcrypto_1_1_x64.dll_EVP_MD_CTX_new
mov rbx, rax
test rax, rax
je 0x1800124d9
mov rcx, qword [rbp - 0x48]
call sub.libcrypto_1_1_x64.dll_EVP_MD_CTX_md
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call sub.libcrypto_1_1_x64.dll_EVP_DigestInit_ex
test eax, eax
jle 0x1800124d9
cmp byte [rbp + 0x338], 0
je 0x180012518
mov rdi, qword [rbp - 0x80]
lea rcx, [rbp + 0x110]
mov edx, 0x5c
mov r8, rdi
call fcn.1800673a0
mov r8, qword [rbp + 0x330]
mov rdx, qword [rbp - 0x78]
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
jle 0x1800124d9
lea rdx, [rbp + 0x110]
mov r8, rdi
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
jle 0x1800124d9
lea rdx, [rbp + 0xd0]
mov r8, r13
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
jg 0x180012561
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_MD_CTX_free
xor eax, eax
mov r14, qword [rsp + 0x3a8]
mov r12, qword [rsp + 0x3b8]
mov r13, qword [rsp + 0x3b0]
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.180066e70
add rsp, 0x3c0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
test rdi, rdi
je 0x180012531
nop dword [rax]
xor byte [rbp + r15 + 0x110], 0x6a
inc r15
cmp r15, rdi
jb 0x180012520
lea rdx, [rbp + 0x110]
mov r8, rdi
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
jle 0x1800124d9
lea rdx, [rbp + 0xd0]
mov r8, r13
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
jle 0x1800124d9
mov rdx, qword [rbp - 0x68]
lea r8, [rsp + 0x70]
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_DigestFinal
test eax, eax
je 0x180012586
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x180012586
mov eax, dword [rsp + 0x70]
mov qword [rcx], rax
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_EVP_MD_CTX_free
mov eax, 1
jmp 0x1800124e3