Function at 0x5ed180
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 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 0x5ed5c7
mov eax, dword [ebx + 0x178]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x170], 0
je 0x5ed1f9
mov edx, dword [esp + 0x44]
test edx, edx
je 0x5ed299
mov dword [esp + 0x10], eax
movups xmm0, xmmword [ebx + 0x40]
movups xmmword [ebx + 0x17c], xmm0
mov dword [ebx + 0x170], 0
xorps xmm0, xmm0
movups xmmword [ebx + 0x40], xmm0
mov edi, 0x10
jmp 0x5ed207
mov dword [esp + 0x10], eax
mov edi, dword [ebx + 0x16c]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0xc]
mov eax, edi
and eax, 0xf
je 0x5ed282
test edx, edx
je 0x5ed277
mov dword [esp], ecx
lea ecx, [edx - 1]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
lea edx, [edi + ebx]
add edx, 0x17c
xor ebp, ebp
nop word cs:[eax + eax]
mov edi, ebx
movzx ebx, byte [ebx + eax + 0x10]
xor bl, byte [esi + ebp]
mov ecx, esi
mov esi, dword [esp + 0x40]
mov byte [esi + ebp], bl
mov esi, ecx
mov byte [edx + ebp], bl
mov ebx, edi
inc eax
lea edi, [ebp + 1]
and eax, 0xf
je 0x5ed26b
cmp dword [esp + 4], ebp
mov ebp, edi
jne 0x5ed240
add dword [esp + 8], edi
test eax, eax
je 0x5ed2b9
mov edi, dword [esp + 8]
mov dword [ebx + 0x16c], edi
jmp 0x5ed5c5
mov dword [esp], ecx
cmp edx, 0x10
setae al
test edi, edi
setne cl
and cl, al
cmp cl, 1
je 0x5ed2cb
jmp 0x5ed2ee
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x60]
push ecx
push eax
call dword [ebx + 0x168]
add esp, 8
mov dword [ebx + 0x170], 0
jmp 0x5ed5c5
add esi, edi
mov ebp, dword [esp + 0x40]
add ebp, edi
mov edx, dword [esp + 0x44]
sub edx, edi
mov edi, dword [esp + 8]
mov dword [esp + 4], edx
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x60]
lea edx, [ebx + 0x17c]
push edi
push edx
push ecx
push eax
call dword [ebx + 0x164]
mov edx, dword [esp + 0x14]
add esp, 0x10
xor edi, edi
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x48]
mov eax, dword [esp]
bswap eax
mov dword [esp], eax
cmp edx, 0xc00
jb 0x5ed388
lea eax, [ebx + 0x40]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x60]
mov dword [esp + 0xc], eax
mov ebx, dword [esp]
nop dword [eax + eax]
mov dword [esp], esi
mov dword [esp + 4], edx
mov edi, dword [esp + 0x38]
push edi
push dword [esp + 0x14]
push 0xc0
push ebp
push esi
mov esi, ecx
call ecx
add esp, 0x14
add ebx, 0xc0
mov eax, ebx
bswap eax
mov dword [edi + 0xc], eax
push 0xc00
push ebp
push dword [esp + 0x14]
push dword [esp + 0x20]
call dword [edi + 0x164]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 0x10
add ebp, 0xc00
add esi, 0xc00
add edx, 0xfffff400
cmp edx, 0xbff
ja 0x5ed320
jmp 0x5ed38b
mov ebx, dword [esp]
mov dword [esp], ebx
mov edi, edx
and edi, 0xff0
mov dword [esp + 0x14], edi
je 0x5ed454
mov edi, edx
shr edi, 4
mov ebx, dword [esp + 0x38]
push ebx
push dword [esp + 0x14]
push edi
push ebp
push esi
mov dword [esp + 0x18], edx
call ecx
add esp, 0x14
mov eax, dword [esp]
add eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp], eax
bswap eax
mov dword [ebx + 0xc], eax
lea eax, [esi + edi]
mov dword [esp + 0xc], eax
and dword [esp + 4], 0xf
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x60]
push edi
push ebp
push ecx
push eax
call dword [ebx + 0x164]
mov edx, dword [esp + 0x14]
add esp, 0x10
lea eax, [edi + ebp]
test edx, edx
je 0x5ed45e
mov dword [esp + 0x18], eax
mov edi, ebp
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x14], eax
push eax
push ebp
mov dword [esp + 0x10], edx
call dword [ebp + 0x174]
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov ebx, dword [esp]
inc ebx
bswap ebx
mov dword [ebp + 0xc], ebx
mov ebx, ebp
xor eax, eax
cmp ecx, 0x20
mov dword [esp + 0x20], edi
jae 0x5ed46b
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
test cl, 1
jne 0x5ed535
mov ebp, ecx
cmp ecx, 1
jne 0x5ed55f
jmp 0x5ed5bf
mov eax, ebp
mov dword [esp + 0xc], esi
test edx, edx
jne 0x5ed3f5
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
jmp 0x5ed5bf
mov ebp, dword [esp + 0x14]
lea ecx, [edi + ebp]
mov edx, ecx
sub edx, ebx
add edx, 0xfffffff0
cmp edx, 0x10
jb 0x5ed5e9
mov dword [esp], esi
mov edx, dword [esp + 8]
add edx, ebx
add edx, 0x17c
mov esi, edx
sub esi, ecx
cmp esi, 0x10
jb 0x5ed5dd
mov ecx, edi
mov esi, dword [esp]
sub ecx, esi
cmp ecx, 0x10
jb 0x5ed5e9
lea ecx, [esi + ebp]
mov esi, edx
sub esi, ecx
cmp esi, 0x10
jb 0x5ed5dd
mov ebp, dword [esp + 8]
lea ecx, [ebp + 0x16c]
cmp ecx, 0x10
jb 0x5ed5cf
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0xf
mov dword [esp + 0x1c], ecx
add ebp, eax
mov dword [esp + 8], ebp
xor esi, esi
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
nop word cs:[eax + eax]
movups xmm0, xmmword [edi + esi]
movups xmm1, xmmword [ecx + esi]
xorps xmm1, xmm0
movups xmmword [ebp + esi], xmm1
movups xmmword [edx + esi], xmm1
add esi, 0x10
cmp eax, esi
jne 0x5ed500
cmp dword [esp + 4], eax
mov esi, dword [esp]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
jne 0x5ed43b
jmp 0x5ed5bf
mov ebp, edi
mov edi, edx
movzx edx, byte [ebx + eax + 0x10]
xor dl, byte [ebp + eax]
mov ebp, dword [esp + 0x18]
mov byte [ebp + eax], dl
mov byte [ebx + edi + 0x17c], dl
mov edx, edi
lea ebp, [ecx - 1]
inc edx
or eax, 1
cmp ecx, 1
je 0x5ed5bf
mov edi, dword [esp + 0x14]
add edi, eax
lea ecx, [esi + edi]
inc ecx
lea eax, [eax + ebx + 0x11]
mov esi, dword [esp + 0x20]
add edi, esi
inc edi
mov dword [esp + 8], edx
add ebx, edx
add ebx, 0x17d
xor esi, esi
nop word cs:[eax + eax]
movzx edx, byte [eax + esi - 1]
xor dl, byte [ecx + esi - 1]
mov byte [edi + esi - 1], dl
mov byte [ebx + esi - 1], dl
movzx edx, byte [eax + esi]
xor dl, byte [ecx + esi]
mov byte [edi + esi], dl
mov byte [ebx + esi], dl
add esi, 2
cmp ebp, esi
jne 0x5ed590
mov edx, dword [esp + 8]
add edx, esi
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0x16c], edx
xor eax, eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
mov esi, dword [esp]
mov edx, ebp
jmp 0x5ed437
mov ecx, dword [esp + 4]
mov esi, dword [esp]
jmp 0x5ed433
mov ecx, dword [esp + 4]
jmp 0x5ed433