Function at 0x1403b5af0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a8]
mov eax, 0x3a8
call fcn.1403cb200
sub rsp, rax
mov rax, qword [0x1404f2b48]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rax, qword [rbp + 0x310]
mov r12d, 0x40
mov qword [rsp + 0x50], rax
xor ebx, ebx
cmp qword [rbp + 0x320], 0x100000
mov r15, r8
mov rax, qword [rbp + 0x328]
mov rsi, rcx
lea r13d, [r12 - 0x18]
mov qword [rsp + 0x60], r9
mov qword [rbp - 0x68], r13
lea r14d, [r12 - 0x38]
mov qword [rbp - 0x28], r8
mov edi, r12d
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x60], rax
mov byte [rsp + 0x20], 1
jae 0x1403b62cb
lea rdx, [0x140435540]
call fcn.1402734c0
test eax, eax
je 0x1403b5bc4
lea rcx, [rbp - 0x20]
call fcn.140280a30
test eax, eax
jle 0x1403b62cb
lea r13d, [rdi - 0x10]
mov byte [rsp + 0x20], bl
mov qword [rbp - 0x68], r13
lea r15, [0x1403b62f0]
lea rsi, [0x140280a80]
lea r12d, [rdi - 0x30]
jmp 0x1403b5ce4
lea rdx, [0x140435ac0]
mov rcx, rsi
call fcn.1402734c0
test eax, eax
je 0x1403b5c01
lea rcx, [rbp - 0x20]
call fcn.140342ba0
test eax, eax
jle 0x1403b62cb
lea r15, [0x1403b6380]
mov r12d, 0x14
lea rsi, [0x140342bf0]
jmp 0x1403b5ce4
lea rdx, [0x140463210]
mov rcx, rsi
call fcn.1402734c0
test eax, eax
je 0x1403b5c3e
lea rcx, [rbp - 0x20]
call fcn.140388d20
test eax, eax
jle 0x1403b62cb
lea r15, [0x1403b6430]
mov r12d, 0x1c
lea rsi, [0x140388ff0]
jmp 0x1403b5ce4
lea rdx, [0x140463220]
mov rcx, rsi
call fcn.1402734c0
test eax, eax
je 0x1403b5c78
lea rcx, [rbp - 0x20]
call fcn.140388f80
test eax, eax
jle 0x1403b62cb
lea r15, [0x1403b6430]
mov r12d, 0x20
lea rsi, [0x140388ff0]
jmp 0x1403b5ce4
lea rdx, [0x140463230]
mov rcx, rsi
call fcn.1402734c0
test eax, eax
je 0x1403b5ca4
lea rcx, [rbp - 0x20]
call fcn.140389150
test eax, eax
jle 0x1403b62cb
mov r12d, 0x30
jmp 0x1403b5ccc
lea rdx, [0x140463240]
mov rcx, rsi
call fcn.1402734c0
test eax, eax
je 0x1403b62c3
lea rcx, [rbp - 0x20]
call fcn.140389550
test eax, eax
jle 0x1403b62cb
mov r14d, 0x10
lea rsi, [0x1403895e0]
lea r15, [0x1403b6460]
lea edi, [r14 + 0x70]
mov r11b, byte [rbp + 0x338]
mov r10d, 0xd
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x68], r10
test r11b, r11b
je 0x1403b5d25
mov r10, qword [rbp + 0x330]
mov r8d, 2
add r10, 0xb
add r10, r13
mov qword [rsp + 0x68], r10
jmp 0x1403b5d38
lea rax, [rdi + 0xff]
xor edx, edx
add rax, r12
div rdi
lea r8, [rax + 1]
mov rax, qword [rbp + 0x320]
xor edx, edx
mov r13, qword [rbp + 0x318]
dec rax
mov rcx, r10
mov qword [rsp + 0x58], r8
sub rcx, r12
mov qword [rsp + 0x30], rbx
add rcx, r14
add r13, r10
add rcx, rdi
add rax, rcx
mov rcx, rbx
div rdi
xor edx, edx
mov r9, rax
mov rax, r13
div rdi
mov qword [rsp + 0x70], rdx
xor edx, edx
mov qword [rbp - 0x58], rax
lea rax, [r14 + r13]
div rdi
test r11b, r11b
mov qword [rbp - 0x50], rax
setne cl
lea r10, [rcx + r8]
mov rcx, r9
sub rcx, r8
cmp r10, r9
jae 0x1403b5db2
mov rdx, rcx
imul rdx, rdi
cmp r10, r9
mov qword [rsp + 0x30], rdx
sbb rax, rax
shl r13, 3
and rax, rcx
mov qword [rbp - 0x70], rax
test r11b, r11b
jne 0x1403b5e21
mov r8, rdi
lea rcx, [rbp + 0x110]
xor edx, edx
lea r13, [r13 + rdi*8]
call fcn.1403ccc50
mov rax, qword [rbp + 0x330]
cmp rax, 0x80
ja 0x1403b62cb
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp + 0x110]
mov r8, rax
call fcn.1403cc5a0
mov rax, rbx
xor byte [rbp + rax + 0x110], 0x36
inc rax
cmp rax, rdi
jb 0x1403b5e04
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x20]
call rsi
mov rax, r13
lea rcx, [rbp + 0xc0]
shr rax, 0x18
xor edx, edx
mov qword [rsp + 0x28], rax
mov rax, r13
shr rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, r13
shr rax, 8
mov qword [rbp - 0x80], rax
cmp byte [rsp + 0x20], bl
je 0x1403b5e8c
lea r8, [r14 - 4]
call fcn.1403ccc50
mov rax, qword [rsp + 0x28]
mov byte [rbp + r14 + 0xbc], al
mov rax, qword [rsp + 0x78]
mov byte [rbp + r14 + 0xbd], al
mov rax, qword [rbp - 0x80]
mov byte [rbp + r14 + 0xbe], al
mov byte [rbp + r14 + 0xbf], r13b
jmp 0x1403b5ec2
mov r8, r14
call fcn.1403ccc50
mov rax, qword [rsp + 0x28]
mov byte [rbp + r14 + 0xbb], al
mov rax, qword [rsp + 0x78]
mov byte [rbp + r14 + 0xba], al
mov rax, qword [rbp - 0x80]
mov byte [rbp + r14 + 0xb9], al
mov byte [rbp + r14 + 0xb8], r13b
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x1403b5fe9
cmp byte [rbp + 0x338], bl
je 0x1403b5f7b
mov rax, qword [rsp + 0x68]
cmp rax, rdi
jbe 0x1403b62cb
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x20]
sub rax, rdi
mov qword [rsp + 0x28], rax
call rsi
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x190]
mov r8, qword [rsp + 0x28]
add rdx, rdi
call fcn.1403cc5a0
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x190]
add rcx, qword [rsp + 0x28]
mov r8, rdi
sub r8, qword [rsp + 0x28]
call fcn.1403cc5a0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call rsi
xor edx, edx
mov rax, r13
div rdi
dec rax
cmp rax, 1
jbe 0x1403b5fe9
mov r13, qword [rsp + 0x50]
lea r15, [rax - 1]
sub r13, qword [rsp + 0x28]
add r13, rdi
mov rdx, r13
lea rcx, [rbp - 0x20]
call rsi
add r13, rdi
sub r15, 1
jne 0x1403b5f67
jmp 0x1403b5fe4
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x190]
mov r8d, 0xd
call fcn.1403cc5a0
mov rdx, qword [rsp + 0x50]
lea r8, [rdi - 0xd]
lea rcx, [rbp + 0x19d]
call fcn.1403cc5a0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call rsi
xor edx, edx
mov rax, r13
div rdi
cmp rax, 1
jbe 0x1403b5fe9
mov r13, qword [rsp + 0x50]
lea r15, [rax - 1]
add r13, 0xfffffffffffffff3
add r13, rdi
mov rdx, r13
lea rcx, [rbp - 0x20]
call rsi
add r13, rdi
sub r15, 1
jne 0x1403b5fd2
mov r13, qword [rsp + 0x30]
xor edx, edx
lea rcx, [rbp + 0xd0]
lea r8d, [rdx + 0x40]
call fcn.1403ccc50
mov rcx, qword [rbp - 0x70]
mov rax, qword [rsp + 0x58]
add rax, rcx
mov qword [rbp - 0x40], rax
cmp rcx, rax
ja 0x1403b61eb
mov r8, qword [rsp + 0x70]
mov rax, r8
shr rax, 0x3f
mov qword [rbp - 0x80], rax
mov rax, rdi
sub rax, r14
lea rdx, [r8 + 1]
mov qword [rsp + 0x78], rax
mov rax, r8
sub rax, rdi
shr rdx, 0x3f
add rax, r14
mov qword [rsp + 0x58], rdx
lea rax, [rbp + rax + 0xc0]
mov qword [rbp - 0x48], rax
mov r15, qword [rsp + 0x68]
mov rax, rcx
xor rax, qword [rbp - 0x58]
mov r9, rbx
mov rsi, qword [rbp - 0x80]
lea r10, [rax - 1]
not rax
shr rax, 0x3f
shr r10, 0x3f
and r10b, al
mov rax, rcx
xor rax, qword [rbp - 0x50]
neg r10b
lea r14, [rax - 1]
not rax
shr rax, 0x3f
shr r14, 0x3f
and r14b, al
neg r14b
mov al, r14b
not al
or al, r10b
mov r12b, al
mov r8b, bl
cmp r13, r15
jae 0x1403b60af
mov rax, qword [rsp + 0x60]
jmp 0x1403b60c6
mov rax, qword [rbp + 0x320]
add rax, r15
cmp r13, rax
jae 0x1403b60ca
mov rax, qword [rsp + 0x50]
sub rax, r15
mov r8b, byte [rax + r13]
mov r15, qword [rsp + 0x68]
mov al, sil
mov r11, r9
mov rdx, r9
sub r11, qword [rsp + 0x70]
inc r13
shr rdx, 0x3f
mov rcx, r11
shr rcx, 0x3f
xor al, dl
xor cl, sil
or cl, al
movzx eax, r10b
xor cl, dl
dec cl
movzx ecx, cl
and ecx, eax
mov dword [rsp + 0x30], ecx
not ecx
mov dword [rsp + 0x28], ecx
mov rcx, r9
mov eax, dword [rsp + 0x28]
and al, r8b
mov r8d, dword [rsp + 0x30]
and r8b, 0x80
or r8b, al
mov rax, qword [rsp + 0x70]
inc rax
sub rcx, rax
mov al, dl
xor al, byte [rsp + 0x58]
shr rcx, 0x3f
xor cl, byte [rsp + 0x58]
or cl, al
xor cl, dl
dec cl
and cl, r10b
not cl
and cl, r12b
and r8b, cl
cmp r9, qword [rsp + 0x78]
jb 0x1403b6174
movzx eax, r14b
mov dword [rsp + 0x30], eax
not eax
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x48]
mov ecx, dword [rsp + 0x30]
and cl, byte [r11 + rax]
mov eax, dword [rsp + 0x28]
and r8b, al
or r8b, cl
lea rax, [rbp + 0x210]
inc r9
add rax, qword [rsp + 0x70]
mov byte [r11 + rax], r8b
cmp r9, rdi
jb 0x1403b60a0
mov rsi, qword [rsp + 0x40]
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call rsi
mov r15, qword [rsp + 0x38]
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call r15
mov r12, qword [rsp + 0x48]
mov rcx, rbx
mov al, byte [rbp + rcx + 0x210]
and al, r14b
or byte [rbp + rcx + 0xd0], al
inc rcx
cmp rcx, r12
jb 0x1403b61bd
mov rcx, qword [rbp - 0x70]
inc rcx
mov qword [rbp - 0x70], rcx
cmp rcx, qword [rbp - 0x40]
jbe 0x1403b6051
call fcn.1402c5be0
mov rsi, rax
test rax, rax
je 0x1403b62a2
mov rdx, qword [rbp - 0x38]
xor r8d, r8d
mov rcx, rax
call fcn.1402c56a0
test eax, eax
jle 0x1403b62a2
cmp byte [rbp + 0x338], bl
je 0x1403b62ae
mov rdi, qword [rbp - 0x68]
lea rcx, [rbp + 0x110]
mov r8, rdi
mov edx, 0x5c
call fcn.1403ccc50
mov r8, qword [rbp + 0x330]
mov rcx, rsi
mov rdx, qword [rbp - 0x60]
call fcn.1402c56e0
test eax, eax
jle 0x1403b62a2
mov r8, rdi
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402c56e0
test eax, eax
jle 0x1403b62a2
mov r8, r12
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call fcn.1402c56e0
test eax, eax
jle 0x1403b62a2
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x78]
mov rcx, rsi
call fcn.1402c5310
test eax, eax
je 0x1403b629d
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1403b629d
mov eax, dword [rbp - 0x78]
mov qword [rcx], rax
mov ebx, 1
mov rcx, rsi
call fcn.1402c5b30
mov eax, ebx
jmp 0x1403b62cd
mov rax, rbx
xor byte [rbp + rax + 0x110], 0x6a
inc rax
cmp rax, rdi
jb 0x1403b62b1
jmp 0x1403b624e
test r15, r15
je 0x1403b62cb
mov qword [r15], rbx
xor eax, eax
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1403cb150
add rsp, 0x3a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret