Function at 0x4033ce
Capabilities:
Access pe header
Get file attributes
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov ebx, dword [ebp + 0x1c]
xor ecx, ecx
push esi
push edi
xor eax, eax
cmp byte [ebp + 0x2c], al
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
stosd dword es:[edi], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
jne 0x40355b
cmp byte [0x41d081], al
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
jne 0x4034ea
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x18
pop edi
xor eax, eax
push eax
push eax
push 0x20
push 1
push 3
push 0x80
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x100003
lea eax, [ebp - 8]
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x40386a
push 5
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x40382c
mov eax, dword [ebp - 0x70]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
lea edi, [eax + ebx - 1]
push 0xe
lea eax, [ebx - 1]
not eax
and edi, eax
push 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push 0x73737373
push edi
xor edi, edi
push edi
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40377d
push edi
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x40386a
xor ecx, ecx
xor edx, edx
mov eax, 0x100000
div ebx
mov edi, dword [ebp + 0x18]
push 0x73737373
sub edi, eax
mov eax, ebx
imul eax, eax, 3
push eax
dec edi
push ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0xc], eax
call esi
push dword [ebp + 0xc]
mov esi, eax
push 0
push esi
call sub.ntoskrnl.exe_memset
mov dword [esi + 0x2c], edi
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 8], edi
mov edi, str.maxsscore
mov dword [eax + 0xc], ecx
push edi
mov dword [esi + 0x28], 0x186a0
call sub.ntoskrnl.exe_wcslen
lea eax, [eax + eax + 2]
push eax
push edi
push esi
call sub.ntoskrnl.exe_memcpy
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x40355e
mov esi, dword [ebp + 0x2c]
xor eax, eax
cmp byte [ebp + 0x2c], 1
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x40356e
mov esi, dword [ebp + 0x20]
cmp byte [ebp + 0x2c], 0
mov edi, str.SystemRootSystem32Drivers_volsnap.sys
jne 0x403599
push edi
lea eax, [esi + 0x44]
push eax
call fcn.00402f6e
test al, al
jne 0x403591
mov eax, 0xc0000145
jmp 0x40386a
mov eax, dword [esi + 0x6c]
imul eax, ebx
jmp 0x4035a5
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x70], eax
mov eax, ebx
imul eax, dword [ebp + 0x28]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x70]
push dword [esi + 0x6c]
push edi
call fcn.0040323c
test al, al
jne 0x4035cd
mov eax, 0xc0000420
jmp 0x40386a
mov edi, str.volsh
push edi
call sub.ntoskrnl.exe_wcslen
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 0x44]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
mov eax, dword [esi + 0x6c]
mov dword [esi + 0xb0], eax
xor edx, edx
mov eax, 0x100000
add esp, 0x10
div ebx
cmp byte [ebp + 0x2c], 0
jne 0x403607
mov ecx, dword [ebp + 0x1c]
jmp 0x40360d
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x7c]
mov edi, str.orig
push edi
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xc0], eax
call sub.ntoskrnl.exe_wcslen
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 0x88]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
mov eax, dword [esi + 0xb4]
add esp, 0x10
cmp byte [ebp + 0x2c], 0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 2
jne 0x40369d
cmp byte [0x41d081], 0
jne 0x40369d
push 0x41d098
push dword [esi + 0x34]
push dword [ebp - 0xc]
call fcn.00402945
mov eax, dword [ebp - 0x14]
xor edx, edx
div ebx
push 0x12345678
push dword [esi + 0x34]
push dword [ebp - 0xc]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.00402db2
mov eax, dword [esi + 0x6c]
push dword [ebp - 4]
and dword [ebp + 0x20], 0
mov ecx, eax
and eax, 0xfff
mov dword [ebp + 0x28], eax
mov eax, dword [esi + 0xb4]
shr ecx, 0xc
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x1c], eax
call sub.ntoskrnl.exe_RtlImageNtHeader
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4036ec
mov edi, 0x409318
push edi
call sub.ntoskrnl.exe_strlen
pop ecx
push eax
push edi
push dword [ebp + 0xc]
call fcn.00402b8e
test eax, eax
je 0x4036ec
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x40], eax
push 0x41d098
push dword [esi + 0xbc]
push dword [ebp - 4]
call fcn.00402945
cmp dword [ebp + 0x2c], 0
mov edi, 0x1000
jle 0x403747
mov eax, edi
xor edx, edx
div ebx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
push 0x12345678
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.00402db2
test al, al
je 0x403785
add dword [ebp + 0x1c], 8
inc dword [ebp + 0x20]
add dword [ebp + 0xc], edi
dec dword [ebp + 0x2c]
cmp dword [ebp + 0x2c], 0
jg 0x403719
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x40378f
push 0x12345678
lea eax, [eax + ebx - 1]
lea ecx, [ebx - 1]
not ecx
and eax, ecx
push eax
xor edx, edx
div ebx
mov ecx, dword [ebp + 0x20]
shl ecx, 0xc
add ecx, dword [ebp - 4]
push ecx
push eax
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.00402db2
test al, al
jne 0x40378f
or eax, 0xffffffff
jmp 0x40386a
mov eax, 0xc000038e
jmp 0x40386a
xor edx, edx
mov eax, edi
div ebx
push 0
push edi
push dword [ebp - 0x10]
push eax
push dword [esi + 0x70]
push dword [ebp + 8]
call fcn.00402db2
mov eax, dword [ebp - 0x40]
xor edx, edx
div ebx
lea edx, [ebx + 0x15ff]
push 0
mov ecx, eax
lea eax, [ebx - 1]
not eax
and eax, edx
mov edx, ecx
imul edx, ebx
add edx, dword [ebp - 0x10]
push eax
push edx
xor edx, edx
div ebx
push eax
mov eax, dword [esi + 0x70]
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00402db2
lea eax, [ebx + ebx]
mov edi, 0x41d098
push edi
push eax
push esi
mov dword [ebp + 0x2c], eax
call fcn.00402945
push 0x120
push dword [ebp + 0x14]
lea eax, [esi + 0x400]
push eax
call sub.ntoskrnl.exe_memcpy
imul ebx, ebx, 3
add esp, 0xc
push 0x12345678
push ebx
push esi
push 3
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00402db2
push edi
push dword [ebp + 0x2c]
push esi
call fcn.00402945
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
xor edi, edi
push edi
call esi
cmp dword [ebp - 0xc], edi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, 0x73737373
je 0x403852
push ebx
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], edi
je 0x40385d
push ebx
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], edi
je 0x403868
push ebx
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x28