Function at 0x18000d2d0
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
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov r13, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdx
movq r9, xmm0
mov rax, r9
psrldq xmm0, 8
movq r15, xmm0
sub rax, r15
mov qword [rsp + 0x20], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [r9], 0x2d
jne 0x18000d336
inc r9
mov qword [rsp + 0x28], r9
mov r12b, 1
jmp 0x18000d339
xor r12b, r12b
xor ebp, ebp
mov edi, ebp
xor r10b, r10b
mov byte [rsp + 0xa8], r10b
mov r11d, ebp
movsx ecx, byte [r9]
cmp cl, 0x30
jne 0x18000d364
mov esi, ebp
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
jmp 0x18000d43a
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x18000da85
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r12b, r12b
je 0x18000d3e1
cmp al, 0x30
jl 0x18000d43a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
ja 0x18000d43a
nop dword [rax]
cmp esi, 0xccccccc
jb 0x18000d3b5
jne 0x18000d42d
mov r8, rcx
cmp al, 0x38
ja 0x18000d42d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea esi, [rsi + rsi*4]
movsx eax, byte [r8]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d43a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x18000d3a0
jmp 0x18000d43a
cmp al, 0x30
jl 0x18000d43a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jg 0x18000d43a
nop
cmp esi, 0x19999999
jb 0x18000d401
jne 0x18000d42d
mov r8, rcx
cmp al, 0x35
jg 0x18000d42d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea esi, [rsi + rsi*4]
movsx eax, byte [r8]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d43a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x18000d3f0
jmp 0x18000d43a
mov r10b, 1
mov byte [rsp + 0xa8], r10b
mov edi, esi
xor r14b, r14b
movsd xmm2, qword [0x18005b180]
test r10b, r10b
je 0x18000d57d
movzx eax, byte [rdx]
test r12b, r12b
je 0x18000d4cd
cmp al, 0x30
jl 0x18000d57d
mov r8, rdx
cmp al, 0x39
jg 0x18000d57d
mov rcx, rdx
movabs r9, 0xccccccccccccccc
cmp rdi, r9
jb 0x18000d484
jne 0x18000d4b8
mov rcx, r8
cmp al, 0x38
ja 0x18000d4b8
lea rdx, [rcx + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d57d
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
jle 0x18000d476
jmp 0x18000d57d
mov rcx, rdi
mov r14b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x18000d52f
cvtsi2sd xmm1, rcx
jmp 0x18000d544
cmp al, 0x30
jl 0x18000d57d
mov r9, rdx
cmp al, 0x39
jg 0x18000d57d
mov r8, rdx
movabs rbx, 0x1999999999999999
nop dword [rax]
mov rcx, rdi
cmp rdi, rbx
jb 0x18000d501
jne 0x18000d4bb
mov r8, r9
cmp al, 0x35
ja 0x18000d4bb
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d57d
mov r9, rdx
mov r8, rdx
cmp al, 0x39
jle 0x18000d4f0
jmp 0x18000d57d
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d57d
mov rcx, rdx
nop
cmp al, 0x39
ja 0x18000d57d
lea rdx, [rcx + 1]
mov qword [rsp + 0x28], rdx
movsx eax, byte [rcx]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
movzx eax, byte [rdx]
mov rcx, rdx
cmp al, 0x30
jge 0x18000d550
mov ebx, ebp
movzx eax, byte [rdx]
cmp al, 0x2e
jne 0x18000d58e
inc rdx
mov qword [rsp + 0x28], rdx
mov rcx, rdx
cmp al, 0x2e
jne 0x18000d6b5
movzx r9d, byte [rdx]
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x18000d6e9
mov r8, rdx
test r14b, r14b
jne 0x18000d63b
test r10b, r10b
jne 0x18000d5bc
mov edi, esi
mov r9, rcx
movzx eax, byte [rdx]
movabs r14, 0x1fffffffffffff
nop dword [rax]
cmp al, 0x39
jg 0x18000d60d
mov r8, r9
cmp rdi, r14
ja 0x18000d60d
lea rdx, [rcx + 1]
mov r8, rdx
mov qword [rsp + 0x28], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
dec ebx
test rdi, rdi
je 0x18000d600
inc r11d
movzx eax, byte [rdx]
mov rcx, rdx
mov r9, rdx
cmp al, 0x30
jge 0x18000d5d0
xorps xmm1, xmm1
test rdi, rdi
js 0x18000d61c
cvtsi2sd xmm1, rdi
jmp 0x18000d634
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r14b, 1
movzx r9d, byte [r8]
mov rcx, r8
cmp r9b, 0x30
jl 0x18000d6b5
mov r10, r8
mov r9, r8
movzx eax, byte [rdx]
nop dword [rax]
mov rcx, r9
cmp al, 0x39
jg 0x18000d6ac
cmp r11d, 0x11
jge 0x18000d690
lea rcx, [r8 + 1]
mov rdx, rcx
mov qword [rsp + 0x28], rcx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec ebx
comisd xmm0, xmm6
jbe 0x18000d69c
inc r11d
jmp 0x18000d69c
lea rcx, [r10 + 1]
mov rdx, rcx
mov qword [rsp + 0x28], rcx
mov r8, rcx
movzx eax, byte [rdx]
mov r10, rcx
mov r9, rcx
cmp al, 0x30
jge 0x18000d650
movzx r10d, byte [rsp + 0xa8]
cmp byte [rcx], 0x65
je 0x18000d6c3
cmp byte [rcx], 0x45
jne 0x18000d7d4
inc rcx
mov qword [rsp + 0x28], rcx
test r14b, r14b
jne 0x18000d715
test r10b, r10b
mov rdx, rdi
jne 0x18000d6da
mov edx, esi
xorps xmm1, xmm1
test rdx, rdx
js 0x18000d6fd
cvtsi2sd xmm1, rdx
jmp 0x18000d712
mov dword [r13 + 0x30], 0xe
sub rcx, r15
mov qword [r13 + 0x38], rcx
jmp 0x18000da94
mov rax, rdx
shr rax, 1
and edx, 1
or rax, rdx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r14b, 1
xor r9b, r9b
movzx edx, byte [rcx]
cmp dl, 0x2b
je 0x18000d728
cmp dl, 0x2d
jne 0x18000d733
mov r9b, 1
inc rcx
movzx edx, byte [rcx]
mov qword [rsp + 0x28], rcx
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x18000d887
lea r8, [rcx + 1]
mov qword [rsp + 0x28], r8
movsx ebp, dl
sub ebp, 0x30
movzx r10d, byte [r8]
test r9b, r9b
je 0x18000d841
lea ecx, [rbx + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r9d, edx
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
cmp r10b, 0x30
jl 0x18000d7d2
movzx eax, r10b
cmp al, 0x39
jg 0x18000d7d2
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ebp, [rbp + rbp*4]
movsx eax, byte [r8]
lea ebp, [rbp - 0x18]
lea ebp, [rax + rbp*2]
mov r8, rdx
cmp ebp, r9d
jle 0x18000d7cb
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000d7cb
mov rcx, rdx
nop
cmp al, 0x39
ja 0x18000d7c6
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x18000d7b0
mov qword [rsp + 0x28], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x18000d781
neg ebp
test r14b, r14b
je 0x18000d90e
lea ecx, [rbx + rbp]
cmp ecx, 0xfffffecc
jge 0x18000d89b
divsd xmm1, qword [0x18005b210]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x18000d81d
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x180058800]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x18005b218]
jbe 0x18000d8c2
mov dword [r13 + 0x30], 0xd
mov rax, qword [rsp + 0x20]
mov qword [r13 + 0x38], rax
jmp 0x18000da94
mov r9d, 0x134
sub r9d, ebx
cmp r10b, 0x30
jl 0x18000d7d4
movzx eax, r10b
cmp al, 0x39
jg 0x18000d7d4
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ebp, [rbp + rbp*4]
movsx eax, byte [r8]
lea ebp, [rbp - 0x18]
lea ebp, [rax + rbp*2]
cmp ebp, r9d
jg 0x18000d82b
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x30
jge 0x18000d854
jmp 0x18000d7d4
sub rcx, r15
mov dword [r13 + 0x30], 0xf
mov qword [r13 + 0x38], rcx
jmp 0x18000da94
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x18000d80c
lea rcx, [0x180058800]
movaps xmm6, xmm1
mulsd xmm6, qword [rax + rcx]
jmp 0x18000d81d
test r12b, r12b
je 0x18000d8ce
xorps xmm6, xmmword [0x18005b750]
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x18000d8ed
lea rcx, [rbx + 0x20]
call fcn.18000df00
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 0x18000da94
mov rbx, qword [rsp + 0xa0]
add rbx, 0x20
mov rax, qword [rbx + 0x20]
sub rax, qword [rbx + 0x18]
cmp byte [rsp + 0xa8], 0
je 0x18000da08
test r12b, r12b
je 0x18000d99d
neg rdi
cmp rax, 0x10
jge 0x18000d946
mov rcx, rbx
call fcn.18000df00
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 0x18000d985
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x18000d9ee
mov eax, 0x1d6
jmp 0x18000d9ea
cmp rdi, 0xffffffff80000000
jl 0x18000da94
mov word [rcx + 0xe], 0xb6
jmp 0x18000da94
cmp rax, 0x10
jge 0x18000d9ab
mov rcx, rbx
call fcn.18000df00
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 0x18000d9d7
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x18000d9ee
or ax, 0x40
mov word [rcx + 0xe], ax
test rdi, 0xffffffff80000000
jne 0x18000da94
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x18000da94
test r12b, r12b
je 0x18000da4b
neg esi
cmp rax, 0x10
jge 0x18000da1d
mov rcx, rbx
call fcn.18000df00
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 0x18000da94
cmp rax, 0x10
jge 0x18000da59
mov rcx, rbx
call fcn.18000df00
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
or si, 0x1d6
mov word [rcx + 0xe], si
jmp 0x18000da94
mov dword [r13 + 0x30], 3
sub r9, r15
mov qword [r13 + 0x38], r9
movups xmm0, xmmword [rsp + 0x28]
mov rax, qword [rsp + 0x98]
movups xmmword [rax], xmm0
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret