Function at 0x60513d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.006d13f0
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0x10], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x605224
jb 0x604f4d
cmp eax, 0xffffffe0
ja 0x605224
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x168]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
je 0x604fcd
test edx, edx
jne 0x604f92
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x160]
push ecx
call eax
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ecx]
lea ebx, [esi + 0x178]
mov eax, 0x10
mov dword [ebp - 4], eax
movups xmmword [ebx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x604fd6
lea ebx, [esi + 0x178]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0xc]
bswap ecx
mov dword [ebp - 8], ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebp - 0x28], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
je 0x60506a
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x605037
mov cl, byte [edi]
lea eax, [esi + 0x178]
mov dword [ebp - 0x18], eax
dec edx
mov eax, dword [ebp - 4]
inc edi
mov dword [ebp + 0x14], edx
mov byte [esi + eax + 0x178], cl
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [ebp - 0x14]
mov byte [ebx], al
inc ecx
mov eax, dword [ebp - 4]
inc ebx
inc eax
and ecx, 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
jne 0x604ff5
mov edx, dword [ebp - 0x18]
jmp 0x60503e
mov edx, dword [ebp - 0x18]
test ecx, ecx
jne 0x60505b
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x40]
push ecx
push edx
lea ecx, [esi + 0x60]
push ecx
push eax
call dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60506d
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x60]
cmp edx, 0x10
jb 0x605093
test eax, eax
je 0x605093
push eax
lea eax, [esi + 0x178]
push eax
push ecx
push dword [ebp - 0xc]
call dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp edx, 0xc00
jb 0x60512a
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [ebp - 0x24], edx
nop dword [eax]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x18], 0xc0
nop word [eax + eax]
push dword [ebp - 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 8], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x18], 1
jne 0x6050d0
mov edx, dword [ebp + 0x14]
sub edx, 0xc00
sub dword [ebp - 0x24], 1
mov dword [ebp + 0x14], edx
jne 0x6050b0
mov eax, edx
and eax, 0xfffffff0
je 0x6051a2
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add esp, 0x10
cmp edx, 0x10
jb 0x6051a2
shr edx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x24], edx
push dword [ebp - 0x1c]
push eax
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
sub edx, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x24], 1
lea eax, [esi + 0x10]
mov dword [ebp + 0x14], edx
jne 0x605151
test edx, edx
je 0x605212
push dword [ebp - 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
inc eax
mov edx, dword [ebp + 0x14]
bswap eax
mov dword [esi + 0xc], eax
lea eax, [ecx + ebx]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x24]
add eax, ecx
sub edi, ebx
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 4]
nop dword [eax]
mov eax, dword [ebp - 0x28]
lea esi, [esi + 1]
mov cl, byte [edi + esi - 1]
mov byte [eax + ebx], cl
inc ebx
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x20]
mov al, byte [eax]
xor al, cl
mov byte [esi - 1], al
sub edx, 1
jne 0x6051e0
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret