Function at 0x4e6270
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 0x4e62f6
mov dword [ebp], 0
lea edx, [esp + 0x3c]
lea ebx, [esp + 0x28]
push ecx
push eax
push edx
push ebx
push esi
call fcn.004e2b70
add esp, 0x14
mov ebx, 0xffffffff
test eax, eax
jne 0x4e63d8
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 0x4e633b
push str.key_too_short
jmp 0x4e63cb
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 0x4e6356
push str.key_auth_magic_mismatch
jmp 0x4e63cb
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.004e3350
add esp, 0xc
test eax, eax
jne 0x4e63bf
cmp dword [esp + 0x14], 0
je 0x4e63bf
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4e63c6
cmp dword [esp + 0x14], 0
je 0x4e63c6
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
push eax
push ecx
push ebx
call fcn.004e3350
add esp, 0xc
test eax, eax
je 0x4e6467
push str.kdf_is_missing
jmp 0x4e63cb
push str.ciphername_is_missing
jmp 0x4e63cb
push str.kdfname_is_missing
push 0xfffffffffffffff2
push esi
call fcn.004e28e0
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e645a
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4e6452
mov edx, ecx
and edx, 7
je 0x4e6416
xor edi, edi
nop word cs:[eax + eax]
mov byte [eax + edi], 0
inc edi
cmp edx, edi
jne 0x4e6400
add eax, edi
mov edx, ecx
sub edx, edi
cmp ecx, 8
jae 0x4e641d
jmp 0x4e644e
mov edx, ecx
cmp ecx, 8
jb 0x4e644e
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 0x4e6420
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 0x4e6487
cmp byte [edi], 0
jne 0x4e64a5
push 0xa5cc74
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 0x4e63d8
mov ebx, dword [esp + 0x48]
push 0xa5cc74
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e64d7
push str.bcrypt
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e64f6
push 0xa5cc80
jmp 0x4e63cb
push 0xa5cc74
push dword [esp + 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e64f6
push str.invalid_format
jmp 0x4e63cb
lea eax, [esp + 0x74]
push eax
lea ebx, [esp + 0x68]
push ebx
call fcn.004e3240
add esp, 8
test eax, eax
jne 0x4e6565
cmp dword [esp + 0x74], 1
jne 0x4e6565
mov eax, ebx
lea ebx, [esp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4e656f
cmp dword [esp + 0x14], 0
je 0x4e656f
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x6c]
push eax
call fcn.004e3350
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 0x4e6579
push str.Private_key_data_not_found
jmp 0x4e63cb
push str.Multiple_keys_are_unsupported
jmp 0x4e63cb
push str.Invalid_private_key__expect_embedded_public_key
jmp 0x4e63cb
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 0x4e660e
push 0xa5cc74
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4e660e
call fcn.004f4060
mov ebx, eax
mov eax, dword [eax]
test eax, eax
je 0x4e683f
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
add ebx, 4
xor ecx, ecx
mov eax, edx
jmp 0x4e65d4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x4e678f
mov edx, dword [eax]
cmp byte [edx], 0
je 0x4e65c7
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 0x4e65c7
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.004e3240
add esp, 8
test eax, eax
jne 0x4e66d1
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.004e3240
add esp, 8
test eax, eax
jne 0x4e66d1
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x40]
jne 0x4e66d1
xor ebx, ebx
test ebp, ebp
je 0x4e66e6
push esi
call fcn.004e3150
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x4e6958
push dword [esp + 0x34]
push esi
call fcn.004e2f50
add esp, 8
mov ecx, dword [esp + 8]
mov dword [ecx], eax
test eax, eax
je 0x4e6a59
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 0x4e66e6
push str.Private_key_unpack_failed__correct_password__
push 0xfffffffffffffff2
push esi
call fcn.004e28e0
add esp, 0xc
mov ebx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x4e6759
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e674e
mov edx, ecx
mov eax, dword [esp + 4]
and edx, 7
je 0x4e6717
xor ebp, ebp
mov eax, dword [esp + 4]
mov byte [eax + ebp], 0
inc ebp
cmp edx, ebp
jne 0x4e6706
add eax, ebp
mov ecx, dword [esp + 0x18]
sub ecx, ebp
cmp dword [esp + 0x18], 8
jb 0x4e674e
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 0x4e6720
push esi
push dword [esp + 8]
call dword [esi + 0xc]
add esp, 8
test edi, edi
je 0x4e688e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4e6886
and eax, 7
je 0x4e6849
xor edx, edx
mov byte [edi + edx], 0
inc edx
cmp eax, edx
jne 0x4e6778
lea eax, [edi + edx]
mov ecx, dword [esp + 0xc]
sub ecx, edx
jmp 0x4e684f
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4e683f
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.004e2f50
add esp, 8
mov dword [esp + 4], eax
test eax, eax
je 0x4e690d
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 0x4e692d
test eax, eax
jne 0x4e692d
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x58]
lea ebx, [esp + 0x78]
push eax
push ecx
push ebx
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4e6833
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.004e3240
add esp, 8
test eax, eax
je 0x4e696f
push str.kdf_contains_unexpected_values
push 0xfffffffffffffff2
jmp 0x4e6934
push str.No_supported_cipher_found
jmp 0x4e63cb
mov eax, edi
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0xc], 8
jb 0x4e6886
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 0x4e6858
push esi
push edi
call dword [esi + 0xc]
add esp, 8
mov edi, dword [esp]
test edi, edi
je 0x4e63d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6900
and eax, 7
je 0x4e68bf
xor edx, edx
mov ecx, dword [esp]
mov byte [ecx + edx], 0
inc edx
cmp eax, edx
jne 0x4e68ab
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x10]
sub ecx, edx
jmp 0x4e68c6
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x10], 8
mov edi, dword [esp]
jb 0x4e6900
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 0x4e68d2
push esi
push edi
call dword [esi + 0xc]
add esp, 8
jmp 0x4e63d8
xor edi, edi
push str.Could_not_alloc_key
push 0xfffffffffffffff2
push esi
call fcn.004e28e0
add esp, 0xc
mov ebx, eax
mov dword [esp], 0
jmp 0x4e66e6
push str.bcrypted_without_passphrase
push 0xffffffffffffffd0
push esi
call fcn.004e28e0
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 0x4e66e6
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.004e28e0
add esp, 0xc
mov ebx, eax
jmp 0x4e66e6
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.004f2ae0
add esp, 0x1c
test eax, eax
js 0x4e6a7d
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
push dword [esp + 0xc]
push esi
call fcn.004e2f50
add esp, 8
test eax, eax
je 0x4e6a89
mov edi, eax
push dword [esp + 0x10]
push esi
call fcn.004e2f50
add esp, 8
mov dword [esp], eax
test eax, eax
je 0x4e6a95
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 0x4e66e6
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], 0
mov eax, ecx
xor edx, edx
div dword [esp + 0x24]
test edx, edx
je 0x4e6aa8
lea eax, [esp + 0x1c]
push eax
push esi
mov eax, dword [esp + 0x10]
call dword [eax + 0x20]
add esp, 8
jmp 0x4e66e6
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push esi
call fcn.004e28e0
add esp, 0xc
mov ebx, eax
push dword [esp + 8]
push esi
call fcn.004e3170
add esp, 8
jmp 0x4e66e6
push str.invalid_format
push 0xfffffffffffffff4
jmp 0x4e6934
xor edi, edi
push str.Could_not_alloc_key_part
jmp 0x4e6914
mov dword [esp], 0
push str.Could_not_alloc_iv_part
push 0xfffffffffffffff2
jmp 0x4e695f
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 0x4e6a44
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 0x4e6aac
lea eax, [esp + 0x1c]
push eax
push esi
mov eax, dword [esp + 0x10]
call dword [eax + 0x20]
add esp, 8
jmp 0x4e6637