Function at 0x10007790
Capabilities:
Create thread
Get common file path
Query or enumerate registry value
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a79c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x1009b01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
cmp eax, 0x9c4f
je 0x100077f3
mov ecx, dword [ecx + 0x188]
push dword [ecx]
push eax
push 0x800e
call fcn.1000aa20
jmp 0x10007aec
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
xor eax, eax
mov dword [ebp - 0x23c], 7
movups xmmword [ebp - 0x250], xmm0
mov word [ebp - 0x250], ax
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x10007847
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x1000783b
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, str.SoftwareRimeWeasel
mov edx, 0x14
jmp 0x10007851
mov eax, str.SoftwareWOW6432NodeRimeWeasel
mov edx, 0x20
push edx
lea ecx, [ebp - 0x250]
push eax
call fcn.10003230
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x278], 0x104
push ecx
push 0
push 2
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push str.WeaselRoot
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10007ab0
xorps xmm0, xmm0
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x254], eax
movups xmmword [ebp - 0x268], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100078c6
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.10003660
mov byte [ebp - 4], 1
lea eax, [ebp - 0x268]
cmp dword [ebp - 0x254], 8
xorps xmm0, xmm0
mov edi, dword [ebp - 0x258]
cmovae eax, dword [ebp - 0x268]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x26c], eax
movups xmmword [ebp - 0x238], xmm0
cmp edi, 0x7ffffffe
ja 0x10007b0c
cmp edi, 8
jae 0x10007957
movups xmm0, xmmword [eax]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 7
movups xmmword [ebp - 0x238], xmm0
jmp 0x100079b4
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1000796b
mov esi, SysReAllocString
jmp 0x10007975
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x238]
call fcn.10003600
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x238], eax
push ecx
push dword [ebp - 0x26c]
mov dword [ebp - 0x228], edi
push eax
mov dword [ebp - 0x224], esi
call fcn.10053010
movups xmm0, xmmword [ebp - 0x238]
add esp, 0xc
movups xmmword [ebp - 0x290], xmm0
push 0x18
mov byte [ebp - 4], 2
call fcn.1004d1de
movups xmm0, xmmword [ebp - 0x290]
mov esi, eax
lea ecx, [ebp - 0x26c]
add esp, 4
xor eax, eax
mov word [ebp - 0x238], ax
mov dword [ebp - 0x26c], eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
call fcn.100080e0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x27c], esi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.100080e0
lea eax, [ebp - 0x270]
push eax
push 0
push esi
push 0x10008150
push 0
push 0
call fcn.1005d01e
add esp, 0x18
mov dword [ebp - 0x274], eax
test eax, eax
je 0x10007b20
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.10006ec0
cmp dword [ebp - 0x270], 0
jne 0x10007b11
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x10007ab0
mov edx, dword [ebp - 0x268]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007aa6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007b16
push ecx
push edx
call fcn.1004d1ad
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x10007aec
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007ae2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007b1b
push ecx
push edx
call fcn.1004d1ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d19f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100036f0
call fcn.1005ce60
call fcn.1005ce0f
call fcn.1005ce0f
push 6
mov dword [ebp - 0x270], 0
call fcn.1003773b
int3