Function at 0x4032b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41111d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea eax, [ebp - 0x30]
push eax
xor esi, esi
mov dword [ebp - 0x30], 0
push esi
push esi
push 0x40
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp eax, 0xc0000004
jne 0x40333a
push 0x8000
push 0
push esi
call ecx
push 4
push 0x3000
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push esi
push 0x40
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp eax, 0xc0000004
je 0x403303
test eax, eax
js 0x4035e1
test esi, esi
je 0x4035ef
cmp dword [esi], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
jbe 0x4033a7
lea edi, [esi + 8]
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x54], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [ebp - 0x74]
psrldq xmm0, 4
movd ecx, xmm0
cmp ecx, eax
jne 0x403399
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x5c], eax
je 0x403508
mov eax, dword [ebp - 0x40]
add edi, 0x1c
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [esi]
jb 0x403361
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
push 0x8000
push 0
push esi
mov dword [ebp - 0x40], edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x40]
mov eax, edi
or eax, ecx
je 0x4035ef
add edi, 8
lea edx, [ebp - 0x24]
push 0
adc ecx, 0
xorps xmm0, xmm0
push 8
push ecx
push edi
mov edi, dword [ebp - 0x14]
mov ecx, edi
movlpd qword [ebp - 0x24], xmm0
call fcn.00402550
add esp, 0x10
test al, al
je 0x4035da
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov edx, dword [ebp - 0x20]
or eax, edx
je 0x4035da
add ecx, 8
xorps xmm0, xmm0
push 0
adc edx, 0
movlpd qword [ebp - 0x2c], xmm0
push 8
push edx
push ecx
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.00402550
add esp, 0x10
test al, al
je 0x4035d3
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov edx, dword [ebp - 0x28]
or eax, edx
je 0x4035d3
add ecx, 0x28
xorps xmm0, xmm0
push 0
adc edx, 0
movlpd qword [ebp - 0x1c], xmm0
push 8
push edx
push ecx
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00402550
add esp, 0x10
test al, al
je 0x4035cc
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov edx, dword [ebp - 0x18]
or eax, edx
je 0x4035cc
add ecx, 0x58
xorps xmm0, xmm0
push 0
adc edx, 0
movlpd qword [ebp - 0x38], xmm0
push 8
push edx
push ecx
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.00402550
add esp, 0x10
test al, al
je 0x4035ad
mov ax, word [ebp - 0x38]
test ax, ax
je 0x4035ad
movzx eax, ax
mov ecx, 2
shr eax, 1
inc eax
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0040fe6a
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
movzx eax, word [ebp - 0x38]
cdq
push edx
push eax
push 0
push dword [ebp - 0x34]
mov edx, ecx
mov ecx, edi
call fcn.00402550
add esp, 0x20
test al, al
jne 0x403513
mov edx, str.____Failed_to_read_driver_name
jmp 0x403540
mov eax, dword [ebp - 0x64]
cdq
mov edi, eax
jmp 0x4033ad
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
add edx, 0x58
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x18]
mov ecx, edi
push 8
adc eax, 0
push eax
push edx
lea edx, [ebp - 0x38]
call fcn.00402630
add esp, 0x10
test al, al
jne 0x403570
mov edx, str.____Failed_to_write_driver_name_length
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov edi, dword [ebp - 0x40]
push edi
mov byte [ebp - 0x39], 0
call fcn.0040fd47
mov al, byte [ebp - 0x39]
add esp, 4
jmp 0x4035f1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___MmUnloadedDrivers_Cleaned:
call fcn.00405ed0
mov edi, dword [ebp - 0x40]
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.00405ed0
push 0x406100
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push edi
mov byte [ebp - 0x39], 1
call fcn.0040fd47
mov al, byte [ebp - 0x39]
add esp, 4
jmp 0x4035f1
mov edx, str.____Failed_to_find_driver_name
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x4035ef
mov edx, str.____Failed_to_find_driver_section
jmp 0x4035b2
mov edx, str.____Failed_to_find_driver_object
jmp 0x4035b2
mov edx, str.____Failed_to_find_device_object
jmp 0x4035b2
test esi, esi
je 0x4035ef
push 0x8000
push 0
push esi
call ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret