Function at 0x5062b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3c
call fcn.0065cc50
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], esi
push edi
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edi
add dword [eax], ebx
mov ebx, dword [esp + 0x28]
adc dword [eax + 4], 0
cmp dword [eax + 0x28], 0
je 0x50655f
mov edx, dword [eax + 0x28]
mov ecx, 8
add eax, 0x38
sub ecx, edx
add edx, eax
mov dword [esp + 0x44], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
jae 0x506359
push eax
push dword [esp + 0x34]
push edx
call fcn.0065fd30
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [ebp + 8]
add dword [eax + 0x28], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push dword [esp + 0x34]
push edx
call fcn.0065fd30
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [esp + 0x44]
sub dword [ebp + 8], eax
add dword [esp + 0x30], eax
movzx eax, byte [ecx + 0x3f]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x3e]
mov dword [esp + 0x14], edx
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x3d]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x3c]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x3b]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x3a]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x39]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x38]
cdq
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
xor esi, dword [esp + 0x10]
or eax, edx
mov edx, dword [esp + 0x18]
xor edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
test eax, eax
jle 0x506547
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x20], ecx
mov eax, dword [esp + 0x2c]
adc ebx, edi
shld eax, ecx, 0xd
mov dword [esp + 0x28], ebx
mov ebx, edi
shl ecx, 0xd
xor edi, edi
shr ebx, 0x13
or edi, eax
mov eax, dword [esp + 0x28]
or ebx, ecx
xor ebx, dword [esp + 0x20]
xor edi, eax
add dword [esp + 0x1c], esi
adc dword [esp + 0x24], edx
xor ecx, ecx
shld dword [esp + 0x18], esi, 0x10
or ecx, dword [esp + 0x18]
xor ecx, dword [esp + 0x24]
shl esi, 0x10
shr edx, 0x10
or edx, esi
mov dword [esp + 0x18], 0
xor edx, dword [esp + 0x1c]
xor esi, esi
or esi, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x20], eax
adc esi, ecx
mov dword [esp + 0x28], esi
mov esi, ecx
shld ecx, edx, 0x15
shr esi, 0xb
shl edx, 0x15
or esi, edx
mov edx, dword [esp + 0x18]
or edx, ecx
xor esi, eax
xor edx, dword [esp + 0x28]
mov ecx, edi
add dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
adc dword [esp + 0x24], edi
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
shl ebx, 0x11
or eax, edi
or ecx, ebx
mov dword [esp + 0x2c], eax
xor ecx, dword [esp + 0x1c]
xor ebx, ebx
or ebx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x24]
xor edi, eax
sub dword [esp + 0x34], 1
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
jne 0x506472
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
xor edx, dword [esp + 0x10]
xor ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
and ecx, 7
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
sub dword [esp + 0x34], ecx
add dword [esp + 0x34], edi
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
je 0x5067c3
mov eax, dword [eax + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
add eax, 6
mov dword [esp + 0x30], eax
movzx eax, byte [eax + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
movzx eax, byte [eax]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 1]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 2]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 3]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 4]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 5]
cdq
or dword [esp + 0x10], eax
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
shld dword [esp + 0x14], eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax - 6]
cdq
or dword [esp + 0x14], edx
or dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor esi, eax
xor edx, dword [esp + 0x14]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x18], edx
jle 0x506791
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
nop dword [eax]
add dword [esp + 0x20], ecx
mov ebx, edi
mov eax, dword [esp + 0x28]
adc eax, edi
shr ebx, 0x13
shld dword [esp + 0x2c], ecx, 0xd
xor edi, edi
or edi, dword [esp + 0x2c]
shl ecx, 0xd
xor edi, eax
or ebx, ecx
xor ebx, dword [esp + 0x20]
add dword [esp + 0x1c], esi
adc dword [esp + 0x24], edx
xor ecx, ecx
shld dword [esp + 0x18], esi, 0x10
or ecx, dword [esp + 0x18]
xor ecx, dword [esp + 0x24]
shl esi, 0x10
shr edx, 0x10
or edx, esi
mov dword [esp + 0x18], 0
xor edx, dword [esp + 0x1c]
xor esi, esi
or esi, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x20], eax
adc esi, ecx
mov dword [esp + 0x28], esi
mov esi, ecx
shld ecx, edx, 0x15
shr esi, 0xb
shl edx, 0x15
or esi, edx
mov edx, dword [esp + 0x18]
or edx, ecx
xor esi, eax
xor edx, dword [esp + 0x28]
mov ecx, edi
add dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
adc dword [esp + 0x24], edi
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
shl ebx, 0x11
or eax, edi
mov edi, dword [esp + 0x1c]
or ecx, ebx
mov ebx, dword [esp + 0x24]
xor ecx, edi
xor eax, ebx
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov dword [esp + 0x2c], eax
or ebx, edi
sub dword [esp + 0x3c], 1
mov dword [esp + 0x24], ebx
mov edi, eax
jne 0x5066c0
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
xor ebx, dword [esp + 0x14]
xor edx, eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add eax, 8
mov dword [esp + 0x30], eax
add eax, 0xfffffffa
cmp eax, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
jne 0x5065a7
mov edi, dword [esp + 0x44]
test edi, edi
je 0x5067e4
mov eax, dword [esp + 0x38]
push edi
push dword [esp + 0x38]
add eax, 0x38
push eax
call fcn.0065fd30
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x24]
pop edi
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x14]
pop esi
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0x24], eax
pop ebx
mov esp, ebp
pop ebp
ret