Function at 0x4fe86a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4028
call fcn.005504e0
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 0x14]
shl ecx, 0xc
xor eax, eax
mov dword [ebp + ecx - 0x4028], eax
mov dword [ebp + ecx - 0x4024], eax
mov dword [ebp + ecx - 0x4020], eax
mov dword [ebp + ecx - 0x401c], eax
mov eax, 0x80
mov dword [ebp - 4], eax
jmp 0x4fe8b1
mov eax, 0x80
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x4fe8e6
cmp dword [ebp - 4], eax
jne 0x4fe8f4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3828], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3824], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3820], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x381c], eax
jmp 0x4fe9ab
cmp dword [ebp - 4], eax
jne 0x4fe8f4
lea esi, [ebp + ecx - 0x5018]
jmp 0x4fe906
mov eax, ebx
shl eax, 7
add eax, dword [ebp - 4]
shl eax, 5
lea esi, [ebp + eax - 0x4028]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x28]
mov eax, edx
and eax, 1
xor esi, esi
xor edi, edi
or eax, esi
mov esi, dword [ebp - 0x20]
mov eax, ebx
mov ebx, dword [ebp - 0x24]
je 0x4fe96d
shrd edx, ebx, 1
shl esi, 0x1f
shl eax, 8
add eax, dword [ebp - 4]
shr ebx, 1
xor esi, ebx
xor esi, dword [ebp + 0xc]
shl eax, 4
xor edi, edx
mov edx, dword [ebp - 0x1c]
xor edi, dword [ebp + 8]
mov dword [ebp + eax - 0x4024], esi
mov esi, dword [ebp - 0x20]
shrd esi, edx, 1
mov dword [ebp - 8], esi
xor esi, dword [ebp + 0x10]
shr edx, 1
xor edx, dword [ebp + 0x14]
mov dword [ebp + eax - 0x4020], esi
mov dword [ebp + eax - 0x401c], edx
jmp 0x4fe9a4
shrd edx, ebx, 1
shl eax, 8
add eax, dword [ebp - 4]
shl esi, 0x1f
shl eax, 4
shr ebx, 1
xor esi, ebx
xor edi, edx
mov edx, dword [ebp - 0x20]
mov dword [ebp + eax - 0x4024], esi
mov esi, dword [ebp - 0x1c]
shrd edx, esi, 1
shr esi, 1
mov dword [ebp + eax - 0x4020], edx
mov dword [ebp + eax - 0x401c], esi
mov dword [ebp + eax - 0x4028], edi
sar dword [ebp - 4], 1
jne 0x4fe8ac
push 2
pop edx
lea ebx, [edx + edx]
lea edi, [edx + 1]
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x4fea2c
mov eax, dword [ebp - 0x14]
shl eax, 8
lea ecx, [eax + edx]
shl ecx, 4
lea esi, [ebp + ecx - 0x4028]
lea ecx, [ebp + ecx - 0x4020]
mov dword [ebp - 8], ecx
lea ecx, [eax + edi]
sub eax, edx
add eax, edi
shl ecx, 4
shl eax, 4
mov edx, ebx
lea ecx, [ebp + ecx - 0x4020]
lea eax, [ebp + eax - 0x4020]
sub edx, edi
mov edi, dword [eax - 8]
xor edi, dword [esi]
mov ebx, dword [eax - 4]
xor ebx, dword [esi + 4]
mov dword [ecx - 8], edi
mov edi, dword [ebp - 8]
mov dword [ecx - 4], ebx
mov ebx, dword [edi]
mov edi, dword [edi + 4]
xor ebx, dword [eax]
xor edi, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ecx + 4], edi
add eax, 0x10
add ecx, 0x10
dec edx
jne 0x4fea00
mov edx, dword [ebp - 4]
cmp edx, 0x100
jne 0x4fe9b7
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x4fe87e
push 0x3020
call fcn.004e6aa3
test eax, eax
pop ecx
je 0x4fea5d
mov dword [eax], 0x477ca8
mov esi, eax
jmp 0x4fea5f
xor esi, esi
mov edx, pe_nt_image_headers32
lea ecx, [ebp - 0x3028]
lea eax, [esi + 0x820]
mov edi, edx
mov ebx, dword [ecx - 0x1000]
mov dword [eax - 0x800], ebx
mov ebx, dword [ecx - 0xffc]
mov dword [eax - 0x7fc], ebx
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x1000]
mov dword [eax + 0x800], ebx
mov ebx, dword [ecx + 0x1004]
mov dword [eax + 0x804], ebx
mov ebx, dword [ecx + 0x2000]
mov dword [eax + 0x1000], ebx
mov ebx, dword [ecx + 0x2004]
mov dword [eax + 0x1004], ebx
add eax, 8
add ecx, 0x10
dec edi
jne 0x4fea72
mov eax, dword [ebp + 0x1c]
and dword [ebp - 8], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0xc], edx
lea ebx, [esi + 0x2820]
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shrd eax, ecx, 1
shr ecx, 1
mov edi, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x18], 3
add ebx, 0x18
push dword [ebp - 0x18]
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 0x18]
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
add edi, 8
dec dword [ebp + 0x18]
jne 0x4feb2b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shld ecx, eax, 2
shl eax, 2
mov dword [ebp - 0xc], eax
or eax, ecx
mov dword [ebp - 8], ecx
jne 0x4feafe
mov edi, pe_nt_image_headers32
push dword [ebp + 0x1c]
mov edx, dword [esi]
sar edi, 1
mov eax, edi
shl eax, 4
lea ecx, [ebp + eax - 0x4020]
push ecx
lea eax, [ebp + eax - 0x4028]
push eax
mov ecx, esi
call dword [edx + 0xc]
test edi, edi
jne 0x4feb7e
push 2
pop edi
lea eax, [edi + edi]
lea ebx, [edi + 1]
cmp ebx, eax
mov dword [ebp - 0x14], eax
je 0x4fec19
mov eax, edi
shl eax, 4
lea edx, [ebp + eax - 0x4028]
lea eax, [ebp + eax - 0x4020]
mov dword [ebp - 8], eax
mov eax, ebx
shl eax, 4
lea ecx, [ebp + eax - 0x4020]
mov eax, ebx
sub eax, edi
mov edi, dword [ebp - 0x14]
shl eax, 4
sub edi, ebx
lea eax, [ebp + eax - 0x4020]
mov dword [ebp + 0x18], edi
mov edi, dword [eax - 8]
xor edi, dword [edx]
mov ebx, dword [eax - 4]
xor ebx, dword [edx + 4]
mov dword [ecx - 8], edi
mov edi, dword [ebp - 8]
mov dword [ecx - 4], ebx
mov ebx, dword [edi]
mov edi, dword [edi + 4]
xor ebx, dword [eax]
xor edi, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ecx + 4], edi
add eax, 0x10
add ecx, 0x10
dec dword [ebp + 0x18]
jne 0x4febeb
mov edi, dword [ebp - 0x14]
cmp edi, 0x100
jne 0x4feba6
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 0xd], 0x80
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
push dword [ebp + 0x1c]
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov edx, edi
lea eax, [ebp - 0x4020]
mov ecx, edx
mov edi, dword [ebp + 8]
xor dword [eax - 8], edi
mov edi, dword [ebp + 0xc]
xor dword [eax - 4], edi
mov edi, dword [ebp + 0x10]
xor dword [eax], edi
mov edi, dword [ebp + 0x14]
xor dword [eax + 4], edi
add eax, 0x10
dec ecx
jne 0x4fec68
lea ecx, [ebp - 0x4028]
lea eax, [esi + 0x2020]
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
add eax, 8
add ecx, 0x10
dec edx
jne 0x4fec91
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret