Function at 0x51ad60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00655180
push ebp
mov ebp, dword [esp + 0x34]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x174]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x178]
mov dword [esp + 0x20], eax
mov eax, ebp
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x51b122
jb 0x51ada6
cmp eax, 0xffffffe0
ja 0x51b122
cmp dword [esi + 0x170], 0
mov edx, dword [esi + 0x16c]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
push ebx
push edi
mov dword [esi + 0x38], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ecx
je 0x51ae46
test ebp, ebp
jne 0x51adec
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ecx
call eax
add esp, 8
mov dword [esi + 0x170], ebp
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret
movups xmm0, xmmword [ecx]
lea eax, [esi + 0x17c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
lea ecx, [esi + 0xc]
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x34], edx
mov dword [esi + 0x170], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jmp 0x51af09
lea eax, [esi + 0x17c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [esi + 0xc]
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x14], eax
mov eax, edx
and edx, 0xf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x51af07
mov ebx, dword [esp + 0x3c]
lea ecx, [esi + 0x17c]
mov edi, dword [esp + 0x38]
add ecx, eax
test ebp, ebp
je 0x51aef7
mov al, byte [edx + esi + 0x10]
dec ebp
xor al, byte [edi]
inc edx
mov byte [ebx], al
inc edi
mov byte [ecx], al
inc ebx
mov eax, dword [esp + 0x34]
inc ecx
inc eax
and edx, 0xf
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
jne 0x51ae82
push eax
lea edx, [esi + 0x17c]
lea ecx, [esi + 0x60]
mov dword [esp + 0x28], edx
push edx
lea eax, [esi + 0x60]
mov dword [esp + 0x20], ecx
lea ecx, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
push ecx
mov dword [esp + 0x20], ecx
call eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esp + 0x2c], eax
add esp, 0x10
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [esi + 0x60]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], ebp
jmp 0x51af18
pop edi
pop ebx
mov dword [esi + 0x16c], eax
xor eax, eax
pop esi
pop ebp
add esp, 0x20
ret
mov edx, eax
mov ebx, dword [esp + 0x3c]
lea eax, [esi + 0x60]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
cmp ebp, 0x10
jb 0x51af3e
test edx, edx
je 0x51af3e
push edx
push dword [esp + 0x28]
push eax
push dword [esp + 0x1c]
mov eax, dword [esi + 0x164]
call eax
add esp, 0x10
mov dword [esp + 0x34], 0
cmp ebp, 0xc00
jb 0x51b00c
lea eax, [esi + 0x60]
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
mov dword [esp + 0x1c], edx
nop word [eax + eax]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x24], 0xc0
nop dword [eax]
push dword [esp + 0x28]
push ecx
push esi
call dword [esp + 0x38]
inc ebp
lea ecx, [esi + 0x10]
mov eax, ebp
add esp, 0xc
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
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 [esp + 0x24], 1
jne 0x51af80
push 0xc00
lea eax, [ebx - 0xc00]
mov dword [esp + 0x18], ebp
push eax
push dword [esp + 0x20]
mov eax, dword [esi + 0x164]
push dword [esp + 0x1c]
call eax
mov ebp, dword [esp + 0x50]
lea ecx, [esi + 0x10]
sub ebp, 0xc00
add esp, 0x10
sub dword [esp + 0x1c], 1
mov dword [esp + 0x40], ebp
jne 0x51af70
lea eax, [esi + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, ebp
and ecx, 0xfffffff0
mov dword [esp + 0x24], ecx
je 0x51b0b1
cmp ebp, 0x10
jb 0x51b091
mov eax, ebp
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x40], eax
nop dword [eax]
push dword [esp + 0x28]
push ecx
push esi
call dword [esp + 0x38]
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x10]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
sub ebp, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
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 [esp + 0x40], 1
jne 0x51b030
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x60]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x40]
mov dword [esp + 0x10], eax
push ecx
mov eax, ebx
sub eax, ecx
push eax
push dword [esp + 0x20]
mov eax, dword [esi + 0x164]
push dword [esp + 0x1c]
call eax
lea eax, [esi + 0xc]
add esp, 0x10
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x51b10e
push dword [esp + 0x28]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x38]
mov eax, dword [esp + 0x20]
sub edi, ebx
mov ecx, dword [esp + 0x28]
inc eax
mov edx, dword [esp + 0x40]
add esp, 0xc
bswap eax
add edx, 0x17c
mov dword [ecx], eax
add edx, esi
mov eax, dword [esp + 0x20]
lea ecx, [eax + ebx]
add eax, 0x10
add eax, esi
add dword [esp + 0x34], ebp
mov dword [esp + 0x40], eax
mov ebx, eax
mov al, byte [edi + ecx]
lea edx, [edx + 1]
xor al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub ebp, 1
jne 0x51b0f6
mov edx, dword [esp + 0x34]
xor eax, eax
pop edi
pop ebx
mov dword [esi + 0x16c], edx
pop esi
pop ebp
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x20
ret