Function at 0x10002054
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10168fe0
mov eax, 0xc0
call fcn.10001f96
mov eax, dword [0x1025e3d4]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
push ebp
mov ebp, dword [esp + 0xec]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe0]
push esi
push edi
mov dword [esp + 0x1c], eax
xor edi, edi
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x30], 0
test eax, eax
jne 0x10169050
call sym.libcrypto_1_1.dll_EVP_sha1
mov dword [esp + 0x34], eax
test ebp, ebp
push eax
cmove ebp, eax
mov dword [esp + 0x2c], ebp
call sym.libcrypto_1_1.dll_EVP_MD_size
add esp, 4
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0xd8], ebx
jle 0x10169678
mov esi, dword [esp + 0xe0]
test esi, esi
jle 0x10169678
mov ecx, dword [esp + 0x40]
cmp ecx, esi
jl 0x1016965d
lea eax, [ebp*2 + 2]
cmp ecx, eax
jl 0x1016965d
sub ecx, ebp
push 0x9d
dec ecx
push str.crypto_rsa_rsa_oaep.c
push ecx
mov dword [esp + 0x30], ecx
call sym.libcrypto_1_1.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x101690e5
push 0x9f
push str.crypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x38]
add esp, 0x14
jmp 0x1016960b
mov edi, dword [esp + 0x40]
push 0xa3
push str.crypto_rsa_rsa_oaep.c
push edi
call sym.libcrypto_1_1.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10169124
push 0xa6
push str.crypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x10169603
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0xdc]
add ebx, edi
add edx, esi
mov dword [esp + 0x20], ebx
test edi, edi
jle 0x10169167
nop dword [eax + eax]
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebx
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [ebx], cl
sub edi, 1
jne 0x10169140
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
push dword [esp + 0x28]
movzx ebx, byte [ebx]
mov esi, dword [esp + 0x28]
lea edi, [eax + 1]
inc eax
add eax, ebp
mov dword [esp + 0x14], edi
push esi
push eax
lea ebx, [ebx - 1]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x58]
shr ebx, 0x1f
push ebp
push eax
neg ebx
call sym.libcrypto_1_1.dll_PKCS1_MGF1
add esp, 0x14
test eax, eax
jne 0x10169607
xor edx, edx
test ebp, ebp
jle 0x10169288
cmp ebp, 0x40
jb 0x10169272
lea eax, [edi - 1]
lea esi, [esp + 0x4c]
add eax, ebp
cmp esi, eax
lea ecx, [esp + ebp + 0x4b]
mov esi, dword [esp + 0x24]
ja 0x101691d4
cmp ecx, edi
jae 0x10169272
mov eax, ebp
and eax, 0x8000003f
jns 0x101691e2
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, ebp
lea esi, [esp + 0x4c]
sub esi, edi
lea ebp, [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x24]
lea eax, [edi + 0x20]
sub ebp, edi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
nop dword [eax]
movups xmm0, xmmword [esp + edx + 0x4c]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x4c], xmm1
movups xmm0, xmmword [esp + edx + 0x5c]
movups xmm1, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x5c], xmm1
add edx, 0x40
movups xmm0, xmmword [eax + ebp - 0x40]
movups xmm1, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm0, xmmword [edi + eax - 0x40]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
cmp edx, ecx
jl 0x10169210
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp edx, ebp
jge 0x10169288
lea eax, [esp + 0x4c]
sub edi, eax
lea ecx, [esp + 0x4c]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor byte [ecx], al
cmp edx, ebp
jl 0x10169278
push dword [esp + 0x28]
lea eax, [esp + 0x50]
push ebp
push eax
push esi
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_PKCS1_MGF1
add esp, 0x14
test eax, eax
jne 0x10169607
xor edi, edi
test esi, esi
jle 0x10169392
mov ecx, dword [esp + 0x14]
cmp esi, 0x40
jb 0x10169366
mov edx, dword [esp + 0x3c]
lea eax, [edx - 1]
add eax, esi
cmp ecx, eax
ja 0x101692d8
lea eax, [ecx - 1]
add eax, esi
cmp eax, edx
jae 0x10169366
mov eax, esi
and eax, 0x8000003f
jns 0x101692e6
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
add eax, 0x10
lea ecx, [edx + 0x30]
sub edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add edi, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, edx
jl 0x10169310
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp edi, esi
jge 0x10169392
mov ebp, dword [esp + 0x3c]
mov edx, esi
sub ebp, dword [esp + 0x14]
add ecx, edi
sub edx, edi
nop dword [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x10169380
mov ebp, dword [esp + 0x2c]
push 0
push dword [esp + 0x38]
lea eax, [esp + 0x94]
push 0
push eax
push dword [esp + 0xfc]
push dword [esp + 0x30]
call sym.libcrypto_1_1.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x10169607
push ebp
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x1c]
call sym.libcrypto_1_1.dll_CRYPTO_memcmp
add esp, 0xc
mov edi, ebp
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and ebx, ecx
mov dword [esp + 0x28], ebx
xor ebx, ebx
cmp ebp, esi
jge 0x10169449
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
movzx esi, byte [edi + eax]
mov eax, ebx
mov edx, esi
not eax
xor edx, 1
dec edx
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x1c], eax
not eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
and ecx, edi
and eax, dword [esp + 0x30]
inc edi
or eax, ecx
mov dword [esp + 0x30], eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x24]
shr eax, 0x1f
neg eax
or eax, ebx
and ebp, eax
cmp edi, esi
jl 0x101693f3
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0xd8]
mov eax, esi
sub eax, dword [esp + 0x30]
mov edi, esi
dec eax
sub edi, ebp
sub ecx, eax
mov dword [esp + 0x38], eax
xor ecx, eax
mov dword [esp + 0x18], edi
xor eax, dword [esp + 0xd8]
or ecx, eax
mov eax, dword [esp + 0xd8]
xor ecx, eax
shr ecx, 0x1f
dec ecx
and ecx, ebx
mov ebx, dword [esp + 0x28]
and ebx, ecx
lea ecx, [edi - 1]
mov edx, ecx
mov dword [esp + 0x28], ebx
sub edx, eax
xor edx, eax
mov eax, ecx
xor eax, dword [esp + 0xd8]
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [esp + 0x1c], edx
not edx
mov dword [esp + 0x10], edx
lea edx, [edi - 1]
mov eax, dword [esp + 0x1c]
mov edi, 1
mov ecx, dword [esp + 0x10]
and eax, edx
and ecx, dword [esp + 0xd8]
or ecx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ecx
cmp edx, edi
jle 0x1016956e
mov eax, dword [esp + 0x18]
lea edx, [ebp + 1]
sub eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], eax
nop dword [eax]
and eax, edi
sub esi, edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, esi
jge 0x10169552
mov eax, dword [esp + 0x14]
movzx ecx, cl
add eax, edx
mov ebp, ecx
mov dword [esp + 0x18], ecx
not ebp
sub esi, edx
nop dword [eax]
mov dword [esp + 0x1c], ecx
lea eax, [eax + 1]
movzx ecx, byte [eax + edi - 1]
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
and bl, cl
movzx ecx, byte [eax - 1]
and dl, cl
mov ecx, dword [esp + 0x18]
or dl, bl
mov byte [eax - 1], dl
sub esi, 1
jne 0x10169520
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
add edi, edi
mov eax, dword [esp + 0x30]
cmp edi, dword [esp + 0x3c]
jl 0x101694f0
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x101695dd
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
inc eax
shr ecx, 0x1f
neg edi
mov dword [esp + 0x18], ecx
add ebp, eax
nop dword [eax]
mov eax, edi
lea ebp, [ebp + 1]
shr eax, 0x1f
inc edi
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
movzx eax, byte [ebp - 1]
mov dword [esp + 0x1c], ecx
not ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
and dl, al
mov eax, dword [esp + 0x48]
movzx eax, byte [eax + esi]
and cl, al
mov eax, dword [esp + 0x48]
or cl, dl
mov byte [eax + esi], cl
inc esi
mov ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x34]
jl 0x10169590
push 0x107
push str.crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, ebx
and eax, 1
push eax
call fcn.10004b97
add esp, 0x18
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push 0x40
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
push 0x10b
push str.crypto_rsa_rsa_oaep.c
push esi
push dword [esp + 0x28]
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
mov eax, dword [esp + 0x58]
push 0x10c
push str.crypto_rsa_rsa_oaep.c
push eax
push edi
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
mov dword [esp + 0x44], ebx
add esp, 0x28
not ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x1c]
and ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
or eax, ecx
jmp 0x1016967b
push 0x98
push str.crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100032f1
add esp, 0xc0
ret