Function at 0x402a4c
Capabilities:
Encode data using base64
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x100]
xor esi, esi
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 1], 0
mov byte [ebp - 9], 0
mov word [edi + 0xc0], 0x14
mov byte [edi + 0xc4], 0
mov dword [edi + 0xe0], esi
mov dword [edi + 0x78], esi
mov dword [edi + 0x7c], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x1388
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.00412c3e
mov eax, dword [ebp - 0x3c]
cmp eax, esi
mov dword [edi + 0x88], eax
mov dword [ebp - 0x20], esi
jle 0x403383
mov eax, dword [ebp - 0x20]
test eax, eax
jl 0x402ada
cmp eax, dword [ebp - 0x3c]
jge 0x402ada
mov ecx, dword [ebp - 0x48]
lea ebx, [ecx + eax*8]
jmp 0x402adc
xor ebx, ebx
cmp byte [ebx], 0xb
mov dword [ebp - 0x18], ebx
jne 0x402b20
cmp byte [ebx + 1], 3
jb 0x402b20
mov dword [edi + 0xe4], 1
mov eax, dword [ebx + 4]
mov ax, word [eax]
mov word [edi + 0xe8], ax
mov eax, dword [ebx + 4]
movzx eax, byte [eax + 2]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fmul qword [0x416380]
fdiv qword [0x4163a8]
fstp dword [edi + 0xec]
mov al, byte [ebx]
cmp al, 1
je 0x402b2a
cmp al, 0x32
jne 0x402b54
xor ecx, ecx
cmp byte [ebx + 1], cl
jbe 0x402b54
mov eax, dword [ebx + 4]
movzx eax, byte [ecx + eax]
shr eax, 1
and eax, 0x3f
cmp eax, dword [edi + 0xbc]
jbe 0x402b4b
mov dword [edi + 0xbc], eax
movzx eax, byte [ebx + 1]
inc ecx
cmp ecx, eax
jb 0x402b31
cmp byte [ebx], 7
jne 0x402b84
cmp byte [ebx + 1], 2
jb 0x402b84
mov eax, dword [ebx + 4]
movzx ax, byte [eax]
mov word [edi + 0x1304], ax
mov eax, dword [ebx + 4]
movzx ax, byte [eax + 1]
and word [edi + 0x1308], 0
mov word [edi + 0x1306], ax
mov al, byte [ebx]
cmp al, 0xbf
je 0x402b8e
cmp al, 0xc0
jne 0x402b99
or dword [edi + 0x78], 0x10
mov dword [edi + 0x74], 8
cmp byte [ebx], 0xff
jne 0x402bb6
mov eax, dword [ebx + 4]
mov al, byte [eax]
cmp al, 0x23
je 0x402bab
cmp al, 0x24
jne 0x402bb6
or dword [edi + 0x78], 0x20
mov dword [edi + 0x74], 9
mov al, byte [ebx]
cmp al, 0x2a
je 0x402bc0
cmp al, 0x2f
jne 0x402bc4
or dword [edi + 0x78], 4
mov al, byte [ebx]
cmp al, 0x2d
je 0x402bce
cmp al, 0x3d
jne 0x402bd2
or dword [edi + 0x78], 8
mov al, byte [ebx]
cmp al, 0x36
jne 0x402be4
or dword [edi + 0x7c], 0x80
jmp 0x402ca3
cmp al, 7
je 0x402c9f
cmp al, 0xa
je 0x402c9f
cmp al, 0xb
jb 0x402c00
cmp al, 0xf
jbe 0x402c99
cmp al, 0x2b
je 0x402c99
cmp al, 0x2c
je 0x402c99
cmp al, 0x2e
je 0x402c99
cmp al, 0x20
jb 0x402c26
cmp al, 0x29
ja 0x402c26
or dword [edi + 0x7c], 4
jmp 0x402ca3
cmp al, 0x30
jne 0x402c30
or dword [edi + 0x7c], 8
jmp 0x402ca3
cmp al, 0x3b
jne 0x402c3d
or dword [edi + 0x7c], 0x1000
jmp 0x402ca3
cmp al, 0x33
je 0x402c93
cmp al, 0x34
je 0x402c93
cmp al, 0x4c
jne 0x402c52
or dword [edi + 0x7c], 0x800
jmp 0x402ca3
cmp al, 0x71
jb 0x402c63
cmp al, 0x77
ja 0x402c63
or dword [edi + 0x7c], 0x100
jmp 0x402ca3
cmp al, 0x65
jne 0x402c70
or dword [edi + 0x7c], 0x2000
jmp 0x402ca3
cmp al, 0x45
jne 0x402c7a
or dword [edi + 0x7c], 0x40
jmp 0x402ca3
cmp al, 0x6b
je 0x402c8a
cmp al, 0x6c
je 0x402c8a
cmp al, 0x6e
je 0x402c8a
cmp al, 0x6f
jne 0x402ca3
or dword [edi + 0x7c], 0x200
jmp 0x402ca3
or dword [edi + 0x7c], 0x20
jmp 0x402ca3
or dword [edi + 0x7c], 2
jmp 0x402ca3
or dword [edi + 0x7c], 1
cmp byte [ebx], 0x30
jne 0x402d92
mov cl, byte [ebx + 1]
cmp cl, 0xc
jb 0x402d92
mov eax, dword [ebx + 4]
movzx edx, byte [eax + 6]
movzx ecx, cl
lea esi, [edx*4 + 8]
cmp esi, ecx
mov dword [ebp - 0x14], esi
ja 0x402d2f
and dword [ebp - 8], 0
test edx, edx
jbe 0x402d2f
push 8
pop ecx
cmp byte [ecx + eax], 0
jne 0x402d18
cmp byte [ecx + eax + 1], 0xf
jne 0x402d18
cmp byte [ecx + eax + 2], 0xac
jne 0x402d18
mov esi, dword [edi + 0xd8]
cmp esi, 2
jne 0x402d01
cmp byte [ecx + eax + 3], 4
je 0x402d25
cmp esi, 4
jne 0x402d0d
cmp byte [ecx + eax + 3], 2
je 0x402d25
movzx esi, byte [ecx + eax + 3]
mov dword [edi + 0xd8], esi
inc dword [ebp - 8]
add ecx, 4
cmp dword [ebp - 8], edx
jb 0x402cdb
jmp 0x402d2f
mov dword [edi + 0xd8], 0x13
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
test edx, edx
jbe 0x402d92
movzx ebx, byte [ebx + 1]
lea esi, [ecx + 4]
cmp ebx, esi
jbe 0x402d8f
inc ecx
inc ecx
test edx, edx
jbe 0x402d8f
mov esi, edx
cmp byte [ecx + eax], 0
jne 0x402d89
cmp byte [ecx + eax + 1], 0xf
jne 0x402d89
cmp byte [ecx + eax + 2], 0xac
jne 0x402d89
lea edx, [ecx + eax + 3]
cmp byte [edx], 1
jne 0x402d71
or dword [edi + 0xe0], 6
cmp byte [edx], 8
jne 0x402d7d
or dword [edi + 0xe0], 0x10
cmp byte [edx], 2
jne 0x402d89
or dword [edi + 0xe0], 2
add ecx, 4
dec esi
jne 0x402d4d
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 0x3d
jne 0x402dab
cmp byte [ebx + 1], 2
jb 0x402dab
mov eax, dword [ebx + 4]
mov al, byte [eax + 1]
and al, 3
mov byte [edi + 0xc4], al
cmp byte [ebx], 0x2d
jne 0x402e3e
cmp byte [ebx + 1], 0xa
jbe 0x402e3e
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov dl, al
and dl, 2
sub dl, 2
neg dl
sbb edx, edx
inc edx
mov esi, edx
mov dl, al
and dl, 0x20
sub dl, 0x20
neg dl
sbb edx, edx
and al, 0x40
sub al, 0x40
inc edx
neg al
mov dword [ebp - 0x1c], edx
sbb eax, eax
inc eax
test esi, esi
mov dword [ebp - 0x10], eax
je 0x402e05
cmp word [edi + 0xc0], 0x28
jae 0x402e05
mov word [edi + 0xc0], 0x28
mov eax, dword [ecx + 3]
mov dword [ebp - 0x14], eax
xor edx, edx
xor eax, eax
inc eax
mov ecx, edx
shl eax, cl
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x402e38
push esi
push dword [ebp - 0x10]
mov eax, edx
push dword [ebp - 0x1c]
call fcn.00401e82
lea ecx, [edi + 0xbc]
add esp, 0xc
cmp eax, dword [ecx]
jbe 0x402e38
mov dword [ecx], eax
inc edx
cmp edx, 0x20
jb 0x402e0d
cmp byte [ebx], 0xff
jne 0x402f2a
mov cl, byte [ebx + 1]
test cl, cl
jbe 0x402f2a
mov eax, dword [ebx + 4]
cmp byte [eax], 0x24
jne 0x402f2a
cmp cl, 0xb
jb 0x402f2a
mov ecx, dword [edi + 0x68]
cmp ecx, 0x5a06e0
jbe 0x402f2a
cmp ecx, 0x6ddd00
jae 0x402f2a
mov dl, byte [eax + 8]
movzx ecx, byte [eax + 9]
movzx eax, byte [eax + 0xa]
mov dword [ebp - 0x10], eax
lea eax, [ecx - 3]
test al, 7
jne 0x402eac
cmp word [edi + 0xc0], 0x28
jae 0x402f00
mov word [edi + 0xc0], 0x28
jmp 0x402f00
lea eax, [ecx - 7]
test al, 0xf
jne 0x402ec8
cmp word [edi + 0xc0], 0x50
jae 0x402f00
mov word [edi + 0xc0], 0x50
jmp 0x402f00
lea eax, [ecx - 0xf]
test al, 0x1f
jne 0x402ee5
cmp word [edi + 0xc0], 0xa0
jae 0x402f00
mov word [edi + 0xc0], 0xa0
jmp 0x402f00
lea eax, [ecx + 1]
test al, 0x1f
jne 0x402f00
cmp word [edi + 0xc0], 0x140
jae 0x402f00
mov word [edi + 0xc0], 0x140
and dl, 3
cmp dl, 3
jne 0x402f21
cmp dword [ebp - 0x10], 0
je 0x402f21
cmp word [edi + 0xc0], 0x50
jne 0x402f21
mov word [edi + 0xc2], 1
mov al, byte [ebp - 0x10]
mov byte [ebp - 1], cl
mov byte [ebp - 9], al
cmp byte [ebx], 0xc0
jne 0x402ff9
cmp byte [ebx + 1], 0
jbe 0x402ff9
mov ecx, dword [edi + 0x68]
cmp ecx, 0x4c4b40
mov eax, dword [ebx + 4]
mov dl, byte [eax]
jbe 0x402ff9
cmp ecx, 0x5a06e0
jae 0x402ff9
test dl, dl
jbe 0x402f6f
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 1], cl
mov byte [ebp - 9], al
jmp 0x402f72
mov al, byte [ebp - 9]
cmp dl, 1
jne 0x402fbd
cmp word [edi + 0xc0], 0x50
jae 0x402f8a
mov word [edi + 0xc0], 0x50
cmp al, 0x32
je 0x402fa0
cmp al, 0x52
je 0x402fa0
cmp al, 0x72
je 0x402fa0
cmp al, 0xa3
je 0x402fa0
test al, al
je 0x402ff9
jmp 0x402ff0
cmp word [edi + 0xc0], 0xa0
jae 0x402fb4
mov word [edi + 0xc0], 0xa0
mov byte [ebp - 1], al
mov byte [ebp - 9], 0
jmp 0x402ff9
cmp dl, 2
jne 0x402fd8
cmp word [edi + 0xc0], 0xa0
jae 0x402ff9
mov word [edi + 0xc0], 0xa0
jmp 0x402ff9
cmp dl, 3
jne 0x402ff9
cmp word [edi + 0xc0], 0x50
jae 0x402ff0
mov word [edi + 0xc0], 0x50
mov word [edi + 0xc2], 1
cmp byte [ebx], 0xbf
jne 0x4030a7
mov eax, dword [ebp - 0x18]
cmp byte [eax + 1], 6
jbe 0x4030a7
mov eax, dword [eax + 4]
fldz
mov ecx, dword [eax]
fstp qword [ebp - 0x30]
movzx eax, word [eax + 4]
mov esi, ecx
mov ebx, ecx
shr esi, 5
shr ebx, 6
and cl, 0xc
and esi, 1
and ebx, 1
neg cl
movzx eax, ax
mov dword [ebp - 0x14], eax
sbb ecx, ecx
neg ecx
and dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 8]
shr eax, cl
and eax, 3
cmp eax, 3
je 0x403068
push dword [ebp - 0x10]
mov ecx, eax
push ebx
push esi
call fcn.00401deb
fadd qword [ebp - 0x30]
add esp, 0xc
fstp qword [ebp - 0x30]
add dword [ebp - 8], 2
cmp dword [ebp - 8], 0x10
jb 0x403043
mov eax, dword [edi + 0xbc]
fild dword [edi + 0xbc]
test eax, eax
jge 0x403088
fadd qword [0x416318]
fcomp qword [ebp - 0x30]
fnstsw ax
test ah, 5
jp 0x4030a7
fld qword [ebp - 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.00406e20
pop ecx
pop ecx
mov dword [edi + 0xbc], eax
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0xdd
jne 0x403374
cmp byte [ecx + 1], 4
jbe 0x4030dd
mov eax, dword [ecx + 4]
cmp byte [eax], 0
jne 0x4030dd
cmp byte [eax + 1], 0x50
jne 0x4030dd
cmp byte [eax + 2], 0xf2
jne 0x4030dd
cmp byte [eax + 3], 4
jne 0x4030dd
mov dword [edi + 0xdc], 2
mov bl, byte [ecx + 1]
cmp bl, 0x10
jb 0x403215
mov edx, dword [ecx + 4]
cmp byte [edx], 0
jne 0x403215
lea ecx, [edx + 1]
cmp byte [ecx], 0x50
jne 0x403215
lea eax, [edx + 2]
cmp byte [eax], 0xf2
mov dword [ebp - 0x14], eax
jne 0x403215
lea eax, [edx + 3]
cmp byte [eax], 1
mov dword [ebp - 0x34], eax
jne 0x403215
movzx esi, byte [edx + 0xa]
movzx ebx, bl
mov dword [ebp - 8], esi
lea esi, [esi*4 + 8]
cmp esi, ebx
mov dword [ebp - 0x2c], esi
ja 0x4031bc
and dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
jbe 0x4031bc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
sub dword [ebp - 0x1c], ecx
sub ebx, ecx
mov dword [ebp - 0x24], ecx
sub dword [ebp - 0x24], eax
lea esi, [eax + 0xc]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
add eax, esi
cmp byte [eax + ebx], 0
jne 0x4031a2
cmp byte [eax], 0x50
jne 0x4031a2
mov ebx, dword [ebp - 0x38]
cmp byte [eax + ebx], 0xf2
jne 0x4031a2
mov eax, dword [edi + 0xd8]
or dword [edi + 0xe0], 1
cmp eax, 2
jne 0x40318f
cmp byte [esi], 4
je 0x4031b2
cmp eax, 4
jne 0x403199
cmp byte [esi], 2
je 0x4031b2
movzx eax, byte [esi]
mov dword [edi + 0xd8], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 4
cmp eax, dword [ebp - 8]
jb 0x40315c
jmp 0x4031bc
mov dword [edi + 0xd8], 0x13
mov eax, dword [ebp - 0x2c]
movzx esi, byte [eax + edx]
test esi, esi
mov dword [ebp - 8], esi
jbe 0x403215
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + 1]
lea esi, [eax + 4]
cmp ebx, esi
jbe 0x403215
inc eax
inc eax
cmp dword [ebp - 8], 0
jbe 0x403215
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
add eax, ecx
sub edx, ecx
sub esi, ecx
sub ebx, ecx
mov ecx, dword [ebp - 8]
cmp byte [eax + edx], 0
jne 0x40320f
cmp byte [eax], 0x50
jne 0x40320f
cmp byte [eax + esi], 0xf2
jne 0x40320f
cmp byte [ebx + eax], 1
jne 0x40320f
or dword [edi + 0xe0], 4
add eax, 4
dec ecx
jne 0x4031f1
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 1]
xor ebx, ebx
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0x1388
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
call fcn.00412cb7
test eax, eax
je 0x403364
mov eax, dword [ebp - 0x58]
cmp eax, ebx
mov dword [ebp - 8], ebx
jle 0x403364
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 8], ebx
jl 0x403272
cmp dword [ebp - 8], eax
jge 0x403272
mov esi, dword [ebp - 0x10]
jmp 0x403274
xor esi, esi
cmp byte [esi], 0x44
jne 0x403292
mov eax, dword [esi + 4]
cmp byte [eax], 2
jne 0x403292
lea eax, [edi + 0xdc]
cmp dword [eax], 3
je 0x403292
mov dword [eax], 1
cmp byte [esi], 0x57
jne 0x4032a9
mov eax, dword [esi + 4]
cmp byte [eax], 1
jne 0x4032a9
mov dword [edi + 0xdc], 3
mov al, byte [esi]
cmp al, 0x23
jne 0x4032ff
push 0x1fe
lea eax, [ebp - 0x26e]
push ebx
push eax
mov word [ebp - 0x270], bx
call sub.msvcrt.dll_memset
movzx eax, byte [esi + 1]
add esp, 0xc
push eax
lea eax, [ebp - 0x270]
push eax
push dword [esi + 4]
call fcn.004075b2
add esp, 0xc
cmp word [ebp - 0x270], bx
je 0x403351
lea eax, [ebp - 0x270]
push eax
call fcn.00407a2b
mov dword [edi + 0xf4], eax
jmp 0x403351
cmp al, 0x11
jne 0x403351
push 0x1fe
lea eax, [ebp - 0x26e]
push ebx
push eax
mov word [ebp - 0x270], bx
call sub.msvcrt.dll_memset
movzx eax, byte [esi + 1]
add esp, 0xc
push eax
lea eax, [ebp - 0x270]
push eax
push dword [esi + 4]
call fcn.004075b2
add esp, 0xc
cmp word [ebp - 0x270], bx
je 0x403351
lea eax, [ebp - 0x270]
push eax
call fcn.00407a2b
mov dword [edi + 0xf8], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x10], 8
cmp dword [ebp - 8], eax
jl 0x403263
lea esi, [ebp - 0x64]
call fcn.0040804c
lea esi, [ebp - 0x70]
call fcn.00408037
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x3c]
jl 0x402ac6
cmp dword [edi + 0x78], 0
jne 0x4033aa
mov eax, dword [edi + 0x68]
cmp eax, 0x4c4b40
jbe 0x4033a3
cmp eax, 0x5a06e0
jae 0x4033a3
mov dword [edi + 0x78], 1
jmp 0x4033aa
mov dword [edi + 0x78], 2
lea eax, [edi + 0xd8]
cmp dword [eax], 0
jne 0x4033c4
cmp dword [edi + 0x80], 1
jne 0x4033c4
mov dword [eax], 6
cmp dword [eax], 6
jne 0x4033d3
mov dword [edi + 0xe0], 8
movzx eax, word [edi + 0xc0]
cdq
push 0x14
pop ecx
idiv ecx
shl eax, 2
cmp byte [ebp - 1], 0
je 0x4033ef
movzx ecx, byte [ebp - 1]
jmp 0x4033ff
mov cl, byte [edi + 0xc4]
test cl, cl
jne 0x403410
mov ecx, dword [edi + 0xd0]
cdq
sub eax, edx
sar eax, 1
mov edx, ecx
sub edx, eax
mov dword [edi + 0xc8], edx
jmp 0x403424
cmp cl, 1
jne 0x40342e
mov ecx, dword [edi + 0xd0]
add ecx, 0xfffffffe
mov dword [edi + 0xc8], ecx
add ecx, eax
mov dword [edi + 0xcc], ecx
jmp 0x40344a
cmp cl, 3
jne 0x40344a
mov ecx, dword [edi + 0xd0]
add ecx, 2
mov dword [edi + 0xcc], ecx
sub ecx, eax
mov dword [edi + 0xc8], ecx
xor eax, eax
add edi, 0xc8
inc eax
cmp dword [edi], eax
jge 0x403459
mov dword [edi], eax
lea esi, [ebp - 0x48]
call fcn.0040804c
lea esi, [ebp - 0x54]
call fcn.00408037
pop edi
pop esi
pop ebx
leave
ret