Function at 0x140024b60
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 0x140024bc1
inc r9
mov qword [rsp + 0x28], r9
mov r12b, 1
jmp 0x140024bc4
xor r12b, r12b
xor esi, esi
mov r10d, esi
xor r11b, r11b
mov byte [rsp + 0x98], r11b
mov ebx, esi
movsx ecx, byte [r9]
cmp cl, 0x30
jne 0x140024bef
mov edi, esi
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
jmp 0x140024cba
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x14002516c
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
lea edi, [rcx - 0x30]
movzx eax, byte [rdx]
test r12b, r12b
je 0x140024c60
cmp al, 0x30
jl 0x140024cba
mov r8, rdx
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x140024cba
cmp edi, 0xccccccc
jb 0x140024c39
jne 0x140024cac
mov r8, rcx
cmp al, 0x38
ja 0x140024cac
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [r8]
lea edi, [rax + rcx*2]
inc ebx
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140024c20
jmp 0x140024cba
cmp al, 0x30
jl 0x140024cba
mov r8, rdx
mov rcx, rdx
nop word [rax + rax]
cmp al, 0x39
jg 0x140024cba
cmp edi, 0x19999999
jb 0x140024c85
jne 0x140024cac
mov r8, rcx
cmp al, 0x35
jg 0x140024cac
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [r8]
lea edi, [rax + rcx*2]
inc ebx
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140024c70
jmp 0x140024cba
mov r11b, 1
mov byte [rsp + 0x98], r11b
mov r10d, edi
xor r14b, r14b
movsd xmm2, qword [0x1404e2a38]
test r11b, r11b
je 0x140024e10
test r12b, r12b
je 0x140024d4d
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x140024e10
mov r8, rdx
mov r9, rdx
movabs r11, 0xccccccccccccccc
nop
cmp cl, 0x39
ja 0x140024e10
cmp r10, r11
jb 0x140024d08
jne 0x140024d35
mov r8, r9
cmp cl, 0x38
ja 0x140024d35
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
inc ebx
mov r8, rdx
mov r9, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x140024cf0
jmp 0x140024e10
mov rcx, r10
mov r14b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x140024db9
cvtsi2sd xmm1, rcx
jmp 0x140024dce
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x140024e10
mov r9, rdx
mov r11, rdx
movabs rbp, 0x1999999999999999
nop dword [rax + rax]
mov rcx, r10
cmp r8b, 0x39
ja 0x140024e10
cmp r10, rbp
jb 0x140024d8d
jne 0x140024d38
mov r9, r11
cmp r8b, 0x35
ja 0x140024d38
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r9]
sub ecx, 0x30
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
inc ebx
mov r9, rdx
mov r11, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x140024d70
jmp 0x140024e10
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 0x140024e10
mov r8, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x140024e10
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], 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 0x140024de0
mov ebp, esi
cmp byte [rdx], 0x2e
jne 0x140024f3b
lea r9, [rdx + 1]
mov qword [rsp + 0x28], r9
movzx ecx, byte [r9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140024f74
mov rdx, r9
test r14b, r14b
jne 0x140024eca
cmp byte [rsp + 0x98], sil
jne 0x140024e4c
mov r10d, edi
mov rcx, r9
mov r8, r9
movzx eax, byte [r9]
movabs r11, 0x1fffffffffffff
cmp al, 0x39
jg 0x140024e9d
mov rdx, r8
cmp r10, r11
ja 0x140024e9d
lea r9, [rcx + 1]
mov rdx, r9
mov qword [rsp + 0x28], r9
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
dec ebp
test r10, r10
je 0x140024e8f
inc ebx
movzx eax, byte [r9]
mov rcx, r9
mov r8, rdx
cmp al, 0x30
jge 0x140024e60
xorps xmm1, xmm1
test r10, r10
js 0x140024eac
cvtsi2sd xmm1, r10
jmp 0x140024ec4
mov rcx, r10
shr rcx, 1
mov rax, r10
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r14b, 1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x140024f3b
mov rax, rdx
mov r11, rdx
mov r8, rdx
movzx ecx, byte [r9]
nop dword [rax]
mov rdx, r8
cmp cl, 0x39
jg 0x140024f3b
cmp ebx, 0x11
jge 0x140024f1e
lea rdx, [rax + 1]
mov rcx, rdx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rax]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec ebp
comisd xmm0, xmm3
jbe 0x140024f2a
inc ebx
jmp 0x140024f2a
lea rdx, [r11 + 1]
mov rcx, rdx
mov qword [rsp + 0x28], rdx
mov rax, rdx
movzx ecx, byte [rcx]
mov r11, rdx
mov r8, rdx
cmp cl, 0x30
jge 0x140024ee0
cmp byte [rdx], 0x65
je 0x140024f49
cmp byte [rdx], 0x45
jne 0x140025054
inc rdx
mov qword [rsp + 0x28], rdx
test r14b, r14b
jne 0x140024f96
cmp byte [rsp + 0x98], sil
mov rcx, r10
jne 0x140024f65
mov ecx, edi
xorps xmm1, xmm1
test rcx, rcx
js 0x140024f7e
cvtsi2sd xmm1, rcx
jmp 0x140024f93
mov ecx, ntohs
jmp 0x140025171
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r14b, 1
xor r11b, r11b
movzx ecx, byte [rdx]
cmp cl, 0x2b
je 0x140024fa9
cmp cl, 0x2d
jne 0x140024fb4
mov r11b, 1
inc rdx
movzx ecx, byte [rdx]
mov qword [rsp + 0x28], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400250de
lea r8, [rdx + 1]
mov qword [rsp + 0x28], r8
movsx esi, cl
sub esi, 0x30
movzx r9d, byte [r8]
test r11b, r11b
je 0x14002508c
lea ecx, [rbp + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r11d, edx
sar r11d, 2
mov eax, r11d
shr eax, 0x1f
add r11d, eax
cmp r9b, 0x30
jl 0x140025052
movzx eax, r9b
cmp al, 0x39
jg 0x140025052
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]
mov r8, rdx
cmp esi, r11d
jle 0x14002504b
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14002504b
mov rcx, rdx
nop
cmp al, 0x39
ja 0x140025046
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x140025030
mov qword [rsp + 0x28], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x140025002
neg esi
test r14b, r14b
je 0x140025110
lea edx, [rsi + rbp]
movaps xmm0, xmm1
call fcn.140021ab0
comisd xmm0, xmmword [0x1404e2ab8]
jbe 0x1400250f2
mov dword [r13 + 0x30], reloc.WS2_32.dll_listen
mov r9, qword [rsp + 0x20]
mov qword [r13 + 0x38], r9
jmp 0x140025188
mov edx, 0x134
sub edx, ebp
cmp r9b, 0x30
jl 0x140025054
movzx eax, r9b
nop dword [rax]
cmp al, 0x39
jg 0x140025054
movsx eax, byte [r8]
inc r8
mov qword [rsp + 0x28], r8
lea esi, [rsi + rsi*4]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
cmp esi, edx
jg 0x1400250c7
movzx eax, byte [r8]
cmp al, 0x30
jge 0x1400250a0
jmp 0x140025054
lea rax, [r13 + 0x30]
lea rdx, [rax + 8]
mov ecx, reloc.WS2_32.dll_listen
mov r9, qword [rsp + 0x20]
jmp 0x140025183
sub rdx, r15
mov dword [r13 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x38], rdx
jmp 0x140025188
test r12b, r12b
je 0x1400250fe
xorps xmm0, xmmword [0x1404e2fa0]
movaps xmm1, xmm0
mov rcx, qword [rsp + 0x90]
call fcn.140025320
jmp 0x140025155
mov rcx, qword [rsp + 0x90]
cmp byte [rsp + 0x98], 0
je 0x14002513e
test r12b, r12b
je 0x140025134
neg r10
mov rdx, r10
call fcn.140025410
jmp 0x140025155
mov rdx, r10
call fcn.140025380
jmp 0x140025155
test r12b, r12b
je 0x14002514e
neg edi
mov edx, edi
call fcn.140025520
jmp 0x140025155
mov edx, edi
call fcn.1400254c0
test al, al
jne 0x140025188
mov dword [r13 + 0x30], reloc.WS2_32.dll_recv
mov r9, qword [rsp + 0x20]
mov qword [r13 + 0x38], r9
jmp 0x140025188
mov ecx, 3
lea rax, [r13 + 0x30]
mov edx, 8
mov r8, rax
sub r9, r15
add rdx, rax
mov dword [rax], ecx
mov qword [rdx], 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