Function at 0x507710
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb8
call fcn.00420e60
mov eax, dword [0x5f9090]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
push ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc8]
push ebp
mov ebp, dword [esp + 0xd4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
push esi
mov dword [esp + 0x38], eax
xor esi, esi
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0xec]
test eax, eax
jne 0x507794
call fcn.004b67c0
mov dword [esp + 0x30], eax
test edi, edi
push eax
cmove edi, eax
mov dword [esp + 0x20], edi
call fcn.004ce3c0
add esp, 4
mov edi, eax
mov dword [esp + 0x28], edi
cmp dword [esp + 0xd0], esi
jle 0x507b35
test ebx, ebx
jle 0x507b35
cmp ebp, ebx
jl 0x507ab9
lea eax, [edi*2 + 2]
cmp ebp, eax
jl 0x507ab9
mov ebx, ebp
push 0x9d
sub ebx, edi
dec ebx
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push ebx
mov dword [esp + 0x38], ebx
call fcn.004afac0
push 0x9e
mov esi, eax
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x38], esi
call fcn.004afac0
add esp, 0x18
mov dword [esp + 0x18], eax
test esi, esi
je 0x507b1b
test eax, eax
je 0x507b1b
push ebp
push 0
push eax
call fcn.00437fe0
mov eax, dword [esp + 0x20]
sub ebp, eax
add ebp, dword [esp + 0x24]
push eax
push dword [esp + 0x20]
push ebp
call fcn.004381b0
mov edx, dword [esp + 0x30]
push dword [esp + 0x34]
push ebx
movzx eax, byte [edx]
lea ebp, [edx + 1]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
add eax, edi
neg ecx
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x68]
push edi
push eax
mov dword [esp + 0x3c], ecx
call fcn.005071d0
add esp, 0x2c
test eax, eax
jne 0x507adc
xor edx, edx
test edi, edi
jle 0x507910
cmp edi, 0x20
jb 0x5078f4
lea eax, [ebp - 1]
lea ebx, [esp + 0x44]
add eax, edi
cmp ebx, eax
lea ecx, [esp + edi + 0x43]
mov ebx, dword [esp + 0x2c]
ja 0x5078a6
cmp ecx, ebp
jae 0x5078f4
mov eax, edi
and eax, 0x8000001f
jns 0x5078b4
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, edi
mov edi, ebp
sub ecx, eax
lea eax, [esp + 0x44]
sub edi, eax
movups xmm0, xmmword [esp + edx + 0x44]
lea eax, [edi + edx]
movups xmm1, xmmword [esp + eax + 0x44]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x44], xmm1
movups xmm1, xmmword [edx + ebp + 0x10]
movups xmm0, xmmword [esp + edx + 0x54]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x54], xmm1
add edx, 0x20
cmp edx, ecx
jl 0x5078c0
mov edi, dword [esp + 0x28]
cmp edx, edi
jge 0x507910
lea eax, [esp + 0x44]
sub ebp, eax
nop
lea ecx, [esp + 0x44]
add ecx, edx
inc edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
cmp edx, edi
jl 0x507900
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push edi
push eax
push ebx
push esi
call fcn.005071d0
add esp, 0x14
test eax, eax
jne 0x507adc
xor edx, edx
test ebx, ebx
jle 0x5079d2
mov ebp, dword [esp + 0x14]
cmp ebx, 0x20
jb 0x5079b2
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x507951
cmp ecx, ebp
jae 0x5079b2
mov eax, ebx
and eax, 0x8000001f
jns 0x50795f
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, ebx
mov edi, ebp
sub ecx, eax
sub edi, esi
mov dword [esp + 0x1c], edi
mov eax, esi
lea edi, [ebp + 0x10]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x507980
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
cmp edx, ebx
jge 0x5079d2
lea ecx, [edx + esi]
sub ebp, esi
mov esi, ebx
sub esi, edx
nop
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x5079c0
mov esi, dword [esp + 0x20]
push 0
push dword [esp + 0x34]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [esp + 0xf4]
push dword [esp + 0x50]
call fcn.004b5f70
add esp, 0x18
test eax, eax
je 0x507adc
push edi
lea eax, [esp + 0x88]
push eax
push esi
call fcn.004c6d10
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor ebp, ebp
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
mov dword [esp + 0x10], edx
cmp edi, ebx
jge 0x507a86
nop
movzx esi, byte [edi + esi]
mov ecx, ebp
mov eax, esi
not ecx
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
or ebp, edx
mov edx, dword [esp + 0x10]
mov eax, ecx
not eax
and ecx, edi
and eax, dword [esp + 0x34]
inc edi
or ecx, eax
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0x20]
neg eax
or eax, ebp
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x507a30
jmp 0x507a88
xor ecx, ecx
test edx, ebp
je 0x507ab9
inc ecx
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0xd0], eax
jge 0x507b08
push 0xe3
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push 0x6d
push 0x99
push 4
call fcn.004bd0a0
add esp, 0x14
push 0xf0
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.004bd0a0
mov dword [esp + 0x38], 0xffffffff
add esp, 0x14
push 0xf2
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push esi
call fcn.004afaf0
push 0xf3
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push dword [esp + 0x2c]
call fcn.004afaf0
mov eax, dword [esp + 0x3c]
add esp, 0x18
jmp 0x507b38
push eax
lea eax, [ecx + esi]
push eax
push dword [esp + 0x48]
call fcn.004381b0
add esp, 0xc
jmp 0x507adc
push 0xa0
push str.....openssl_1.1.0fcrypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call fcn.004bd0a0
jmp 0x507ad9
or eax, 0xffffffff
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004202b9
add esp, 0xb8
ret