Function at 0x4c3b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov ebx, dword [ebp + 8]
call 0x4c3b24
pop esi
xor edi, edi
movzx ecx, byte [ebx + 0x34]
add ecx, 0xfffffff8
cmp ecx, 7
ja 0x4c3e4e
mov ecx, dword [ecx*4 + 0x4c44f8]
lea eax, [ebx + 0x28]
add ecx, esi
jmp ecx
movsd xmm2, qword [ebx + 0x18]
movsd xmm1, qword [ebx + 0x10]
movq xmm0, qword [ebx + 0x20]
movsd qword [ebp - 0x3c], xmm2
movsd qword [ebp - 0x44], xmm1
movq xmm2, qword [ebx]
movq xmm1, qword [ebx + 8]
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x4c], xmm1
movq qword [ebp - 0x54], xmm2
mov dword [ebp - 0x5c], 0x6c838c
mov dword [ebp - 0x58], 0x463
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0057a750
add esp, 4
test eax, eax
je 0x4c3d5d
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
xor edi, edi
lea esi, [ebp - 0x5c]
nop
cmp edx, ebx
mov ecx, edi
cmovb ecx, eax
cmovb ebx, edx
test edi, edi
mov edi, ecx
cmove ebx, edx
cmove edi, eax
push esi
call fcn.0057a750
add esp, 4
test eax, eax
jne 0x4c3be0
test edi, edi
je 0x4c3d60
cmp dword [ebp - 0x10], 0
je 0x4c3d60
test ebx, ebx
je 0x4c3e44
js 0x4c44a1
mov eax, dword [0x6b6a34]
movzx eax, byte [eax]
push 1
push ebx
call fcn.004ed010
add esp, 8
test eax, eax
je 0x4c44a6
mov esi, eax
push ebx
push edi
push eax
mov edi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebx, 8
mov ecx, esi
jb 0x4c3ff8
xor eax, eax
cmp ebx, 0x20
mov dword [ebp - 0x14], edi
jb 0x4c3cf9
movdqa xmm0, xmmword [0x6b98f0]
movdqa xmm1, xmmword [0x6b9900]
movdqa xmm2, xmmword [0x6b9910]
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm4, xmmword [esi + ecx]
movdqu xmm3, xmmword [esi + ecx + 0x10]
movdqa xmm5, xmm4
movdqa xmm6, xmm3
paddb xmm5, xmm0
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
movdqa xmm5, xmm6
pminub xmm5, xmm1
pand xmm7, xmm2
pcmpeqb xmm5, xmm6
pxor xmm7, xmm4
pand xmm5, xmm2
movdqu xmmword [esi + ecx], xmm7
pxor xmm5, xmm3
movdqu xmmword [esi + ecx + 0x10], xmm5
add ecx, 0x20
cmp eax, ecx
jne 0x4c3c90
mov edi, dword [ebp - 0x1c]
cmp ebx, eax
je 0x4c401d
test bl, 0x18
je 0x4c3ff1
mov ecx, dword [ebp - 0x14]
movdqa xmm0, xmmword [0x6b9920]
movdqa xmm1, xmmword [0x6b9930]
movdqa xmm2, xmmword [0x6b9940]
mov edx, ebx
and edx, 0xfffffff8
add ecx, edx
nop dword [eax + eax]
movq xmm3, qword [esi + eax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [esi + eax], xmm5
add eax, 8
cmp edx, eax
jne 0x4c3d20
mov edi, dword [ebp - 0x14]
cmp ebx, edx
jne 0x4c3ff8
jmp 0x4c401a
lea esi, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov ebx, dword [eax + 0x30]
push ebx
push esi
call fcn.004e5450
add esp, 8
cmp dword [ebp - 0x5c], 2
jne 0x4c409b
lea eax, [ebp - 0x94]
push dword [ebp - 0x58]
push eax
call fcn.004e57b0
add esp, 8
cmp dword [ebp - 0x94], 2
jne 0x4c409b
mov edi, dword [ebp - 0x90]
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4c3e53
xor edx, edx
lea ecx, [ebp - 0x28]
push edi
call fcn.004c0d40
add esp, 4
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
sub eax, esi
cmp eax, edi
jae 0x4c3ded
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.004c0d40
add esp, 4
mov esi, dword [ebp - 0x20]
mov ebx, edi
mov edi, dword [ebp - 0x24]
lea eax, [edi + esi]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x4c3e5a
mov esi, 1
jmp 0x4c401a
jmp 0x4c3b7a
xor esi, esi
mov edi, 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], esi
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], ebx
movzx eax, word [ecx + 0x34]
movzx ecx, byte [ecx + 0x36]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0xa8], ecx
lea ebx, [ebp - 0x5c]
lea esi, [ebp - 0xa4]
lea edx, [ebp - 0xac]
mov ecx, ebx
push esi
call fcn.004c0820
add esp, 4
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x5c], 2
jne 0x4c3fdb
mov eax, dword [ebp + 8]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.004e7a80
add esp, 0x10
cmp dword [ebp - 0x94], 2
jne 0x4c3fdb
movq xmm0, qword [ebp - 0xa4]
movq xmm1, qword [ebp - 0x9c]
movq qword [ebp - 0x8c], xmm1
movq qword [ebp - 0x94], xmm0
lea eax, [ebp - 0x94]
push eax
push ebx
call fcn.004e7a30
add esp, 8
cmp dword [ebp - 0x5c], 2
jne 0x4c3fdb
mov esi, dword [ebp - 0x54]
cmp edi, esi
jne 0x4c3fc1
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.004e5780
add esp, 8
cmp dword [ebp - 0xe0], 2
mov edi, dword [ebp - 0x28]
jne 0x4c3fde
mov bl, 1
cmp edi, 0x80000000
je 0x4c409d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x5c], 0x6cb874
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], fcn.0057b510
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 1
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
call fcn.004fec10
add esp, 8
test al, al
je 0x4c43c5
test edi, edi
je 0x4c409d
jmp 0x4c448e
push edi
push ebx
call fcn.004e5780
add esp, 8
cmp dword [ebp - 0x5c], 2
jne 0x4c3fdb
push esi
push ebx
call fcn.004e5780
add esp, 8
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4c409b
push 1
push edi
push dword [ebp - 0x18]
jmp 0x4c4093
mov edi, dword [ebp - 0x14]
add eax, edi
mov ecx, eax
add edi, ebx
nop word [eax + eax]
movzx eax, byte [ecx]
mov edx, eax
add dl, 0x9f
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [ecx], dl
inc ecx
cmp ecx, edi
jne 0x4c4000
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x5c], 0x6cb83c
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xdc], 0x4c0f10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 1
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
call fcn.004fec10
add esp, 8
test al, al
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x18]
je 0x4c40aa
test ecx, ecx
je 0x4c409b
push 1
push ecx
push dword [ebp - 0x90]
call fcn.004ed020
add esp, 0xc
mov bl, 1
mov eax, ebx
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
je 0x4c40c3
push 1
push ecx
push dword [ebp - 0x90]
mov esi, eax
call fcn.004ed020
mov eax, esi
add esp, 0xc
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov eax, 0x110001
cmp eax, 0x110001
je 0x4c4100
nop word [eax + eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0x110000
jne 0x4c4197
jmp 0x4c447f
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebp - 0x18]
je 0x4c447f
movzx eax, byte [edi]
test al, al
js 0x4c4120
lea esi, [edi + 1]
jmp 0x4c4180
movzx ebx, byte [edi + 1]
mov edx, eax
and edx, 0x1f
and ebx, 0x3f
cmp al, 0xdf
jbe 0x4c4164
movzx esi, byte [edi + 2]
shl ebx, 6
and esi, 0x3f
or esi, ebx
cmp al, 0xf0
jb 0x4c4170
movzx eax, byte [edi + 3]
and edx, 7
shl esi, 6
shl edx, 0x12
and eax, 0x3f
or eax, esi
or eax, edx
cmp eax, 0x110000
je 0x4c447f
lea esi, [edi + 4]
jmp 0x4c4180
shl edx, 6
lea esi, [edi + 2]
or edx, ebx
mov eax, edx
jmp 0x4c4180
mov eax, esi
shl edx, 0xc
lea esi, [edi + 3]
or eax, edx
nop word [eax + eax]
mov edx, ecx
mov dword [ebp - 0x10], esi
sub edx, edi
mov edi, dword [ebp - 0x1c]
add edx, esi
cmp eax, 0x110000
je 0x4c447f
mov esi, edx
lea edx, [eax - 0x20]
mov dword [ebp - 0xa4], eax
cmp edx, 0x5f
ja 0x4c420e
mov edx, dword [edx*4 + 0x4c4518]
add edx, edi
jmp edx
push eax
push dword [ebp + 0xc]
call fcn.004fec10
add esp, 8
mov ebx, 0x110001
test al, al
je 0x4c43a9
jmp 0x4c409b
mov ebx, 0x110001
cmp eax, 0x20
jae 0x4c4395
movdqa xmm0, xmmword [0x6b9950]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
mov dword [ebp - 0x94], 0x6cb868
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xdc], fcn.00508300
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 1
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 8
mov byte [ebp - 0x40], 3
lea eax, [ebp - 0x94]
jmp 0x4c41f0
push eax
push dword [ebp + 0xc]
call fcn.004ff690
add esp, 8
test al, al
jne 0x4c409b
mov eax, ebx
mov ecx, esi
cmp eax, 0x110001
je 0x4c4100
jmp 0x4c40e0
cmp dword [ebp - 0x18], 0
je 0x4c446d
xor esi, esi
mov eax, dword [ebp - 0x10]
movdqa xmm0, xmmword [0x6b9950]
movzx eax, byte [eax + esi]
mov dword [ebp - 0x94], 0x6cb884
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x5c], 2
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 8
mov byte [ebp - 0x40], 3
mov byte [ebp - 0xa4], al
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xdc], fcn.00508300
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 1
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0xc]
call fcn.004fec10
add esp, 8
test al, al
jne 0x4c4486
inc esi
cmp dword [ebp - 0x18], esi
jne 0x4c43d1
test edi, edi
je 0x4c447f
push 1
push edi
push dword [ebp - 0x10]
call fcn.004ed020
add esp, 0xc
xor ebx, ebx
jmp 0x4c409d
test edi, edi
je 0x4c409d
push 1
push edi
push dword [ebp - 0x10]
call fcn.004ed020
add esp, 0xc
jmp 0x4c409d
call fcn.004ed360
push ebx
push 1
call fcn.004ed3a0
mov esi, eax
test edi, edi
je 0x4c44f2
jmp 0x4c44bc
push 1
push edi
push dword [ebp - 0x10]
jmp 0x4c44ea
call fcn.004ed020
add esp, 0xc
push esi
call fcn.0050ffb0
and dword [eax], eax
add byte [eax], al
push esi
add byte [eax], al
add byte [esi], dl
add byte [eax], al
push esi
add byte [eax], al
add ah, ah
add al, byte [eax]
add byte [eax], bh
add byte [eax], al
add byte [esi], dl
add byte [eax], al
add al, byte [ebx]
add byte [eax], al
mov byte [edi], al
add byte [eax], al
ljmp 6