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

Disassembly:
push ebp
lea ebp, [esp - 0x498]
sub esp, 0x498
push 0xffffffffffffffff
push 0x45d3ae
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp + 0x494], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x4a0]
lea eax, [ebp + 4]
mov esi, dword [ebp + 0x4a4]
mov ebx, dword [ebp + 0x4a8]
push 0x250
push 0
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp], 0
mov dword [ebp + 0x254], 0
call fcn.00432310
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp + 0x464]
mov dword [ebp + 0x460], eax
xor eax, eax
mov dword [ebp + 0x478], 7
mov dword [ebp + 0x474], 0
mov word [ebp + 0x464], ax
mov edx, 0x104
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x464]
call fcn.00401d3c
push 0x4666a0
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp + 0x460]
call fcn.00402a4c
mov eax, dword [ebp + 0x460]
cmp dword [eax + 0x14], 8
jb 0x427ac5
mov eax, dword [eax]
push eax
lea ecx, [ebp]
call fcn.0040472e
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
test eax, eax
je 0x427e10
nop dword [eax]
cmp dword [ebp + 0x254], 0
je 0x427b1b
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x427b1d
cmp word [ebp + 0x30], 0x2e
jne 0x427b1d
mov cx, word [ebp + 0x32]
test cx, cx
je 0x427d40
cmp cx, 0x2e
jne 0x427b1d
cmp word [ebp + 0x34], 0
je 0x427d40
jmp 0x427b1d
xor eax, eax
test eax, eax
je 0x427d40
lea eax, [ebp + 0x47c]
push eax
lea ecx, [ebp]
call fcn.00404698
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x47c]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x490], 8
push ebx
cmovae eax, dword [ebp + 0x47c]
push esi
push eax
call fcn.004279e0
mov edi, dword [ebp + 0x490]
lea esi, [ebp + 0x47c]
mov ebx, dword [ebp + 0x47c]
cmp edi, 8
mov eax, dword [ebp + 0x48c]
mov edx, 0x811c9dc5
cmovae esi, ebx
xor ecx, ecx
add eax, eax
je 0x427b99
mov edi, eax
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x427b82
mov edi, dword [ebp + 0x490]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], edx
push eax
mov ecx, esi
call fcn.00428040
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 4]
je 0x427dc8
mov esi, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x427c14
mov edi, dword [ebp - 0x10]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
shr eax, 3
mov ecx, dword [edi + 0x54]
mov edi, dword [ebp + 0x490]
test byte [eax + ecx], dl
je 0x427c14
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + esi*4]
test eax, 0xf0000000
je 0x427bfe
and eax, 0x7fff
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov edi, dword [ebp + 0x490]
mov ebx, dword [ebp + 0x47c]
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x427c58
mov edi, dword [ebp - 0x10]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
shr eax, 3
mov ecx, dword [edi + 0x5c]
mov edi, dword [ebp + 0x490]
test byte [eax + ecx], dl
je 0x427c58
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
lea eax, [eax + esi*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x427c92
mov edi, dword [ebp - 0x10]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
shr eax, 3
mov ecx, dword [edi + 0x64]
mov edi, dword [ebp + 0x490]
test byte [eax + ecx], dl
je 0x427c92
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
lea eax, [eax + esi*8]
mov dword [ebp - 0x1c], eax
jmp 0x427c95
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
jne 0x427ca3
test eax, eax
je 0x427dc5
xor esi, esi
lea eax, [ebp + 0x47c]
push esi
push 0x2000000
push 3
push esi
push esi
cmp edi, 8
push 0x40000000
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x427d9c
call fcn.0040e664
test eax, eax
jns 0x427d9e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x490]
cmp eax, 8
jb 0x427d3a
mov ecx, dword [ebp + 0x47c]
inc eax
cmp eax, 0x7fffffff
ja 0x427e2e
add eax, eax
cmp eax, 0x1000
jb 0x427d31
test cl, 0x1f
jne 0x427e2e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x427e2e
sub ecx, eax
cmp ecx, 4
jb 0x427e2e
cmp ecx, 0x23
ja 0x427e2e
mov ecx, eax
push ecx
call fcn.0042fb88
add esp, 4
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x427d71
cmp eax, 0xffffffff
je 0x427d71
cmp dword [ebp + 0x254], 0
je 0x427d71
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
mov dword [ebp + 0x254], eax
test eax, eax
jne 0x427ae0
mov eax, dword [ebp]
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebp + 0x254], 0
test eax, eax
je 0x427e13
cmp eax, 0xffffffff
je 0x427e13
push eax
call edi
xor eax, eax
mov dword [ebp], eax
jmp 0x427e13
mov esi, eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test esi, esi
je 0x427db9
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp + 0x47c]
mov edi, dword [ebp + 0x490]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp edi, 8
jb 0x427d3d
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x427e2e
add eax, eax
cmp eax, 0x1000
jb 0x427e02
test bl, 0x1f
jne 0x427e2e
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x427e2e
sub ebx, eax
cmp ebx, 4
jb 0x427e2e
cmp ebx, 0x23
ja 0x427e2e
mov ebx, eax
push ebx
call fcn.0042fb88
add esp, 4
jmp 0x427d3d
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x478]
cmp ecx, 8
jb 0x427e7a
lea eax, [ecx + 1]
mov ecx, dword [ebp + 0x464]
cmp eax, 0x7fffffff
jbe 0x427e33
call fcn.00433cc5
add eax, eax
cmp eax, 0x1000
jb 0x427e6e
test byte [ebp + 0x464], 0x1f
je 0x427e4a
call fcn.00433cc5
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x427e56
call fcn.00433cc5
sub ecx, eax
cmp ecx, 4
jae 0x427e62
call fcn.00433cc5
cmp ecx, 0x23
jbe 0x427e6c
call fcn.00433cc5
mov ecx, eax
push ecx
call fcn.0042fb88
mov eax, dword [ebp]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x478], 7
mov dword [ebp + 0x474], 0
mov word [ebp + 0x464], cx
mov dword [ebp + 0x254], ecx
test eax, eax
je 0x427ea9
cmp eax, 0xffffffff
je 0x427ea9
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.0042fb8d
lea esp, [ebp + 0x498]
pop ebp
ret 0xc