Function at 0x100023b5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1015e8a0
mov eax, 0x44
call fcn.101aa6d0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], 0
xor ebp, ebp
call sym.libcrypto_1_1.dll_EVP_MD_CTX_new
mov esi, dword [esp + 0x58]
push esi
mov dword [esp + 0x20], eax
call sym.libcrypto_1_1.dll_EC_KEY_get0_group
mov edi, eax
push edi
call sym.libcrypto_1_1.dll_EC_GROUP_get0_order
push esi
mov dword [esp + 0x44], eax
call sym.libcrypto_1_1.dll_EC_KEY_get0_public_key
push dword [esp + 0x68]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
call sym.libcrypto_1_1.dll_EVP_MD_size
add esp, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
cmp dword [esp + 0x1c], ebp
je 0x1015ed2d
test eax, eax
jle 0x1015ed2d
push edi
call fcn.1015e1c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1015e930
push 0x93
jmp 0x1015ed32
push edi
call sym.libcrypto_1_1.dll_EC_POINT_new
push edi
mov dword [esp + 0x28], eax
call sym.libcrypto_1_1.dll_EC_POINT_new
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
call sym.libcrypto_1_1.dll_BN_CTX_new
cmp dword [esp + 0x20], 0
mov ebp, eax
je 0x1015ed1f
test esi, esi
je 0x1015ed1f
test ebp, ebp
je 0x1015ed1f
push ebp
call sym.libcrypto_1_1.dll_BN_CTX_start
push ebp
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebp
mov esi, eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebp
mov dword [esp + 0x38], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebp
mov dword [esp + 0x28], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebp
mov dword [esp + 0x44], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
add esp, 0x18
mov dword [esp + 0x40], eax
test eax, eax
jne 0x1015e9b9
push 0xa7
push str...crypto_sm2_sm2_crypt.c
push 3
jmp 0x1015ed39
push 0xab
lea eax, [ebx + ebx]
push str...crypto_sm2_sm2_crypt.c
push eax
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
push 0xac
push str...crypto_sm2_sm2_crypt.c
push dword [esp + 0x44]
mov dword [esp + 0x30], eax
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x1015ecff
test eax, eax
je 0x1015ecff
mov eax, dword [esp + 0x6c]
push dword [eax]
push 0
push dword [esp + 0x70]
call fcn.101aad60
push dword [esp + 0x44]
push esi
call sym.libcrypto_1_1.dll_BN_priv_rand_range
add esp, 0x14
test eax, eax
jne 0x1015ea31
push 0xb6
push str...crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x1015ed0b
push ebp
push 0
push 0
push esi
push dword [esp + 0x30]
push edi
call sym.libcrypto_1_1.dll_EC_POINT_mul
add esp, 0x18
test eax, eax
je 0x1015ecf1
push ebp
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push edi
call sym.libcrypto_1_1.dll_EC_POINT_get_affine_coordinates
add esp, 0x14
test eax, eax
je 0x1015ecf1
push ebp
push esi
push dword [esp + 0x44]
push 0
push dword [esp + 0x34]
push edi
call sym.libcrypto_1_1.dll_EC_POINT_mul
add esp, 0x18
test eax, eax
je 0x1015ecf1
mov esi, dword [esp + 0x40]
push ebp
push esi
push dword [esp + 0x1c]
push dword [esp + 0x30]
push edi
call sym.libcrypto_1_1.dll_EC_POINT_get_affine_coordinates
add esp, 0x14
test eax, eax
je 0x1015ecf1
mov edi, dword [esp + 0x18]
push ebx
push edi
push dword [esp + 0x1c]
call sym.libcrypto_1_1.dll_BN_bn2binpad
add esp, 0xc
test eax, eax
js 0x1015ece3
lea eax, [ebx + edi]
push ebx
push eax
push esi
call sym.libcrypto_1_1.dll_BN_bn2binpad
add esp, 0xc
test eax, eax
js 0x1015ece3
mov edi, dword [esp + 0x64]
push 0xc8
push str...crypto_sm2_sm2_crypt.c
push edi
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1015eb1a
push 0xca
push str...crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x1015ed49
push dword [esp + 0x5c]
lea ecx, [ebx + ebx]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push edi
push eax
call fcn.10003b0c
add esp, 0x1c
test eax, eax
jne 0x1015eb5e
push 0xd1
push str...crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x1015ed49
mov esi, dword [esp + 0x60]
test edi, edi
je 0x1015eb7f
mov ecx, dword [esp + 0x14]
sub esi, ecx
mov edx, edi
mov edi, edi
mov al, byte [esi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1015eb70
mov esi, dword [esp + 0x60]
push dword [esp + 0x5c]
push dword [esp + 0x20]
call sym.libcrypto_1_1.dll_EVP_DigestInit
add esp, 8
test eax, eax
je 0x1015ecc1
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1015ecc1
push edi
push esi
mov esi, dword [esp + 0x24]
push esi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1015ecc1
mov eax, dword [esp + 0x18]
push ebx
add eax, ebx
push eax
push esi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1015ecc5
push 0
push ebx
push esi
call sym.libcrypto_1_1.dll_EVP_DigestFinal
add esp, 0xc
test eax, eax
je 0x1015ecc5
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_new
mov dword [esp + 0x4c], eax
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_new
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x1015eca0
test eax, eax
je 0x1015eca0
push dword [esp + 0x30]
push ebx
push ecx
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_set
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x1015ec83
push edi
push esi
push dword [esp + 0x58]
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_set
add esp, 0xc
test eax, eax
je 0x1015ec83
push 0x10237898
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x4c]
push eax
call sym.libcrypto_1_1.dll_ASN1_item_i2d
add esp, 0xc
test eax, eax
jns 0x1015ec70
push 0xf3
jmp 0x1015ec88
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], 1
mov dword [ecx], eax
jmp 0x1015ed49
push 0xec
push str...crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x1015ed49
push 0xe7
push str...crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x1015ed49
mov ebx, dword [esp + 0x10]
push 0xdd
push str...crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x1015ed49
push 0xc4
push str...crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x1015ed0b
push 0xbe
push str...crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x1015ed0b
push 0xaf
push str...crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebx, dword [esp + 0x24]
add esp, 0x14
xor esi, esi
jmp 0x1015ed49
push 0x9b
push str...crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x1015ed39
push 0x8d
push str...crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor esi, esi
xor ebx, ebx
push dword [esp + 0x50]
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_free
push dword [esp + 0x50]
call sym.libcrypto_1_1.dll_ASN1_OCTET_STRING_free
push 0xfd
push str...crypto_sm2_sm2_crypt.c
push esi
call sym.libcrypto_1_1.dll_CRYPTO_free
push 0xfe
push str...crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call sym.libcrypto_1_1.dll_CRYPTO_free
push 0xff
push str...crypto_sm2_sm2_crypt.c
push ebx
call sym.libcrypto_1_1.dll_CRYPTO_free
push dword [esp + 0x48]
call sym.libcrypto_1_1.dll_EVP_MD_CTX_free
push ebp
call sym.libcrypto_1_1.dll_BN_CTX_free
push dword [esp + 0x54]
call sym.libcrypto_1_1.dll_EC_POINT_free
push dword [esp + 0x5c]
call sym.libcrypto_1_1.dll_EC_POINT_free
mov eax, dword [esp + 0x70]
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret