Function at 0x5ee3d0
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eeab0], 0xffffff80
jne 0x5ee3f8
test dword [0x7eeab0], 0xffffffff
jne 0x5ee924
call fcn.006a7fbc
jmp fcn.005ee3d0
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.006977b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5ee426
test esi, esi
je 0x5ee426
mov eax, edi
and eax, 7
je 0x5ee434
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5ee426
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5ee914
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 0x5ee909
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 0x5ee480
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 0x5ee471
push edi
push esi
push ebx
push edx
push eax
mov eax, 0x18
call fcn.006977b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x5ee952
test esi, esi
je 0x5ee952
mov eax, edi
and eax, 7
je 0x5ee960
mov eax, 0xffffffff
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
test edi, edi
jl 0x5ee952
lea ebx, [esi + 4]
lea edi, [edi + esi]
test edx, edx
je 0x5eee40
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 0x5eee35
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 0x5ee9ac
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 0x5ee99d