Function at 0x100034f9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1015e310
mov eax, 0x30
call fcn.101aa6d0
push ebx
push ebp
push esi
push edi
push dword [esp + 0x44]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
call sym.libcrypto_1_1.dll_EC_KEY_get0_group
mov edi, eax
xor ebp, ebp
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], ebp
call fcn.1015e1c0
push dword [esp + 0x50]
mov ebx, eax
mov dword [esp + 0x38], ebx
call sym.libcrypto_1_1.dll_EVP_MD_size
add esp, 0xc
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebp
test ebx, ebx
je 0x1015e3c2
test eax, eax
jle 0x1015e3c2
mov eax, dword [esp + 0x58]
push dword [eax]
push 0xff
push dword [esp + 0x5c]
call fcn.101aad60
push 0x10237898
push dword [esp + 0x60]
lea eax, [esp + 0x60]
push eax
push esi
call sym.libcrypto_1_1.dll_ASN1_item_d2i
mov ebp, eax
add esp, 0x1c
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1015e440
push 0x126
push str...crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor edi, edi
mov eax, dword [esp + 0x58]
push dword [eax]
push 0
push dword [esp + 0x5c]
call fcn.101aad60
add esp, 0xc
push 0x180
push str...crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call sym.libcrypto_1_1.dll_CRYPTO_free
push 0x181
push str...crypto_sm2_sm2_crypt.c
push dword [esp + 0x2c]
call sym.libcrypto_1_1.dll_CRYPTO_free
push 0x182
push str...crypto_sm2_sm2_crypt.c
push edi
call sym.libcrypto_1_1.dll_CRYPTO_free
push dword [esp + 0x48]
call sym.libcrypto_1_1.dll_EC_POINT_free
push dword [esp + 0x44]
call sym.libcrypto_1_1.dll_BN_CTX_free
push 0x10237898
push ebp
call sym.libcrypto_1_1.dll_ASN1_item_free
push esi
call sym.libcrypto_1_1.dll_EVP_MD_CTX_free
mov eax, dword [esp + 0x70]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
cmp dword [ecx], eax
je 0x1015e45c
push 0x12b
push str...crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x1015e3b6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov ebx, dword [eax + 8]
mov ebp, dword [eax]
mov dword [esp + 0x3c], ecx
call sym.libcrypto_1_1.dll_BN_CTX_new
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1015e496
push 0x135
push str...crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebp, dword [esp + 0x24]
jmp 0x1015e3bf
push eax
call sym.libcrypto_1_1.dll_BN_CTX_start
push dword [esp + 0x20]
call sym.libcrypto_1_1.dll_BN_CTX_get
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1015e4db
push 0x13e
push str...crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebp, dword [esp + 0x24]
jmp 0x1015e3bf
push 0x142
push str...crypto_sm2_sm2_crypt.c
push ebp
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 0x143
add eax, eax
push str...crypto_sm2_sm2_crypt.c
push eax
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
push 0x144
push str...crypto_sm2_sm2_crypt.c
push dword [esp + 0x48]
mov dword [esp + 0x3c], eax
call sym.libcrypto_1_1.dll_CRYPTO_zalloc
add esp, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], esi
je 0x1015e772
cmp dword [esp + 0x18], esi
je 0x1015e772
test eax, eax
je 0x1015e772
push edi
call sym.libcrypto_1_1.dll_EC_POINT_new
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x1015e577
push 0x14d
push str...crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x14
jmp 0x1015e3c4
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push edi
call sym.libcrypto_1_1.dll_EC_POINT_set_affine_coordinates
add esp, 0x14
test eax, eax
je 0x1015e761
push dword [esp + 0x1c]
push dword [esp + 0x48]
call sym.libcrypto_1_1.dll_EC_KEY_get0_private_key
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push edi
call sym.libcrypto_1_1.dll_EC_POINT_mul
add esp, 0x18
test eax, eax
je 0x1015e761
push dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x30]
push edi
call sym.libcrypto_1_1.dll_EC_POINT_get_affine_coordinates
add esp, 0x14
test eax, eax
je 0x1015e761
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x38]
call sym.libcrypto_1_1.dll_BN_bn2binpad
add esp, 0xc
test eax, eax
js 0x1015e750
mov eax, dword [esp + 0x18]
add eax, edi
push edi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
call sym.libcrypto_1_1.dll_BN_bn2binpad
add esp, 0xc
test eax, eax
js 0x1015e750
push dword [esp + 0x48]
lea eax, [edi + edi]
push 0
push 0
push eax
push dword [esp + 0x28]
push ebp
push dword [esp + 0x38]
call fcn.10003b0c
add esp, 0x1c
test eax, eax
je 0x1015e750
test ebp, ebp
je 0x1015e666
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x54]
sub ebx, eax
mov ecx, eax
sub esi, eax
mov edx, ebp
mov al, byte [ebx + ecx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
dec edx
jne 0x1015e657
call sym.libcrypto_1_1.dll_EVP_MD_CTX_new
mov esi, eax
test esi, esi
jne 0x1015e67b
push 0x167
jmp 0x1015e557
push dword [esp + 0x48]
push esi
call sym.libcrypto_1_1.dll_EVP_DigestInit
add esp, 8
test eax, eax
je 0x1015e72b
push edi
push dword [esp + 0x1c]
push esi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1015e72b
push ebp
push dword [esp + 0x58]
push esi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1015e72b
push edi
push dword [esp + 0x34]
push esi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x1015e72f
push 0
push edi
push esi
call sym.libcrypto_1_1.dll_EVP_DigestFinal
add esp, 0xc
test eax, eax
je 0x1015e72f
push dword [esp + 0x28]
push dword [esp + 0x40]
push edi
call sym.libcrypto_1_1.dll_CRYPTO_memcmp
add esp, 0xc
test eax, eax
je 0x1015e714
push 0x175
push str...crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebp, dword [esp + 0x24]
add esp, 0x14
jmp 0x1015e3c4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], 1
mov dword [eax], ebp
mov ebp, dword [esp + 0x10]
jmp 0x1015e3d8
mov edi, dword [esp + 0x14]
push 0x170
push str...crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call sym.libcrypto_1_1.dll_ERR_put_error
mov ebp, dword [esp + 0x24]
add esp, 0x14
jmp 0x1015e3c4
push 0x15e
push str...crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x1015e55e
push 0x156
push str...crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x1015e55e
push 0x147
jmp 0x1015e557