Function at 0x5400d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x540217
mov ebx, eax
cmp esi, 8
jb 0x54038b
mov esi, dword [ebp + 0x10]
xor ecx, dword [ebx]
xor edx, dword [ebx + 4]
add ebx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x18]
mov edx, edi
push 1
call fcn.0053f040
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
add eax, 8
mov dword [ebp - 0x1c], eax
add esi, 0xfffffff8
cmp esi, 7
ja 0x540120
test esi, esi
je 0x540396
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
xor eax, eax
lea ebx, [esi - 1]
cmp ebx, 6
ja case.default.0x540183
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x24]
add edi, esi
xor ecx, ecx
xor esi, esi
xor edx, edx
jmp dword [ebx*4 + 0x74ae24]
movzx eax, byte [edi - 1]
add edi, 0xffffffff
shl eax, 0x10
movzx ecx, byte [edi - 1]
add edi, 0xffffffff
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi - 1]
add edi, 0xffffffff
or eax, ecx
mov ecx, eax
movzx eax, byte [edi - 1]
add edi, 0xffffffff
shl eax, 0x18
movzx edx, byte [edi - 1]
add edi, 0xffffffff
shl edx, 0x10
or eax, edx
mov esi, ecx
movzx ecx, byte [edi - 1]
add edi, 0xffffffff
shl ecx, 8
or eax, ecx
mov edx, esi
movzx ecx, byte [edi - 1]
or eax, ecx
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp + 0x14]
xor eax, ecx
mov dword [ebp - 0x18], eax
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x18]
mov edx, edi
push 1
call fcn.0053f040
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edi, ecx
shr edi, 0x18
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
jmp 0x5403a3
mov dword [ebp - 0x24], esi
cmp esi, 8
jb 0x5402b3
mov esi, eax
mov eax, dword [ebp + 0x10]
nop dword [eax + eax]
mov dword [ebp - 0x24], eax
mov ebx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 4]
add esi, 8
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0x14]
push 0
call fcn.0053f040
mov edx, edi
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
add esp, 4
xor ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov byte [edi], bl
mov byte [edi + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
shr ebx, 0x18
mov byte [edi + 3], bl
mov ebx, dword [ebp - 0x20]
mov byte [edi + 4], bl
mov byte [edi + 5], bh
mov eax, ebx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, dword [ebp - 0x24]
shr ebx, 0x18
mov byte [edi + 7], bl
add edi, 8
mov dword [ebp - 0x1c], edi
add eax, 0xfffffff8
cmp eax, 7
ja 0x540230
mov dword [ebp - 0x24], eax
mov eax, esi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x540365
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov edx, edi
push 0
call fcn.0053f040
add esp, 4
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x5402fb
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x14]
add dword [ebp - 0x1c], esi
jmp dword [eax*4 + 0x74ae40]
mov eax, edx
shr eax, 0x10
mov esi, dword [ebp - 0x1c]
mov byte [esi - 1], al
add esi, 0xffffffff
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov byte [eax - 1], dh
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax - 1], dl
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr eax, 0x18
mov edx, dword [ebp - 0x1c]
mov byte [edx - 1], al
add edx, 0xffffffff
mov dword [ebp - 0x1c], edx
mov eax, ecx
shr eax, 0x10
mov edx, dword [ebp - 0x1c]
mov byte [edx - 1], al
add edx, 0xffffffff
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax - 1], ch
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax - 1], cl
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [ebx + 6], al
shr edx, 0x18
jmp 0x5403cb
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x540161
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov edi, ecx
shr edi, 0x18
mov eax, edx
shr eax, 0x10
mov esi, edx
shr esi, 0x18
mov ebx, dword [ebp + 0x18]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov ecx, dword [ebp - 0x20]
mov byte [ebx + 2], cl
mov ecx, edi
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov byte [ebx + 6], al
mov edx, esi
mov byte [ebx + 7], dl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x5401dd