Function at 0x10122dd0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x64
call fcn.101704b0
mov eax, dword [0x101f2700]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x84]
test esi, esi
mov dword [esp + 0x18], eax
mov eax, sym.libcrypto_1_1.dll_PKCS12_key_gen_utf8
cmove esi, eax
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 8]
push dword [eax + 0x10]
call sym.libcrypto_1_1.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x15
je 0x10122e53
push 0x5b
push str.cryptopkcs12p12_mutl.c
push 0x79
push 0x6b
push 0x23
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.101704a0
add esp, 0x64
ret
mov ecx, dword [ebx + 4]
push ebp
mov eax, dword [ecx + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0xc], edx
test eax, eax
jne 0x10122e73
lea ebp, [eax + 1]
jmp 0x10122e7e
push eax
call sym.libcrypto_1_1.dll_ASN1_INTEGER_get
add esp, 4
mov ebp, eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x20]
push edi
push 0
push eax
push dword [ecx]
call sym.libcrypto_1_1.dll_X509_SIG_get0
push dword [esp + 0x30]
lea eax, [esp + 0x2c]
push 0
push 0
push eax
call sym.libcrypto_1_1.dll_X509_ALGOR_get0
push dword [esp + 0x38]
call sym.libcrypto_1_1.dll_OBJ_obj2nid
push eax
call sym.libcrypto_1_1.dll_OBJ_nid2sn
push eax
call sym.libcrypto_1_1.dll_EVP_get_digestbyname
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x10122eea
push 0x68
push str.cryptopkcs12p12_mutl.c
push 0x76
push 0x6b
push 0x23
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.101704a0
add esp, 0x64
ret
push edi
call sym.libcrypto_1_1.dll_EVP_MD_size
push edi
mov ebx, eax
call sym.libcrypto_1_1.dll_EVP_MD_type
add esp, 8
test ebx, ebx
js 0x10123020
cmp eax, 0x329
je 0x10122f18
cmp eax, 0x3d6
je 0x10122f18
cmp eax, 0x3d7
jne 0x10122f7e
push str.LEGACY_GOST_PKCS12
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
test eax, eax
jne 0x10122f7e
push edi
lea ebx, [eax + 0x20]
lea eax, [esp + 0x34]
push eax
push ebx
push ebp
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x98]
push dword [esp + 0x34]
call fcn.10122cf0
add esp, 0x20
test eax, eax
jne 0x10122fa8
push 0x76
push str.cryptopkcs12p12_mutl.c
push 0x6b
push 0x6b
push 0x23
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.101704a0
add esp, 0x64
ret
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push ebp
push 3
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x9c]
push dword [esp + 0x38]
call esi
add esp, 0x24
test eax, eax
jne 0x10122fa8
push 0x7c
jmp 0x10122f56
call sym.libcrypto_1_1.dll_HMAC_CTX_new
push 0
push edi
mov esi, eax
lea eax, [esp + 0x38]
push ebx
push eax
push esi
call sym.libcrypto_1_1.dll_HMAC_Init_ex
add esp, 0x14
test eax, eax
je 0x10123017
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x14]
push dword [eax]
push dword [eax + 8]
push esi
call sym.libcrypto_1_1.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x10123017
push dword [esp + 0x20]
push dword [esp + 0x2c]
push esi
call sym.libcrypto_1_1.dll_HMAC_Final
add esp, 0xc
test eax, eax
je 0x10123017
push esi
call sym.libcrypto_1_1.dll_HMAC_CTX_free
add esp, 4
mov eax, 1
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.101704a0
add esp, 0x64
ret
push esi
call sym.libcrypto_1_1.dll_HMAC_CTX_free
add esp, 4
mov ecx, dword [esp + 0x70]
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.101704a0
add esp, 0x64
ret