Function at 0x584480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], esi
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
test bl, 0x40
jne 0x5844c7
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x3c], edx
cmp edx, 0xf
jae 0x5844f3
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x5844e0
movzx eax, byte [esi + 0xf]
mov ebx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x584517
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a127
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x58454d
ja 0x584538
cmp dword [esi + 0x20], 0
jbe 0x58454d
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a127
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x10
jb 0x5845d0
mov eax, ebx
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [ebp - 0x24]
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [ebp - 0x28]
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x28]
push esi
call fcn.00584b30
mov edx, dword [ebp - 0x1c]
add esp, 0x1c
mov ecx, dword [edi]
sub ebx, 0x10
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov dword [edx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [edx + 0xc], eax
add edx, 0x10
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edx
jne 0x584561
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x20], edi
test ebx, ebx
je 0x5846e9
xor ecx, ecx
test ebx, ebx
je 0x5845ed
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x5845e1
push dword [ebp - 0x24]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x28]
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x28]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x5846e9
mov ecx, dword [ebp - 0x1c]
cmp ebx, 0x20
jb 0x5846c4
lea eax, [ebp + ebx - 0x15]
cmp ecx, eax
ja 0x584638
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ecx - 1]
add eax, ebx
cmp eax, dword [ebp - 0x2c]
jae 0x5846c4
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x58464a
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x5846c4
mov eax, ebx
lea esi, [ecx + 0x10]
and eax, 0xffffffe0
mov ebx, edi
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x14]
sub ebx, eax
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x34]
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [ebp + edx - 0x14]
lea eax, [ebx + edx]
movups xmm1, xmmword [ebp + eax - 0x14]
lea eax, [edi + edx]
lea esi, [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 4]
add edx, 0x20
movups xmmword [ebp + eax - 0x14], xmm1
mov eax, dword [ebp - 0x38]
movups xmm1, xmmword [eax + esi - 0x20]
pxor xmm1, xmm0
movups xmmword [esi - 0x20], xmm1
cmp edx, ecx
jb 0x584680
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x5846e9
lea eax, [ebp - 0x14]
sub edi, eax
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov esi, ecx
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, ebx
jb 0x5846d4
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jae 0x58470b
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.0049a127
mov esp, ebp
pop ebp
ret