Function at 0x4c5440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e47f8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
shl edx, 2
lea ecx, [edi*4]
mov dword [ebp - 0x9c], edi
cmp edx, ecx
je 0x4c54be
test edx, edx
jne 0x4c549b
push ecx
call fcn.004d4296
add esp, 4
jmp 0x4c54be
test ecx, ecx
jne 0x4c54b4
push eax
call fcn.004d427b
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0xc], edi
jmp 0x4c54cc
push ecx
push eax
call fcn.004d42a1
add esp, 8
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
test eax, eax
jne 0x4c5758
test edi, edi
je 0x4c5758
push 0x20
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x6c], 0x1f
mov dword [ebp - 0x70], 0x1b
lea eax, [ebp - 0x80]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x80], ecx
jb 0x4c5515
movsx edx, byte [ecx]
jmp 0x4c551b
movsx edx, byte [eax]
lea ecx, [ebp - 0x80]
mov edi, 0x4f5c40
add edx, 0x2525ffc
sub edi, ecx
mov esi, 0x1b
nop dword [eax]
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xd3f5
shr eax, 6
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x1e2f3365
sub esi, 1
jne 0x4c5530
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
push dword [ebp - 0x9c]
cmovae eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004a8850
mov edx, dword [ebp - 0x6c]
add esp, 0xc
cmp edx, 0x10
jb 0x4c55a2
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5598
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5775
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov dword [ebp - 0x68], 0
push 0x30
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
push 0x27
mov esi, eax
mov dword [ebp - 0x58], 0x27
push 0
push esi
mov dword [ebp - 0x54], 0x2f
call fcn.004d0920
mov byte [esi + 0x27], 0
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x54], 0x10
jb 0x4c55fb
movsx ecx, byte [esi]
jmp 0x4c5601
movsx ecx, byte [eax]
lea esi, [ebp - 0x68]
mov edi, 0x4f5c60
add ecx, 0x253e69d
sub edi, esi
mov edx, 0x27
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xdff5
shr eax, 8
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x1e430992
sub edx, 1
jne 0x4c5613
mov dword [ebp - 4], 2
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
cmovae eax, dword [ebp - 0x68]
mov dword [ebp - 0x9c], eax
push 0x30
mov byte [ebp - 4], 2
call fcn.004aa4a0
mov edx, eax
mov dword [ebp - 0x88], 0x25
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0x2f
mov dword [ebp - 0x98], edx
mov edi, 0x4f5c90
mov esi, 0x25
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], 0
mov word [edx + 0x24], 0
movsx ecx, byte [edx]
add ecx, 0x253e69d
sub edi, edx
nop
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xddf5
shr eax, 8
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x1e430992
sub esi, 1
jne 0x4c56a0
push 0x186
push dword [ebp - 0x9c]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
lea ecx, [ebp - 0x50]
push 3
cmovae edx, dword [ebp - 0x98]
push 3
call int.004ace20
mov edx, dword [ebp - 0x84]
add esp, 0x10
cmp edx, 0x10
jb 0x4c5728
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c571e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c577a
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x4c5758
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c574e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c577a
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
ret 4
call fcn.004d4192
call fcn.004d4192
int3