Function at 0x7ff876ee4f20
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov r13, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x40], xmm0
movsd xmm7, qword [rdx + 0x10]
movsd qword [rbp - 0x30], xmm7
mov qword [rbp - 0x28], rdx
movq r8, xmm0
mov rax, r8
mov r12, qword [rbp - 0x30]
sub rax, r12
mov qword [rbp - 0x48], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [r8], 0x2d
jne 0x7ff876ee4f8e
inc r8
mov qword [rbp - 0x40], r8
mov r10b, 1
jmp 0x7ff876ee4f91
xor r10b, r10b
mov byte [rbp - 0x50], r10b
xor ebx, ebx
mov edi, ebx
xor r9b, r9b
mov byte [rbp + 0x58], r9b
mov r11d, ebx
movsx ecx, byte [r8]
cmp cl, 0x30
jne 0x7ff876ee4fbb
mov esi, ebx
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
jmp 0x7ff876ee5076
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x7ff876ee56a8
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r10b, r10b
je 0x7ff876ee5027
cmp al, 0x30
jl 0x7ff876ee5076
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
ja 0x7ff876ee5076
cmp esi, 0xccccccc
jb 0x7ff876ee5000
jne 0x7ff876ee506d
mov r8, rcx
cmp al, 0x38
ja 0x7ff876ee506d
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r11d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x7ff876ee4fe7
jmp 0x7ff876ee5076
cmp al, 0x30
jl 0x7ff876ee5076
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
jg 0x7ff876ee5076
cmp esi, 0x19999999
jb 0x7ff876ee5046
jne 0x7ff876ee506d
mov r8, rcx
cmp al, 0x35
jg 0x7ff876ee506d
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r11d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x7ff876ee5031
jmp 0x7ff876ee5076
mov r9b, 1
mov byte [rbp + 0x58], r9b
mov edi, esi
xor r15b, r15b
movsd xmm2, qword [0x7ff876f57518]
test r9b, r9b
je 0x7ff876ee51d4
test r10b, r10b
je 0x7ff876ee510d
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x7ff876ee51d4
mov r8, rdx
mov r9, rdx
movabs r10, 0xccccccccccccccc
nop dword [rax + rax]
cmp cl, 0x39
ja 0x7ff876ee51cf
cmp rdi, r10
jb 0x7ff876ee50c8
jne 0x7ff876ee50f5
mov r8, r9
cmp cl, 0x38
ja 0x7ff876ee50f5
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
mov r8, rdx
mov r9, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x7ff876ee50b0
jmp 0x7ff876ee51cf
mov rcx, rdi
mov r15b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x7ff876ee5179
cvtsi2sd xmm1, rcx
jmp 0x7ff876ee518e
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x7ff876ee51d4
mov r9, rdx
mov r10, rdx
movabs r14, 0x1999999999999999
nop dword [rax + rax]
mov rcx, rdi
cmp r8b, 0x39
ja 0x7ff876ee51cf
cmp rdi, r14
jb 0x7ff876ee514d
jne 0x7ff876ee50f8
mov r9, r10
cmp r8b, 0x35
ja 0x7ff876ee50f8
lea rdx, [r9 + 1]
mov qword [rbp - 0x40], rdx
movsx ecx, byte [r9]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
mov r9, rdx
mov r10, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x7ff876ee5130
jmp 0x7ff876ee51cf
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x7ff876ee51cf
mov r8, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x7ff876ee51cf
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
mov r8, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x7ff876ee51a0
movzx r9d, byte [rbp + 0x58]
mov r14d, ebx
cmp byte [rdx], 0x2e
jne 0x7ff876ee52fc
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movzx ecx, byte [r8]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x7ff876ee5334
mov rdx, r8
test r15b, r15b
jne 0x7ff876ee528b
test r9b, r9b
jne 0x7ff876ee520a
mov edi, esi
mov rcx, r8
mov r9, r8
movzx eax, byte [r8]
movabs r10, 0x1fffffffffffff
nop
cmp al, 0x39
jg 0x7ff876ee525e
mov rdx, r9
cmp rdi, r10
ja 0x7ff876ee525e
lea r8, [rcx + 1]
mov rdx, r8
mov qword [rbp - 0x40], r8
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
dec r14d
test rdi, rdi
je 0x7ff876ee5250
inc r11d
movzx eax, byte [r8]
mov rcx, r8
mov r9, rdx
cmp al, 0x30
jge 0x7ff876ee5220
xorps xmm1, xmm1
test rdi, rdi
js 0x7ff876ee526d
cvtsi2sd xmm1, rdi
jmp 0x7ff876ee5285
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r15b, 1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x7ff876ee52fc
mov rax, rdx
mov r10, rdx
mov r9, rdx
movzx ecx, byte [r8]
nop dword [rax]
mov rdx, r9
cmp cl, 0x39
jg 0x7ff876ee52fc
cmp r11d, 0x11
jge 0x7ff876ee52e0
lea rdx, [rax + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
movsx eax, byte [rax]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec r14d
comisd xmm0, xmm6
jbe 0x7ff876ee52eb
inc r11d
jmp 0x7ff876ee52eb
lea rdx, [r10 + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
mov rax, rdx
movzx ecx, byte [rcx]
mov r10, rdx
mov r9, rdx
cmp cl, 0x30
jge 0x7ff876ee52a0
cmp byte [rdx], 0x65
je 0x7ff876ee530a
cmp byte [rdx], 0x45
jne 0x7ff876ee5461
inc rdx
mov qword [rbp - 0x40], rdx
movzx r11d, byte [rbp + 0x58]
test r15b, r15b
jne 0x7ff876ee5356
test r11b, r11b
mov rcx, rdi
jne 0x7ff876ee5325
mov ecx, esi
xorps xmm1, xmm1
test rcx, rcx
js 0x7ff876ee533e
cvtsi2sd xmm1, rcx
jmp 0x7ff876ee5353
mov edx, 0xe
jmp 0x7ff876ee56ad
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r15b, 1
xor r10b, r10b
movzx ecx, byte [rdx]
cmp cl, 0x2b
je 0x7ff876ee5369
cmp cl, 0x2d
jne 0x7ff876ee5373
mov r10b, 1
inc rdx
movzx ecx, byte [rdx]
mov qword [rbp - 0x40], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x7ff876ee544d
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movsx ebx, cl
sub ebx, 0x30
movzx r9d, byte [r8]
test r10b, r10b
je 0x7ff876ee5415
lea ecx, [r14 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
cmp r9b, 0x30
jl 0x7ff876ee5411
movzx eax, r9b
cmp al, 0x39
jg 0x7ff876ee5411
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ebx, [rbx + rbx*4]
movsx eax, byte [r8]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
mov r8, rdx
cmp ebx, r10d
jle 0x7ff876ee540a
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x7ff876ee540a
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x7ff876ee5406
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x7ff876ee53f0
mov qword [rbp - 0x40], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x7ff876ee53c1
neg ebx
jmp 0x7ff876ee5466
mov edx, 0x134
sub edx, r14d
cmp r9b, 0x30
jl 0x7ff876ee5466
movzx eax, r9b
cmp al, 0x39
jg 0x7ff876ee5466
movsx eax, byte [r8]
inc r8
mov qword [rbp - 0x40], r8
lea ebx, [rbx + rbx*4]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
cmp ebx, edx
jg 0x7ff876ee54b6
movzx eax, byte [r8]
cmp al, 0x30
jge 0x7ff876ee5427
jmp 0x7ff876ee5466
sub rdx, r12
mov dword [r13 + 0x30], 0xf
mov qword [r13 + 0x38], rdx
jmp 0x7ff876ee56c6
movzx r11d, byte [rbp + 0x58]
test r15b, r15b
je 0x7ff876ee5535
lea ecx, [rbx + r14]
cmp ecx, 0xfffffecc
jge 0x7ff876ee54cb
divsd xmm1, qword [0x7ff876f57528]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x7ff876ee54ac
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x7ff876f53e40]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x7ff876f57530]
jbe 0x7ff876ee54ec
mov dword [r13 + 0x30], 0xd
mov rax, qword [rbp - 0x48]
mov qword [r13 + 0x38], rax
jmp 0x7ff876ee56c6
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x7ff876ee549b
lea rcx, [0x7ff876f53e40]
movsd xmm6, qword [rax + rcx]
mulsd xmm6, xmm1
jmp 0x7ff876ee54ac
cmp byte [rbp - 0x50], 0
je 0x7ff876ee54f9
xorps xmm6, xmmword [0x7ff876f57660]
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x7ff876ee5514
lea rcx, [rbx + 0x20]
call fcn.7ff876ee5850
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsd qword [rcx], xmm6
mov word [rcx + 0xe], 0x216
jmp 0x7ff876ee56c6
mov rbx, qword [rbp + 0x50]
add rbx, 0x20
mov rax, qword [rbx + 0x20]
sub rax, qword [rbx + 0x18]
test r11b, r11b
je 0x7ff876ee5627
cmp byte [rbp - 0x50], 0
je 0x7ff876ee55bc
neg rdi
cmp rax, 0x10
jge 0x7ff876ee5565
mov rcx, rbx
call fcn.7ff876ee5850
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov word [rcx + 0xe], 0x96
test rdi, rdi
js 0x7ff876ee55a4
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x7ff876ee560d
mov eax, 0x1d6
jmp 0x7ff876ee5609
cmp rdi, 0xffffffff80000000
jl 0x7ff876ee56c6
mov word [rcx + 0xe], 0xb6
jmp 0x7ff876ee56c6
cmp rax, 0x10
jge 0x7ff876ee55ca
mov rcx, rbx
call fcn.7ff876ee5850
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov eax, 0x116
mov word [rcx + 0xe], ax
test rdi, rdi
js 0x7ff876ee55f6
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x7ff876ee560d
or ax, 0x40
mov word [rcx + 0xe], ax
test rdi, 0xffffffff80000000
jne 0x7ff876ee56c6
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x7ff876ee56c6
cmp byte [rbp - 0x50], 0
je 0x7ff876ee566b
neg esi
cmp rax, 0x10
jge 0x7ff876ee563d
mov rcx, rbx
call fcn.7ff876ee5850
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsxd rax, esi
mov qword [rcx], rax
mov eax, 0xb6
mov edx, 0x1f6
test esi, esi
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x7ff876ee56c6
cmp rax, 0x10
jge 0x7ff876ee5679
mov rcx, rbx
call fcn.7ff876ee5850
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, esi
mov qword [rcx], rax
shr esi, 0x1a
not si
and si, 0x20
mov eax, 0x1d6
or si, ax
mov word [rcx + 0xe], si
jmp 0x7ff876ee56c6
mov edx, 3
mov ecx, 0x30
mov eax, 0x38
mov r9, r13
sub r8, r12
mov dword [rcx + r13], edx
mov qword [r13 + rax], r8
movups xmm0, xmmword [rbp - 0x40]
mov rax, qword [rbp + 0x48]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret