Function at 0x56ef10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x90], ecx
xor esi, esi
mov dword [ebp - 0xb0], eax
xor ecx, ecx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], ecx
push edi
mov edi, dword [ebp + 0x28]
test eax, eax
jne 0x56ef82
call fcn.004f5850
mov dword [ebp - 0x94], eax
test edi, edi
push eax
cmove edi, eax
mov dword [ebp - 0x9c], edi
call fcn.005190d0
add esp, 4
mov edi, eax
mov dword [ebp - 0xa8], edi
cmp dword [ebp + 0xc], esi
jle 0x56f3c1
mov eax, dword [ebp - 0x90]
test eax, eax
jle 0x56f3c1
cmp ebx, eax
jl 0x56f34e
lea eax, [edi*2 + 2]
cmp ebx, eax
jl 0x56f34e
push 0x97
sub ebx, edi
dec ebx
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_oaep.c
push ebx
mov dword [ebp - 0xa0], ebx
call fcn.004ee770
push 0x98
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_oaep.c
push dword [ebp - 0x8c]
mov esi, eax
mov dword [ebp - 0xac], esi
call fcn.004ee770
add esp, 0x18
mov dword [ebp - 0x98], eax
test esi, esi
je 0x56f3b3
test eax, eax
je 0x56f3b3
push dword [ebp - 0x8c]
push 0
push eax
call fcn.005feb40
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
push ecx
push dword [ebp - 0x88]
sub eax, ecx
add eax, dword [ebp - 0x98]
push eax
call fcn.005fe040
mov ecx, dword [ebp - 0x98]
push dword [ebp - 0x9c]
push ebx
movzx eax, byte [ecx]
dec eax
shr eax, 0x1f
neg eax
mov dword [ebp - 0x8c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x88], eax
lea eax, [ecx + 1]
add eax, edi
push eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.0056ea30
add esp, 0x2c
test eax, eax
jne 0x56f369
xor edx, edx
test edi, edi
jle 0x56f156
mov eax, dword [ebp - 0x88]
cmp edi, 0x40
jb 0x56f132
dec eax
lea ebx, [ebp - 0x44]
add eax, edi
lea ecx, [ebp + edi - 0x45]
cmp ebx, eax
mov ebx, dword [ebp - 0xa0]
ja 0x56f0c7
mov eax, dword [ebp - 0x88]
cmp ecx, eax
jae 0x56f132
mov eax, edi
and eax, 0x8000003f
jns 0x56f0d5
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp - 0x88]
nop
movups xmm0, xmmword [ebp + edx - 0x44]
movups xmm1, xmmword [eax + edx]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x44], xmm1
movups xmm0, xmmword [ebp + edx - 0x34]
movups xmm1, xmmword [eax + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x34], xmm1
movups xmm0, xmmword [ebp + edx - 0x24]
movups xmm1, xmmword [eax + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x24], xmm1
movups xmm0, xmmword [ebp + edx - 0x14]
movups xmm1, xmmword [eax + edx + 0x30]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x14], xmm1
add edx, 0x40
cmp edx, ecx
jl 0x56f0e0
cmp edx, edi
jge 0x56f156
lea ecx, [ebp - 0x44]
sub eax, ecx
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ecx + eax]
xor byte [ecx], al
mov eax, dword [ebp - 0x88]
cmp edx, edi
jl 0x56f141
push dword [ebp - 0x9c]
lea eax, [ebp - 0x44]
push edi
push eax
push ebx
push esi
call fcn.0056ea30
add esp, 0x14
test eax, eax
jne 0x56f369
xor edx, edx
test ebx, ebx
jle 0x56f25c
cmp ebx, 0x40
jb 0x56f22b
mov ecx, dword [ebp - 0x90]
lea eax, [ecx - 1]
add eax, ebx
cmp esi, eax
ja 0x56f1a2
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x56f22b
mov eax, ebx
and eax, 0x8000003f
jns 0x56f1b0
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp - 0x88], ebx
mov edi, ecx
sub dword [ebp - 0x88], eax
sub edi, esi
mov dword [ebp - 0x9c], edi
mov eax, esi
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0x9c]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ecx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, dword [ebp - 0x88]
jl 0x56f1d4
mov ebx, dword [ebp - 0xa0]
cmp edx, ebx
jge 0x56f25c
sub dword [ebp - 0x90], esi
lea ecx, [edx + esi]
mov edi, ebx
mov ebx, dword [ebp - 0x90]
sub edi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x56f242
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xa0]
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push 0
push eax
push dword [ebp + 0x20]
push dword [ebp - 0xb0]
call fcn.004f4fa0
add esp, 0x18
test eax, eax
je 0x56f369
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00514a20
mov edx, dword [ebp - 0x8c]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x94], ecx
cmp edi, ebx
jge 0x56f321
movzx esi, byte [edi + esi]
not ecx
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [ebp - 0xa4]
or eax, ecx
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xa4], eax
or ecx, edx
mov edx, dword [ebp - 0x8c]
lea eax, [esi - 1]
mov esi, dword [ebp - 0xac]
shr eax, 0x1f
neg eax
mov dword [ebp - 0x94], ecx
or eax, ecx
and edx, eax
mov dword [ebp - 0x8c], edx
cmp edi, ebx
jl 0x56f2c0
test edx, ecx
je 0x56f34e
mov eax, dword [ebp - 0xa4]
inc eax
sub ebx, eax
cmp dword [ebp + 0xc], ebx
jge 0x56f39f
push 0xdd
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call fcn.0050ab50
add esp, 0x14
push 0xea
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0050ab50
add esp, 0x14
or ebx, 0xffffffff
test esi, esi
je 0x56f379
push esi
call fcn.004ee6a0
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x56f38c
push eax
call fcn.004ee6a0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push ebx
add eax, esi
push eax
push dword [ebp - 0xb4]
call fcn.005fe040
add esp, 0xc
jmp 0x56f36c
push 0x9a
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_oaep.c
push 0x41
jmp 0x56f35a
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret