Function at 0x6b4d85c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov ebx, edx
mov esi, ecx
mov ebp, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x4c], 0
test ebp, ebp
je 0x6b4d8646
mov dword [ebp], 0
lea edx, [esp + 0x40]
lea edi, [esp + 0x28]
push ecx
push eax
push edx
push edi
push esi
call fcn.6b4c5d70
add esp, 0x14
mov edi, 0xffffffff
test eax, eax
jne 0x6b4d8755
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0x6c], edi
push str.openssh_key_v1
call sub.msvcrt.dll_strlen
add esp, 4
cmp edi, eax
jae 0x6b4d8697
push str.key_too_short
jmp 0x6b4d8748
mov edi, dword [esp + 0x68]
push str.openssh_key_v1
call sub.msvcrt.dll_strlen
add esp, 4
push eax
push str.openssh_key_v1
push edi
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x6b4d86c5
push str.key_auth_magic_mismatch
jmp 0x6b4d8748
push str.openssh_key_v1
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, dword [esp + 0x68]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
lea edi, [esp + 0x64]
push ecx
push eax
push edi
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
jne 0x6b4d873c
cmp dword [esp + 0x10], 0
je 0x6b4d873c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push edi
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
jne 0x6b4d8743
cmp dword [esp + 0x10], 0
je 0x6b4d8743
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
push eax
push ecx
push edi
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
je 0x6b4d8782
push str.kdf_is_missing
jmp 0x6b4d8748
push str.ciphername_is_missing
jmp 0x6b4d8748
push str.kdfname_is_missing
push 0xfffffffffffffff2
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x6b4d8775
push dword [esp + 0x40]
push eax
call fcn.6b4c6250
add esp, 8
push esi
push dword [esp + 0x2c]
call dword [esi + 0xc]
add esp, 8
mov eax, edi
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x60]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
test ebx, ebx
je 0x6b4d87a7
push ebx
call sub.msvcrt.dll_strlen
add esp, 4
test eax, eax
jne 0x6b4d87c1
push 0x6b74ceb7
push dword [esp + 0x24]
call sub.msvcrt.dll_strcmp
add esp, 8
mov edi, 0xffffffd0
test eax, eax
jne 0x6b4d8755
push 0x6b74ceb7
push dword [esp + 0x20]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b4d87f5
push str.bcrypt
push dword [esp + 0x20]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b4d87f5
push 0x6b74cec3
jmp 0x6b4d8748
push 0x6b74ceb7
push dword [esp + 0x20]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b4d8924
lea eax, [esp + 0x70]
push eax
lea edi, [esp + 0x68]
push edi
call fcn.6b4c62d0
add esp, 8
test eax, eax
jne 0x6b4d891a
cmp dword [esp + 0x70], 1
jne 0x6b4d891a
mov eax, edi
lea edi, [esp + 0x5c]
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
jne 0x6b4d8947
cmp dword [esp + 0x10], 0
je 0x6b4d8947
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x6c]
push eax
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
jne 0x6b4d8951
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6b4d8951
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6b4d895b
push 0x6b74ceb7
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b4d895b
call fcn.6b4d9e10
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x6b4d8b25
add edi, 4
xor ecx, ecx
jmp 0x6b4d88d9
mov eax, dword [edi]
add edi, 4
test eax, eax
je 0x6b4d8a89
mov edx, dword [eax]
cmp byte [edx], 0
je 0x6b4d88cc
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call sub.msvcrt.dll_strlen
add esp, 4
push eax
push dword [esp + 0x10]
push dword [esp + 0xc]
call sub.msvcrt.dll_memcmp
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
cmove ecx, dword [esp + 8]
jmp 0x6b4d88cc
push str.Multiple_keys_are_unsupported
jmp 0x6b4d8748
push 0x6b74ceb7
push dword [esp + 0x24]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b4d880e
push str.invalid_format
jmp 0x6b4d8748
push str.Invalid_private_key__expect_embedded_public_key
jmp 0x6b4d8748
push str.Private_key_data_not_found
jmp 0x6b4d8748
mov dword [esp + 4], 0
xor ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x48]
lea edi, [esp + 0x2c]
push eax
push edi
call fcn.6b4c62d0
add esp, 8
test eax, eax
jne 0x6b4d8a18
lea eax, [esp + 0x44]
push eax
push edi
call fcn.6b4c62d0
add esp, 8
test eax, eax
jne 0x6b4d8a18
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x44]
jne 0x6b4d8a18
xor edi, edi
test ebp, ebp
je 0x6b4d8a2d
push esi
call fcn.6b4c6270
add esp, 4
mov dword [esp], eax
test eax, eax
je 0x6b4d8b7c
push dword [esp + 0x34]
push esi
call fcn.6b4c61a0
add esp, 8
mov ecx, dword [esp]
mov dword [ecx], eax
test eax, eax
je 0x6b4d8c6a
push dword [esp + 0x34]
push dword [esp + 0x30]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp]
add eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ebp], ecx
jmp 0x6b4d8a2d
push str.Private_key_unpack_failed__correct_password__
push 0xfffffffffffffff2
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, 0xffffffd0
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x6b4d8a4a
push dword [esp + 0x24]
push ebp
call fcn.6b4c6250
add esp, 8
push esi
push ebp
call dword [esi + 0xc]
add esp, 8
mov ebp, dword [esp + 4]
test ebp, ebp
je 0x6b4d8a67
push dword [esp + 0xc]
push ebp
call fcn.6b4c6250
add esp, 8
push esi
push ebp
call dword [esi + 0xc]
add esp, 8
test ebx, ebx
je 0x6b4d8755
push dword [esp + 0x14]
push ebx
call fcn.6b4c6250
add esp, 8
push esi
push ebx
call dword [esi + 0xc]
add esp, 8
jmp 0x6b4d8755
mov dword [esp], ecx
test ecx, ecx
je 0x6b4d8b25
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 0
mov ecx, dword [esp]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
lea eax, [eax + ecx]
mov dword [esp + 0x24], eax
push eax
push esi
call fcn.6b4c61a0
add esp, 8
mov dword [esp + 8], eax
test eax, eax
je 0x6b4d8b2f
push str.bcrypt
push dword [esp + 0x20]
call sub.msvcrt.dll_strcmp
add esp, 8
test ebx, ebx
je 0x6b4d8b50
test eax, eax
jne 0x6b4d8b50
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x58]
lea edi, [esp + 0x74]
push eax
push ecx
push edi
call fcn.6b4c63e0
add esp, 0xc
test eax, eax
jne 0x6b4d8b1c
lea eax, [esp + 0x54]
push eax
push edi
call fcn.6b4c62d0
add esp, 8
test eax, eax
je 0x6b4d8b93
push str.kdf_contains_unexpected_values
push 0xfffffffffffffff2
jmp 0x6b4d8b57
push str.No_supported_cipher_found
jmp 0x6b4d8748
mov dword [esp + 4], 0
push str.Could_not_alloc_key
push 0xfffffffffffffff2
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, eax
xor ebx, ebx
jmp 0x6b4d8a2d
push str.bcrypted_without_passphrase
push 0xffffffffffffffd0
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, eax
push esi
push dword [esp + 0xc]
call dword [esi + 0xc]
add esp, 8
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x6b4d8a2d
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, eax
jmp 0x6b4d8a2d
push ebx
call sub.msvcrt.dll_strlen
add esp, 4
push dword [esp + 0x54]
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x58]
push dword [esp + 0x68]
push eax
push ebx
call fcn.6b4c6530
add esp, 0x1c
test eax, eax
js 0x6b4d8cdb
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
push dword [esp + 0xc]
push esi
call fcn.6b4c61a0
add esp, 8
mov dword [esp + 4], eax
test eax, eax
je 0x6b4d8ce7
push dword [esp + 0x14]
push esi
call fcn.6b4c61a0
add esp, 8
test eax, eax
je 0x6b4d8cf9
mov ebx, eax
push dword [esp + 0xc]
mov edi, dword [esp + 0xc]
push edi
push dword [esp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, dword [esp + 0xc]
push dword [esp + 0x14]
push edi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x48]
push edx
push 0
push eax
push dword [esp + 0x10]
push ecx
push ebx
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [eax + 0x18]
add esp, 0x20
mov edi, 0xfffffff4
test eax, eax
jne 0x6b4d8a2d
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], 0
xor edx, edx
div dword [esp + 0x3c]
test edx, edx
jne 0x6b4d8cc6
jmp 0x6b4d8ca5
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.6b4c5c00
add esp, 0xc
mov edi, eax
push dword [esp]
push esi
call fcn.6b4c62a0
add esp, 8
jmp 0x6b4d8a2d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add edx, ecx
mov eax, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x38], edx
cmp edx, eax
ja 0x6b4d8d07
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x40]
push eax
push esi
mov eax, dword [esp + 0x10]
call dword [eax + 0x1c]
add esp, 0x10
test eax, eax
je 0x6b4d8c8d
lea eax, [esp + 0x18]
push eax
push esi
mov eax, dword [esp + 8]
call dword [eax + 0x20]
add esp, 8
jmp 0x6b4d8a2d
push str.invalid_format
push 0xfffffffffffffff4
jmp 0x6b4d8b57
mov dword [esp + 4], 0
push str.Could_not_alloc_key_part
jmp 0x6b4d8b3c
xor ebx, ebx
push str.Could_not_alloc_iv_part
push 0xfffffffffffffff2
jmp 0x6b4d8b83
lea eax, [esp + 0x18]
push eax
push esi
mov eax, dword [esp + 8]
call dword [eax + 0x20]
add esp, 8
jmp 0x6b4d8985