Function at 0x10182d80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.10228380
cmp dword [esp + 0x20], 0
push ebx
push ebp
push esi
mov dword [esp + 0x10], 0
jle 0x1018308a
mov esi, dword [esp + 0x34]
test esi, esi
jle 0x1018308a
mov ebp, dword [esp + 0x38]
cmp esi, ebp
jg 0x10183060
cmp ebp, 0xb
jl 0x10183060
push 0xc2
push str.crypto_rsa_rsa_pk1.c
push ebp
call sym.libcrypto_3.dll_CRYPTO_malloc
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1018308a
mov edx, dword [esp + 0x30]
add ebx, ebp
add edx, esi
mov dword [esp + 0x14], ebx
push edi
test ebp, ebp
jle 0x10182e1a
mov edi, ebp
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
mov al, byte [edx]
and al, cl
mov byte [ebx], al
sub edi, 1
jne 0x10182df1
mov dword [esp + 0x18], ebx
movzx eax, byte [ebx + 1]
mov esi, 2
xor eax, 2
xor edi, edi
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
movzx eax, byte [ebx]
dec eax
neg edx
shr eax, 0x1f
neg eax
and edx, eax
mov dword [esp + 0x10], edx
cmp ebp, esi
jle 0x10182e8b
nop word [eax + eax]
movzx edx, byte [esi + ebx]
mov eax, edi
dec edx
not eax
shr edx, 0x1f
neg edx
and eax, edx
or edi, edx
mov dword [esp + 0x1c], eax
not eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and ecx, esi
and eax, dword [esp + 0x14]
inc esi
or eax, ecx
mov dword [esp + 0x14], eax
cmp esi, ebp
jl 0x10182e50
mov edx, dword [esp + 0x10]
jmp 0x10182e8d
xor eax, eax
mov edi, dword [esp + 0x30]
mov esi, ebp
sub esi, eax
mov ecx, edi
dec esi
sub ecx, esi
mov dword [esp + 0x1c], esi
xor ecx, esi
mov eax, esi
mov esi, dword [esp + 0x14]
xor eax, edi
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
lea eax, [esi - 0xa]
dec ecx
or eax, esi
xor eax, esi
mov esi, 1
shr eax, 0x1f
dec eax
and ecx, eax
and edx, ecx
lea ecx, [ebp - 0xb]
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, ecx
xor eax, edi
sub edx, edi
xor edx, edi
or edx, eax
xor edx, ecx
lea ecx, [ebp - 0xb]
shr edx, 0x1f
neg edx
mov dword [esp + 0x30], edx
not edx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
and eax, ecx
and edx, edi
or edx, eax
mov dword [esp + 0x30], edx
cmp ecx, esi
jle 0x10182f7f
mov eax, ebp
sub eax, dword [esp + 0x1c]
add eax, 0xfffffff5
mov dword [esp + 0x24], eax
and eax, esi
mov edi, ebp
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x10182f6e
movzx ebp, cl
lea eax, [ebx + 0xb]
mov dword [esp + 0x20], ebp
add edi, 0xfffffff5
mov ebx, dword [esp + 0x20]
not ebp
nop
mov dword [esp + 0x20], ebx
lea eax, [eax + 1]
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [esp + 0x14]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne 0x10182f40
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
lea eax, [ebp - 0xb]
add esi, esi
cmp esi, eax
mov eax, dword [esp + 0x24]
jl 0x10182f12
mov edx, dword [esp + 0x30]
xor esi, esi
test edx, edx
jle 0x10182ff6
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 0xb]
mov edi, dword [esp + 0x1c]
mov ebp, ecx
mov ebx, dword [esp + 0x10]
shr eax, 0x1f
neg edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov edx, edi
mov ecx, esi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
xor dl, al
xor al, cl
or dl, al
movzx eax, bl
xor dl, cl
neg dl
movzx ecx, dl
mov edx, dword [esp + 0x2c]
and ecx, eax
mov dword [esp + 0x24], ecx
not ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
mov cl, byte [esi + ebp]
and cl, al
mov eax, dword [esp + 0x20]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
mov eax, dword [esp + 0x14]
cmp esi, dword [esp + 0x30]
jl 0x10182fa3
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
push pe_nt_image_headers32
push str.crypto_rsa_rsa_pk1.c
push ebp
push ebx
call sym.libcrypto_3.dll_CRYPTO_clear_free
call sym.libcrypto_3.dll_ERR_new
push 0x102dd448
push 0x10f
push str.crypto_rsa_rsa_pk1.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x9f
push 4
call sym.libcrypto_3.dll_ERR_set_error
mov ebx, dword [esp + 0x38]
mov eax, ebx
and eax, 1
push eax
call fcn.100f5a00
add esp, 0x2c
mov dword [esp + 0x30], ebx
not ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
or eax, ecx
pop ebx
add esp, 0x18
ret
call sym.libcrypto_3.dll_ERR_new
push 0x102dd448
push 0xbe
push str.crypto_rsa_rsa_pk1.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x9f
push 4
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret