Function at 0x5ed9e0
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5eda08
test dword [0x7eda90], 0xffffffff
jne 0x5edf10
call fcn.006a6b5c
jmp fcn.005ed9e0
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x5eda25
test esi, esi
je 0x5eda25
mov eax, edi
and eax, 7
je 0x5eda33
mov eax, 0xffffffff
add esp, 0x18
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5eda25
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5edf01
mov eax, dword [edx]
mov dword [esp + 4], eax
mov edx, dword [edx + 4]
mov dword [esp + 8], edx
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 4], edx
mov dword [esp + 8], eax
cmp esi, edi
jae 0x5edef6
mov dword [esp + 0x14], edi
mov dword [esp], ebp
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
xor edx, dword [esp + 4]
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 8]
xor edx, dword [ecx + 0xc00]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc04]
mov ebp, eax
shr ebp, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov ebp, dword [ecx + ebp*4 + 0x400]
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc08]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc0c]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc10]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc14]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc18]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc1c]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc20]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc24]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc28]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc2c]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc30]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc34]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc38]
mov edi, edx
shr edi, 0x18
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, dl
add edi, dword [ecx + ebp*4 + 0x800]
xor eax, edi
xor eax, dword [ecx + 0xc3c]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov edi, dword [ecx + edi*4 + 0x400]
add edi, dword [ecx + ebp*4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ecx + ebp*4 + 0xc48]
movzx ebp, al
add edi, dword [ecx + ebp*4 + 0x800]
xor edx, edi
xor edx, dword [ecx + 0xc40]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov edx, dword [ecx + 0xc44]
xor eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
add esi, 8
add ebx, 8
mov ebp, dword [esp + 0x14]
cmp esi, ebp
jb 0x5eda7f
mov ebp, dword [esp]
xor eax, eax
add esp, 0x18
pop ebx
pop esi
pop edi
ret 8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp 0x5eda70
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x5edf2d
test esi, esi
je 0x5edf2d
mov eax, edi
and eax, 7
je 0x5edf3b
mov eax, 0xffffffff
add esp, 0x18
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5edf2d
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ee409
mov eax, dword [edx]
mov dword [esp + 4], eax
mov edx, dword [edx + 4]
mov dword [esp + 8], edx
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 4], edx
mov dword [esp + 8], eax
cmp esi, edi
jae 0x5ee3fe
mov dword [esp + 0x14], edi
mov dword [esp], ebp
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
xor edx, dword [esp + 4]
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 8]
xor edx, dword [ecx + 0xc00]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc04]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc08]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc0c]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc10]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc14]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc18]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc1c]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc20]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc24]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc28]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc2c]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc30]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc34]
mov ebp, eax
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc38]
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ecx + ebp*4 + 0x400]
mov edi, edx
shr edi, 0x10
and edi, 0xff
add ebp, dword [ecx + edi*4]
mov edi, edx
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, dl
add ebp, dword [ecx + edi*4 + 0x800]
xor eax, ebp
xor eax, dword [ecx + 0xc3c]
mov edi, eax
shr edi, 0x18
mov ebp, eax
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ecx + ebp*4]
add ebp, dword [ecx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ebp, dword [ecx + edi*4 + 0xc48]
movzx edi, al
add ebp, dword [ecx + edi*4 + 0x800]
xor edx, ebp
xor edx, dword [ecx + 0xc40]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov edx, dword [ecx + 0xc44]
xor eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
add esi, 8
add ebx, 8
mov ebp, dword [esp + 0x14]
cmp esi, ebp
jb 0x5edf87
mov ebp, dword [esp]
xor eax, eax
add esp, 0x18
pop ebx
pop esi
pop edi
ret 8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp 0x5edf78