Function at 0x584d9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, ecx
mov ecx, dword [edx + 0x28]
push ebx
mov ebx, dword [edx + 0x1c]
test ebx, ebx
mov dword [ebp - 4], ecx
jg 0x584db7
mov al, 1
jmp 0x585357
mov eax, dword [ebp + 0x10]
cmp eax, 8
push esi
push edi
ja 0x584e09
cmp eax, ecx
jne 0x584e09
mov edx, dword [edx + 0x44]
imul ebx, eax
mov esi, dword [ebp + 0xc]
add ebx, 7
shr ebx, 3
test edx, edx
mov edi, ebx
je 0x584df1
mov eax, dword [ebp + 8]
movzx ecx, byte [esi]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
dec edi
test edi, edi
jg 0x584ddd
jmp 0x585353
mov ecx, edi
mov edi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x585353
push 2
pop esi
sub eax, esi
je 0x58528e
sub eax, esi
je 0x5850f4
push 4
pop edi
sub eax, edi
je 0x58506f
sub eax, 8
je 0x584fe2
sub eax, 8
je 0x584fa8
sub eax, 8
jne 0x585293
cmp ecx, 0x18
jne 0x584ef2
mov ecx, dword [ebp + 0xc]
test cl, 3
mov eax, dword [ebp + 8]
jne 0x584eac
cmp byte [edx + 0x8f], 0
je 0x584e86
mov esi, dword [ecx]
mov edx, esi
shr edx, 0x10
mov byte [eax], dl
add ecx, edi
inc eax
mov edx, esi
shr edx, 8
mov byte [eax], dl
inc eax
mov dword [ebp + 8], esi
mov dl, byte [ebp + 8]
mov byte [eax], dl
inc eax
dec ebx
test ebx, ebx
jg 0x584e5f
jmp 0x585353
mov esi, dword [ecx]
mov edx, esi
shr edx, 8
mov byte [eax], dl
add ecx, edi
inc eax
mov edx, esi
shr edx, 0x10
mov byte [eax], dl
inc eax
mov edx, esi
shr edx, 0x18
mov byte [eax], dl
inc eax
dec ebx
test ebx, ebx
jg 0x584e86
jmp 0x585353
cmp byte [edx + 0x8f], 0
je 0x584ed2
mov dl, byte [ecx + 2]
mov byte [eax], dl
mov dl, byte [ecx + 1]
inc eax
mov byte [eax], dl
mov dl, byte [ecx]
inc eax
mov byte [eax], dl
inc eax
add ecx, edi
dec ebx
test ebx, ebx
jg 0x584eb5
jmp 0x585353
add ecx, 2
mov dl, byte [ecx - 1]
mov byte [eax], dl
mov dl, byte [ecx]
inc eax
mov byte [eax], dl
mov dl, byte [ecx + 1]
inc eax
mov byte [eax], dl
inc eax
add ecx, edi
dec ebx
test ebx, ebx
jg 0x584ed5
jmp 0x585353
cmp ecx, 0x20
jne 0x585293
cmp byte [edx + 0x8f], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
je 0x584f5e
test al, 3
jne 0x584f30
sub eax, ecx
mov edx, dword [ecx + eax]
mov esi, edx
ror esi, 0x10
xor esi, edx
and esi, 0xff00ff
xor esi, edx
mov dword [ecx], esi
add ecx, edi
dec ebx
test ebx, ebx
jg 0x584f10
jmp 0x585353
movzx edx, byte [eax + 3]
movzx esi, byte [eax]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
add edx, esi
mov dword [ecx], edx
add ecx, edi
add eax, edi
dec ebx
test ebx, ebx
jg 0x584f30
jmp 0x585353
test al, 3
jne 0x584f7a
mov edx, eax
sub edx, ecx
mov eax, dword [ecx + edx]
ror eax, 8
mov dword [ecx], eax
add ecx, edi
dec ebx
test ebx, ebx
jg 0x584f66
jmp 0x585353
movzx edx, byte [eax]
movzx esi, byte [eax + 3]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
add edx, esi
mov dword [ecx], edx
add ecx, edi
add eax, edi
dec ebx
test ebx, ebx
jg 0x584f7a
jmp 0x585353
cmp ecx, 0x18
jne 0x585293
cmp byte [edx + 0x8f], 0
je 0x585353
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [ecx + 2]
mov byte [eax], dl
mov dl, byte [ecx + 1]
inc eax
mov byte [eax], dl
mov dl, byte [ecx]
inc eax
mov byte [eax], dl
inc eax
add ecx, 3
dec ebx
test ebx, ebx
jg 0x584fc4
jmp 0x585353
cmp ecx, 0x18
jne 0x585293
mov eax, dword [edx + 0x3c]
test eax, eax
mov dword [ebp - 4], eax
je 0x585353
mov ecx, dword [edx + 0x40]
xor edx, edx
cmp ecx, edx
mov dword [ebp - 8], ecx
je 0x585353
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], edx
jmp 0x58501d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edi, byte [esi]
mov eax, dword [eax + edi*4]
inc esi
movzx edi, byte [esi]
add eax, dword [ecx + edi*4]
mov ecx, edx
mov edi, eax
shl edi, cl
add edx, 0x18
inc esi
add dword [ebp + 8], edi
cmp edx, 0x20
jb 0x585055
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
mov dword [edi], ecx
push 0x18
sub edx, 0x20
pop ecx
sub ecx, edx
shr eax, cl
mov dword [ebp + 8], eax
dec ebx
test ebx, ebx
jg 0x585017
test edx, edx
jbe 0x585353
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x585353
mov edx, dword [edx + 0x44]
xor esi, esi
inc esi
mov eax, esi
shl esi, cl
dec esi
test edx, edx
jne 0x585086
mov edx, dword [ebp + 0xc]
jmp 0x5850b5
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi]
movzx edi, byte [edi + edx]
shl eax, cl
and edi, esi
add eax, edi
inc dword [ebp + 0xc]
cmp eax, 0xff
jbe 0x5850ab
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
dec ebx
test ebx, ebx
jg 0x585083
jmp 0x5850d6
mov ecx, dword [ebp - 4]
movzx edi, byte [edx]
shl eax, cl
and edi, esi
add eax, edi
inc edx
cmp eax, 0xff
jbe 0x5850d1
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
dec ebx
test ebx, ebx
jg 0x5850b2
cmp eax, 1
jbe 0x585353
mov edx, 0x100
jmp 0x5850eb
mov ecx, dword [ebp - 4]
shl eax, cl
cmp eax, edx
jb 0x5850e6
jmp 0x585284
cmp ecx, esi
jne 0x5851dd
mov edi, dword [edx + 0x44]
test edi, edi
je 0x585179
mov edx, dword [ebp + 8]
cmp ebx, esi
mov esi, dword [ebp + 0xc]
jle 0x585155
lea eax, [ebx - 3]
shr eax, 2
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffffc
add ebx, eax
mov dword [ebp - 8], ebx
movzx eax, byte [esi]
mov al, byte [eax + edi]
inc esi
movzx ecx, byte [esi]
mov cl, byte [ecx + edi]
mov bl, al
and bl, 3
shl bl, 2
and al, 0xf0
add bl, al
mov al, cl
shr al, 2
shl bl, 2
and al, 0xc
add bl, al
and cl, 3
add bl, cl
inc esi
mov byte [edx], bl
inc edx
dec dword [ebp + 0x10]
jne 0x58511f
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x585353
movzx eax, byte [esi]
mov al, byte [eax + edi]
mov cl, al
and cl, 3
shl cl, 2
and al, 0xf0
add cl, al
shl cl, 2
mov byte [edx], cl
jmp 0x585353
mov edi, dword [ebp + 8]
cmp ebx, esi
mov esi, dword [ebp + 0xc]
jle 0x5851bd
lea eax, [ebx - 3]
shr eax, 2
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffffc
add ebx, eax
mov al, byte [esi]
mov dl, al
and dl, 3
shl dl, 2
and al, 0xf0
add dl, al
inc esi
mov cl, byte [esi]
mov al, cl
shr al, 2
shl dl, 2
and al, 0xc
add dl, al
and cl, 3
add dl, cl
inc esi
mov byte [edi], dl
inc edi
dec dword [ebp + 0x10]
jne 0x585192
test ebx, ebx
jle 0x585353
mov al, byte [esi]
mov cl, al
and cl, 3
shl cl, 2
and al, 0xf0
add cl, al
shl cl, 2
mov byte [edi], cl
jmp 0x585353
xor esi, esi
inc esi
cmp ecx, esi
jne 0x585293
mov edx, dword [edx + 0x44]
test edx, edx
mov eax, esi
je 0x58523f
mov esi, dword [ebp + 0xc]
movzx ecx, byte [esi]
mov cl, byte [ecx + edx]
movzx ecx, cl
mov edi, ecx
shr edi, 3
and edi, 2
and ecx, 1
add edi, ecx
lea eax, [edi + eax*4]
inc esi
cmp eax, 0xff
jbe 0x585220
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
dec ebx
dec ebx
test ebx, ebx
jg 0x5851f4
cmp eax, 1
jbe 0x585353
mov edx, 0x100
jmp 0x585239
shl eax, 2
cmp eax, edx
jb 0x585236
jmp 0x585284
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
movzx ecx, cl
mov edi, ecx
shr edi, 3
and edi, 2
and ecx, esi
add edi, ecx
lea eax, [edi + eax*4]
inc edx
cmp eax, 0xff
jbe 0x585268
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
mov eax, esi
dec ebx
dec ebx
test ebx, ebx
jg 0x585242
cmp eax, esi
jbe 0x585353
mov edx, 0x100
jmp 0x585280
shl eax, 2
cmp eax, edx
jb 0x58527d
mov ecx, dword [ebp + 8]
mov byte [ecx], al
jmp 0x585353
cmp ecx, 1
je 0x58529a
xor al, al
jmp 0x585355
mov esi, dword [edx + 0x44]
test esi, esi
je 0x585305
cmp ebx, 4
mov edi, dword [ebp + 0xc]
jle 0x5852ea
lea eax, [ebx - 5]
shr eax, 3
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffff8
add ebx, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [ecx + esi]
movzx edx, byte [edx + esi]
mov cl, byte [ecx + 0x3981f848]
mov dl, byte [edx + 0x3981f848]
and cl, 0xf
shl dl, 4
add cl, dl
mov byte [eax], cl
inc eax
inc edi
inc edi
dec dword [ebp + 0x10]
jne 0x5852bb
jmp 0x5852ed
mov eax, dword [ebp + 8]
test ebx, ebx
jle 0x585353
movzx ecx, byte [edi]
movzx ecx, byte [ecx + esi]
mov cl, byte [ecx + 0x3981f848]
shl cl, 4
mov byte [eax], cl
jmp 0x585353
cmp ebx, 4
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jle 0x585341
lea eax, [ebx - 5]
shr eax, 3
inc eax
mov ecx, eax
imul ecx, ecx, 0xfffffff8
add ebx, ecx
movzx ecx, byte [esi + 1]
movzx edx, byte [esi]
mov cl, byte [ecx + 0x3981f848]
mov dl, byte [edx + 0x3981f848]
and cl, 0xf
shl dl, 4
add cl, dl
mov byte [edi], cl
inc edi
inc esi
inc esi
dec eax
jne 0x58531e
test ebx, ebx
jle 0x585353
movzx eax, byte [esi]
mov al, byte [eax + 0x3981f848]
shl al, 4
mov byte [edi], al
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc