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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [0x4fc040]
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 [0x5000b4]
mov eax, ecx
mov dword [ebp - 0x718], ebx
mov dword [ebp - 0x714], eax
test edi, edi
je 0x4630bc
mov ecx, dword [edi + 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x463066
test dl, dl
je 0x463062
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x463066
add ecx, 2
add eax, 2
test dl, dl
jne 0x463046
xor eax, eax
jmp 0x46306b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x463074
cmp dword [edi + 0x10], ebx
je 0x463082
mov edi, dword [edi]
test edi, edi
je 0x4630bc
mov eax, dword [ebp - 0x714]
jmp 0x463043
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 8]
push eax
call fcn.004a6e5e
add esp, 4
push eax
call fcn.00497c70
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.00495b16
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x46316e
mov ecx, esi
test ebx, ebx
je 0x4630e1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4630d0
sub ecx, edx
sar ecx, 1
jmp 0x4630ed
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4630e4
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.004a6e5e
add esp, 4
push eax
call fcn.00497c70
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.004a6b97
push dword [ebp - 0x714]
mov esi, eax
call fcn.004a6c01
mov ecx, dword [0x5000b4]
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 [0x5000b4], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
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 [0x4ee3fc]
mov dword [ebp - 0x6f0], eax
mov ax, word [0x4ee400]
movups xmmword [ebp - 0x710], xmm0
push 0x3de
movups xmm0, xmmword [0x4ee3ec]
mov word [ebp - 0x6ec], ax
lea eax, [ebp - 0x6ea]
push 0
push eax
movups xmmword [ebp - 0x700], xmm0
call fcn.00497aa0
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
call fcn.00497aa0
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 0x46315b
xor esi, esi
test ebx, ebx
je 0x463258
lea eax, [ebp - 0x30c]
push eax
call fcn.004a6ba2
jmp 0x4632ab
push pe_nt_image_headers32
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00497aa0
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 0x4632b0
lea eax, [ebp - 0x108]
push eax
call fcn.004a6c01
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 0x4632c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret