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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov edi, edx
mov esi, ecx
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], 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 + 0x3c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x4c], 0
test ebp, ebp
je 0x4e68a6
mov dword [ebp], 0
lea edx, [esp + 0x3c]
lea ebx, [esp + 0x28]
push ecx
push eax
push edx
push ebx
push esi
call fcn.004e3120
add esp, 0x14
mov ebx, 0xffffffff
test eax, eax
jne 0x4e6988
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
cmp eax, 0xd
ja 0x4e68eb
push str.key_too_short
jmp 0x4e697b
push 0xe
push str.openssh_key_v1
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4e6906
push str.key_auth_magic_mismatch
jmp 0x4e697b
add ebx, 0xf
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
lea ebx, [esp + 0x64]
push ecx
push eax
push ebx
call fcn.004e3900
add esp, 0xc
test eax, eax
jne 0x4e696f
cmp dword [esp + 0x14], 0
je 0x4e696f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
call fcn.004e3900
add esp, 0xc
test eax, eax
jne 0x4e6976
cmp dword [esp + 0x14], 0
je 0x4e6976
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
push eax
push ecx
push ebx
call fcn.004e3900
add esp, 0xc
test eax, eax
je 0x4e6a17
push str.kdf_is_missing
jmp 0x4e697b
push str.ciphername_is_missing
jmp 0x4e697b
push str.kdfname_is_missing
push 0xfffffffffffffff2
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e6a0a
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4e6a02
mov edx, ecx
and edx, 7
je 0x4e69c6
xor edi, edi
nop word cs:[eax + eax]
mov byte [eax + edi], 0
inc edi
cmp edx, edi
jne 0x4e69b0
add eax, edi
mov edx, ecx
sub edx, edi
cmp ecx, 8
jae 0x4e69cd
jmp 0x4e69fe
mov edx, ecx
cmp ecx, 8
jb 0x4e69fe
xor ecx, ecx
nop
mov byte [eax + ecx], 0
mov byte [eax + ecx + 1], 0
mov byte [eax + ecx + 2], 0
mov byte [eax + ecx + 3], 0
mov byte [eax + ecx + 4], 0
mov byte [eax + ecx + 5], 0
mov byte [eax + ecx + 6], 0
mov byte [eax + ecx + 7], 0
add ecx, 8
cmp edx, ecx
jne 0x4e69d0
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [esi + 0xc]
add esp, 8
mov eax, ebx
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], eax
test edi, edi
je 0x4e6a37
cmp byte [edi], 0
jne 0x4e6a55
push 0x9dd594
push dword [esp + 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
mov ebx, 0xffffffd0
test eax, eax
jne 0x4e6988
mov ebx, dword [esp + 0x48]
push 0x9dd594
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e6a87
push str.bcrypt
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e6aa6
push 0x9dd5a0
jmp 0x4e697b
push 0x9dd594
push dword [esp + 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e6aa6
push str.invalid_format
jmp 0x4e697b
lea eax, [esp + 0x74]
push eax
lea ebx, [esp + 0x68]
push ebx
call fcn.004e37f0
add esp, 8
test eax, eax
jne 0x4e6b15
cmp dword [esp + 0x74], 1
jne 0x4e6b15
mov eax, ebx
lea ebx, [esp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.004e3900
add esp, 0xc
test eax, eax
jne 0x4e6b1f
cmp dword [esp + 0x14], 0
je 0x4e6b1f
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x6c]
push eax
call fcn.004e3900
add esp, 0xc
test eax, eax
setne cl
mov eax, dword [esp + 0x14]
test eax, eax
sete dl
or dl, cl
cmp dl, 1
jne 0x4e6b29
push str.Private_key_data_not_found
jmp 0x4e697b
push str.Multiple_keys_are_unsupported
jmp 0x4e697b
push str.Invalid_private_key__expect_embedded_public_key
jmp 0x4e697b
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 0x4e6bbe
push 0x9dd594
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e6bbe
call fcn.004f4610
mov ebx, eax
mov eax, dword [eax]
test eax, eax
je 0x4e6def
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
add ebx, 4
xor ecx, ecx
mov eax, edx
jmp 0x4e6b84
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x4e6d3f
mov edx, dword [eax]
cmp byte [edx], 0
je 0x4e6b77
push edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push dword [esp + 4]
push dword [esp + 0x14]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
cmove ecx, dword [esp + 4]
jmp 0x4e6b77
xor edi, edi
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
lea eax, [esp + 0x44]
lea ebx, [esp + 0x2c]
push eax
push ebx
call fcn.004e37f0
add esp, 8
test eax, eax
jne 0x4e6c81
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.004e37f0
add esp, 8
test eax, eax
jne 0x4e6c81
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x40]
jne 0x4e6c81
xor ebx, ebx
test ebp, ebp
je 0x4e6c96
push esi
call fcn.004e3700
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x4e6f08
push dword [esp + 0x34]
push esi
call fcn.004e3500
add esp, 8
mov ecx, dword [esp + 8]
mov dword [ecx], eax
test eax, eax
je 0x4e7009
push dword [esp + 0x34]
push dword [esp + 0x30]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 8]
add eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ebp], ecx
jmp 0x4e6c96
push str.Private_key_unpack_failed__correct_password__
push 0xfffffffffffffff2
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x4e6d09
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e6cfe
mov edx, ecx
mov eax, dword [esp + 4]
and edx, 7
je 0x4e6cc7
xor ebp, ebp
mov eax, dword [esp + 4]
mov byte [eax + ebp], 0
inc ebp
cmp edx, ebp
jne 0x4e6cb6
add eax, ebp
mov ecx, dword [esp + 0x18]
sub ecx, ebp
cmp dword [esp + 0x18], 8
jb 0x4e6cfe
xor edx, edx
mov byte [eax + edx], 0
mov byte [eax + edx + 1], 0
mov byte [eax + edx + 2], 0
mov byte [eax + edx + 3], 0
mov byte [eax + edx + 4], 0
mov byte [eax + edx + 5], 0
mov byte [eax + edx + 6], 0
mov byte [eax + edx + 7], 0
add edx, 8
cmp ecx, edx
jne 0x4e6cd0
push esi
push dword [esp + 8]
call dword [esi + 0xc]
add esp, 8
test edi, edi
je 0x4e6e3e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4e6e36
and eax, 7
je 0x4e6df9
xor edx, edx
mov byte [edi + edx], 0
inc edx
cmp eax, edx
jne 0x4e6d28
lea eax, [edi + edx]
mov ecx, dword [esp + 0xc]
sub ecx, edx
jmp 0x4e6dff
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4e6def
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
add eax, ecx
mov dword [esp + 0x18], eax
push eax
push esi
call fcn.004e3500
add esp, 8
mov dword [esp + 4], eax
test eax, eax
je 0x4e6ebd
push str.bcrypt
push dword [esp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test edi, edi
je 0x4e6edd
test eax, eax
jne 0x4e6edd
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x58]
lea ebx, [esp + 0x78]
push eax
push ecx
push ebx
call fcn.004e3900
add esp, 0xc
test eax, eax
jne 0x4e6de3
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.004e37f0
add esp, 8
test eax, eax
je 0x4e6f1f
push str.kdf_contains_unexpected_values
push 0xfffffffffffffff2
jmp 0x4e6ee4
push str.No_supported_cipher_found
jmp 0x4e697b
mov eax, edi
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0xc], 8
jb 0x4e6e36
xor edx, edx
mov byte [eax + edx], 0
mov byte [eax + edx + 1], 0
mov byte [eax + edx + 2], 0
mov byte [eax + edx + 3], 0
mov byte [eax + edx + 4], 0
mov byte [eax + edx + 5], 0
mov byte [eax + edx + 6], 0
mov byte [eax + edx + 7], 0
add edx, 8
cmp ecx, edx
jne 0x4e6e08
push esi
push edi
call dword [esi + 0xc]
add esp, 8
mov edi, dword [esp]
test edi, edi
je 0x4e6988
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6eb0
and eax, 7
je 0x4e6e6f
xor edx, edx
mov ecx, dword [esp]
mov byte [ecx + edx], 0
inc edx
cmp eax, edx
jne 0x4e6e5b
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x10]
sub ecx, edx
jmp 0x4e6e76
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x10], 8
mov edi, dword [esp]
jb 0x4e6eb0
xor edx, edx
mov byte [eax + edx], 0
mov byte [eax + edx + 1], 0
mov byte [eax + edx + 2], 0
mov byte [eax + edx + 3], 0
mov byte [eax + edx + 4], 0
mov byte [eax + edx + 5], 0
mov byte [eax + edx + 6], 0
mov byte [eax + edx + 7], 0
add edx, 8
cmp ecx, edx
jne 0x4e6e82
push esi
push edi
call dword [esi + 0xc]
add esp, 8
jmp 0x4e6988
xor edi, edi
push str.Could_not_alloc_key
push 0xfffffffffffffff2
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, eax
mov dword [esp], 0
jmp 0x4e6c96
push str.bcrypted_without_passphrase
push 0xffffffffffffffd0
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, eax
push esi
push dword [esp + 8]
call dword [esi + 0xc]
add esp, 8
xor edi, edi
mov dword [esp], 0
jmp 0x4e6c96
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, eax
jmp 0x4e6c96
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push dword [esp + 0x54]
push dword [esp + 0x1c]
push dword [esp + 0xc]
push dword [esp + 0x58]
push dword [esp + 0x68]
push eax
push edi
call fcn.004f3090
add esp, 0x1c
test eax, eax
js 0x4e702d
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
push dword [esp + 0xc]
push esi
call fcn.004e3500
add esp, 8
test eax, eax
je 0x4e7039
mov edi, eax
push dword [esp + 0x10]
push esi
call fcn.004e3500
add esp, 8
mov dword [esp], eax
test eax, eax
je 0x4e7045
push dword [esp + 0xc]
mov ebx, dword [esp + 8]
push ebx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add ebx, dword [esp + 0xc]
push dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x44]
push edx
push 0
push eax
push edi
push ecx
push ebx
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [eax + 0x18]
add esp, 0x20
mov ebx, 0xfffffff4
test eax, eax
jne 0x4e6c96
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], 0
mov eax, ecx
xor edx, edx
div dword [esp + 0x24]
test edx, edx
je 0x4e7058
lea eax, [esp + 0x1c]
push eax
push esi
mov eax, dword [esp + 0x10]
call dword [eax + 0x20]
add esp, 8
jmp 0x4e6c96
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.004e2e90
add esp, 0xc
mov ebx, eax
push dword [esp + 8]
push esi
call fcn.004e3720
add esp, 8
jmp 0x4e6c96
push str.invalid_format
push 0xfffffffffffffff4
jmp 0x4e6ee4
xor edi, edi
push str.Could_not_alloc_key_part
jmp 0x4e6ec4
mov dword [esp], 0
push str.Could_not_alloc_iv_part
push 0xfffffffffffffff2
jmp 0x4e6f0f
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x70], edx
xor edx, edx
cmp eax, ecx
sete dl
add edx, edx
test eax, eax
mov eax, 1
cmove edx, eax
push edx
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x7c]
push esi
mov eax, dword [esp + 0x1c]
call dword [eax + 0x1c]
add esp, 0x14
test eax, eax
jne 0x4e6ff4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
add edx, eax
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x38], edx
cmp edx, ecx
jbe 0x4e705c
lea eax, [esp + 0x1c]
push eax
push esi
mov eax, dword [esp + 0x10]
call dword [eax + 0x20]
add esp, 8
jmp 0x4e6be7