Function at 0x464610
Capabilities:
Create thread
Generate random numbers via winapi
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3f4
mov eax, dword [0x4fc040]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ebx
call fcn.00463b80
test eax, eax
je 0x464bff
push pe_nt_image_headers32
lea eax, [esp + 0x1fc]
push eax
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
test eax, eax
je 0x464bff
push 0x40
lea eax, [esp + 0xfc]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
test eax, eax
je 0x464bff
mov ecx, str.ecdsa_sha2_nistp256
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4646b1
test dl, dl
je 0x4646ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4646b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x464691
xor eax, eax
jmp 0x4646b6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4646c2
lea ebx, [eax - 7]
jmp 0x464780
mov ecx, str.ecdsa_sha2_nistp384
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4646f0
test dl, dl
je 0x4646ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4646f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4646d0
xor eax, eax
jmp 0x4646f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x464709
lea ebx, [eax - 0x23]
mov esi, 0x4ee6f4
lea edi, [eax + 0x30]
jmp 0x46478a
mov ecx, str.ecdsa_sha2_nistp521
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x464730
test dl, dl
je 0x46472c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x464730
add eax, 2
add ecx, 2
test dl, dl
jne 0x464710
xor eax, eax
jmp 0x464735
sbb eax, eax
or eax, 1
test eax, eax
jne 0x464746
lea ebx, [eax - 0x24]
mov esi, str.SHA_512
lea edi, [eax + 0x40]
jmp 0x46478a
mov eax, str.ssh_ed25519
nop dword [eax + eax]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x464770
test cl, cl
je 0x46476c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x464770
add esi, 2
add eax, 2
test cl, cl
jne 0x464750
xor eax, eax
jmp 0x464775
sbb eax, eax
or eax, 1
test eax, eax
jne 0x464bff
lea ebx, [eax - 8]
mov edi, 0x20
mov esi, str.SHA_256
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1f8]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 1]
lea eax, [esp + 0xf8]
mov dword [esp + 0x78], 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4647e5
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
sub ecx, edx
push 2
lea eax, [esp + 0x54]
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x17c]
push edi
push eax
push 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x60], 1
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], str.public_key
mov dword [esp + 0x6c], 1
call dword [sym.imp.ncrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x464bff
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x178]
mov dword [esp + 0x90], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb4], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], edi
sete al
mov dword [esp + 0x94], esi
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
lea eax, [eax*2 + 1]
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0xb8], eax
xor eax, eax
test ecx, ecx
movlpd qword [esp + 0xc4], xmm0
movlpd qword [esp + 0xcc], xmm0
setne al
mov dword [esp + 0xd4], 0
add eax, 2
mov dword [esp + 0x98], 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x7c], str.credProtect
mov dword [esp + 0x80], 8
mov dword [esp + 0x84], eax
test ecx, ecx
je 0x46492f
lea eax, [esp + 0x7c]
mov dword [esp + 0xa8], 1
mov dword [esp + 0xac], eax
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x88]
push 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x9c]
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push eax
push 0x4645c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x464bff
mov eax, dword [esp + 0x34]
test eax, eax
je 0x464a11
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x464a0d
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0xdc]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jle 0x464a0d
nop dword [eax]
cmp dword [esp + 0xe0], 0x400
je 0x464a0d
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0xe8]
push eax
call esi
test eax, eax
jg 0x4649d0
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 0
jne 0x464bff
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0xc]
movzx eax, word [esi + 0x35]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
add esi, eax
lea eax, [edi + edi]
mov dword [esp + 0x10], eax
add eax, 8
push 1
push eax
call fcn.004a6b97
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x464bff
mov dword [eax + 4], edi
lea ecx, [eax + 8]
cmp ebx, 0xfffffff9
jne 0x464ac0
movzx eax, byte [esi + 0x40]
cmp eax, edi
jne 0x464b75
movzx eax, byte [esi + 0x63]
cmp eax, edi
jne 0x464b75
push edi
lea eax, [esi + 0x41]
push eax
push ecx
call fcn.00497c70
lea eax, [esi + 0x64]
mov esi, dword [esp + 0x20]
push edi
push eax
lea eax, [esi + 8]
add eax, edi
push eax
call fcn.00497c70
add esp, 0x18
mov dword [esi], 0x31534345
jmp 0x464b79
cmp ebx, 0xffffffdd
jne 0x464b07
movzx eax, byte [esi + 0x40]
cmp eax, edi
jne 0x464b75
movzx eax, byte [esi + 0x73]
cmp eax, edi
jne 0x464b75
push edi
lea eax, [esi + 0x41]
push eax
push ecx
call fcn.00497c70
lea eax, [esi + 0x74]
mov esi, dword [esp + 0x20]
push edi
push eax
lea eax, [esi + 8]
add eax, edi
push eax
call fcn.00497c70
add esp, 0x18
mov dword [esi], 0x33534345
jmp 0x464b79
cmp ebx, 0xffffffdc
jne 0x464b4c
movzx eax, byte [esi + 0x40]
cmp eax, edi
jne 0x464b75
movzx eax, byte [esi + 0x83]
cmp eax, edi
jne 0x464b75
push edi
lea eax, [esi + 0x41]
push eax
push ecx
call fcn.00497c70
lea eax, [esi + 0x84]
mov esi, dword [esp + 0x20]
push edi
push eax
lea eax, [esi + 8]
add eax, edi
push eax
call fcn.00497c70
add esp, 0x18
mov dword [esi], 0x35534345
jmp 0x464b79
cmp ebx, 0xfffffff8
jne 0x464b75
movzx eax, byte [esi + 0x40]
cmp eax, edi
jne 0x464b75
push edi
lea eax, [esi + 0x41]
mov ebx, edi
push eax
push ecx
call fcn.00497c70
mov esi, dword [esp + 0x20]
add esp, 0xc
mov dword [esi], 0x50444345
jmp 0x464b7d
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
lea eax, [ebx + 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea eax, [esp + 0x200]
push 3
push eax
push str.SoftwareSimonTathamPuTTYFidoPubKeyBlobs
push SysReAllocString
call esi
mov eax, dword [esp + 0x4c]
push dword [eax + 0x28]
push dword [eax + 0x2c]
lea eax, [esp + 0x200]
push 3
push eax
push str.SoftwareSimonTathamPuTTYFidoCredIdBlobs
push SysReAllocString
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x204]
push eax
push str.SoftwareSimonTathamPuTTYFidoUserVerification
push SysReAllocString
call esi
push dword [esp + 0x4c]
call dword [sym.imp.webauthn.dll_WebAuthNFreeCredentialAttestation]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3fc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495b16
mov esp, ebp
pop ebp
ret