Function at 0x100adb2
Capabilities:
Create process on windows
Enumerate files on windows
Query environment variable
Query or enumerate registry value
Read file on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x101200c]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
push 0x10014b8
push 1
push esi
push 0x10014c8
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x100aeb3
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x10014a8
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x100aeaa
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x50]
push edx
mov edi, 0x20006
push edi
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x100aea0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push esi
push esi
push 0x1001f20
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x100ae97
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x1005270
push 0x80000001
call edi
test eax, eax
jne 0x100ae8e
push ebx
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push esi
mov ebx, 0x1005478
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100ae4e
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x10
lea eax, [ebp - 0x28]
push eax
push 3
push esi
push ebx
push dword [ebp - 0x2c]
call edi
push 0x14
lea eax, [ebp - 0x18]
push eax
push esi
push 0x10059dc
call fcn.0100cc15
test eax, eax
je 0x100adbd
push 0x14
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push 0x1005484
push dword [ebp - 0x2c]
call edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x38]
push eax
call fcn.0100cbad
test eax, eax
jne 0x100addd
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.0100cb57
mov ebx, dword [ebp - 0x38]
cmp ebx, esi
jl 0x100adf6
push ebx
call fcn.01009371
test eax, eax
jne 0x100adf3
dec ebx
jns 0x100ade4
jmp 0x100adf6
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x44]
push eax
push 0x20019
push esi
push 0x1004e70
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ae28
push dword [ebp - 0x34]
push dword [ebp - 0x44]
call fcn.01006d9f
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x34]
push dword [ebp - 0x54]
call fcn.01009237
push 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x1004f54
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], esi
call edi
jmp 0x100ae8d
cmp dword [ebp - 0x58], 4
jne 0x100ae7d
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0xc]
push 0x10
lea eax, [ebp - 0x28]
push eax
push 3
push esi
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x48]
pop esi
call fcn.0100d528
leave
ret