Function at 0x5edf74
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eeab0], 0xffffff80
jne 0x5edf9c
test dword [0x7eeab0], 0xffffffff
jne 0x5ee4c8
call fcn.006a7b4c
jmp fcn.005edf74
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.00697340
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5edfca
test esi, esi
je 0x5edfca
mov eax, edi
and eax, 7
je 0x5edfd8
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5edfca
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ee4b8
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 0x5ee4ad
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 0x5ee024
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 0x5ee015
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.00697340
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5ee4f6
test esi, esi
je 0x5ee4f6
mov eax, edi
and eax, 7
je 0x5ee504
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5ee4f6
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ee9e4
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 0x5ee9d9
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 0x5ee550
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 0x5ee541