Function at 0x583b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x10], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x583ea7
jb 0x583b6d
cmp eax, 0xffffffe0
ja 0x583ea7
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x168]
mov dword [esi + 0x3c], edx
mov dword [ebp - 4], eax
je 0x583be2
test ecx, ecx
jne 0x583baa
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00585060
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi + 0x40]
mov dword [ebp - 4], 0x10
movups xmmword [esi + 0x178], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
movzx eax, byte [esi + 0xd]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp - 4]
mov edx, eax
and edx, 0xf
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
je 0x583c93
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
nop dword [eax]
test ecx, ecx
je 0x583c5c
mov cl, byte [edi]
inc edi
mov byte [eax + esi + 0x178], cl
mov eax, dword [ebp - 0xc]
mov al, byte [eax + esi + 0x10]
mov esi, dword [ebp - 0xc]
xor al, cl
mov ecx, dword [ebp + 0x14]
inc esi
mov byte [edx], al
dec ecx
mov eax, dword [ebp - 4]
inc edx
inc eax
mov dword [ebp - 8], edx
and esi, 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0x14], ecx
jne 0x583c20
jmp 0x583c62
cmp dword [ebp - 0xc], 0
jne 0x583c84
push eax
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00584e30
mov ecx, dword [ebp + 0x14]
add esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x583c9c
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp ecx, 0x10
jb 0x583cc5
test eax, eax
je 0x583cc5
push eax
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00584e30
mov ecx, dword [ebp + 0x14]
add esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
cmp ecx, 0xc00
jb 0x583d74
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x1c], edx
nop
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00584e30
add esp, 0x10
mov dword [ebp - 0x18], 0xc0
nop dword [eax]
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ecx + 0xc], eax
add ecx, 0x10
sub dword [ebp - 0x18], 1
mov dword [ebp - 8], ecx
jne 0x583d00
mov ecx, dword [ebp + 0x14]
sub ecx, 0xc00
sub dword [ebp - 0x1c], 1
mov dword [ebp + 0x14], ecx
jne 0x583ce0
mov eax, ecx
and eax, 0xfffffff0
je 0x583e09
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00584e30
mov ecx, dword [ebp + 0x14]
add esp, 0x10
cmp ecx, 0x10
jb 0x583e09
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [ebp - 8], ecx
lea eax, [esi + 0x10]
mov ecx, dword [ebp + 0x14]
sub ecx, 0x10
sub dword [ebp - 0x1c], 1
mov dword [ebp + 0x14], ecx
jne 0x583da2
test ecx, ecx
je 0x583e95
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
lea ecx, [edx + 0x10]
mov edx, dword [ebp + 0x14]
add ecx, esi
sub edi, eax
mov dword [ebp - 0x14], ecx
lea eax, [esi + 0x178]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
lea esi, [esi + 1]
mov cl, byte [edi + esi - 1]
mov byte [eax + ebx], cl
inc ebx
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov al, byte [eax]
xor al, cl
mov byte [esi - 1], al
sub edx, 1
jne 0x583e63
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret