Function at 0x665b8d80
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
test edx, edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
je 0x665b8fb1
cmp byte [edx], 0
je 0x665b8fb1
mov esi, edx
lea esi, [esi]
add esi, 1
cmp byte [esi], 0
jne 0x665b8db0
sub esi, ebx
and esi, 0x3fffffff
lea edi, [esi + 2]
mov ebp, edi
sar ebp, 0x1f
test byte [esp + 0x18], 0x40
je 0x665b8f27
cmp esi, 4
jle 0x665b8f34
mov dword [esp + 8], 5
mov dword [esp + 4], str.file:
mov dword [esp], ebx
call sym._memcmp
test eax, eax
jne 0x665b8f34
mov eax, dword [esp + 0x18]
mov ecx, ebx
add esi, ebx
or eax, 0x40
mov dword [esp + 0x1c], eax
nop
lea esi, [esi]
xor eax, eax
cmp byte [ecx], 0x26
sete al
xor edx, edx
add edi, eax
adc ebp, edx
add ecx, 1
cmp ecx, esi
jne 0x665b8e10
mov dword [esp], edi
mov dword [esp + 4], ebp
call sym.libsqlite3_0.dll_sqlite3_malloc64
test eax, eax
mov edi, eax
je 0x665b8fa4
cmp byte [ebx + 5], 0x2f
je 0x665b92f3
movzx eax, byte [ebx + 5]
mov esi, 5
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ebx
jmp 0x665b8e95
cmp ecx, 1
je 0x665b8fd3
test ecx, ecx
jne 0x665b8fbf
cmp al, 0x3f
jne 0x665b8fbf
mov edi, ebp
mov ecx, 1
xor eax, eax
mov ebx, dword [esp + 0x28]
add ebp, 1
mov esi, edx
mov byte [ebx + edi], al
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
cmp al, 0x23
je 0x665b9000
test al, al
je 0x665b9000
mov edi, dword [esp + 0x18]
lea edx, [esi + 1]
add edi, edx
cmp al, 0x25
mov dword [esp + 0x20], edi
jne 0x665b8e60
movzx edi, byte [edi]
test byte [edi + 0x66626480], 8
mov ebx, edi
je 0x665b8e60
mov edi, dword [esp + 0x18]
movzx edi, byte [edi + edx + 1]
test byte [edi + 0x66626480], 8
je 0x665b8e60
movsx edx, bl
lea edi, [esi + 2]
add esi, 3
mov eax, edx
sar eax, 6
and eax, 1
lea edx, [edx + eax*8]
add eax, edx
and eax, 0xf
shl eax, 4
mov ebx, eax
mov eax, dword [esp + 0x18]
movsx edx, byte [eax + edi]
mov eax, edx
sar eax, 6
and eax, 1
lea edx, [edx + eax*8]
add eax, edx
and eax, 0xf
add eax, ebx
je 0x665b925b
mov edx, dword [esp + 0x18]
mov edi, ebp
add edx, esi
mov dword [esp + 0x20], edx
mov edx, esi
jmp 0x665b8e82
mov eax, dword [0x6661918c]
test eax, eax
jne 0x665b8dd3
mov eax, edi
mov edx, ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.libsqlite3_0.dll_sqlite3_malloc64
test eax, eax
mov edi, eax
je 0x665b8fa4
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esp + 0x18]
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
and eax, 0xffffffbf
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_vfs_find
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [edx], eax
je 0x665b9308
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x54]
mov dword [eax], edi
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
xor edx, edx
xor esi, esi
jmp 0x665b8f38
cmp ecx, 2
jne 0x665b8fcc
cmp al, 0x26
je 0x665b8e79
mov edi, ebp
jmp 0x665b8e82
cmp al, 0x26
je 0x665b8fdb
cmp al, 0x3d
jne 0x665b8fcc
mov esi, dword [esp + 0x28]
mov edi, ebp
cmp byte [esi + ebp - 1], 0
je 0x665b9212
cmp al, 0x26
je 0x665b939a
mov ecx, 2
xor eax, eax
jmp 0x665b8e82
cmp ecx, 1
mov edi, dword [esp + 0x28]
jne 0x665b9010
mov byte [edi + ebp], 0
add ebp, 1
mov byte [edi + ebp], 0
mov byte [edi + ebp + 1], 0
cmp byte [edi], 0
je 0x665b9390
mov eax, edi
add eax, 1
cmp byte [eax], 0
jne 0x665b9024
sub eax, edi
mov ecx, eax
and ecx, 0x3fffffff
add ecx, 1
add ecx, edi
cmp byte [ecx], 0
je 0x665b8f6e
mov dword [esp + 0x18], edi
mov eax, ecx
lea esi, [esi]
add eax, 1
cmp byte [eax], 0
jne 0x665b9050
sub eax, ecx
and eax, 0x3fffffff
lea edi, [ecx + eax + 1]
test edi, edi
je 0x665b920b
cmp byte [edi], 0
je 0x665b920b
mov ebx, edi
lea esi, [esi]
lea edi, [edi]
add ebx, 1
cmp byte [ebx], 0
jne 0x665b9080
sub ebx, edi
and ebx, 0x3fffffff
cmp eax, 3
je 0x665b91a9
cmp eax, 5
je 0x665b91d0
cmp eax, 4
jne 0x665b918c
mov dword [esp + 8], 4
mov dword [esp + 4], ecx
mov dword [esp], str.mode
call sym._memcmp
test eax, eax
jne 0x665b918c
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x87
mov esi, 0x66618c20
mov dword [esp + 0x28], str.access
and ebp, 0x87
mov ecx, dword [esi]
test ecx, ecx
je 0x665b911c
cmp byte [ecx], 0
mov eax, ecx
je 0x665b91a2
nop
lea esi, [esi]
add eax, 1
cmp byte [eax], 0
jne 0x665b9100
sub eax, ecx
and eax, 0x3fffffff
cmp ebx, eax
je 0x665b9154
add esi, 8
mov ecx, dword [esi]
test ecx, ecx
jne 0x665b90f0
mov eax, dword [esp + 0x28]
mov esi, edi
mov dword [esp], str.no_such__s_mode:__s
mov dword [esp + 8], esi
mov edi, dword [esp + 0x18]
mov ebx, 1
mov dword [esp + 4], eax
call sym.libsqlite3_0.dll_sqlite3_mprintf
mov edx, dword [esp + 0x58]
mov dword [edx], eax
mov dword [esp], edi
xor edi, edi
call sym.libsqlite3_0.dll_sqlite3_free
jmp 0x665b8f8a
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym._memcmp
test eax, eax
jne 0x665b9113
mov eax, dword [esi + 4]
test eax, eax
je 0x665b911c
mov ecx, eax
and cl, 0x7f
cmp ecx, ebp
jg 0x665b92c5
mov ecx, dword [esp + 0x20]
not ecx
and ecx, dword [esp + 0x1c]
or eax, ecx
mov dword [esp + 0x1c], eax
lea ecx, [edi + ebx + 1]
cmp byte [ecx], 0
jne 0x665b9048
mov edi, dword [esp + 0x18]
jmp 0x665b8f6e
xor eax, eax
jmp 0x665b910f
mov dword [esp + 8], 3
mov dword [esp + 4], ecx
mov dword [esp], 0x6661c01e
call sym._memcmp
test eax, eax
mov eax, dword [esp + 0x24]
cmove eax, edi
mov dword [esp + 0x24], eax
jmp 0x665b918c
mov dword [esp + 8], 5
mov dword [esp + 4], ecx
mov dword [esp], str.cache
call sym._memcmp
test eax, eax
jne 0x665b918c
mov ebp, 0x60000
mov dword [esp + 0x20], 0x60000
mov dword [esp + 0x28], str.cache
mov esi, 0x66618c48
jmp 0x665b90ea
xor ebx, ebx
jmp 0x665b9090
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
cmp al, 0x23
je 0x665b93df
test al, al
je 0x665b93df
mov edi, dword [esp + 0x18]
mov esi, edx
cmp byte [edi + edx - 1], 0x26
je 0x665b8e95
mov ebx, edi
add esi, 1
movzx eax, byte [ebx + esi]
test al, al
je 0x665b9252
cmp al, 0x23
je 0x665b9252
cmp byte [ebx + esi - 1], 0x26
jne 0x665b923c
mov dword [esp + 0x18], ebx
jmp 0x665b8e95
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + esi]
cmp al, 0x23
je 0x665b8e95
test al, al
je 0x665b8e95
test ecx, ecx
setne dl
cmp al, 0x3f
jne 0x665b9280
test dl, dl
je 0x665b92ad
mov ebx, dword [esp + 0x18]
cmp ecx, 1
je 0x665b92b4
cmp ecx, 2
jne 0x665b9292
cmp al, 0x26
je 0x665b92b8
add esi, 1
movzx eax, byte [ebx + esi]
cmp al, 0x23
je 0x665b9252
test al, al
je 0x665b9252
cmp al, 0x3f
jne 0x665b9284
test dl, dl
jne 0x665b9284
mov dword [esp + 0x18], ebx
xor ecx, ecx
jmp 0x665b8e95
cmp al, 0x3d
jne 0x665b928e
mov dword [esp + 0x18], ebx
movzx eax, byte [ebx + esi]
jmp 0x665b8e95
mov eax, dword [esp + 0x28]
mov esi, edi
mov dword [esp], str._s_mode_not_allowed:__s
mov dword [esp + 8], esi
mov edi, dword [esp + 0x18]
mov ebx, 3
mov dword [esp + 4], eax
call sym.libsqlite3_0.dll_sqlite3_mprintf
mov edx, dword [esp + 0x58]
mov dword [edx], eax
jmp 0x665b9145
cmp byte [ebx + 6], 0x2f
je 0x665b932c
mov eax, 0x2f
mov esi, 5
jmp 0x665b8e4e
mov eax, dword [esp + 0x24]
mov dword [esp], str.no_such_vfs:__s
mov ebx, 1
mov dword [esp + 4], eax
call sym.libsqlite3_0.dll_sqlite3_mprintf
mov edx, dword [esp + 0x58]
mov dword [edx], eax
jmp 0x665b9145
movzx eax, byte [ebx + 7]
cmp al, 0x2f
je 0x665b93d5
test al, al
je 0x665b93d5
mov edx, 7
jmp 0x665b934d
cmp al, 0x2f
je 0x665b9359
mov edx, esi
movzx eax, byte [ebx + edx + 1]
lea esi, [edx + 1]
test al, al
jne 0x665b9347
cmp esi, 0x10
lea ebp, [ebx + 7]
jne 0x665b93ae
mov dword [esp + 8], 9
mov dword [esp + 4], ebp
mov dword [esp], str.localhost
mov dword [esp + 0x18], edx
call sym._memcmp
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x665b93ae
movzx eax, byte [ebx + 0x10]
jmp 0x665b8e4e
mov ecx, 1
jmp 0x665b9039
mov eax, dword [esp + 0x28]
add ebp, 1
mov byte [eax + edi], 0
mov edi, ebp
xor eax, eax
jmp 0x665b8e82
lea eax, [edx - 6]
mov dword [esp + 8], ebp
mov dword [esp], str.invalid_uri_authority:__.s
mov ebx, 1
mov dword [esp + 4], eax
call sym.libsqlite3_0.dll_sqlite3_mprintf
mov edx, dword [esp + 0x58]
mov dword [edx], eax
jmp 0x665b9145
mov esi, 7
jmp 0x665b8e4e
mov esi, edx
jmp 0x665b8e95