Function at 0x4eee5a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
cmp byte [0x68bfee], 0
push esi
mov esi, ecx
mov dword [esp + 0x1c], esi
jne 0x4eee68
call fcn.004fca50
cmp byte [0x68bff4], 0
je 0x4eee92
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0
push 0x10
push eax
push ecx
push edx
mov ecx, esi
call fcn.004effa0
pop esi
add esp, 0x2c
ret 0xc
mov esi, dword [esi + 0x118]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [eax + 4]
mov eax, dword [eax]
xor eax, dword [esi]
push ebp
push edi
mov edi, ecx
xor edx, dword [edi]
mov edi, dword [esi + 8]
xor edi, dword [ecx + 4]
add ecx, 4
mov dword [esp + 0x40], edi
mov edi, dword [esi + 0xc]
xor edi, dword [ecx + 4]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
add esi, 0x20
cmp byte [0x68bfee], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
jne 0x4eeefd
call fcn.004fca50
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x67f058]
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor ebp, ebp
jmp 0x4eef10
and ecx, dword [ebp + 0x68b350]
add ebp, dword [esp + 0x24]
cmp ebp, 0x800
jb 0x4eef10
and ecx, dword [0x68bb48]
or dword [esp + 0x40], ecx
or eax, ecx
or edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x20]
movzx ebp, cl
shr ecx, 8
mov dword [esp + 0x1c], ecx
xor ebx, dword [ebp*8 + 0x68b354]
movzx ecx, cl
mov ecx, dword [ecx*8 + 0x68b351]
xor dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0x40]
mov ecx, dword [ecx*8 + 0x68b354]
xor dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
shr dword [esp + 0x1c], 8
movzx ebp, byte [esp + 0x1c]
shr ecx, 8
mov dword [esp + 0x40], ecx
movzx ecx, cl
mov ecx, dword [ecx*8 + 0x68b351]
xor ecx, dword [ebp*8 + 0x68b352]
shr dword [esp + 0x40], 8
xor edi, ecx
movzx ecx, dl
xor edi, dword [ecx*8 + 0x68b354]
shr edx, 8
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
shr edi, 8
mov ebp, dword [edi*8 + 0x68b353]
movzx ecx, dl
xor ebp, dword [ecx*8 + 0x68b351]
mov ecx, dword [esp + 0x40]
movzx edi, cl
xor ebp, dword [edi*8 + 0x68b352]
mov edi, dword [esp + 0x18]
xor edi, ebp
movzx ebp, al
xor edi, dword [ebp*8 + 0x68b354]
shr eax, 8
shr ecx, 8
mov ecx, dword [ecx*8 + 0x68b353]
mov dword [esp + 0x18], edi
movzx edi, al
xor ecx, dword [edi*8 + 0x68b351]
shr edx, 8
movzx edi, dl
xor ecx, dword [edi*8 + 0x68b352]
shr eax, 8
xor ebx, ecx
movzx ecx, al
shr edx, 8
mov edx, dword [edx*8 + 0x68b353]
xor edx, dword [ecx*8 + 0x68b352]
mov ecx, dword [esp + 0x28]
xor dword [esp + 0x10], edx
shr eax, 8
mov eax, dword [eax*8 + 0x68b353]
xor dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
shr eax, 1
sub eax, 1
mov dword [esp + 0x1c], eax
movzx edx, bl
mov eax, dword [edx*8 + 0x68b353]
shr ebx, 8
movzx ecx, bl
mov edi, dword [ecx*8 + 0x68b352]
xor edi, dword [esi + 4]
movzx ebp, byte [esp + 0x10]
shr ebx, 8
xor eax, dword [esi]
movzx edx, bl
shr ebx, 8
mov ecx, dword [ebx*8 + 0x68b354]
xor ecx, dword [ebp*8 + 0x68b353]
mov ebx, dword [esp + 0x10]
mov edx, dword [edx*8 + 0x68b351]
shr ebx, 8
xor edx, dword [esi + 8]
movzx ebp, bl
xor eax, dword [ebp*8 + 0x68b352]
shr ebx, 8
movzx ebp, bl
xor edi, dword [ebp*8 + 0x68b351]
movzx ebp, byte [esp + 0x14]
xor ecx, dword [esi + 0xc]
shr ebx, 8
mov ebx, dword [ebx*8 + 0x68b354]
xor ebx, dword [ebp*8 + 0x68b353]
xor edx, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 8
movzx ebp, bl
xor ecx, dword [ebp*8 + 0x68b352]
shr ebx, 8
movzx ebp, bl
xor eax, dword [ebp*8 + 0x68b351]
movzx ebp, byte [esp + 0x18]
shr ebx, 8
mov ebx, dword [ebx*8 + 0x68b354]
xor ebx, dword [ebp*8 + 0x68b353]
xor edi, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*8 + 0x68b352]
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*8 + 0x68b351]
shr ebx, 8
xor eax, dword [ebx*8 + 0x68b354]
movzx edi, cl
mov edi, dword [edi*8 + 0x68b353]
xor edi, dword [esi + 0x10]
shr ecx, 8
movzx ebx, cl
mov ebx, dword [ebx*8 + 0x68b352]
xor ebx, dword [esi + 0x14]
shr ecx, 8
mov dword [esp + 0x14], ebx
mov ebx, ecx
movzx ebp, dl
shr ebx, 8
mov ebx, dword [ebx*8 + 0x68b354]
xor ebx, dword [ebp*8 + 0x68b353]
shr edx, 8
xor ebx, dword [esi + 0x1c]
movzx ebp, dl
xor edi, dword [ebp*8 + 0x68b352]
shr edx, 8
mov dword [esp + 0x18], edi
mov edi, edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
shr edi, 8
mov edi, dword [edi*8 + 0x68b354]
movzx ebp, dl
xor edi, dword [ebp*8 + 0x68b353]
movzx ecx, cl
xor edi, dword [ecx*8 + 0x68b351]
xor edi, dword [esi + 0x18]
mov ecx, edi
shr edx, 8
movzx edi, dl
xor ebx, dword [edi*8 + 0x68b352]
shr edx, 8
movzx ebp, al
mov edi, edx
shr edi, 8
mov edi, dword [edi*8 + 0x68b354]
xor edi, dword [ebp*8 + 0x68b353]
movzx ebp, byte [esp + 0x40]
xor edi, dword [ebp*8 + 0x68b351]
shr eax, 8
xor dword [esp + 0x14], edi
movzx edi, al
xor ecx, dword [edi*8 + 0x68b352]
shr eax, 8
mov dword [esp + 0x10], ecx
movzx ecx, al
xor ebx, dword [ecx*8 + 0x68b351]
shr eax, 8
mov eax, dword [eax*8 + 0x68b354]
movzx edx, dl
xor eax, dword [edx*8 + 0x68b351]
add esi, 0x20
xor dword [esp + 0x18], eax
sub dword [esp + 0x1c], 1
jne 0x4ef042
mov eax, dword [esp + 0x10]
movzx ecx, al
movzx edx, byte [ecx*8 + 0x68b351]
shr eax, 8
movzx ecx, al
shr eax, 8
mov byte [esp + 0x3b], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x68b351]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2e], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x31], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x37], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x68b351]
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3a], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x2d], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x33], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x68b351]
mov byte [esp + 0x36], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, bl
shr ebx, 8
mov byte [esp + 0x2c], al
movzx eax, bl
mov byte [esp + 0x39], dl
movzx edx, byte [ecx*8 + 0x68b351]
movzx ecx, byte [eax*8 + 0x68b351]
shr ebx, 8
mov byte [esp + 0x2f], dl
movzx edx, bl
movzx eax, byte [edx*8 + 0x68b351]
mov byte [esp + 0x32], cl
shr ebx, 8
movzx ecx, byte [ebx*8 + 0x68b351]
mov byte [esp + 0x38], cl
mov ecx, dword [esi]
xor ecx, dword [esp + 0x2c]
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4ef33d
mov edx, dword [eax]
jmp 0x4ef33f
xor edx, edx
xor edx, ecx
test eax, eax
mov ecx, dword [esp + 0x48]
mov dword [ecx], edx
lea edx, [ecx + 4]
je 0x4ef351
add eax, 4
mov edi, dword [esi + 4]
xor edi, dword [esp + 0x30]
test eax, eax
je 0x4ef360
mov ecx, dword [eax]
jmp 0x4ef362
xor ecx, ecx
xor ecx, edi
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x4ef370
add eax, 4
mov edi, dword [esi + 8]
xor edi, dword [esp + 0x34]
test eax, eax
je 0x4ef37f
mov ecx, dword [eax]
jmp 0x4ef381
xor ecx, ecx
xor ecx, edi
pop edi
mov dword [edx], ecx
add edx, 4
test eax, eax
pop ebp
pop ebx
je 0x4ef392
add eax, 4
mov esi, dword [esi + 0xc]
xor esi, dword [esp + 0x2c]
test eax, eax
je 0x4ef3aa
mov eax, dword [eax]
xor eax, esi
mov dword [edx], eax
pop esi
add esp, 0x2c
ret 0xc
xor eax, eax
xor eax, esi
mov dword [edx], eax
pop esi
add esp, 0x2c
ret 0xc