Function at 0x4c1a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [esp + 0x4c]
mov esi, 0xffffffe0
mov edi, 0xf
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
add edx, dword [esp + 0x5c]
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb edi, ecx
jb 0x4c21ea
mov eax, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [eax + 0x168]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
cmp dword [esi + 0x174], 0
mov dword [esp + 0x24], eax
je 0x4c1b4b
mov edi, dword [esp + 0x4c]
mov dword [esp], 0
movzx ebx, byte [edi + 0x4f]
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [edi + esi + 0x60]
mov ecx, dword [edi + esi + 0x64]
mov edx, dword [edi + esi + 0x6c]
mov ebp, dword [edi + esi + 0x68]
nop dword [eax + eax]
mov esi, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [edi + ebx + 0x64]
shld esi, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebp, 0x1c
and ebp, 0xf
xor esi, dword [edi + ebx + 0x60]
xor eax, dword [edi + ebx + 0x6c]
xor edx, dword [edi + ebx + 0x68]
xor ecx, dword [ebp*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c1b29
mov ebx, dword [esp]
mov edi, dword [esp + 0x4c]
dec dword [esp]
movzx ebx, byte [edi + ebx + 0x4e]
mov ebp, ebx
mov dword [esp + 4], ebx
mov ebx, ecx
shr ecx, 4
and ebp, 0xf
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
shl ebp, 4
xor ecx, dword [edi + ebp + 0x64]
xor ebx, dword [edi + ebp + 0x60]
xor eax, dword [edi + ebp + 0x68]
xor esi, dword [edi + ebp + 0x6c]
xor ecx, dword [edx*4 + 0x520ab4]
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 4]
mov edx, esi
jmp 0x4c1aa0
mov edi, dword [esp + 0x4c]
bswap ecx
bswap esi
bswap eax
bswap edx
mov dword [edi + 0x44], esi
mov dword [edi + 0x40], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
mov dword [edi + 0x174], 0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov eax, dword [eax + 0x170]
test eax, eax
je 0x4c1c69
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x4c21db
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, dword [esp + 0x4c]
mov ebx, ecx
movzx ecx, byte [ecx + eax + 0x10]
xor cl, byte [esi]
inc esi
mov byte [edi], cl
xor byte [ebx + eax + 0x40], cl
inc eax
inc edi
and eax, 0xf
cmp edx, 1
lea edx, [edx - 1]
je 0x4c1ba5
test eax, eax
jne 0x4c1b80
test eax, eax
jne 0x4c21db
mov dword [esp + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp], 0
movzx ebx, byte [edi + 0x4f]
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [edi + esi + 0x60]
mov ecx, dword [edi + esi + 0x64]
mov edx, dword [edi + esi + 0x6c]
mov ebp, dword [edi + esi + 0x68]
mov esi, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [edi + ebx + 0x64]
shld esi, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebp, 0x1c
and ebp, 0xf
xor esi, dword [edi + ebx + 0x60]
xor eax, dword [edi + ebx + 0x6c]
xor edx, dword [edi + ebx + 0x68]
xor ecx, dword [ebp*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c1c77
mov ebx, dword [esp]
mov edi, dword [esp + 0x4c]
dec dword [esp]
movzx ebx, byte [edi + ebx + 0x4e]
mov ebp, ebx
mov dword [esp + 4], ebx
mov ebx, ecx
shr ecx, 4
and ebp, 0xf
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
shl ebp, 4
xor ecx, dword [edi + ebp + 0x64]
xor ebx, dword [edi + ebp + 0x60]
xor eax, dword [edi + ebp + 0x68]
xor esi, dword [edi + ebp + 0x6c]
xor ecx, dword [edx*4 + 0x520ab4]
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 4]
mov edx, esi
jmp 0x4c1be0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
jmp 0x4c1c93
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x4c]
bswap ecx
bswap esi
bswap eax
bswap edx
mov dword [edi + 0x44], esi
mov dword [edi + 0x40], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp ebx, 0xc00
mov eax, dword [eax + 0xc]
bswap eax
mov dword [esp + 0x1c], eax
jb 0x4c1ee3
mov eax, dword [esp + 0x4c]
add eax, 0x10
mov dword [esp + 0x34], eax
jmp 0x4c1cda
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
add ebx, 0xfffff400
cmp ebx, 0xbff
jbe 0x4c1ecb
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edi, 0xfffffff0
mov esi, 0x10
inc ebx
mov dword [esp + 0x28], edx
add edx, 0xfffff41e
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
nop word [eax + eax]
push ecx
push dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov ebp, eax
push eax
call dword [esp + 0x30]
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ecx + esi - 0x10]
mov dword [edx + esi - 0x10], eax
mov eax, dword [ebp + 0x14]
xor eax, dword [ecx + esi - 0xc]
mov dword [edx + esi - 0xc], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ecx + esi - 8]
mov dword [edx + esi - 8], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ecx + esi - 4]
cmp edi, 0xfffff400
mov dword [edx + esi - 4], eax
je 0x4c1d80
add dword [esp + 0x18], 0x10
mov ecx, dword [esp + 0x50]
add edi, 0xfffffff0
inc ebx
add esi, 0x10
jmp 0x4c1d10
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
mov dl, byte [eax + 0x4f]
mov eax, dword [esp + 0x20]
lea esi, [ecx + esi - 0xc00]
sub eax, edi
mov dword [esp + 0xc], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 8], eax
mov eax, 0xc00
jmp 0x4c1df4
mov eax, dword [esp + 0x4c]
bswap edi
bswap esi
bswap ebx
bswap edx
add dword [esp + 0x18], 0x10
mov dword [eax + 0x40], esi
mov dword [eax + 0x44], edi
mov esi, dword [esp + 0x14]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x48], ebx
mov eax, dword [esp + 0x2c]
shr edx, 0x18
add esi, 0x10
add eax, 0xfffffff0
je 0x4c1cc0
xor dl, byte [esi + 0xf]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], esi
mov dword [esp], 0
movzx edi, dl
mov eax, edi
and eax, 0xf
shl eax, 4
mov ebx, dword [ecx + eax + 0x60]
mov esi, dword [ecx + eax + 0x64]
mov edx, dword [ecx + eax + 0x6c]
mov ebp, dword [ecx + eax + 0x68]
mov eax, edi
nop word [eax + eax]
mov edi, esi
and eax, 0xfffffff0
shr esi, 4
xor esi, dword [ecx + eax + 0x64]
shld edi, ebx, 0x1c
shld ebx, edx, 0x1c
shld edx, ebp, 0x1c
and ebp, 0xf
xor edi, dword [ecx + eax + 0x60]
xor ebx, dword [ecx + eax + 0x6c]
xor edx, dword [ecx + eax + 0x68]
xor esi, dword [ebp*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c1dc0
mov ebp, dword [esp]
mov eax, dword [esp + 0x18]
dec dword [esp]
movzx ecx, byte [eax + ebp]
mov eax, dword [esp + 0x4c]
xor cl, byte [eax + ebp + 0x4e]
mov ebp, eax
movzx eax, cl
mov ecx, ebp
mov ebp, eax
mov dword [esp + 4], eax
mov eax, esi
shr esi, 4
and ebp, 0xf
shld eax, edi, 0x1c
shld edi, ebx, 0x1c
shld ebx, edx, 0x1c
and edx, 0xf
shl ebp, 4
xor esi, dword [ecx + ebp + 0x64]
xor eax, dword [ecx + ebp + 0x60]
xor ebx, dword [ecx + ebp + 0x68]
xor edi, dword [ecx + ebp + 0x6c]
xor esi, dword [edx*4 + 0x520ab4]
mov ebp, ebx
mov ebx, eax
mov eax, dword [esp + 4]
mov edx, edi
jmp 0x4c1e30
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub eax, esi
sub edx, esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 0xfffffff0
je 0x4c20a0
cmp ebx, 0x10
mov dword [esp + 0x10], ebx
jb 0x4c1f8a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, ebx
mov ebx, dword [esp + 8]
nop dword [eax + eax]
mov dword [esp], eax
push ecx
push dword [esp + 8]
mov eax, dword [esp + 0x54]
mov ebp, eax
push eax
call dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
add esp, 0xc
inc edi
mov eax, edi
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
xor eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [esi + 0xc]
add esi, 0x10
mov dword [ebx + 0xc], eax
mov eax, dword [esp]
add ebx, 0x10
add eax, 0xfffffff0
cmp eax, 0xf
ja 0x4c1f20
mov eax, dword [esp + 0x14]
and dword [esp + 0x10], 0xf
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 8]
mov cl, byte [ecx + 0x4f]
sub edx, eax
jmp 0x4c1fcf
mov eax, dword [esp + 0x4c]
bswap ebx
bswap esi
bswap edx
bswap ecx
mov dword [eax + 0x44], esi
mov dword [eax + 0x40], ebx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x48], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
shr ecx, 0x18
add edx, 0x10
add eax, 0xfffffff0
je 0x4c2098
xor cl, byte [edx + 0xf]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp], 0
movzx edi, cl
mov eax, edi
and eax, 0xf
shl eax, 4
mov edx, dword [ebp + eax + 0x60]
mov ebx, dword [ebp + eax + 0x64]
mov ecx, dword [ebp + eax + 0x6c]
mov eax, dword [ebp + eax + 0x68]
mov esi, ebx
and edi, 0xfffffff0
shr ebx, 4
xor ebx, dword [ebp + edi + 0x64]
shld esi, edx, 0x1c
shld edx, ecx, 0x1c
shld ecx, eax, 0x1c
and eax, 0xf
xor esi, dword [ebp + edi + 0x60]
xor edx, dword [ebp + edi + 0x6c]
xor ecx, dword [ebp + edi + 0x68]
xor ebx, dword [eax*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c1fa0
mov ebp, dword [esp]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
dec dword [esp]
movzx eax, byte [eax + ebp + 0xe]
xor al, byte [edi + ebp + 0x4e]
mov ebp, edi
mov edi, ebx
shr ebx, 4
shld edi, esi, 0x1c
shld esi, edx, 0x1c
shld edx, ecx, 0x1c
and ecx, 0xf
movzx eax, al
mov dword [esp + 4], eax
and eax, 0xf
shl eax, 4
xor ebx, dword [ebp + eax + 0x64]
xor edi, dword [ebp + eax + 0x60]
xor edx, dword [ebp + eax + 0x68]
xor esi, dword [ebp + eax + 0x6c]
xor ebx, dword [ecx*4 + 0x520ab4]
mov eax, edx
mov edx, edi
mov edi, dword [esp + 4]
mov ecx, esi
jmp 0x4c2000
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
test ebx, ebx
je 0x4c21d9
mov eax, dword [esp + 0x4c]
lea ebp, [eax + 0x10]
mov esi, eax
push ecx
push ebp
push eax
call dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, 0
mov ecx, ebx
mov dword [esp + 0x10], ebx
inc eax
bswap eax
mov dword [esi + 0xc], eax
xor eax, eax
cmp ebx, 0x10
jb 0x4c21a4
mov esi, dword [esp + 8]
lea ecx, [esi + ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
lea edi, [ecx + ebx + 0x40]
mov ecx, dword [esp + 0xc]
cmp esi, edi
setb byte [esp + 4]
lea edx, [ecx + ebx]
mov dword [esp], edx
mov edx, dword [esp + 0x14]
cmp edx, ebp
seta byte [esp + 0x18]
cmp esi, dword [esp]
setb byte [esp + 0x2c]
cmp ecx, edx
mov edx, 0
setb byte [esp + 0x14]
cmp dword [esp], ebp
seta byte [esp]
cmp ecx, edi
mov cl, byte [esp + 0x18]
setb byte [esp + 0x20]
test byte [esp + 4], cl
mov ecx, ebx
jne 0x4c21a4
mov cl, byte [esp + 0x14]
mov edx, 0
and byte [esp + 0x2c], cl
mov ecx, ebx
jne 0x4c21a4
mov cl, byte [esp + 0x20]
mov edx, 0
and byte [esp], cl
mov ecx, ebx
jne 0x4c21a4
mov edx, ebx
mov ecx, ebx
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 8]
xor esi, esi
and edx, 0xfffffff0
sub ecx, edx
nop dword [eax]
mov ebp, dword [esp + 0x4c]
movups xmm0, xmmword [ebx + esi]
movups xmm1, xmmword [ebp + esi + 0x10]
xorps xmm1, xmm0
movups xmmword [edi + esi], xmm1
movups xmm0, xmmword [ebp + esi + 0x40]
xorps xmm0, xmm1
movups xmmword [ebp + esi + 0x40], xmm0
add esi, 0x10
cmp edx, esi
jne 0x4c2170
mov ebx, dword [esp + 0x10]
cmp ebx, edx
jne 0x4c21a4
mov eax, ebx
jmp 0x4c21db
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 8]
add edi, edx
lea esi, [esi + edx + 0x40]
add ebx, edx
nop dword [eax + eax]
movzx edx, byte [esi + eax - 0x30]
xor dl, byte [edi + eax]
mov byte [ebx + eax], dl
xor byte [esi + eax], dl
inc eax
cmp ecx, eax
jne 0x4c21c0
mov eax, dword [esp + 0x10]
jmp 0x4c21db
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x170], eax
mov eax, 1
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret