Function at 0x4e4f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x198], eax
cmp byte [esi + 0x100], 0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x194], eax
je 0x4e51d6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4e51d6
mov dword [ebx + 0xa98], eax
cmp byte [esi + 0x100], 0
je 0x4e4ff4
mov ecx, 0x40
lea edi, [ebp - 0x188]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
mov edx, 0x100
movzx eax, byte [esi + 0x101]
push eax
push 0
call fcn.004c8720
mov edi, dword [ebp - 0x190]
add esp, 8
xor eax, eax
mov word [ebp - 0x8a], ax
jmp 0x4e4ffd
xor eax, eax
mov word [ebp - 0x188], ax
push 0
push 0
push 0x80
lea eax, [ebp - 0x88]
mov byte [ebp - 0x88], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x188]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0xc]
dec eax
mov byte [ebp - 9], 0
cmp eax, 4
ja case.default.0x4e5038
jmp dword [eax*4 + 0x4e51ec]
mov cl, byte [ebp - 0x88]
mov word [ebx + 0x10b5], 0
mov byte [ebx + 0x10b4], 0
test cl, cl
je case.default.0x4e5038
xor al, al
lea edx, [ebp - 0x88]
xor ah, ah
xor ch, ch
nop dword [eax]
add al, cl
lea edx, [edx + 1]
add ch, cl
rol al, 1
xor ah, cl
mov cl, byte [edx]
test cl, cl
jne 0x4e5070
mov byte [ebx + 0x10b6], al
mov byte [ebx + 0x10b5], ah
mov byte [ebx + 0x10b4], ch
jmp case.default.0x4e5038
lea ecx, [ebx + 0xba4]
call fcn.004e3200
lea ecx, [ebp - 0x88]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e50b0
sub ecx, edx
lea edx, [ebp - 0x88]
push ecx
or ecx, 0xffffffff
call fcn.004e32c0
mov dl, byte [ebp - 0x88]
add esp, 4
mov word [ebx + 0x10b8], ax
shr eax, 0x10
mov word [ebx + 0x10ba], ax
xor eax, eax
mov dword [ebx + 0x10bc], eax
test dl, dl
je case.default.0x4e5038
lea eax, [ebp - 0x88]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x18c], eax
movzx eax, dl
movzx edx, dl
lea ecx, [ebx + eax*4]
movzx eax, word [ecx + 0xba4]
xor ax, dx
xor di, ax
mov word [ebx + 0x10bc], di
movzx eax, word [ecx + 0xba6]
add ax, dx
add si, ax
mov eax, dword [ebp - 0x18c]
inc eax
mov word [ebx + 0x10be], si
mov dword [ebp - 0x18c], eax
mov dl, byte [eax]
test dl, dl
jne 0x4e5102
jmp case.default.0x4e5038
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.004e33b0
jmp case.default.0x4e5038
push edi
lea eax, [ebp - 0x188]
mov ecx, ebx
push eax
push esi
push dword [ebp + 8]
call fcn.004e37c0
jmp case.default.0x4e5038
push dword [ebp - 0x194]
lea eax, [ebp - 0x188]
mov ecx, ebx
push dword [ebp - 0x198]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push eax
push esi
push dword [ebp + 8]
call fcn.004e45b0
mov ecx, 0x80
lea eax, [ebp - 0x88]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e51a0
mov ecx, 0x100
lea eax, [ebp - 0x188]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e51b6
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret 0x20