Function at 0x4c5231
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
call dword [ebp + 0x18]
pop ecx
pop ecx
push dword [ebp + 8]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004c4d65
lea eax, [ebp - 0x2bc]
push eax
push 0x9b5eb678
call fcn.004cf30d
pop ecx
call eax
push 0x4edb20
push ebx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004c4d98
push 0xb2c9c054
call fcn.004cf30d
and dword [ebp - 0x2c], 0
mov dword [ebp + 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x21
stosd dword es:[edi], eax
pop ecx
mov esi, 0x4eda98
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
push 0x41
movsw word es:[edi], word [esi]
pop ecx
mov dx, word [ebp + ecx*2 - 0xb6]
lea eax, [ebp + ecx*2 - 0xb4]
xor word [eax], dx
dec ecx
test ecx, ecx
jg 0x4c52b4
mov eax, 0x7e40
xor word [ebp - 0xb4], ax
push 0x4a370ad2
call fcn.004cf30d
pop ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x28]
push ecx
push 1
lea ecx, [ebp - 0xb4]
push ecx
call eax
test eax, eax
je 0x4c5319
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2bc]
push eax
push esi
call dword [ebp + 0xc]
push dword [ebp - 0x28]
push 0x5943dc8c
call fcn.004cf30d
pop ecx
call eax
jmp 0x4c5325
push esi
lea eax, [ebp - 0x2bc]
push eax
push esi
call dword [ebp + 0xc]
push 0x59dbe1e6
call fcn.004cf30d
push 0xea6269ae
mov edi, eax
call fcn.004cf30d
push 0x47a6a5c3
mov esi, eax
call fcn.004cf30d
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call esi
test eax, eax
je 0x4c541d
mov eax, 0x1009
mov word [ebp - 0x20], ax
add eax, 0x71
mov word [ebp - 0x1e], ax
mov eax, 0x1026
mov word [ebp - 0x1c], ax
add eax, 0xffffffdd
mov word [ebp - 0x1a], ax
mov eax, 0x1070
mov word [ebp - 0x18], ax
add eax, 0xffffffed
mov word [ebp - 0x16], ax
mov eax, 0x1078
mov word [ebp - 0x14], ax
add eax, 0xffffffa4
mov word [ebp - 0x12], ax
mov eax, 0x1032
mov word [ebp - 0x10], ax
add eax, 0x2d
mov word [ebp - 0xe], ax
mov eax, 0x102a
mov word [ebp - 0xc], ax
add eax, 0x19
mov ecx, eax
push 0xc
mov word [ebp - 0xa], cx
mov word [ebp - 8], ax
pop ecx
mov dx, word [ebp + ecx*2 - 0x22]
lea eax, [ebp + ecx*2 - 0x20]
xor word [eax], dx
dec ecx
test ecx, ecx
jg 0x4c53c3
mov eax, 0x102c
xor word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
call dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6cc]
push ebx
push eax
call fcn.004c4dd2
add esp, 0x18
lea eax, [ebp - 0x6cc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4c541d
xor al, al
jmp 0x4c54a4
cmp byte [ebp + 0x1c], 0
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp - 4]
je 0x4c543d
push edi
push dword [ebp + 0x10]
lea eax, [esi + 0x18]
push eax
push eax
call fcn.004c8f30
pop ecx
call eax
add esp, 0xc
lea eax, [ebp - 0x4c4]
push ebx
push eax
call fcn.004c7164
cmp dword [esi + 8], 0
pop ecx
pop ecx
je 0x4c548f
push 0x47a6a5c3
call fcn.004cf30d
push dword [edi]
mov ebx, eax
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp - 0x4c4]
push eax
call dword [esi + 4]
add esp, 0x10
test al, al
je 0x4c5416
push dword [ebp + 8]
call ebx
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x4c4]
push eax
call dword [esi + 8]
jmp 0x4c549c
push dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 8]
call dword [esi + 4]
add esp, 0xc
test al, al
setne al
pop edi
pop esi
pop ebx
leave
ret 0x18