Function at 0x583c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x583ce5
mov eax, dword [ebp + 0xc]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x583e4d
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x4c], 0
push edi
lea edi, [esi + 0x40]
mov dword [ebp - 8], edi
cmp ebx, 0x10
jb 0x583d90
lea eax, [esi + 0x60]
mov dword [ebp - 4], eax
lea ecx, [esi + 0x41]
mov esi, dword [ebp + 0xc]
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x10], eax
nop dword [eax + eax]
mov eax, ecx
lea edx, [esi + 1]
mov edi, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x583d40
push dword [ebp - 4]
mov edi, dword [ebp - 8]
push edi
call fcn.00584110
mov ecx, dword [ebp - 0xc]
add esp, 8
add esi, 0x10
sub ebx, 0x10
sub dword [ebp + 0x10], 1
jne 0x583d30
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
jmp 0x583d93
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x583db8
xor ecx, ecx
test ebx, ebx
je 0x583dab
nop dword [eax]
mov al, byte [ecx + edx]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x583da0
lea eax, [esi + 0x60]
push eax
push edi
call fcn.00584110
add esp, 8
mov ebx, dword [ebp - 0x10]
xor edx, edx
shld edx, ebx, 3
xor byte [esi + 0x4b], dl
mov eax, edx
shr eax, 0x18
xor byte [esi + 0x48], al
mov eax, edx
shr eax, 0x10
xor byte [esi + 0x49], al
mov eax, edx
shr eax, 8
xor byte [esi + 0x4a], al
mov eax, edx
shl ebx, 3
xor byte [esi + 0x4f], bl
mov ecx, ebx
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov ecx, ebx
shr eax, 0x18
mov eax, edx
shrd ecx, eax, 0x10
xor byte [esi + 0x4d], cl
shr eax, 0x10
mov eax, ebx
shrd eax, edx, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
shr edx, 8
push edi
call fcn.00584110
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
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
pop esi
pop ebx
mov esp, ebp
pop ebp
ret