Function at 0x4c3010
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x38]
mov esi, 0xffffffe0
mov ebx, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, dword [esp + 0x48]
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebx, ecx
jb 0x4c3697
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
cmp dword [edi + 0x174], 0
je 0x4c3137
movzx ebx, byte [edi + 0x4f]
mov esi, edi
mov dword [esp], 0
mov ecx, ebx
and ecx, 0xf
shl ecx, 4
mov eax, dword [edi + ecx + 0x60]
mov edx, dword [edi + ecx + 0x64]
mov edi, dword [edi + ecx + 0x6c]
mov ecx, dword [esi + ecx + 0x68]
nop word cs:[eax + eax]
mov ebp, dword [esp + 0x38]
mov esi, edx
and ebx, 0xfffffff0
shr edx, 4
shld esi, eax, 0x1c
shld eax, edi, 0x1c
shld edi, ecx, 0x1c
and ecx, 0xf
xor edx, dword [ebp + ebx + 0x64]
xor esi, dword [ebp + ebx + 0x60]
xor eax, dword [ebp + ebx + 0x6c]
xor edi, dword [ebp + ebx + 0x68]
xor edx, dword [ecx*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c3113
mov ebx, dword [esp]
mov ecx, dword [esp + 0x38]
mov ebp, edx
shr edx, 4
dec dword [esp]
shld ebp, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
movzx ecx, byte [ecx + ebx + 0x4e]
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ecx
and ecx, 0xf
shl ecx, 4
xor edx, dword [ebx + ecx + 0x64]
mov ebx, dword [esp + 4]
xor edx, dword [edi*4 + 0x520ab4]
mov edi, dword [esp + 0x38]
xor ebp, dword [edi + ecx + 0x60]
xor esi, dword [edi + ecx + 0x6c]
xor eax, dword [edi + ecx + 0x68]
mov ecx, eax
mov edi, esi
mov eax, ebp
jmp 0x4c3080
mov ecx, dword [esp + 0x38]
bswap edx
bswap esi
bswap edi
bswap eax
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x4c], edi
mov edi, ecx
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x174], 0
mov eax, dword [edi + 0x170]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
test eax, eax
je 0x4c327e
test esi, esi
je 0x4c368c
nop dword [eax]
movzx ecx, byte [ebx]
movzx edx, byte [edi + eax + 0x10]
inc ebx
xor dl, cl
mov byte [ebp], dl
xor byte [edi + eax + 0x40], cl
inc eax
inc ebp
lea ecx, [esi - 1]
and eax, 0xf
je 0x4c3183
cmp esi, 1
mov esi, ecx
jne 0x4c3160
test eax, eax
jne 0x4c368c
movzx esi, byte [edi + 0x4f]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 0x14], ebx
mov dword [esp], esi
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 esi, dword [edi + esi + 0x68]
mov dword [esp + 4], esi
mov esi, dword [esp]
mov edi, dword [esp + 4]
and esi, 0xfffffff0
mov ebp, esi
mov dword [esp], esi
mov esi, ecx
shr ecx, 4
shld esi, eax, 0x1c
shld eax, edx, 0x1c
shld edx, edi, 0x1c
and edi, 0xf
mov dword [esp + 4], edi
mov edi, dword [esp + 0x38]
xor ecx, dword [edi + ebp + 0x64]
mov ebp, dword [esp + 4]
xor ecx, dword [ebp*4 + 0x520ab4]
mov ebp, dword [esp]
xor esi, dword [edi + ebp + 0x60]
xor eax, dword [edi + ebp + 0x6c]
xor edx, dword [edi + ebp + 0x68]
cmp dword [esp + 8], 0xfffffff1
je 0x4c3262
mov ebp, dword [esp + 8]
mov ebx, ecx
shr ecx, 4
dec dword [esp + 8]
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
movzx ebp, byte [edi + ebp + 0x4e]
mov dword [esp], ebp
and ebp, 0xf
shl ebp, 4
xor ecx, dword [edi + ebp + 0x64]
xor eax, dword [edi + ebp + 0x68]
xor ebx, dword [edi + ebp + 0x60]
xor esi, dword [edi + ebp + 0x6c]
xor ecx, dword [edx*4 + 0x520ab4]
mov dword [esp + 4], eax
mov eax, ebx
mov ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x4c31c0
bswap esi
mov ebp, dword [esp + 0xc]
bswap ecx
bswap eax
bswap edx
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x10]
mov dword [edi + 0x40], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
mov ecx, dword [edi + 0xc]
cmp esi, 0xc00
bswap ecx
jae 0x4c32de
jmp 0x4c33fd
push edi
push dword [esp + 0x40]
push 0xc0
mov ebp, dword [esp + 0x18]
push ebp
mov ebx, dword [esp + 0x24]
push ebx
call dword [esp + 0x60]
add esp, 0x14
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
add ebp, 0xc00
add ebx, 0xc00
add ecx, 0xc0
add esi, 0xfffff400
mov eax, ecx
cmp esi, 0xbff
bswap eax
mov dword [edi + 0xc], eax
jbe 0x4c33fd
mov dl, byte [edi + 0x4f]
mov eax, 0xc00
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
jmp 0x4c3331
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
bswap esi
bswap edi
bswap edx
bswap ebp
mov dword [ecx + 0x44], edi
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x4c], edx
add ebx, 0x10
shr edx, 0x18
add eax, 0xfffffff0
mov edi, ecx
mov dword [ecx + 0x48], ebp
je 0x4c3290
xor dl, byte [ebx + 0xf]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], eax
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov ebp, dword [edi + eax + 0x60]
mov esi, dword [edi + eax + 0x64]
mov edx, dword [edi + eax + 0x6c]
mov ecx, dword [edi + eax + 0x68]
nop
mov eax, dword [esp + 0x38]
mov edi, esi
and ebx, 0xfffffff0
shr esi, 4
shld edi, ebp, 0x1c
shld ebp, edx, 0x1c
shld edx, ecx, 0x1c
and ecx, 0xf
xor esi, dword [eax + ebx + 0x64]
xor edi, dword [eax + ebx + 0x60]
xor ebp, dword [eax + ebx + 0x6c]
xor edx, dword [eax + ebx + 0x68]
xor esi, dword [ecx*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c3300
mov eax, dword [esp + 8]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x38]
movzx ecx, byte [eax + ecx + 0xe]
mov eax, dword [esp]
dec dword [esp]
xor cl, byte [ebx + eax + 0x4e]
mov eax, esi
shr esi, 4
shld eax, edi, 0x1c
shld edi, ebp, 0x1c
shld ebp, edx, 0x1c
and edx, 0xf
movzx ecx, cl
mov dword [esp + 4], ecx
and ecx, 0xf
shl ecx, 4
xor esi, dword [ebx + ecx + 0x64]
xor eax, dword [ebx + ecx + 0x60]
xor edi, dword [ebx + ecx + 0x6c]
xor ebp, dword [ebx + ecx + 0x68]
mov ebx, dword [esp + 4]
xor esi, dword [edx*4 + 0x520ab4]
mov ecx, ebp
mov edx, edi
mov ebp, eax
jmp 0x4c3360
mov eax, esi
and eax, 0xfffffff0
je 0x4c3566
mov dl, byte [edi + 0x4f]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
jmp 0x4c3461
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
bswap edi
bswap esi
bswap edx
bswap ebp
mov dword [ecx + 0x40], edi
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x4c], edx
add ebx, 0x10
shr edx, 0x18
add eax, 0xfffffff0
mov edi, ecx
mov dword [ecx + 0x48], ebp
je 0x4c352d
xor dl, byte [ebx + 0xf]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov ebp, dword [edi + eax + 0x60]
mov edi, dword [edi + eax + 0x64]
mov edx, dword [ecx + eax + 0x6c]
mov eax, dword [ecx + eax + 0x68]
mov ecx, dword [esp + 0x38]
mov esi, edi
and ebx, 0xfffffff0
shr edi, 4
shld esi, ebp, 0x1c
shld ebp, edx, 0x1c
shld edx, eax, 0x1c
and eax, 0xf
xor edi, dword [ecx + ebx + 0x64]
xor esi, dword [ecx + ebx + 0x60]
xor ebp, dword [ecx + ebx + 0x6c]
xor edx, dword [ecx + ebx + 0x68]
xor edi, dword [eax*4 + 0x520ab4]
cmp dword [esp], 0xfffffff1
je 0x4c3430
mov eax, dword [esp + 8]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x38]
movzx eax, byte [eax + ecx + 0xe]
mov ecx, dword [esp]
dec dword [esp]
xor al, byte [ebx + ecx + 0x4e]
mov ecx, edi
shr edi, 4
shld ecx, esi, 0x1c
shld esi, ebp, 0x1c
shld ebp, edx, 0x1c
and edx, 0xf
movzx eax, al
mov dword [esp + 4], eax
and eax, 0xf
shl eax, 4
xor edi, dword [ebx + eax + 0x64]
xor ecx, dword [ebx + eax + 0x60]
xor esi, dword [ebx + eax + 0x6c]
xor ebp, dword [ebx + eax + 0x68]
mov ebx, dword [esp + 4]
xor edi, dword [edx*4 + 0x520ab4]
mov eax, ebp
mov edx, esi
mov ebp, ecx
jmp 0x4c3490
mov esi, dword [esp + 0x10]
shr esi, 4
push edi
push dword [esp + 0x40]
push esi
mov ebp, dword [esp + 0x18]
push ebp
mov ebx, dword [esp + 0x24]
push ebx
call dword [esp + 0x60]
add esp, 0x14
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add ecx, esi
mov esi, dword [esp + 0x10]
add ebp, edx
add ebx, edx
mov eax, ecx
bswap eax
mov dword [edi + 0xc], eax
sub esi, edx
test esi, esi
je 0x4c368a
lea eax, [edi + 0x10]
mov dword [esp + 0x14], ebx
push dword [esp + 0x3c]
mov dword [esp + 4], eax
push eax
push edi
mov ebx, ecx
call dword [edi + 0x168]
add esp, 0xc
inc ebx
xor eax, eax
cmp esi, 0x10
mov ecx, esi
mov edx, 0
mov dword [esp + 0x10], esi
bswap ebx
mov dword [edi + 0xc], ebx
jb 0x4c3661
mov edx, dword [esp]
lea ecx, [edi + esi + 0x40]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
lea ecx, [ebp + esi]
mov dword [esp + 8], ecx
cmp ecx, edx
mov ecx, dword [esp + 0xc]
lea edi, [ebx + esi]
seta byte [esp + 4]
cmp ebp, ecx
setb byte [esp + 0x1c]
cmp edi, edx
mov edx, 0
seta byte [esp]
cmp ebx, ecx
mov cl, byte [esp + 0x1c]
setb byte [esp + 0xc]
cmp ebp, edi
mov edi, dword [esp + 0x38]
setb byte [esp + 0x18]
cmp ebx, dword [esp + 8]
setb bl
test byte [esp + 4], cl
mov ecx, esi
jne 0x4c3661
mov cl, byte [esp + 0xc]
mov edx, 0
and byte [esp], cl
mov ecx, esi
jne 0x4c3661
and byte [esp + 0x18], bl
mov ecx, esi
mov edx, 0
jne 0x4c3661
mov ebx, dword [esp + 0x14]
mov edx, esi
mov ecx, esi
xor esi, esi
and edx, 0xfffffff0
sub ecx, edx
nop
movups xmm0, xmmword [ebx + esi]
movups xmm1, xmmword [edi + esi + 0x10]
movups xmm2, xmmword [edi + esi + 0x40]
xorps xmm2, xmm0
xorps xmm1, xmm0
movups xmmword [edi + esi + 0x40], xmm2
movups xmmword [ebp + esi], xmm1
add esi, 0x10
cmp edx, esi
jne 0x4c3630
mov esi, dword [esp + 0x10]
cmp esi, edx
jne 0x4c3661
mov eax, esi
jmp 0x4c368c
mov ebx, dword [esp + 0x14]
lea esi, [edi + edx + 0x40]
add ebp, edx
add ebx, edx
nop dword [eax]
movzx edx, byte [ebx + eax]
xor byte [esi + eax], dl
xor dl, byte [esi + eax - 0x30]
mov byte [ebp + eax], dl
inc eax
cmp ecx, eax
jne 0x4c3670
mov eax, dword [esp + 0x10]
jmp 0x4c368c
xor eax, eax
mov dword [edi + 0x170], eax
mov eax, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret