Function at 0x100066e0
Capabilities:
Create process on windows
Get common file path
Get disk information
Get disk size
Get session user name
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001456c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f8
mov eax, dword [0x100192e0]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x1001538a
lea ecx, [esp + 0x78]
mov dword [esp + 0x404], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.100026e0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xe0]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x40c], ebx
call fcn.10007700
test eax, eax
push 0x104
je 0x10006774
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10006782
lea ecx, [esp + 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xe0]
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100067a6
sub eax, edx
push eax
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0xb0]
call fcn.100026e0
push 1
push 0x100156c8
lea ecx, [esp + 0xb0]
mov byte [esp + 0x414], 1
call fcn.10006150
movzx esi, byte [0x10015970]
lea edi, [esi + 1]
push edi
mov dword [esp + 0x14], esi
call fcn.1000c516
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, 0x10015968
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100158b4
mov ecx, eax
push ecx
push ebx
call fcn.1000a5f0
mov eax, ebx
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006836
sub eax, esi
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.100026e0
push ebx
call fcn.1000ceb2
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xb4]
call fcn.10006060
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push 0
push 0x100156c4
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0
push 0
push 0
push 0x100156bc
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push 0x100156b4
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov esi, dword [esp + 0xc]
push 0
mov ecx, esi
call fcn.100080f0
push 0xffffffffffffffff
push 0
add esi, 0x1c
push esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
call fcn.100025f0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x2f0]
rep stosd dword es:[edi], eax
cmp dword [esp + 0xdc], 0x10
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x40c], 2
jae 0x10006942
lea eax, [esp + 0xc8]
push 0x104
lea ecx, [esp + 0x2f4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x100156b0
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.10006590
add esp, 0xc
lea eax, [esp + 0x2f0]
mov byte [esp + 0x40c], 3
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10006985
sub eax, ecx
push eax
lea ecx, [esp + 0x2f4]
push ecx
lea ecx, [esp + 0x94]
call fcn.10006150
push 1
push 0x100156ac
lea ecx, [esp + 0x94]
call fcn.10006150
movzx esi, byte [0x10015706]
lea edi, [esi + 1]
push edi
mov dword [esp + 0x10], esi
call fcn.1000c516
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, 0x10015700
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100158b4
mov ecx, eax
push ecx
push ebx
call fcn.1000a5f0
mov eax, ebx
add esp, 0x10
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006a10
sub eax, esi
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.100026e0
push ebx
call fcn.1000ceb2
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x98]
call fcn.10006060
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov byte [esp + 0x1e8], al
mov ecx, 0x40
lea edi, [esp + 0x1e9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1ec]
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], 0xa
mov dword [esp + 0x38], 0x1001569c
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x1e8]
push edx
mov dword [esp + 0x14], eax
call fcn.1000d83a
movzx esi, byte [0x10015796]
lea edi, [esi + 1]
push edi
mov dword [esp + 0x14], esi
call fcn.1000c516
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, 0x10015790
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100158b4
mov ecx, eax
push ecx
push ebx
call fcn.1000a5f0
mov eax, ebx
add esp, 0x14
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006b10
sub eax, esi
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.100026e0
push ebx
call fcn.1000ceb2
mov eax, dword [esp + 0x8c]
mov edi, 0x10
add esp, 4
cmp eax, edi
mov eax, dword [esp + 0x74]
jae 0x10006b45
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x1ec]
push edx
call fcn.10013fde
add esp, 8
test eax, eax
je 0x10006bb4
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x10006bb4
cmp dword [esp + 0xa4], edi
mov eax, dword [esp + 0x90]
jae 0x10006b7b
lea eax, [esp + 0x90]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10006d52
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
jmp 0x10006d52
movzx esi, byte [0x100156ec]
lea edi, [esi + 1]
push edi
mov dword [esp + 0x10], esi
call fcn.1000c516
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, 0x100156e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100158b4
mov ecx, eax
push ecx
push ebx
call fcn.1000a5f0
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
jmp 0x10006c10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006c10
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.100026e0
push ebx
call fcn.1000ceb2
mov eax, dword [esp + 0x8c]
mov esi, 0x10
add esp, 4
cmp eax, esi
mov eax, dword [esp + 0x74]
jae 0x10006c45
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.1000b010
add esp, 8
test eax, eax
mov eax, dword [esp + 0xa4]
jne 0x10006d0a
cmp eax, esi
jb 0x10006c76
mov eax, dword [esp + 0x90]
push eax
call fcn.1000cae8
add esp, 4
mov eax, dword [esp + 0xdc]
xor edi, edi
cmp eax, esi
mov ebx, 0xf
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
jb 0x10006cae
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], edi
mov byte [esp + 0xc8], 0
jb 0x10006cdd
mov edx, dword [esp + 0xac]
push edx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], edi
mov byte [esp + 0xac], 0
jb 0x10006dfa
mov eax, dword [esp + 0x74]
push eax
jmp 0x10006df2
cmp eax, esi
mov eax, dword [esp + 0x90]
jae 0x10006d1c
lea eax, [esp + 0x90]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x10
xor ebx, ebx
cmp dword [esp + 0xa4], edi
jb 0x10006d6b
mov edx, dword [esp + 0x90]
push edx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0xdc], edi
mov esi, 0xf
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], 0
jb 0x10006d9f
mov eax, dword [esp + 0xc8]
push eax
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], 0
jb 0x10006dce
mov ecx, dword [esp + 0xac]
push ecx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], 0
jb 0x10006dfa
mov edx, dword [esp + 0x74]
push edx
call fcn.1000cae8
add esp, 4
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3fc]
call fcn.1000ca3e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret