Function at 0x5ecf60
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5ecf88
test dword [0x7eda90], 0xffffffff
jne 0x5ed4b4
call fcn.006a6b5c
jmp fcn.005ecf60
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.00696350
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5ecfb6
test esi, esi
je 0x5ecfb6
mov eax, edi
and eax, 7
je 0x5ecfc4
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5ecfb6
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ed4a4
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 0x5ed499
mov dword [esp + 0x14], edi
mov dword [esp], ebp
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 8]
mov dword [esp + 0x18], edx
mov ebp, dword [esi]
mov dword [esp + 0xc], ebp
mov edi, dword [ebx]
mov dword [esp + 0x10], edi
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]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
xor edx, dword [ecx + 0xc44]
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 + 0xc40]
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 + 0xc3c]
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 + 0xc38]
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 + 0xc34]
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 + 0xc30]
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 + 0xc2c]
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 + 0xc28]
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 + 0xc24]
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 + 0xc20]
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 + 0xc1c]
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 + 0xc18]
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 + 0xc14]
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 + 0xc10]
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 + 0xc0c]
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 + 0xc08]
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
mov ebp, dword [ecx + 0xc04]
xor ebp, dword [esp + 0x18]
xor edx, ebp
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 0xc00]
xor edx, dword [esp + 0x1c]
xor eax, edx
mov dword [esp + 0x10], 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 + 0xc]
mov dword [ebx], eax
mov edx, dword [esp + 0x10]
mov dword [esi], edx
add esi, 8
add ebx, 8
mov ebp, dword [esp + 0x14]
cmp esi, ebp
jb 0x5ed010
mov ebp, dword [esp]
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp 0x5ed001
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.00696350
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5ed4e2
test esi, esi
je 0x5ed4e2
mov eax, edi
and eax, 7
je 0x5ed4f0
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5ed4e2
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ed9d0
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 0x5ed9c5
mov dword [esp + 0x14], edi
mov dword [esp], ebp
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 8]
mov dword [esp + 0x18], edx
mov ebp, dword [esi]
mov dword [esp + 0xc], ebp
mov edi, dword [ebx]
mov dword [esp + 0x10], edi
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]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
xor edx, dword [ecx + 0xc44]
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 + 0xc40]
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 + 0xc3c]
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 + 0xc38]
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 + 0xc34]
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 + 0xc30]
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 + 0xc2c]
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 + 0xc28]
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 + 0xc24]
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 + 0xc20]
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 + 0xc1c]
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 + 0xc18]
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 + 0xc14]
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 + 0xc10]
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 + 0xc0c]
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 + 0xc08]
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
mov ebp, dword [ecx + 0xc04]
xor ebp, dword [esp + 0x18]
xor edx, ebp
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 0xc00]
xor edx, dword [esp + 0x1c]
xor eax, edx
mov dword [esp + 0x10], 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 + 0xc]
mov dword [ebx], eax
mov edx, dword [esp + 0x10]
mov dword [esi], edx
add esi, 8
add ebx, 8
mov ebp, dword [esp + 0x14]
cmp esi, ebp
jb 0x5ed53c
mov ebp, dword [esp]
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp 0x5ed52d