Function at 0x5921a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx], 0
je 0x5921bd
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
test eax, eax
je 0x5921d0
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x59256e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x59256e
mov eax, ecx
cdq
and edx, 0x7f
add eax, edx
mov esi, eax
mov eax, ecx
sar esi, 7
and eax, 0x8000007f
mov dword [ebp + 0x10], esi
jns 0x592204
dec eax
or eax, 0xffffff80
inc eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
sub eax, 0
je 0x592534
dec eax
je 0x59240a
dec eax
je 0x592230
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], ecx
test esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jle 0x5923fe
mov dword [ebp - 4], esi
jmp 0x59225b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [edi]
mov dword [ecx], edx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov eax, dword [edi + 0xc]
xor edi, edi
mov dword [ecx + 0xc], eax
jmp 0x59227b
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push ebx
mov dword [ebp - 0x18], ecx
call fcn.00592cd0
mov eax, edi
mov ecx, dword [ebp + 0x14]
cdq
and edx, 7
mov ebx, edi
add eax, edx
mov dl, byte [ebp - 0x24]
sar eax, 3
and ebx, 7
and dl, 0x80
lea esi, [eax + ecx]
mov cl, bl
shr dl, cl
mov al, byte [esi]
mov cl, byte [ebp - 0x13]
shr cl, 7
add esp, 0xc
xor al, dl
mov dl, byte [ebp - 0x14]
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0x12]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0x12]
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0x11]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0x11]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x10]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0xf]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [esi], al
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
mov dl, byte [ebp - 0xc]
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 7]
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [ebp - 6], cl
mov cl, 7
sub cl, bl
shr al, cl
mov cl, byte [ebp - 5]
shl cl, 1
and al, 1
or al, cl
inc edi
cmp edi, 0x80
mov byte [ebp - 5], al
jl 0x592278
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, 0x10
add edx, eax
add ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x14], edx
dec eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
jne 0x592255
mov esi, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
shl eax, 7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0xc]
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [ebx + 0x14]
xor edx, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 8]
xor eax, esi
mov esi, dword [ebp + 0x14]
xor ecx, edx
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x24]
push esi
xor edx, ecx
push eax
push ebx
mov dword [ebp - 0x18], edx
call fcn.00592cd0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add edi, 0x10
lea eax, [ecx - 1]
mov dword [ebp + 0xc], edi
test eax, eax
jle 0x5924a6
mov dword [ebp + 0x14], eax
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor edx, eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 8]
xor eax, ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x20], eax
xor ecx, edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
add esi, 0x10
lea eax, [ebp - 0x24]
push esi
xor edx, ecx
push eax
push ebx
mov dword [ebp - 0x18], edx
call fcn.00592cd0
mov eax, dword [ebp + 0x14]
add esp, 0xc
add edi, 0x10
dec eax
mov dword [ebp + 0x14], eax
jne 0x592459
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x14], esi
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x5923fb
mov edx, ecx
lea edi, [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
xor esi, esi
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov ecx, dword [eax + 8]
test edi, edi
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
jle 0x5924fb
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
sub ecx, eax
lea eax, [ebp + esi - 0x24]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, edi
jl 0x5924ed
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
push eax
push ecx
push ebx
call fcn.00592cd0
mov edx, dword [ebp + 0x14]
mov ecx, edi
mov eax, ecx
lea esi, [ebp - 0x14]
lea edi, [edx + 0x10]
add esp, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x10]
pop edi
mov eax, esi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x5923fe
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 0x14]
push ecx
push edi
push ebx
call fcn.00592cd0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 0xc
add edi, 0x10
add ecx, 0x10
dec eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], eax
jne 0x59253f
mov eax, esi
pop edi
pop esi
pop ebx
shl eax, 7
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret