Function at 0x597e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], 0
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc0], edi
test eax, eax
jne 0x597eb4
call fcn.00521600
mov dword [ebp - 0xb4], eax
test ebx, ebx
push eax
cmove ebx, eax
mov dword [ebp - 0x88], ebx
call fcn.00533e30
add esp, 4
mov ebx, eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0xa8], ebx
jle 0x59855f
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x59855f
cmp edi, esi
jl 0x598544
lea eax, [ebx*2 + 2]
cmp edi, eax
jl 0x598544
push 0x9d
sub edi, ebx
dec edi
push str.....crypto_rsa_rsa_oaep.c
push edi
mov dword [ebp - 0xac], edi
call fcn.0051a710
add esp, 0xc
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x597f42
push 0x9f
push str.....crypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call fcn.00528ff0
add esp, 0x14
jmp 0x5984cc
push 0xa3
push str.....crypto_rsa_rsa_oaep.c
push dword [ebp - 0xc0]
call fcn.0051a710
add esp, 0xc
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x597f6b
push 0xa6
jmp 0x597f27
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc0]
add edx, esi
add eax, ecx
mov dword [ebp - 0x9c], eax
test ecx, ecx
jle 0x597fc1
mov ebx, ecx
mov edi, eax
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec edi
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [edi], cl
sub ebx, 1
jne 0x597f86
mov ebx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
push dword [ebp - 0x88]
push edi
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, dword [ebp - 0x9c]
neg ecx
mov dword [ebp - 0x90], ecx
lea esi, [eax + 1]
inc eax
add eax, ebx
push eax
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00597960
add esp, 0x14
test eax, eax
jne 0x5984cc
xor edx, edx
test ebx, ebx
jle 0x59809f
cmp ebx, 0x20
jb 0x598086
lea eax, [esi - 1]
lea edi, [ebp - 0x44]
add eax, ebx
cmp edi, eax
lea ecx, [ebp + ebx - 0x45]
mov edi, dword [ebp - 0xac]
ja 0x598031
cmp ecx, esi
jae 0x598086
mov eax, ebx
and eax, 0x8000001f
jns 0x59803f
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, ebx
mov edi, esi
sub ecx, eax
lea eax, [ebp - 0x44]
sub edi, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + edx - 0x44]
lea eax, [edi + edx]
movups xmm1, xmmword [ebp + eax - 0x44]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x44], xmm1
movups xmm1, xmmword [esi + edx + 0x10]
movups xmm0, xmmword [ebp + edx - 0x34]
pxor xmm1, xmm0
movups xmmword [ebp + edx - 0x34], xmm1
add edx, 0x20
cmp edx, ecx
jl 0x598050
mov edi, dword [ebp - 0xac]
cmp edx, ebx
jge 0x59809f
lea eax, [ebp - 0x44]
sub esi, eax
nop
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ecx + esi]
xor byte [ecx], al
cmp edx, ebx
jl 0x598090
push dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push ebx
push eax
push edi
push esi
call fcn.00597960
add esp, 0x14
test eax, eax
jne 0x5984cc
xor edx, edx
test edi, edi
jle 0x598194
cmp edi, 0x20
jb 0x598160
mov ecx, dword [ebp - 0x94]
dec esi
add esi, edi
lea eax, [ecx - 1]
add eax, edi
cmp dword [ebp - 0x8c], eax
ja 0x5980ef
cmp esi, ecx
jae 0x598160
mov eax, edi
and eax, 0x8000001f
jns 0x5980fd
dec eax
or eax, 0xffffffe0
inc eax
mov ebx, dword [ebp - 0x8c]
mov esi, edi
mov dword [ebp - 0x88], ecx
sub esi, eax
sub dword [ebp - 0x88], ebx
mov eax, ebx
add ecx, 0x10
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0x88]
mov ebx, dword [ebp - 0xa0]
nop word [eax + 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 [ebx + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, esi
jl 0x598130
mov ebx, dword [ebp - 0xa8]
cmp edx, edi
jge 0x598194
mov eax, dword [ebp - 0x8c]
mov esi, edi
mov ebx, dword [ebp - 0x94]
sub ebx, eax
sub esi, edx
lea ecx, [edx + eax]
nop dword [eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x598180
mov ebx, dword [ebp - 0xa8]
push 0
push dword [ebp - 0xb4]
lea eax, [ebp - 0x84]
push 0
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x98]
call fcn.00520c50
add esp, 0x18
test eax, eax
je 0x5984cc
push ebx
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call fcn.00548630
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov esi, dword [ebp - 0xa8]
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 - 0x90], edx
mov dword [ebp - 0x88], ecx
cmp esi, edi
jge 0x598294
nop word [eax + eax]
mov eax, dword [ebp - 0x8c]
not ecx
movzx esi, byte [ebx + eax]
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 dword [ebp - 0x98], ecx
not ecx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xa0]
and ecx, ebx
and eax, dword [ebp - 0xb0]
inc ebx
or eax, ecx
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb0], eax
or ecx, edx
mov edx, dword [ebp - 0x90]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [ebp - 0x88], ecx
neg eax
or eax, ecx
and edx, eax
mov dword [ebp - 0x90], edx
cmp ebx, edi
jl 0x598210
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp - 0xb0]
mov ebx, edi
dec eax
sub ebx, esi
sub ecx, eax
mov dword [ebp - 0xbc], eax
xor ecx, eax
mov dword [ebp - 0x94], ebx
xor eax, dword [ebp + 0xc]
or ecx, eax
mov eax, dword [ebp + 0xc]
xor ecx, eax
shr ecx, 0x1f
dec ecx
and ecx, dword [ebp - 0x88]
and edx, ecx
lea ecx, [ebx - 1]
mov dword [ebp - 0x90], edx
mov edx, ecx
sub edx, eax
xor edx, eax
mov eax, ecx
xor eax, dword [ebp + 0xc]
or edx, eax
xor edx, ecx
lea ecx, [ebx - 1]
shr edx, 0x1f
mov ebx, 1
neg edx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x98], edx
not edx
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa0]
and eax, ecx
and edx, dword [ebp + 0xc]
or edx, eax
mov dword [ebp - 0xb4], edx
cmp ecx, ebx
jle 0x5983e4
mov eax, dword [ebp - 0x94]
lea edx, [esi + 1]
sub eax, dword [ebp - 0xbc]
dec eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xa4], eax
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 0x5983c4
mov esi, dword [ebp - 0x8c]
movzx ecx, cl
add esi, edx
mov eax, ecx
mov dword [ebp - 0xb0], ecx
not eax
sub edi, edx
mov dword [ebp - 0x94], eax
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x98], ecx
lea esi, [esi + 1]
mov dword [ebp - 0xa0], eax
movzx eax, byte [esi + ebx - 1]
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa0]
and dl, al
movzx eax, byte [esi - 1]
and cl, al
mov eax, dword [ebp - 0x94]
or cl, dl
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0xb0]
sub edi, 1
jne 0x598380
mov edx, dword [ebp - 0x88]
mov edi, dword [ebp - 0xac]
add ebx, ebx
mov eax, dword [ebp - 0xa4]
cmp ebx, dword [ebp - 0xb8]
jl 0x598340
mov edx, dword [ebp - 0xb4]
xor esi, esi
test edx, edx
jle 0x5984a2
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xbc]
movzx ecx, cl
neg ebx
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xa4]
inc ecx
shr eax, 0x1f
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xb8], ecx
nop dword [eax]
mov edx, ebx
mov ecx, esi
shr edx, 0x1f
inc ebx
xor dl, al
shr ecx, 0x1f
mov al, cl
xor al, byte [ebp - 0x94]
or dl, al
xor dl, cl
neg dl
movzx eax, dl
and eax, edi
mov dword [ebp - 0xa4], eax
not eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x98]
movzx eax, byte [eax + esi]
and dl, al
mov eax, dword [ebp - 0xc4]
movzx eax, byte [eax + esi]
and cl, al
mov eax, dword [ebp - 0xc4]
or cl, dl
mov byte [eax + esi], cl
inc esi
mov eax, dword [ebp - 0x94]
cmp esi, dword [ebp - 0xb4]
jl 0x598430
mov edi, dword [ebp - 0xac]
push 0x107
push str.....crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.00528ff0
mov eax, dword [ebp - 0x90]
and eax, 1
push eax
call fcn.005293e0
add esp, 0x18
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00537ea0
push 0x10b
push str.....crypto_rsa_rsa_oaep.c
push edi
push dword [ebp - 0x8c]
call fcn.0051a5f0
push 0x10c
push str.....crypto_rsa_rsa_oaep.c
push dword [ebp - 0xc0]
push dword [ebp - 0x9c]
call fcn.0051a5f0
mov eax, dword [ebp - 0x90]
add esp, 0x28
mov dword [ebp - 0xa4], eax
not eax
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xa4]
and ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb8]
pop edi
pop esi
or eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
push 0x98
push str.....crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.00528ff0
add esp, 0x14
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049ae07
mov esp, ebp
pop ebp
ret