Function at 0x502d93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x34
call fcn.00628570
push ebx
mov ebx, ecx
mov dword [esp + 0x24], edx
push esi
push edi
mov cl, 0x38
mov dword [esp + 0x30], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
call fcn.00628b90
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x24]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x38], eax
cmp dword [ebp + 8], eax
je 0x502d26
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
dec eax
cmp eax, 6
ja case.default.0x502d2f
jmp dword [eax*4 + 0x503158]
movzx eax, byte [ebx + 0x3e]
cdq
shl eax, 0x10
or dword [esp + 0x18], eax
movzx eax, byte [ebx + 0x3d]
cdq
shl eax, 8
or dword [esp + 0x18], eax
movzx eax, byte [ebx + 0x3c]
cdq
or dword [esp + 0x18], eax
movzx eax, byte [ebx + 0x3b]
cdq
shld edx, eax, 0x18
shl eax, 0x18
or dword [esp + 0x14], eax
or dword [esp + 0x18], edx
movzx eax, byte [ebx + 0x3a]
cdq
shld edx, eax, 0x10
shl eax, 0x10
or dword [esp + 0x14], eax
or dword [esp + 0x18], edx
movzx eax, byte [ebx + 0x39]
cdq
shld edx, eax, 8
shl eax, 8
or dword [esp + 0x14], eax
or dword [esp + 0x18], edx
movzx eax, byte [ebx + 0x38]
cdq
or dword [esp + 0x14], eax
or dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x18]
mov ebx, dword [ebx + 0x30]
xor ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebx
test ebx, ebx
jle 0x502e84
add dword [esp + 0xc], esi
mov ebx, edx
adc edi, edx
shr ebx, 0x13
shld edx, esi, 0xd
mov dword [esp + 0x10], edi
xor edi, edi
shl esi, 0xd
or edi, edx
xor edi, dword [esp + 0x10]
or ebx, esi
xor ebx, dword [esp + 0xc]
mov esi, eax
add dword [esp + 0x20], ecx
adc dword [esp + 0x28], eax
xor edx, edx
shld eax, ecx, 0x10
shr esi, 0x10
or edx, eax
shl ecx, 0x10
xor edx, dword [esp + 0x28]
or esi, ecx
xor esi, dword [esp + 0x20]
xor ecx, ecx
or ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0xc], eax
adc ecx, edx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
or eax, edx
shl esi, 0x15
xor eax, dword [esp + 0x10]
or ecx, esi
xor ecx, dword [esp + 0xc]
mov esi, edi
add dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
adc eax, edi
shr esi, 0xf
shld edi, ebx, 0x11
xor edx, edx
shl ebx, 0x11
or edx, edi
mov edi, dword [esp + 0x10]
or esi, ebx
xor esi, dword [esp + 0x20]
xor ebx, ebx
or ebx, dword [esp + 0x20]
xor edx, eax
sub dword [esp + 0x34], 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
jne 0x502dc3
mov dword [esp + 0x24], edx
xor edi, dword [esp + 0x18]
mov ebx, 0xee
mov eax, dword [esp + 0xc]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
xor edi, edi
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0xc], eax
je 0x502eab
mov ebx, 0xff
mov eax, dword [esp + 0x30]
xor ebx, dword [esp + 0x20]
xor edi, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov eax, dword [eax + 0x34]
test eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
jle 0x502f9d
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jmp 0x502ee4
mov eax, dword [esp + 0x1c]
add dword [esp + 0xc], esi
mov ebx, edx
adc dword [esp + 0x10], edx
xor edi, edi
shld edx, esi, 0xd
shr ebx, 0x13
shl esi, 0xd
or edi, edx
xor edi, dword [esp + 0x10]
or ebx, esi
xor ebx, dword [esp + 0xc]
mov esi, eax
add dword [esp + 0x18], ecx
adc dword [esp + 0x14], eax
xor edx, edx
shld eax, ecx, 0x10
shr esi, 0x10
shl ecx, 0x10
or edx, eax
xor edx, dword [esp + 0x14]
or esi, ecx
xor esi, dword [esp + 0x18]
xor ecx, ecx
or ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0xc], eax
adc ecx, edx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
shl esi, 0x15
or eax, edx
xor eax, dword [esp + 0x10]
or ecx, esi
xor ecx, dword [esp + 0xc]
mov esi, edi
add dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
adc eax, edi
xor edx, edx
shld edi, ebx, 0x11
shr esi, 0xf
shl ebx, 0x11
or edx, edi
or esi, ebx
xor edi, edi
or edi, dword [esp + 0x18]
xor edx, eax
xor esi, dword [esp + 0x18]
mov ebx, eax
sub dword [esp + 0x34], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
jne 0x502ee0
mov eax, dword [esp + 0x2c]
mov edx, ecx
xor edx, ebx
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x1c]
xor edx, esi
xor edx, dword [esp + 0xc]
xor ebx, edi
mov edi, dword [esp + 0x2c]
xor ebx, dword [esp + 0x24]
xor ebx, dword [esp + 0x10]
mov byte [eax], dl
mov eax, edx
shr eax, 8
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edi
mov edi, dword [esp + 0x14]
shr edx, 0x18
mov byte [eax + 3], dl
mov edx, eax
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 6], al
mov eax, dword [esp + 0x30]
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 7], bl
cmp dword [eax + 0x2c], 8
je 0x503149
mov edx, dword [esp + 0x24]
xor esi, 0xdd
mov eax, dword [eax + 0x34]
xor edx, 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
test eax, eax
jle 0x5030f1
nop dword [eax]
add dword [esp + 0xc], esi
mov ebx, edx
mov eax, dword [esp + 0x10]
adc eax, edx
xor edi, edi
shld edx, esi, 0xd
shr ebx, 0x13
shl esi, 0xd
or edi, edx
or ebx, esi
mov dword [esp + 0x10], eax
xor ebx, dword [esp + 0xc]
xor edi, eax
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov esi, eax
adc dword [esp + 0x14], eax
xor edx, edx
shld eax, ecx, 0x10
shr esi, 0x10
shl ecx, 0x10
or edx, eax
xor edx, dword [esp + 0x14]
or esi, ecx
xor esi, dword [esp + 0x18]
xor ecx, ecx
or ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0xc], eax
adc ecx, edx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
shl esi, 0x15
or eax, edx
xor eax, dword [esp + 0x10]
or ecx, esi
xor ecx, dword [esp + 0xc]
mov esi, edi
add dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
adc eax, edi
xor edx, edx
shld edi, ebx, 0x11
shr esi, 0xf
or edx, edi
shl ebx, 0x11
or esi, ebx
xor edi, edi
or edi, dword [esp + 0x18]
xor edx, eax
xor esi, dword [esp + 0x18]
sub dword [esp + 0x34], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jne 0x503030
mov dword [esp + 0x24], edx
jmp 0x5030f5
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
xor ecx, eax
mov edx, dword [esp + 0x1c]
xor ecx, esi
xor ecx, dword [esp + 0xc]
xor edx, edi
xor edx, dword [esp + 0x24]
mov eax, ecx
xor edx, dword [esp + 0x10]
shr eax, 8
mov byte [ebx + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebx + 0xd], al
mov eax, edx
mov byte [ebx + 8], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 0xc], dl
shr edx, 0x18
mov byte [ebx + 0xb], cl
mov dword [esp + 0x3c], 0
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], dl
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret