Function at 0x10007720
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 0x1007a75c
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 0x10007783
mov ecx, dword [ecx + 0x188]
push dword [ecx]
push eax
push 0x800e
call fcn.1000a990
jmp 0x10007a7c
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 0x100077d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x100077cb
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, str.SoftwareRimeWeasel
mov edx, 0x14
jmp 0x100077e1
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 0x10007a40
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 0x10007856
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.10003610
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 0x10007a9c
cmp edi, 8
jae 0x100078e7
movups xmm0, xmmword [eax]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 7
movups xmmword [ebp - 0x238], xmm0
jmp 0x10007944
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x100078fb
mov esi, SysReAllocString
jmp 0x10007905
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x238]
call fcn.100035b0
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.10052fd0
movups xmm0, xmmword [ebp - 0x238]
add esp, 0xc
movups xmmword [ebp - 0x290], xmm0
push 0x18
mov byte [ebp - 4], 2
call fcn.1004d1ac
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.10008060
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x27c], esi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.10008060
lea eax, [ebp - 0x270]
push eax
push 0
push esi
push 0x100080d0
push 0
push 0
call fcn.1005cfde
add esp, 0x18
mov dword [ebp - 0x274], eax
test eax, eax
je 0x10007ab0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.10006e50
cmp dword [ebp - 0x270], 0
jne 0x10007aa1
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x10007a40
mov edx, dword [ebp - 0x268]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007a36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007aa6
push ecx
push edx
call fcn.1004d17b
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x10007a7c
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007a72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007aab
push ecx
push edx
call fcn.1004d17b
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.1004d16d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100036a0
call fcn.1005ce20
call fcn.1005cdcf
call fcn.1005cdcf
push 6
mov dword [ebp - 0x270], 0
call fcn.10037709
int3