Function at 0x4e8f30
Capabilities:
Encode data using xor
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4e8f38
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4e9206
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor eax, eax
mov dword [0x4fdb54], eax
mov eax, 0x4fdacc
call fcn.00404dac
mov byte [0x4fdad0], 1
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404f9c
mov edx, dword [ebp - 0x10]
mov eax, 0x4e9220
call fcn.004053bc
test eax, eax
jle 0x4e8f94
mov dword [0x4fdb54], 1
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404f9c
mov edx, dword [ebp - 0x14]
mov eax, 0x4e922c
call fcn.004053bc
test eax, eax
jle 0x4e8fb6
xor eax, eax
mov dword [0x4fdb54], eax
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404f9c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040abc4
mov eax, dword [ebp - 0x18]
mov edx, 0x4e9240
call fcn.004051c4
jne 0x4e8fe1
mov byte [0x4fda8c], 0xa
lea ecx, [ebp - 0x20]
mov edx, 0x4e9254
mov eax, dword [0x4fda88]
call fcn.004e25c0
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov edx, 0x4e9254
mov eax, 0x4e9270
pop ecx
call fcn.004e25c0
mov edx, dword [ebp - 0x24]
pop eax
call fcn.004051c4
je 0x4e9020
mov esi, 0xfffffffe
jmp 0x4e91e3
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00404f9c
mov edx, dword [ebp - 0x28]
mov eax, 0x4e922c
call fcn.004053bc
test eax, eax
jle 0x4e91e3
mov edx, 0x4fdad4
mov al, byte [0x4fda8c]
call fcn.004e5cd0
cmp eax, 0x7fff
jne 0x4e91e3
lea eax, [ebp - 0x2c]
call fcn.004e2798
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov ecx, 0x4e9290
call fcn.004050cc
push 0x80
mov eax, dword [ebp - 4]
call fcn.00405278
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.0040b5b0
mov byte [ebp - 9], 0
lea eax, [ebp - 0x30]
push eax
mov edx, 0x4e9254
mov eax, 0x4e92a4
pop ecx
call fcn.004e25c0
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x4fdad4]
call fcn.0040abc4
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004053bc
test eax, eax
jle 0x4e90c6
mov byte [ebp - 9], 1
mov byte [0x4fdad0], 0
cmp byte [0x4fda8c], 0xa
jne 0x4e9121
cmp byte [ebp - 9], 0
jne 0x4e9121
mov dl, 1
mov eax, dword [0x4190f0]
call fcn.00403ec8
mov ebx, eax
mov edx, 0x4e92b8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00402d90
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov edx, 0x4e9308
call fcn.0040b648
mov edx, dword [ebp - 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403ef8
cmp byte [0x4fda8c], 9
je 0x4e9130
cmp byte [ebp - 9], 0
je 0x4e91ad
mov dl, 1
mov eax, dword [0x4193e0]
call fcn.00403ec8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, 0x4e9318
mov eax, 0x4e9324
call fcn.004e236c
test al, al
je 0x4e91a5
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0041e1b8
mov edx, eax
dec edx
test edx, edx
jl 0x4e9178
inc edx
xor eax, eax
mov ecx, ebx
add ecx, eax
xor byte [ecx], 0xab
inc eax
dec edx
jne 0x4e916d
xor eax, eax
push ebp
push 0x4e919b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041e85c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e91a5
mov eax, dword [ebp - 8]
call fcn.00403ef8
cmp byte [ebp - 9], 0
je 0x4e91bf
mov dword [0x4fdb54], 0x7b9
jmp 0x4e91c9
mov dword [0x4fdb54], 0x7fffffff
cmp dword [0x4fdaa4], 0
jne 0x4e91e1
mov eax, 0x4fdaa4
mov edx, 0x4e9330
call fcn.00404e00
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e920d
lea eax, [ebp - 0x3c]
mov edx, 0xc
call fcn.00404dd0
lea eax, [ebp - 4]
call fcn.00404dac
ret