Function at 0x402f70
Capabilities:
Delete file
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee08
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x70], ebx
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x3a], eax
mov word [ebp - 0x36], ax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4032a9
mov dword [eax], ebx
push str.__C:__KernelMode_966DE63C54FD46c0B6345C44D4699271.log
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x70], 0x18
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], 0x40
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
push ebx
push ebx
push 0x20
push 3
mov edi, 1
push edi
push 0x80
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0x40000000
lea edx, [ebp - 0x28]
push edx
mov esi, dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
call esi
test eax, eax
jge 0x4030e6
cmp dword [0x410048], 4
jg 0x403057
push str.Failed_to_create_the_c:__KernelMode_966DE63C54FD46c0B6345C44D4699271.log_file_in_the_kernel_mode._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
cmp eax, ebx
jge 0x403088
cmp dword [0x410048], 4
jg 0x40307c
push eax
push str.Failed_to_delete_the_c:__KernelMode_966DE63C54FD46c0B6345C44D4699271.log_file__NtStatus__0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov dword [ebp - 0x20], 0xc0000098
jmp 0x4031f6
cmp dword [0x410048], edi
jg 0x40309d
push str.Successfully_delete_the_file_._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push ebx
push ebx
push 0x20
push 3
push edi
push 0x80
push ebx
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0x40000000
lea eax, [ebp - 0x28]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jge 0x4030fb
cmp dword [0x410048], 4
jg 0x4031ee
push esi
push str.Failed_to_create_the_file_twice_times__status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x4031ee
cmp dword [0x410048], edi
jg 0x4030fb
push str.Successfully_create_the_c:__KernelMode_966DE63C54FD46c0B6345C44D4699271.log_file_in_kernel_mode._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x14
lea edx, [ebp - 0x58]
push edx
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
jbe 0x4031d7
add esi, 0x3e80
mov dword [ebp - 4], ebx
push 0x504d4554
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x4031d7
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x4031cb
cmp dword [0x410048], 1
jg 0x403170
push str.Successfully_Query_the_SYSTEM_HANDLE_INFORMATION_object._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [edi], 0
jbe 0x4031c9
mov ecx, ebx
shl ecx, 4
lea esi, [ecx + edi + 4]
test esi, esi
jne 0x403198
push esi
push 0x186
push str..SystemOperator.cpp
push str.pEntry___NULL
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dx, word [esi + 6]
cmp dx, word [ebp - 0x28]
je 0x4031a9
inc ebx
cmp ebx, dword [edi]
jb 0x403175
jmp 0x4031c9
movzx eax, byte [esi + 4]
mov dword [ebp - 0x24], eax
cmp dword [0x410048], 1
jg 0x4031c9
mov ecx, eax
push ecx
push str.FileObjectType___d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
xor ebx, ebx
push 0x504d4554
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov esi, dword [ebp - 0x20]
cmp esi, ebx
jge 0x40329f
cmp dword [0x410048], 4
jg 0x40320c
push str.Try_to_get_the_value_from_the_CONST_defines._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
call fcn.004018f0
mov esi, eax
mov edi, 0x1c
mov dword [ebp - 0x24], edi
call fcn.004018f0
cmp eax, 0xf
je 0x40322d
add eax, 0xfffffffe
cmp eax, 3
jbe 0x403241
cmp esi, 6
je 0x403298
cmp esi, 7
je 0x403298
cmp esi, 9
je 0x403298
cmp esi, 8
jl 0x403293
mov dword [ebp - 0x24], edi
mov eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4032b0
cmp esi, 1
jne 0x40329f
mov dword [ebp - 0x24], 0x1a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4032b0
mov dword [ebp - 0x20], 0xc000000d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4