Function at 0x10007bd0
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 0x1007a95c
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 0x10007c33
mov ecx, dword [ecx + 0x188]
push dword [ecx]
push eax
push 0x800e
call fcn.1000ae40
jmp 0x10007f2c
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 0x10007c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x10007c7b
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, str.SoftwareRimeWeasel
mov edx, 0x14
jmp 0x10007c91
mov eax, str.SoftwareWOW6432NodeRimeWeasel
mov edx, 0x20
push edx
lea ecx, [ebp - 0x250]
push eax
call fcn.100036c0
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 0x10007ef0
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 0x10007d06
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.10003990
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 0x10007f4c
cmp edi, 8
jae 0x10007d97
movups xmm0, xmmword [eax]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 7
movups xmmword [ebp - 0x238], xmm0
jmp 0x10007df4
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10007dab
mov esi, SysReAllocString
jmp 0x10007db5
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x238]
call fcn.10003930
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.10053140
movups xmm0, xmmword [ebp - 0x238]
add esp, 0xc
movups xmmword [ebp - 0x290], xmm0
push 0x18
mov byte [ebp - 4], 2
call fcn.1004d31c
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.10008510
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x27c], esi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.10008510
lea eax, [ebp - 0x270]
push eax
push 0
push esi
push 0x10008580
push 0
push 0
call fcn.1005d11e
add esp, 0x18
mov dword [ebp - 0x274], eax
test eax, eax
je 0x10007f60
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.10007300
cmp dword [ebp - 0x270], 0
jne 0x10007f51
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x10007ef0
mov edx, dword [ebp - 0x268]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007ee6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f56
push ecx
push edx
call fcn.1004d2eb
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x10007f2c
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007f22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f5b
push ecx
push edx
call fcn.1004d2eb
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.1004d2dd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10003a20
call fcn.1005cf60
call fcn.1005cf0f
call fcn.1005cf0f
push 6
mov dword [ebp - 0x270], 0
call fcn.10037871
int3