Function at 0x582970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc0
call fcn.005b9970
mov eax, dword [0x686300]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xe0]
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
test eax, eax
jne 0x5829e6
call fcn.005307f0
mov dword [esp + 0x2c], eax
test ebx, ebx
push eax
cmove ebx, eax
mov dword [esp + 0x40], ebx
call fcn.005404d0
add esp, 4
mov ebx, eax
mov dword [esp + 0x34], ebx
cmp dword [esp + 0xd8], edi
jle 0x582f77
mov esi, dword [esp + 0xe0]
test esi, esi
jle 0x582f77
cmp ebp, esi
jl 0x582f5c
lea eax, [ebx*2 + 2]
cmp ebp, eax
jl 0x582f5c
push 0x9e
sub ebp, ebx
dec ebp
push str..crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x34], ebp
call fcn.00534ad0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x582a73
push 0xa0
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.0052e7a0
add esp, 0x14
jmp 0x582f10
mov edi, dword [esp + 0x44]
push 0xa4
push str..crypto_rsa_rsa_oaep.c
push edi
call fcn.00534ad0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x582ab2
push 0xa7
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.0052e7a0
add esp, 0x14
jmp 0x582f0c
mov edx, dword [esp + 0xdc]
add eax, edi
add edx, esi
mov dword [esp + 0x18], eax
test edi, edi
jle 0x582af5
mov ebp, eax
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebp
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [ebp], cl
dec edi
jne 0x582ac7
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
push dword [esp + 0x3c]
push ebp
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, dword [esp + 0x20]
neg ecx
mov dword [esp + 0x1c], ecx
lea edi, [eax + 1]
add edi, ebx
lea esi, [eax + 1]
push edi
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.005823f0
add esp, 0x14
test eax, eax
jne 0x582f0c
xor edx, edx
test ebx, ebx
jle 0x582be0
cmp ebx, 0x20
jb 0x582bc5
lea eax, [esi - 1]
lea ebp, [esp + 0x4c]
add eax, ebx
cmp ebp, eax
lea ecx, [esp + ebx + 0x4b]
mov ebp, dword [esp + 0x28]
ja 0x582b5f
cmp ecx, esi
jae 0x582bc5
mov eax, ebx
and eax, 0x8000001f
jns 0x582b6d
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, ebx
mov ebp, esi
sub ecx, eax
lea eax, [esp + 0x4c]
mov ebx, eax
sub ebp, ebx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
jmp 0x582b90
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [esi + edx + 0x10]
add edx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x582b90
mov ebx, dword [esp + 0x34]
cmp edx, ebx
jge 0x582be0
lea eax, [esp + 0x4c]
sub esi, eax
nop
lea ecx, [esp + 0x4c]
add ecx, edx
inc edx
mov al, byte [ecx + esi]
xor byte [ecx], al
cmp edx, ebx
jl 0x582bd0
push dword [esp + 0x3c]
lea eax, [esp + 0x50]
push ebx
push eax
push ebp
push dword [esp + 0x30]
call fcn.005823f0
add esp, 0x14
test eax, eax
jne 0x582f0c
xor esi, esi
test ebp, ebp
jle 0x582c9e
mov edx, dword [esp + 0x20]
cmp ebp, 0x20
jb 0x582c85
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, ebp
cmp edx, eax
ja 0x582c24
cmp ecx, edi
jae 0x582c85
mov eax, ebp
and eax, 0x8000001f
jns 0x582c32
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, ebp
mov ebx, edi
sub ecx, eax
sub ebx, edx
mov dword [esp + 0x1c], ebx
mov eax, edx
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
jmp 0x582c50
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [edi + esi + 0x10]
add esi, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp esi, ecx
jl 0x582c50
mov ebp, dword [esp + 0x28]
cmp esi, ebp
jge 0x582c9e
lea ecx, [esi + edx]
sub edi, edx
mov edx, ebp
sub edx, esi
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x582c92
push 0
push dword [esp + 0x30]
lea eax, [esp + 0x94]
push 0
push eax
push dword [esp + 0xfc]
push dword [esp + 0x24]
call fcn.005371e0
add esp, 0x18
test eax, eax
je 0x582f0c
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push ebx
push eax
push esi
call fcn.0052d0c0
add esp, 0xc
xor edx, edx
mov edi, ebx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and dword [esp + 0x14], ecx
cmp ebx, ebp
jge 0x582d68
xor ebx, ebx
lea esp, [esp]
movzx esi, byte [edi + esi]
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, ebx
not eax
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
and ecx, edi
and eax, dword [esp + 0x30]
inc edi
or ecx, eax
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x20]
neg eax
or eax, ebx
and dword [esp + 0x14], eax
cmp edi, ebp
jl 0x582d00
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xd8]
mov eax, ebp
sub eax, dword [esp + 0x30]
mov ecx, edi
dec eax
mov esi, ebp
sub ecx, eax
mov dword [esp + 0x40], eax
xor ecx, eax
sub esi, ebx
xor eax, edi
mov ebx, 1
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
dec ecx
and ecx, edx
and dword [esp + 0x14], ecx
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sub edx, edi
xor eax, edi
xor edx, edi
or edx, eax
xor edx, ecx
lea ecx, [esi - 1]
shr edx, 0x1f
neg edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], edx
not edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
and edx, ecx
and eax, edi
or edx, eax
mov dword [esp + 0x2c], edx
cmp ecx, ebx
jle 0x582e61
sub esi, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x30], edx
lea ecx, [esi - 1]
mov dword [esp + 0x24], ecx
mov edi, edi
mov eax, ecx
mov edi, ebp
and eax, ebx
sub edi, ebx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, edi
jge 0x582e51
mov esi, dword [esp + 0x20]
movzx eax, cl
add esi, edx
mov ebp, eax
mov dword [esp + 0x3c], eax
not ebp
sub edi, edx
lea ecx, [ecx]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dword [esp + 0x10], eax
mov al, byte [esi + ebx - 1]
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x10]
and dl, al
mov eax, dword [esp + 0x1c]
and al, cl
or dl, al
mov eax, dword [esp + 0x3c]
mov byte [esi - 1], dl
dec edi
jne 0x582e20
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add ebx, ebx
cmp ebx, dword [esp + 0x38]
jl 0x582df0
mov edx, dword [esp + 0x2c]
xor esi, esi
test edx, edx
jle 0x582ee4
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x40]
movzx eax, al
neg edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
inc eax
shr ebx, 0x1f
add eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, esi
mov edx, edi
shr ecx, 0x1f
mov al, bl
xor al, cl
shr edx, 0x1f
xor dl, bl
inc edi
or dl, al
xor dl, cl
neg dl
movzx eax, dl
and eax, ebp
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dl, byte [eax + esi]
mov eax, dword [esp + 0x48]
mov al, byte [eax + esi]
and cl, al
mov eax, dword [esp + 0x10]
and al, dl
or cl, al
mov eax, dword [esp + 0x48]
mov byte [eax + esi], cl
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x582e90
mov ebp, dword [esp + 0x28]
push 0x108
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0052e7a0
mov eax, dword [esp + 0x28]
and eax, 1
push eax
call fcn.0052eb20
add esp, 0x18
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.00401360
mov ebx, dword [esp + 0x28]
push ebp
push ebx
call fcn.00401360
push ebx
call fcn.00534a50
push dword [esp + 0x58]
push edi
call fcn.00401360
push edi
call fcn.00534a50
mov eax, dword [esp + 0x34]
add esp, 0x20
mov dword [esp + 0x24], eax
not eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
and eax, dword [esp + 0x40]
or eax, dword [esp + 0x38]
jmp 0x582f7a
push 0x99
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0052e7a0
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b7dc4
add esp, 0xc0
ret