Function at 0x56f3f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.0058f4a0
mov eax, dword [0x66a9c4]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xd0]
push ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc0]
push ebp
mov dword [esp + 8], eax
xor ebp, ebp
mov eax, dword [esp + 0xd0]
push esi
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
push edi
mov edi, dword [esp + 0xe4]
test ecx, ecx
jne 0x56f470
call fcn.004fc590
mov ecx, eax
mov dword [esp + 0x18], eax
test edi, edi
push ecx
cmove edi, ecx
mov dword [esp + 0x34], edi
call fcn.00505830
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0xc8], ebp
jle 0x56f81b
test ebx, ebx
jle 0x56f81b
cmp esi, ebx
jl 0x56f7a9
lea eax, [edi*2 + 2]
cmp esi, eax
jl 0x56f7a9
mov ebx, esi
push 0x97
sub ebx, edi
dec ebx
push str..crypto_rsa_rsa_oaep.c
push ebx
mov dword [esp + 0x20], ebx
call fcn.004d9590
push 0x98
push str..crypto_rsa_rsa_oaep.c
push esi
mov ebp, eax
call fcn.004d9590
add esp, 0x18
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x56f7db
test eax, eax
je 0x56f7db
push esi
push 0
push eax
call fcn.005a7400
mov eax, dword [esp + 0x2c]
sub esi, eax
add esi, dword [esp + 0x28]
push eax
push dword [esp + 0x20]
push esi
call fcn.005a7560
mov edx, dword [esp + 0x34]
push dword [esp + 0x48]
push ebx
movzx eax, byte [edx]
lea esi, [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 + 0x44], eax
lea eax, [esp + 0x60]
push edi
push eax
mov dword [esp + 0x3c], ecx
call fcn.0056ef00
add esp, 0x2c
test eax, eax
jne 0x56f7f6
xor edx, edx
test edi, edi
jle 0x56f600
cmp edi, 0x20
jb 0x56f5df
lea eax, [esi - 1]
lea ebx, [esp + 0x3c]
add eax, edi
cmp ebx, eax
lea ecx, [esp + edi + 0x3b]
mov ebx, dword [esp + 0x14]
ja 0x56f57e
cmp ecx, esi
jae 0x56f5df
mov eax, edi
and eax, 0x8000001f
jns 0x56f58c
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, edi
mov edi, esi
sub ecx, eax
lea eax, [esp + 0x3c]
mov ebx, eax
sub edi, ebx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x56f5b0
mov ebx, dword [esp + 0x14]
cmp edx, edi
jge 0x56f600
lea eax, [esp + 0x3c]
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x3c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x56f5f0
push dword [esp + 0x30]
lea eax, [esp + 0x40]
push edi
push eax
push ebx
push ebp
call fcn.0056ef00
add esp, 0x14
test eax, eax
jne 0x56f7f6
xor esi, esi
test ebx, ebx
jle 0x56f6c2
cmp ebx, 0x20
jb 0x56f69e
mov ecx, dword [esp + 0x20]
lea edx, [ebp - 1]
add edx, ebx
lea eax, [ecx - 1]
add eax, ebx
cmp ebp, eax
ja 0x56f641
cmp edx, ecx
jae 0x56f69e
mov eax, ebx
and eax, 0x8000001f
jns 0x56f64f
dec eax
or eax, 0xffffffe0
inc eax
mov dword [esp + 0x14], ecx
mov edx, ebx
sub dword [esp + 0x14], ebp
sub edx, eax
add ecx, 0x10
mov eax, ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + esi]
add esi, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, edx
jl 0x56f670
mov edi, dword [esp + 0x24]
cmp esi, ebx
jge 0x56f6c2
mov edi, dword [esp + 0x20]
lea ecx, [esi + ebp]
mov edx, ebx
sub edi, ebp
sub edx, esi
nop
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x56f6b0
mov edi, dword [esp + 0x24]
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push 0
push eax
push dword [esp + 0xec]
push dword [esp + 0x48]
call fcn.004fbf20
add esp, 0x18
test eax, eax
je 0x56f7f6
push edi
lea eax, [esp + 0x80]
push eax
push ebp
call fcn.004f8d40
mov edx, dword [esp + 0x1c]
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 [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp edi, ebx
jge 0x56f778
movzx esi, byte [edi + ebp]
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 [esp + 0x28]
or eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
or ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [esp + 0x18], ecx
neg eax
or eax, ecx
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x56f722
test edx, ecx
je 0x56f7a9
mov eax, dword [esp + 0x28]
mov esi, ebx
inc eax
sub esi, eax
cmp dword [esp + 0xc8], esi
jge 0x56f7c9
push 0xdd
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call fcn.004f2c20
add esp, 0x14
or esi, 0xffffffff
push 0xea
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.004f2c20
add esp, 0x14
jmp 0x56f7f9
push esi
add eax, ebp
push eax
push dword [esp + 0x40]
call fcn.005a7560
add esp, 0xc
jmp 0x56f7f9
push 0x9a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.004f2c20
add esp, 0x14
or esi, 0xffffffff
test ebp, ebp
je 0x56f806
push ebp
call fcn.004d9510
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x56f817
push eax
call fcn.004d9510
add esp, 4
mov eax, esi
jmp 0x56f81e
or eax, 0xffffffff
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058e39a
add esp, 0xb0
ret