Function at 0x573d70
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
lea rax, [sym.PKCS12_key_gen_utf8]
mov rsi, qword [rsp + 0x190]
test rsi, rsi
cmove rsi, rax
mov rax, qword [rdx]
mov rbx, rcx
mov rdi, rdx
mov r12, r8
mov rcx, qword [rax + 0x18]
mov r13d, r9d
call sym.OBJ_obj2nid
cmp eax, 0x15
jne 0x573fa8
mov rax, qword [rbx]
mov dword [rsp + 0x58], 1
mov rdx, qword [rax + 8]
mov rcx, qword [rdx + 8]
mov edx, dword [rdx]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rax + 0x10]
mov dword [rsp + 0x5c], edx
test rcx, rcx
je 0x573ded
call sym.ASN1_INTEGER_get
mov dword [rsp + 0x58], eax
mov rax, qword [rbx]
mov rcx, qword [rax]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call sym.X509_SIG_get0
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call sym.X509_ALGOR_get0
mov rcx, qword [rsp + 0x68]
call sym.OBJ_obj2nid
mov ecx, eax
call sym.OBJ_nid2sn
mov rcx, rax
call sym.EVP_get_digestbyname
mov rbx, rax
test rax, rax
je 0x574020
mov rcx, rax
call sym.EVP_MD_size
mov rcx, rbx
mov ebp, eax
call sym.EVP_MD_type
mov edx, eax
xor eax, eax
test ebp, ebp
js 0x573efa
lea eax, [rdx - 0x3d6]
cmp eax, 1
jbe 0x573f10
cmp edx, 0x329
je 0x573f10
mov eax, dword [rsp + 0x58]
lea r14, [rsp + 0x70]
mov dword [rsp + 0x30], ebp
mov edx, r13d
mov qword [rsp + 0x40], rbx
mov r9d, dword [rsp + 0x5c]
mov rcx, r12
mov qword [rsp + 0x38], r14
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
call rsi
test eax, eax
je 0x574050
call sym.HMAC_CTX_new
mov r15, rax
xor eax, eax
test r15, r15
je 0x573edd
mov r9, rbx
mov r8d, ebp
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], 0
call sym.HMAC_Init_ex
test eax, eax
jne 0x573fd8
mov edx, 0x40
mov rcx, r14
mov dword [rsp + 0x58], eax
call sym.OPENSSL_cleanse
mov rcx, r15
call sym.HMAC_CTX_free
mov eax, dword [rsp + 0x58]
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.LEGACY_GOST_PKCS12
call sym.getenv
mov r15, rax
test rax, rax
jne 0x573e6f
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov edx, r13d
mov rcx, r12
lea r14, [rsp + 0xb0]
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x30], 0x60
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x20], eax
call sym.PKCS5_PBKDF2_HMAC
test eax, eax
je 0x574088
mov rcx, r14
mov edx, 0x60
mov ebp, 0x20
movdqu xmm0, xmmword [rsp + 0xf0]
movdqu xmm1, xmmword [rsp + 0x100]
lea r14, [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm1
call sym.OPENSSL_cleanse
jmp 0x573eac
mov r8d, 0x79
mov edx, 0x6b
mov ecx, 0x23
mov dword [rsp + 0x20], 0x5c
lea r9, str.crypto_pkcs12_p12_mutl.c
call sym.ERR_put_error
xor eax, eax
jmp 0x573efa
mov rax, qword [rdi]
mov rcx, r15
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 8]
movsxd r8, dword [rax]
call sym.HMAC_Update
test eax, eax
je 0x573edd
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x180]
mov rcx, r15
call sym.HMAC_Final
test eax, eax
setne al
movzx eax, al
jmp 0x573edd
mov r8d, 0x76
mov edx, 0x6b
mov ecx, 0x23
mov dword [rsp + 0x20], 0x69
lea r9, str.crypto_pkcs12_p12_mutl.c
call sym.ERR_put_error
xor eax, eax
jmp 0x573efa
mov dword [rsp + 0x20], 0x7d
lea r9, str.crypto_pkcs12_p12_mutl.c
mov r8d, 0x6b
xor r15d, r15d
mov edx, 0x6b
mov ecx, 0x23
mov dword [rsp + 0x58], eax
call sym.ERR_put_error
mov eax, dword [rsp + 0x58]
jmp 0x573edd
lea r9, str.crypto_pkcs12_p12_mutl.c
mov r8d, 0x6b
mov edx, 0x6b
mov dword [rsp + 0x20], 0x77
mov ecx, 0x23
mov dword [rsp + 0x58], eax
lea r14, [rsp + 0x70]
call sym.ERR_put_error
mov eax, dword [rsp + 0x58]
jmp 0x573edd