Function at 0x139a025c0
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, 0x40
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 xmm3, xmm3
xorps xmm1, xmm1
cmp byte [r9], 0x2d
jne 0x139a02621
inc r9
mov qword [rsp + 0x28], r9
mov r12b, 1
jmp 0x139a02624
xor r12b, r12b
xor ebp, ebp
mov ebx, ebp
xor r10b, r10b
mov byte [rsp + 0x98], r10b
mov r11d, ebp
movsx ecx, byte [r9]
cmp cl, 0x30
jne 0x139a0264f
mov edi, ebp
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
jmp 0x139a0271a
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x139a02bba
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
lea edi, [rcx - 0x30]
movzx eax, byte [rdx]
test r12b, r12b
je 0x139a026c1
cmp al, 0x30
jl 0x139a0271a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
ja 0x139a0271a
cmp edi, 0xccccccc
jb 0x139a02695
jne 0x139a0270d
mov r8, rcx
cmp al, 0x38
ja 0x139a0270d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea edi, [rdi + rdi*4]
movsx eax, byte [r8]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x139a0271a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x139a02684
jmp 0x139a0271a
cmp al, 0x30
jl 0x139a0271a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jg 0x139a0271a
nop
cmp edi, 0x19999999
jb 0x139a026e1
jne 0x139a0270d
mov r8, rcx
cmp al, 0x35
jg 0x139a0270d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea edi, [rdi + rdi*4]
movsx eax, byte [r8]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x139a0271a
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x139a026d0
jmp 0x139a0271a
mov r10b, 1
mov byte [rsp + 0x98], r10b
mov ebx, edi
xor r14b, r14b
movsd xmm2, qword [0x1399d6bb8]
test r10b, r10b
je 0x139a0285d
movzx eax, byte [rdx]
test r12b, r12b
je 0x139a027ad
cmp al, 0x30
jl 0x139a0285d
mov r8, rdx
cmp al, 0x39
jg 0x139a0285d
mov rcx, rdx
movabs r9, 0xccccccccccccccc
cmp rbx, r9
jb 0x139a02764
jne 0x139a02798
mov rcx, r8
cmp al, 0x38
ja 0x139a02798
lea rdx, [rcx + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x139a0285d
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
jle 0x139a02756
jmp 0x139a0285d
mov rcx, rbx
mov r14b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x139a0280f
cvtsi2sd xmm1, rcx
jmp 0x139a02824
cmp al, 0x30
jl 0x139a0285d
mov r9, rdx
cmp al, 0x39
jg 0x139a0285d
mov r8, rdx
movabs rsi, 0x1999999999999999
nop dword [rax]
mov rcx, rbx
cmp rbx, rsi
jb 0x139a027e1
jne 0x139a0279b
mov r8, r9
cmp al, 0x35
ja 0x139a0279b
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r11d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x139a0285d
mov r9, rdx
mov r8, rdx
cmp al, 0x39
jle 0x139a027d0
jmp 0x139a0285d
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 0x139a0285d
mov rcx, rdx
nop
cmp al, 0x39
ja 0x139a0285d
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 0x139a02830
mov esi, ebp
movzx eax, byte [rdx]
cmp al, 0x2e
jne 0x139a0286e
inc rdx
mov qword [rsp + 0x28], rdx
mov rcx, rdx
cmp al, 0x2e
jne 0x139a02995
movzx r9d, byte [rdx]
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x139a029c9
mov r8, rdx
test r14b, r14b
jne 0x139a0291b
test r10b, r10b
jne 0x139a0289c
mov ebx, edi
mov r9, rcx
movzx eax, byte [rdx]
movabs r14, 0x1fffffffffffff
nop dword [rax]
cmp al, 0x39
jg 0x139a028ed
mov r8, r9
cmp rbx, r14
ja 0x139a028ed
lea rdx, [rcx + 1]
mov r8, rdx
mov qword [rsp + 0x28], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
dec esi
test rbx, rbx
je 0x139a028e0
inc r11d
movzx eax, byte [rdx]
mov rcx, rdx
mov r9, rdx
cmp al, 0x30
jge 0x139a028b0
xorps xmm1, xmm1
test rbx, rbx
js 0x139a028fc
cvtsi2sd xmm1, rbx
jmp 0x139a02914
mov rcx, rbx
shr rcx, 1
mov rax, rbx
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 0x139a02995
mov r10, r8
mov r9, r8
movzx eax, byte [rdx]
nop dword [rax]
mov rcx, r9
cmp al, 0x39
jg 0x139a0298c
cmp r11d, 0x11
jge 0x139a02970
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 esi
comisd xmm0, xmm3
jbe 0x139a0297c
inc r11d
jmp 0x139a0297c
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 0x139a02930
movzx r10d, byte [rsp + 0x98]
cmp byte [rcx], 0x65
je 0x139a029a3
cmp byte [rcx], 0x45
jne 0x139a02ab4
inc rcx
mov qword [rsp + 0x28], rcx
test r14b, r14b
jne 0x139a029f5
test r10b, r10b
mov rdx, rbx
jne 0x139a029ba
mov edx, edi
xorps xmm1, xmm1
test rdx, rdx
js 0x139a029dd
cvtsi2sd xmm1, rdx
jmp 0x139a029f2
mov dword [r13 + 0x30], recv
sub rcx, r15
mov qword [r13 + 0x38], rcx
jmp 0x139a02bc9
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 0x139a02a08
cmp dl, 0x2d
jne 0x139a02a13
mov r9b, 1
inc rcx
movzx edx, byte [rcx]
mov qword [rsp + 0x28], rcx
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x139a02b2c
lea r8, [rcx + 1]
mov qword [rsp + 0x28], r8
movsx ebp, dl
sub ebp, 0x30
movzx r10d, byte [r8]
test r9b, r9b
je 0x139a02ae8
lea ecx, [rsi + 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 0x139a02ab2
movzx eax, r10b
cmp al, 0x39
jg 0x139a02ab2
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 0x139a02aab
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x139a02aab
mov rcx, rdx
nop
cmp al, 0x39
ja 0x139a02aa6
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x139a02a90
mov qword [rsp + 0x28], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x139a02a61
neg ebp
test r14b, r14b
je 0x139a02b5e
lea edx, [rsi + rbp]
movaps xmm0, xmm1
call fcn.1399fef00
comisd xmm0, xmmword [0x1399d6c10]
jbe 0x139a02b40
mov dword [r13 + 0x30], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x20]
mov qword [r13 + 0x38], rax
jmp 0x139a02bc9
mov r9d, 0x134
sub r9d, esi
cmp r10b, 0x30
jl 0x139a02ab4
movzx eax, r10b
nop dword [rax + rax]
cmp al, 0x39
jg 0x139a02ab4
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 0x139a02ad2
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x30
jge 0x139a02b00
jmp 0x139a02ab4
sub rcx, r15
mov dword [r13 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x38], rcx
jmp 0x139a02bc9
test r12b, r12b
je 0x139a02b4c
xorps xmm0, xmmword [0x1399d6e70]
movaps xmm1, xmm0
mov rcx, qword [rsp + 0x90]
call fcn.139a02d70
jmp 0x139a02ba3
mov rcx, qword [rsp + 0x90]
cmp byte [rsp + 0x98], 0
je 0x139a02b8c
test r12b, r12b
je 0x139a02b82
neg rbx
mov rdx, rbx
call fcn.139a02e60
jmp 0x139a02ba3
mov rdx, rbx
call fcn.139a02dd0
jmp 0x139a02ba3
test r12b, r12b
je 0x139a02b9c
neg edi
mov edx, edi
call fcn.139a02f70
jmp 0x139a02ba3
mov edx, edi
call fcn.139a02f10
test al, al
jne 0x139a02bc9
mov dword [r13 + 0x30], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
mov qword [r13 + 0x38], rax
jmp 0x139a02bc9
mov dword [r13 + 0x30], 3
sub r9, r15
mov qword [r13 + 0x38], r9
movups xmm0, xmmword [rsp + 0x28]
mov rax, qword [rsp + 0x88]
movups xmmword [rax], xmm0
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret