Function at 0x513fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
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 [ebp - 0x10], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edi
add dword [eax], ebx
mov ebx, dword [ebp - 0x1c]
adc dword [eax + 4], 0
cmp dword [eax + 0x28], 0
je 0x51421b
mov edx, dword [eax + 0x28]
mov ecx, 8
add eax, 0x38
sub ecx, edx
add edx, eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
jae 0x51405b
push eax
push dword [ebp + 0xc]
push edx
call fcn.0053f3e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add dword [eax + 0x28], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push dword [ebp + 0xc]
push edx
call fcn.0053f3e0
mov eax, dword [ebp - 0x30]
add esp, 0xc
sub dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x3f]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x3e]
mov dword [ebp - 8], edx
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x3d]
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x3c]
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x3b]
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x3a]
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x39]
cdq
or dword [ebp - 4], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 4]
shld dword [ebp - 8], eax, 8
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x38]
cdq
or dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor esi, dword [ebp - 4]
or eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x514207
mov ecx, dword [ebp - 0x28]
nop dword [eax]
add dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x20]
adc ebx, edi
shld eax, ecx, 0xd
mov dword [ebp - 0x1c], ebx
mov ebx, edi
shl ecx, 0xd
xor edi, edi
shr ebx, 0x13
or edi, eax
mov eax, dword [ebp - 0x1c]
or ebx, ecx
xor ebx, dword [ebp - 0x14]
xor edi, eax
add dword [ebp - 0x10], esi
adc dword [ebp - 0x18], edx
xor ecx, ecx
shld dword [ebp - 0xc], esi, 0x10
or ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x18]
shl esi, 0x10
shr edx, 0x10
or edx, esi
mov dword [ebp - 0xc], 0
xor edx, dword [ebp - 0x10]
xor esi, esi
or esi, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
adc esi, ecx
mov dword [ebp - 0x1c], esi
mov esi, ecx
shld ecx, edx, 0x15
shr esi, 0xb
shl edx, 0x15
or esi, edx
mov edx, dword [ebp - 0xc]
or edx, ecx
xor esi, eax
xor edx, dword [ebp - 0x1c]
mov ecx, edi
add dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
adc dword [ebp - 0x18], edi
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
shl ebx, 0x11
or eax, edi
or ecx, ebx
mov dword [ebp - 0x20], eax
xor ecx, dword [ebp - 0x10]
xor ebx, ebx
or ebx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, eax
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
jne 0x514150
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 4]
xor ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ebx
jmp 0x514221
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov ebx, dword [ebp - 0x2c]
and ecx, 7
mov dword [ebp - 0x24], ebx
sub dword [ebp - 0x24], ecx
add dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov ecx, ebx
cmp ecx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
je 0x514422
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
add eax, 6
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [eax + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edx
movzx eax, byte [eax]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 1]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 2]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 3]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 4]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 5]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 6]
cdq
or dword [ebp - 4], edx
or dword [ebp + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
xor esi, eax
xor edx, dword [ebp - 4]
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0xc], edx
jle 0x5143f9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
add dword [ebp - 0x14], ecx
mov ebx, edi
mov eax, dword [ebp - 0x1c]
adc eax, edi
shr ebx, 0x13
shld dword [ebp - 0x20], ecx, 0xd
xor edi, edi
or edi, dword [ebp - 0x20]
shl ecx, 0xd
xor edi, eax
or ebx, ecx
xor ebx, dword [ebp - 0x14]
add dword [ebp - 0x10], esi
adc dword [ebp - 0x18], edx
xor ecx, ecx
shld dword [ebp - 0xc], esi, 0x10
or ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x18]
shl esi, 0x10
shr edx, 0x10
or edx, esi
mov dword [ebp - 0xc], 0
xor edx, dword [ebp - 0x10]
xor esi, esi
or esi, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
adc esi, ecx
mov dword [ebp - 0x1c], esi
mov esi, ecx
shld ecx, edx, 0x15
shr esi, 0xb
shl edx, 0x15
or esi, edx
mov edx, dword [ebp - 0xc]
or edx, ecx
xor esi, eax
xor edx, dword [ebp - 0x1c]
mov ecx, edi
add dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
adc dword [ebp - 0x18], edi
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
shl ebx, 0x11
or eax, edi
mov edi, dword [ebp - 0x10]
or ecx, ebx
mov ebx, dword [ebp - 0x18]
xor ecx, edi
xor eax, ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 0x20], eax
or ebx, edi
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], ebx
mov edi, eax
jne 0x514345
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
xor ebx, dword [ebp - 4]
xor edx, eax
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 8], eax
add eax, 0xfffffffa
cmp eax, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ebx
jne 0x514260
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x51443f
mov eax, dword [ebp + 8]
push edi
push dword [ebp - 0x24]
add eax, 0x38
push eax
call fcn.0053f3e0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0xc]
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