Function at 0x5403f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp + 0x24], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x540587
cmp edi, 8
jb 0x5404a8
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov esi, edi
lea edi, [eax + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.0053de40
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 3], al
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 7], al
mov eax, edi
mov edi, esi
add ebx, 8
add edi, 0xfffffff8
cmp edi, 7
ja 0x540440
mov dword [ebp - 0x24], ebx
test edi, edi
je 0x5406dc
mov esi, eax
mov dword [ebp - 0x1c], edx
xor eax, eax
lea ebx, [edi - 1]
cmp ebx, 6
ja case.default.0x5404ce
mov dword [ebp - 0x20], ecx
add esi, edi
xor ecx, ecx
xor edi, edi
xor edx, edx
jmp dword [ebx*4 + 0x74ae5c]
movzx eax, byte [esi - 1]
add esi, 0xffffffff
shl eax, 0x10
movzx ecx, byte [esi - 1]
add esi, 0xffffffff
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
add esi, 0xffffffff
or eax, ecx
mov ecx, eax
movzx eax, byte [esi - 1]
add esi, 0xffffffff
shl eax, 0x18
movzx edx, byte [esi - 1]
add esi, 0xffffffff
shl edx, 0x10
or eax, edx
mov edi, ecx
movzx ecx, byte [esi - 1]
add esi, 0xffffffff
shl ecx, 8
or eax, ecx
mov edx, edi
movzx ecx, byte [esi - 1]
or eax, ecx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 0x14]
xor eax, ecx
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push eax
call fcn.0053de40
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov byte [esi], cl
mov byte [esi + 1], ch
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov byte [esi + 3], al
mov byte [esi + 4], dl
mov byte [esi + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov ebx, edx
shr ebx, 0x18
mov edi, ebx
mov byte [esi + 7], bl
jmp 0x5406f8
cmp edi, 8
jb 0x540628
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
mov edi, dword [ebp + 0xc]
nop dword [eax]
mov ebx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov esi, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.0053ef30
mov edx, esi
mov ecx, dword [ebp - 0x20]
add esp, 0x10
xor ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
xor esi, dword [ebp - 0x14]
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, esi
mov byte [edi + 4], bl
mov byte [edi + 5], bh
mov eax, esi
shr eax, 0x10
mov byte [edi + 6], al
shr ebx, 0x18
mov byte [edi + 7], bl
add edi, 8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x28], eax
cmp eax, 7
ja 0x5405a0
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x5406b6
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push eax
call fcn.0053ef30
add esp, 0x10
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x540673
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
add esi, edi
jmp dword [eax*4 + 0x74ae78]
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
add esi, 0xffffffff
mov byte [esi - 1], dh
add esi, 0xffffffff
mov byte [esi - 1], dl
add esi, 0xffffffff
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
add esi, 0xffffffff
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
add esi, 0xffffffff
mov byte [esi - 1], ch
add esi, 0xffffffff
mov byte [esi - 1], cl
mov edx, dword [ebp - 0x28]
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 0x540717
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, ecx
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov eax, edx
shr eax, 0x10
mov esi, edx
shr esi, 0x18
mov edi, esi
mov ebx, dword [ebp + 0x20]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov ecx, dword [ebp - 0x20]
mov byte [ebx + 2], cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov byte [ebx + 6], al
mov edx, edi
mov byte [ebx + 7], dl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x540525