Function at 0x5ed600
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x38]
add edx, dword [esp + 0x44]
adc ecx, 0
mov eax, 0xffffffff
mov esi, 0xffffffe0
cmp esi, edx
mov esi, 0xf
sbb esi, ecx
jb 0x5eda67
mov ebp, dword [edi + 0x178]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
cmp dword [edi + 0x170], 0
je 0x5ed675
mov edx, dword [esp + 0x44]
test edx, edx
je 0x5ed71e
movups xmm0, xmmword [edi + 0x40]
movups xmmword [edi + 0x17c], xmm0
mov dword [edi + 0x170], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x40], xmm0
mov ebx, 0x10
jmp 0x5ed67f
mov ebx, dword [edi + 0x16c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov esi, dword [edi + 0xc]
mov eax, ebx
and eax, 0xf
je 0x5ed702
test edx, edx
je 0x5ed6f7
mov dword [esp + 0x1c], ebp
lea ebp, [edx - 1]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x38]
lea edx, [ebx + ecx]
add edx, 0x17c
xor ebx, ebx
nop word cs:[eax + eax]
mov ecx, dword [esp + 0x3c]
movzx ecx, byte [ecx + ebx]
mov byte [edx + ebx], cl
mov edi, dword [esp + 0x38]
xor cl, byte [edi + eax + 0x10]
mov edi, dword [esp + 0x40]
mov byte [edi + ebx], cl
inc eax
lea edi, [ebx + 1]
and eax, 0xf
je 0x5ed6e9
cmp ebp, ebx
mov ebx, edi
jne 0x5ed6c0
mov ebx, dword [esp + 0x18]
add ebx, edi
test eax, eax
je 0x5ed73e
mov edi, dword [esp + 0x38]
mov dword [edi + 0x16c], ebx
jmp 0x5eda65
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
cmp edx, 0x10
setae al
test ebx, ebx
setne cl
and cl, al
cmp cl, 1
je 0x5ed752
jmp 0x5ed775
lea eax, [edi + 0x40]
lea ecx, [edi + 0x60]
push ecx
push eax
call dword [edi + 0x168]
add esp, 8
mov dword [edi + 0x170], 0
jmp 0x5eda65
add dword [esp + 4], edi
mov ebp, dword [esp + 0x40]
add ebp, edi
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x44]
sub edx, edi
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x60]
mov edi, edx
lea edx, [ebp + 0x17c]
push ebx
push edx
push ecx
push eax
call dword [ebp + 0x164]
mov edx, edi
add esp, 0x10
xor ebx, ebx
mov dword [esp + 0x18], ebx
bswap esi
mov eax, esi
cmp edx, 0xc00
jb 0x5ed80f
mov ebp, dword [esp + 0x38]
lea ecx, [ebp + 0x40]
mov dword [esp + 0x14], ecx
lea ecx, [ebp + 0x60]
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x10]
mov ebp, eax
nop word cs:[eax + eax]
mov dword [esp + 8], edx
push 0xc00
push ebx
push dword [esp + 0x28]
push dword [esp + 0x20]
mov edi, dword [esp + 0x48]
call dword [edi + 0x164]
add esp, 0x10
push edi
push dword [esp + 0x20]
push 0xc0
push esi
push ebx
call dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
add esp, 0x14
add ebp, 0xc0
mov eax, ebp
bswap eax
mov dword [edi + 0xc], eax
add esi, 0xc00
add ebx, 0xc00
add edx, 0xfffff400
cmp edx, 0xbff
ja 0x5ed7b0
jmp 0x5ed819
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x10]
mov ebp, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 4], ebx
mov edi, edx
and edi, 0xff0
mov dword [esp + 0x20], edi
je 0x5ed8a0
mov esi, edx
shr esi, 4
mov dword [esp], esi
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x60]
push edi
mov ebx, dword [esp + 8]
push ebx
push ecx
push eax
mov dword [esp + 0x18], edx
call dword [ebp + 0x164]
add esp, 0x10
push ebp
push dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push esi
push ebx
call dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
add esp, 0x14
mov eax, dword [esp + 0x14]
add eax, dword [esp]
mov dword [esp + 0x14], eax
bswap eax
mov dword [ebp + 0xc], eax
mov ebp, esi
lea eax, [esi + edi]
mov dword [esp], eax
lea eax, [ebx + edi]
mov dword [esp + 0xc], eax
and edx, 0xf
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x5ed8bb
jmp 0x5eda5b
mov ebp, dword [esp + 0x10]
mov dword [esp], ebp
mov eax, dword [esp + 4]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x18]
test edx, edx
je 0x5eda5b
mov edi, dword [esp + 0x38]
lea esi, [edi + 0x10]
push dword [esp + 0x1c]
push esi
push edi
mov dword [esp + 0x14], edx
call dword [edi + 0x174]
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
cmp ecx, 0x20
jae 0x5ed8f3
mov esi, dword [esp + 4]
jmp 0x5ed9b6
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x20]
add ecx, ebp
mov edx, ecx
sub edx, edi
add edx, 0xfffffff0
cmp edx, 0x10
mov esi, dword [esp + 4]
jb 0x5ed9b2
lea edx, [ebx + edi]
sub ecx, edx
add ecx, 0xfffffe84
cmp ecx, 0x10
jb 0x5ed9b2
mov ecx, dword [esp + 0x20]
add ecx, esi
sub edx, ecx
add edx, 0x17c
cmp edx, 0x10
jb 0x5ed9b2
mov ecx, ebp
sub ecx, esi
cmp ecx, 0x10
mov edx, dword [esp + 8]
jb 0x5ed9ae
lea ecx, [ebx + 0x17b]
cmp ecx, 0x10
jb 0x5ed9ae
mov eax, edx
and eax, 0xfffffff0
and edx, 0xf
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
add edx, ebx
add edx, 0x17c
add ebx, eax
xor esi, esi
mov edi, dword [esp]
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
nop word [eax + eax]
movups xmm0, xmmword [ebp + esi]
movups xmmword [edx + esi], xmm0
movups xmm1, xmmword [ecx + esi]
xorps xmm1, xmm0
movups xmmword [edi + esi], xmm1
add esi, 0x10
cmp eax, esi
jne 0x5ed980
cmp dword [esp + 8], eax
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x14]
jne 0x5ed9bd
jmp 0x5eda5b
mov ecx, edx
jmp 0x5ed9b6
mov ecx, dword [esp + 8]
mov edi, dword [esp]
mov ebp, dword [esp + 0xc]
test cl, 1
jne 0x5ed9ce
mov ebp, ecx
cmp ecx, 1
jne 0x5ed9fc
jmp 0x5eda5b
mov esi, edi
mov edi, ebp
lea ebp, [ecx - 1]
mov edx, ebx
movzx ebx, byte [edi + eax]
mov edi, dword [esp + 0x38]
mov byte [edi + edx + 0x17c], bl
inc edx
xor bl, byte [edi + eax + 0x10]
mov byte [esi + eax], bl
mov esi, dword [esp + 4]
mov ebx, edx
or eax, 1
cmp ecx, 1
je 0x5eda5b
mov edi, dword [esp + 0x20]
add edi, eax
lea ecx, [esi + edi]
inc ecx
mov edx, dword [esp + 0x38]
lea eax, [eax + edx + 0x11]
mov esi, dword [esp + 0x10]
add edi, esi
inc edi
mov dword [esp + 0x18], ebx
add ebx, edx
add ebx, 0x17d
xor esi, esi
nop word cs:[eax + eax]
movzx edx, byte [ecx + esi - 1]
mov byte [ebx + esi - 1], dl
xor dl, byte [eax + esi - 1]
mov byte [edi + esi - 1], dl
movzx edx, byte [ecx + esi]
mov byte [ebx + esi], dl
xor dl, byte [eax + esi]
mov byte [edi + esi], dl
add esi, 2
cmp ebp, esi
jne 0x5eda30
mov ebx, dword [esp + 0x18]
add ebx, esi
mov eax, dword [esp + 0x38]
mov dword [eax + 0x16c], ebx
xor eax, eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret