Function at 0x410420
Capabilities:
Encrypt data using dpapi
Prompt user for credentials

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [0x467004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, dword [0x468e20]
mov eax, ecx
mov dword [ebp - 0x718], ebx
mov dword [ebp - 0x714], eax
test edi, edi
je 0x41048b
mov ecx, dword [edi + 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410476
test dl, dl
je 0x410472
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410476
add ecx, 2
add eax, 2
test dl, dl
jne 0x410456
xor eax, eax
jmp 0x41047b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4104b1
mov edi, dword [edi]
mov eax, dword [ebp - 0x714]
test edi, edi
jne 0x410453
test esi, esi
je 0x41057a
mov ecx, esi
test ebx, ebx
je 0x4104eb
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4104a0
sub ecx, edx
sar ecx, 1
jmp 0x4104f9
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 8]
push eax
call fcn.0043dd90
add esp, 4
push eax
call fcn.004356a0
add esp, 0xc
mov esi, eax
push 0
push dword [edi + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433718
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4104f0
sub ecx, edx
lea eax, [ecx*2 + 2]
inc ecx
test ebx, ebx
cmovne ecx, eax
mov ebx, ecx
push ecx
and ebx, 0xfffffff0
add ebx, 0x10
push esi
push ebx
call fcn.0043dd90
add esp, 4
push eax
call fcn.004356a0
add esp, 0xc
mov edi, eax
push 0
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptProtectMemory]
push 0x18
push 1
call fcn.0043db1d
push dword [ebp - 0x714]
mov esi, eax
call fcn.00437601
mov ecx, dword [0x468e20]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x718]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi], ecx
mov dword [0x468e20], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433718
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [str._Using_Smart_Card_]
mov eax, dword [0x45f814]
mov dword [ebp - 0x6f0], eax
mov ax, word [0x45f818]
movups xmmword [ebp - 0x710], xmm0
push 0x3de
movups xmm0, xmmword [0x45f804]
mov word [ebp - 0x6ec], ax
lea eax, [ebp - 0x6ea]
push 0
push eax
mov dword [ebp - 0x728], 0
mov dword [ebp - 0x71c], 0
mov dword [ebp - 0x72c], 0x14
mov dword [ebp - 0x720], str.PuTTY_Authentication
mov dword [ebp - 0x724], str.Please_Enter_Your_Smart_Card_Credentials
movups xmmword [ebp - 0x700], xmm0
call fcn.00434c20
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
call fcn.00434c20
add esp, 0x18
lea eax, [ebp - 0x30c]
push 0x140000
push 0
push 0x101
push eax
push 0x202
lea eax, [ebp - 0x710]
push eax
push 0
push 0
push str.Smart_Card
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
test eax, eax
jne 0x410567
test ebx, ebx
je 0x410660
lea eax, [ebp - 0x30c]
push eax
call fcn.0043db28
jmp 0x4106ac
push 0x100
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00434c20
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0
push 0x101
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
call fcn.00437601
mov edx, eax
add esp, 4
mov ecx, 0x202
lea eax, [ebp - 0x30c]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4106c0
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433718
mov esp, ebp
pop ebp
ret