Function at 0x4973f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0xd
test ecx, ecx
je 0x49787f
lea edx, [edi + 0x160]
xorps xmm0, xmm0
mov dword [esp + 0x14], edx
lea esi, [edi + 0x170]
mov dword [esp + 0x28], esi
movups xmmword [edx], xmm0
movups xmmword [esi], xmm0
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x180], esi
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x14c], 0
cmp ecx, 0xc
jne 0x497498
movq xmm0, qword [eax]
movq qword [edx], xmm0
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov byte [edi + 0x16f], 1
jmp 0x49755a
shl ecx, 3
mov eax, ecx
movaps xmmword [esp + 0x30], xmm0
shr eax, 0x18
mov byte [esp + 0x3c], al
mov eax, ecx
shr eax, 0x10
shr ecx, 8
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], cl
mov ecx, dword [ebp + 0xc]
mov al, cl
shl al, 3
mov byte [esp + 0x3f], al
test ecx, ecx
je 0x497512
nop dword [eax]
mov esi, 0x10
cmp ecx, esi
cmovb esi, ecx
xor ecx, ecx
test esi, esi
je 0x4974f3
mov edi, dword [esp + 0x10]
mov al, byte [ecx + edi]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x4974e4
mov edi, dword [esp + 0x24]
push edx
mov ecx, edi
call fcn.00497210
mov ecx, dword [ebp + 0xc]
add esp, 4
add dword [esp + 0x10], esi
sub ecx, esi
mov edx, dword [esp + 0x14]
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x4974d0
xor ecx, ecx
lea esi, [edi + 0x161]
nop word [eax + eax]
movzx eax, byte [esp + ecx + 0x30]
xor byte [esi + ecx - 1], al
movzx eax, byte [esp + ecx + 0x31]
xor byte [esi + ecx], al
movzx eax, byte [esp + ecx + 0x32]
xor byte [esi + ecx + 1], al
movzx eax, byte [esp + ecx + 0x33]
xor byte [esi + ecx + 2], al
add ecx, 4
cmp ecx, 0x10
jb 0x497520
push edx
mov ecx, edi
call fcn.00497210
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edi]
lea eax, [edi + 0x150]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x10
test ecx, ecx
je 0x497609
mov esi, dword [ecx + 0x18]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], esi
cmp ecx, 1
jne 0x4975b8
cmp esi, 0x10
je 0x4975a0
mov eax, 0xffff9d80
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
lea ecx, [edi + 0x150]
push ecx
push edx
push dword [edi + 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 4]
jmp 0x4977de
cmp ecx, 6
jne 0x4975d2
push eax
push edx
lea edx, [ecx + 0xa]
mov ecx, dword [edi + 0x3c]
call fcn.004978a0
add esp, 8
jmp 0x4977ea
test esi, esi
jne 0x4975ec
mov eax, 0xffff9c80
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x24]
mov dword [esp + 0x10], ecx
cmp edx, eax
jne 0x49761f
cmp dword [ecx], 0
jne 0x497609
xor edx, edx
mov eax, 0x10
div esi
test edx, edx
je 0x497625
mov eax, 0xffff9f00
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], ecx
jmp 0x49762b
lea eax, [edi + 0x150]
mov edx, dword [edi]
cmp dword [edx + 4], 2
mov edx, dword [esp + 0x14]
jne 0x497777
mov eax, dword [edi + 8]
test eax, eax
jne 0x4976d9
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, esi
sub eax, dword [esp + 0x10]
cmp eax, 0x10
jae 0x4976f8
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x49770c
mov eax, esi
sub eax, ecx
push eax
mov dword [esp + 0x1c], eax
lea eax, [ecx + 0x14]
push edx
add eax, edi
push eax
call fcn.00524840
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x1c]
lea eax, [edi + 0x150]
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 0x28]
push eax
mov eax, dword [ecx + 8]
push esi
push dword [edi + 8]
push dword [edi + 0x3c]
call eax
add esp, 0x18
test eax, eax
jne 0x497884
lea eax, [esi + 0x150]
mov dword [edi + 0x24], 0
mov esi, dword [esp + 0x14]
add eax, edi
add esi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, 0x10
sub eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
je 0x4977f2
jmp 0x497713
cmp eax, 1
jne 0x49765b
mov eax, dword [edi + 0x24]
mov dword [esp + 0x10], eax
mov eax, esi
sub eax, dword [esp + 0x10]
cmp eax, 0x10
jbe 0x49765b
movups xmm0, xmmword [edx]
mov eax, dword [esp + 0x10]
movups xmmword [eax + edi + 0x14], xmm0
add dword [ecx], 0x10
jmp 0x4977f2
mov esi, edx
mov eax, 0x10
xor edx, edx
div dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x49772f
cmp dword [edi + 8], edx
cmove ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov eax, esi
sub eax, ecx
add eax, dword [esp + 0x18]
push ecx
push eax
lea eax, [edi + 0x14]
push eax
call fcn.00524840
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x18]
add dword [edi + 0x24], eax
sub edx, eax
je 0x4977f2
mov eax, dword [edi]
push dword [esp + 0x1c]
push esi
mov ecx, dword [eax + 0x1c]
lea eax, [edi + 0x28]
push eax
push edx
push dword [edi + 8]
mov eax, dword [ecx + 8]
push dword [edi + 0x3c]
call eax
add esp, 0x18
jmp 0x4977e6
mov esi, dword [edi]
mov ecx, dword [esi + 4]
cmp ecx, 3
jne 0x4977a0
mov ecx, dword [esi + 0x1c]
push eax
push edx
lea eax, [edi + 0x28]
push eax
push dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
push 0x10
push dword [edi + 8]
push dword [edi + 0x3c]
call eax
add esp, 0x1c
jmp 0x4977e6
cmp ecx, 5
jne 0x4977c5
mov ecx, dword [esi + 0x1c]
push eax
push edx
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 0x28]
push eax
push dword [esp + 0x20]
mov eax, dword [ecx + 0x10]
push 0x10
push dword [edi + 0x3c]
call eax
add esp, 0x1c
jmp 0x4977e6
cmp ecx, 7
jne 0x497869
mov eax, dword [esi + 0x1c]
lea ecx, [edi + 0x150]
push ecx
push edx
push 0x10
mov eax, dword [eax + 0x14]
push dword [edi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x4977f2
test eax, eax
jne 0x497884
mov dword [edi + 0x148], 0xd
mov eax, 0xd
mov dword [edi + 0x14c], 0
nop dword [eax + eax]
mov esi, 0x10
cmp eax, esi
cmovb esi, eax
xor eax, eax
test esi, esi
je 0x497836
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0x28]
mov cl, byte [eax + edx]
xor byte [edi + eax], cl
inc eax
cmp eax, esi
jb 0x497827
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, edi
push eax
mov edx, eax
call fcn.00497210
mov eax, dword [esp + 0x30]
add esp, 4
add dword [ebp + 0x10], esi
sub eax, esi
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x497810
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9f80
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffec
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret