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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x94]
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 8], ebp
mov dword [esp + 0x48], ebp
push esi
push edi
mov edi, dword [esp + 0x94]
test eax, eax
je 0x10015ce8
mov dword [eax], ebp
push dword [esp + 0xa0]
lea eax, [esp + 0x44]
push dword [esp + 0xa0]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call sym.libssh2.dll_libssh2_base64_decode
add esp, 0x14
test eax, eax
je 0x10015d15
or ebx, 0xffffffff
jmp 0x10016466
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
cmp eax, 0xe
jae 0x10015d3b
push str.key_too_short
jmp 0x10016459
push 0xe
push str.openssh_key_v1
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10015d5a
push str.key_auth_magic_mismatch
jmp 0x10016459
add dword [esp + 0x7c], 0xf
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
jne 0x10016454
cmp dword [esp + 0x10], ebp
je 0x10016454
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
jne 0x1001644d
cmp dword [esp + 0x10], ebp
je 0x1001644d
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
je 0x10015ddf
push str.kdf_is_missing
jmp 0x10016459
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x10015e1b
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015e10
sub ecx, edx
jne 0x10015e55
mov ecx, str.none
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10015e42
test dl, dl
je 0x10015e3e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10015e42
add eax, 2
add ecx, 2
test dl, dl
jne 0x10015e22
xor eax, eax
jmp 0x10015e47
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015e55
mov ebx, 0xffffffd0
jmp 0x10016466
mov esi, dword [esp + 0x38]
mov ecx, str.none
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10015e80
test dl, dl
je 0x10015e7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10015e80
add eax, 2
add ecx, 2
test dl, dl
jne 0x10015e60
xor eax, eax
jmp 0x10015e85
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015ec3
mov ecx, str.bcrypt
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10015eb0
test dl, dl
je 0x10015eac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10015eb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10015e90
xor eax, eax
jmp 0x10015eb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015ec3
push str.unknown_cipher
jmp 0x10016459
mov eax, str.none
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x10015ee8
test cl, cl
je 0x10015ee4
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x10015ee8
add esi, 2
add eax, 2
test cl, cl
jne 0x10015ec8
xor eax, eax
jmp 0x10015eed
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10015f29
mov eax, str.none
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x10015f16
test cl, cl
je 0x10015f12
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x10015f16
add ebx, 2
add eax, 2
test cl, cl
jne 0x10015ef6
xor eax, eax
jmp 0x10015f1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015f29
push str.invalid_format
jmp 0x10016459
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.10013b40
add esp, 8
test eax, eax
jne 0x10016446
cmp dword [esp + 0x58], 1
jne 0x10016446
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
jne 0x1001643f
cmp dword [esp + 0x10], ebp
je 0x1001643f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
jne 0x10016438
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10016438
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
test eax, eax
je 0x100162b7
mov ecx, str.none
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10015ff0
test dl, dl
je 0x10015fec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10015ff0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10015fd0
xor eax, eax
jmp 0x10015ff5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100162b7
call fcn.1000a530
mov ebp, eax
mov ebx, dword [ebp]
test ebx, ebx
je 0x1001636e
xor edi, edi
mov edx, dword [ebx]
lea ebp, [ebp + 4]
cmp byte [edx], 0
je 0x10016077
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016020
sub ecx, esi
mov esi, dword [esp + 0x20]
sub ecx, 4
jb 0x10016043
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x10016048
add esi, 4
add edx, 4
sub ecx, 4
jae 0x10016032
cmp ecx, 0xfffffffc
je 0x10016075
mov al, byte [esi]
cmp al, byte [edx]
jne 0x10016077
cmp ecx, 0xfffffffd
je 0x10016075
mov al, byte [esi + 1]
cmp al, byte [edx + 1]
jne 0x10016077
cmp ecx, 0xfffffffe
je 0x10016075
mov al, byte [esi + 2]
cmp al, byte [edx + 2]
jne 0x10016077
cmp ecx, 0xffffffff
je 0x10016075
mov al, byte [esi + 3]
cmp al, byte [edx + 3]
jne 0x10016077
mov edi, ebx
mov ebx, dword [ebp]
test ebx, ebx
jne 0x10016011
mov dword [esp + 0x14], edi
test edi, edi
mov edi, dword [esp + 0x94]
je 0x1001636e
mov esi, dword [esp + 0x14]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
add eax, ecx
push eax
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
call fcn.10013850
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100160cf
push str.Could_not_alloc_key
jmp 0x10016459
mov eax, dword [esp + 0x38]
mov ecx, str.bcrypt
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100160f8
test dl, dl
je 0x100160f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100160f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x100160d8
xor eax, eax
jmp 0x100160fd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10016365
cmp dword [esp + 0x98], ebx
je 0x10016365
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.10013ad0
add esp, 0xc
test eax, eax
jne 0x1001634a
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.10013b40
add esp, 8
test eax, eax
jne 0x1001634a
mov ecx, dword [esp + 0x98]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016160
push dword [esp + 0x4c]
sub ecx, edx
push dword [esp + 0x40]
push ebp
push dword [esp + 0x5c]
push dword [esp + 0x64]
push ecx
push dword [esp + 0xb0]
call fcn.10013840
add esp, 0x1c
test eax, eax
jns 0x1001619a
push str.invalid_format
push 0xfffffffffffffff4
jmp 0x10016351
push dword [esp + 0x1c]
mov esi, dword [esi + 8]
push edi
call fcn.10013850
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100161c9
push str.Could_not_alloc_key_part
push 0xfffffffffffffff2
push edi
call fcn.10013940
add esp, 0xc
mov ebx, eax
jmp 0x100163d3
push dword [esp + 0x2c]
push edi
call fcn.10013850
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100161f5
push str.Could_not_alloc_iv_part
push 0xfffffffffffffff2
push edi
call fcn.10013940
add esp, 0xc
mov ebx, eax
jmp 0x100163d3
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
push dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add eax, ebp
push eax
push dword [esp + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x54]
mov eax, dword [esp + 0x44]
push eax
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 0x38
test eax, eax
je 0x1001624f
mov ebx, 0xfffffff4
jmp 0x100163d3
mov eax, dword [esp + 0x74]
xor edx, edx
div esi
test edx, edx
je 0x10016277
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edi
mov eax, dword [eax + 0x20]
call eax
add esp, 8
mov ebx, 0xfffffff4
jmp 0x100163d3
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x70]
add eax, ebx
push esi
push eax
mov eax, dword [esp + 0x20]
push edi
mov eax, dword [eax + 0x1c]
call eax
add esp, 0x10
test eax, eax
jne 0x1001632e
mov eax, dword [esp + 0x74]
add ebx, esi
sub eax, esi
cmp ebx, eax
jbe 0x10016277
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edi
mov eax, dword [eax + 0x20]
call eax
add esp, 8
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10013b40
add esp, 8
test eax, eax
jne 0x10016421
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10013b40
add esp, 8
test eax, eax
jne 0x10016421
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jne 0x10016421
mov ebx, dword [esp + 0xa4]
test ebx, ebx
je 0x100163cd
push edi
call fcn.100140e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10016378
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push edi
call fcn.10013940
add esp, 0xc
mov ebx, eax
jmp 0x100163cf
lea eax, [esp + 0x18]
mov ebx, 0xfffffff4
push eax
mov eax, dword [esp + 0x18]
push edi
mov eax, dword [eax + 0x20]
call eax
add esp, 8
jmp 0x100163d3
push str.kdf_contains_unexpected_values
push 0xfffffffffffffff2
push edi
call fcn.10013940
mov ebx, eax
mov eax, dword [edi + 0xc]
push edi
push ebp
call eax
add esp, 0x14
jmp 0x100163d3
push str.bcrypted_without_passphrase
push 0xffffffffffffffd0
jmp 0x10016351
push str.No_supported_cipher_found
jmp 0x10016459
push dword [esp + 0x74]
push edi
call fcn.10013850
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x100163a6
push str.Unable_to_allocate_memory_for_decrypted_struct
push 0xfffffffffffffffa
push edi
call fcn.10013940
push esi
push edi
mov ebx, eax
call fcn.100140b0
add esp, 0x14
jmp 0x100163cf
push dword [esp + 0x74]
push dword [esp + 0x70]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
sub eax, dword [esp + 0x6c]
add eax, dword [esp + 0x70]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 8], eax
mov dword [ebx], esi
xor ebx, ebx
test ebp, ebp
je 0x100163e7
push dword [esp + 0x3c]
push ebp
call fcn.10013a30
mov eax, dword [edi + 0xc]
push edi
push ebp
call eax
add esp, 0x10
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x10016403
push dword [esp + 0x1c]
push ebp
call fcn.10013a30
mov eax, dword [edi + 0xc]
push edi
push ebp
call eax
add esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x10016466
push dword [esp + 0x2c]
push ebp
call fcn.10013a30
mov eax, dword [edi + 0xc]
push edi
push ebp
call eax
add esp, 0x10
jmp 0x10016466
push str.Private_key_unpack_failed__correct_password__
push 0xfffffffffffffff2
push edi
call fcn.10013940
add esp, 0xc
mov ebx, 0xffffffd0
jmp 0x100163cf
push str.Private_key_data_not_found
jmp 0x10016459
push str.Invalid_private_key__expect_embedded_public_key
jmp 0x10016459
push str.Multiple_keys_are_unsupported
jmp 0x10016459
push str.kdfname_is_missing
jmp 0x10016459
push str.ciphername_is_missing
push 0xfffffffffffffff2
push edi
call fcn.10013940
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10016485
push dword [esp + 0x40]
push eax
call fcn.10013a30
mov eax, dword [edi + 0xc]
push edi
push dword [esp + 0x3c]
call eax
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x80
ret