Function at 0x57c480
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb8
call fcn.005c5c30
mov eax, dword [0x65db30]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xd0]
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
push esi
mov esi, dword [esp + 0xe8]
push edi
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x57c4f2
call fcn.004a7770
mov dword [esp + 0x20], eax
cmp esi, edi
jne 0x57c4fa
mov dword [esp + 0x2c], eax
push eax
call fcn.004ba3d0
add esp, 4
mov ebx, eax
mov dword [esp + 0x30], ebx
cmp dword [esp + 0xd0], edi
jle 0x57c94b
mov esi, dword [esp + 0xd8]
cmp esi, edi
jle 0x57c94b
cmp ebp, esi
jl 0x57c930
lea edx, [ebx + ebx + 2]
cmp ebp, edx
jl 0x57c930
push 0x9d
sub ebp, ebx
dec ebp
push str.crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x40], ebp
call fcn.004a31f0
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x57c57b
push 0x9f
push str.crypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call fcn.0049a370
add esp, 0x14
jmp 0x57c8d9
mov eax, dword [esp + 0x38]
push 0xa3
push str.crypto_rsa_rsa_oaep.c
push eax
call fcn.004a31f0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x57c5a3
push 0xa6
jmp 0x57c560
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0xd4]
add ecx, eax
add edi, esi
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x57c5e8
mov dword [esp + 0x1c], eax
mov edi, edi
mov edx, esi
not edx
lea eax, [esi - 1]
shr eax, 0x1f
shr edx, 0x1f
and eax, edx
dec eax
mov edx, eax
and edx, 1
sub edi, edx
and al, byte [edi]
dec ecx
sub esi, edx
dec dword [esp + 0x1c]
mov byte [ecx], al
jne 0x57c5c0
mov dword [esp + 0x1c], ecx
movzx eax, byte [ecx]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [esp + 0x2c]
push eax
lea edi, [ecx + 1]
lea ecx, [ebx + ecx + 1]
push ebp
push ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x50]
neg edx
push ebx
push ecx
mov dword [esp + 0x28], edx
call fcn.0057c0e0
add esp, 0x14
test eax, eax
jne 0x57c8d5
xor esi, esi
test ebx, ebx
jle 0x57c640
lea edx, [esp + 0x44]
sub edi, edx
lea eax, [esp + esi + 0x44]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, ebx
jl 0x57c632
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x4c]
push eax
push ebp
push edi
call fcn.0057c0e0
add esp, 0x14
test eax, eax
jne 0x57c8d5
test ebp, ebp
jle 0x57c679
mov esi, dword [esp + 0x18]
mov eax, edi
sub esi, edi
mov ecx, ebp
nop
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x57c670
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xe4]
push 0
push eax
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x90]
push ecx
push edx
push eax
call fcn.004cdc20
add esp, 0x18
test eax, eax
je 0x57c8d5
push ebx
lea ecx, [esp + 0x88]
push ecx
push edi
call fcn.004b9290
lea edx, [eax - 1]
shr edx, 0x1f
not eax
shr eax, 0x1f
and edx, eax
neg edx
and dword [esp + 0x20], edx
add esp, 0xc
xor edi, edi
mov esi, ebx
cmp ebx, ebp
jge 0x57c734
mov eax, dword [esp + 0x28]
movzx ecx, byte [esi + eax]
mov eax, ecx
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
mov eax, edi
not eax
and eax, edx
or edi, edx
mov dword [esp + 0x10], eax
lea edx, [ecx - 1]
not eax
shr edx, 0x1f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
and ebx, dword [esp + 0x24]
not ecx
shr ecx, 0x1f
and edx, ecx
neg edx
and eax, esi
or edx, edi
and dword [esp + 0x14], edx
or eax, ebx
inc esi
mov dword [esp + 0x24], eax
cmp esi, ebp
jl 0x57c6d4
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0xd0]
mov edx, ebp
sub edx, dword [esp + 0x24]
mov eax, esi
dec edx
sub eax, edx
xor eax, edx
mov ecx, edx
xor ecx, esi
or eax, ecx
xor eax, esi
shr eax, 0x1f
dec eax
and eax, edi
and dword [esp + 0x14], eax
mov ecx, ebp
sub ecx, ebx
lea edi, [ecx - 1]
mov eax, edi
sub eax, esi
xor eax, esi
mov dword [esp + 0x10], edi
xor edi, esi
or eax, edi
xor eax, dword [esp + 0x10]
lea edi, [ecx - 1]
shr eax, 0x1f
neg eax
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
and eax, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x18]
and edi, esi
or eax, edi
mov edi, 1
mov dword [esp + 0x3c], edx
mov dword [esp + 0xd0], eax
cmp dword [esp + 0x20], edi
jle 0x57c834
sub ecx, edx
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x57c7c0
mov eax, dword [esp + 0x10]
and eax, edi
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, ebp
sub eax, edi
lea esi, [ebx + 1]
dec ecx
cmp esi, eax
jge 0x57c825
add esi, dword [esp + 0x28]
movzx ebp, cl
mov ecx, dword [esp + 0x30]
inc ecx
mov ebx, ebp
sub eax, ecx
not ebx
mov dword [esp + 0x24], eax
mov cl, byte [esi + edi]
mov dl, byte [esi]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
and al, cl
mov ecx, dword [esp + 0x2c]
and cl, dl
or al, cl
mov byte [esi], al
inc esi
dec dword [esp + 0x24]
jne 0x57c7f5
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
add edi, edi
cmp edi, dword [esp + 0x20]
jl 0x57c7c0
mov eax, dword [esp + 0xd0]
xor esi, esi
test eax, eax
jle 0x57c8ad
movzx eax, byte [esp + 0x14]
mov ecx, edx
mov edi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
lea eax, [ebx + edx + 1]
shr ecx, 0x1f
neg edi
mov dword [esp + 0x10], eax
mov eax, esi
shr eax, 0x1f
mov bl, al
mov edx, edi
shr edx, 0x1f
xor dl, cl
xor bl, cl
or dl, bl
xor dl, al
neg dl
movzx eax, dl
and eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov dl, byte [edx + esi]
mov dword [esp + 0x30], eax
not eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov al, byte [eax + esi]
and bl, dl
mov edx, dword [esp + 0x30]
and dl, al
mov eax, dword [esp + 0x40]
or bl, dl
mov byte [eax + esi], bl
inc esi
inc edi
cmp esi, dword [esp + 0xd0]
jl 0x57c858
push 0x107
push str.crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.0049a370
mov ecx, dword [esp + 0x28]
and ecx, 1
push ecx
call fcn.0049a320
add esp, 0x18
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x44]
push 0x40
push edx
call fcn.004e60d0
mov eax, dword [esp + 0x30]
push 0x10b
push str.crypto_rsa_rsa_oaep.c
push ebp
push eax
call fcn.004a32c0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
push 0x10c
push str.crypto_rsa_rsa_oaep.c
push ecx
push edx
call fcn.004a32c0
mov dword [esp + 0x5c], edi
not edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x5c]
and eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
add esp, 0x28
or eax, ecx
jmp 0x57c94e
push 0x98
push str.crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.0049a370
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c5718
add esp, 0xb8
ret