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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [section..data]
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 [0x468e60]
mov eax, ecx
mov dword [ebp - 0x718], ebx
mov dword [ebp - 0x714], eax
test edi, edi
je 0x4104ec
mov ecx, dword [edi + 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410496
test dl, dl
je 0x410492
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410496
add ecx, 2
add eax, 2
test dl, dl
jne 0x410476
xor eax, eax
jmp 0x41049b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4104a4
cmp dword [edi + 0x10], ebx
je 0x4104b2
mov edi, dword [edi]
test edi, edi
je 0x4104ec
mov eax, dword [ebp - 0x714]
jmp 0x410473
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 8]
push eax
call fcn.0043e040
add esp, 4
push eax
call fcn.00435950
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.004339c8
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41059e
mov ecx, esi
test ebx, ebx
je 0x410511
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410500
sub ecx, edx
sar ecx, 1
jmp 0x41051d
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410514
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.0043e040
add esp, 4
push eax
call fcn.00435950
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.0043ddcd
push dword [ebp - 0x714]
mov esi, eax
call fcn.004378af
mov ecx, dword [0x468e60]
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 [0x468e60], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
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
call dword [sym.imp.USER32.dll_GetDesktopWindow]
movups xmm0, xmmword [str._Using_Smart_Card_]
mov dword [ebp - 0x728], eax
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
movups xmmword [ebp - 0x700], xmm0
call fcn.00434ed0
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
call fcn.00434ed0
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 0x41058b
xor esi, esi
test ebx, ebx
je 0x410688
lea eax, [ebp - 0x30c]
push eax
call fcn.0043ddd8
jmp 0x4106db
push 0x100
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00434ed0
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 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4106e0
lea eax, [ebp - 0x108]
push eax
call fcn.004378af
mov esi, eax
add esp, 4
mov ecx, 0x202
lea eax, [ebp - 0x30c]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4106f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004339c8
mov esp, ebp
pop ebp
ret