Function at 0x1000ae04
Capabilities:
Query or enumerate registry value

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 0x1008b200
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
add eax, 0xffff63ba
cmp eax, 0xc
ja case.0x1000aa60.40009
jmp dword [eax*4 + 0x1000afe4]
lea ecx, [ebp - 0x260]
call fcn.1000b020
cmp dword [eax + 0x14], 7
jbe 0x1000aa7a
mov eax, dword [eax]
push 1
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
cmp ecx, 7
jbe 0x1000aad3
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000aac9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000afdc
push ecx
push edx
call fcn.1005cfe0
add esp, 8
cmp esi, 0x20
jg 0x1000aae8
push 0
push dword [ebx + 8]
lea ecx, [edi + 0x188]
call fcn.1001b4d0
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.1005cfa2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.10062d50
movups xmm0, xmmword [str.SoftwareRimeWeasel]
mov ax, word [0x100bb868]
add esp, 0xc
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x29c]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x100bb850]
push eax
lea eax, [ebp - 0x40]
movups xmmword [ebp - 0x30], xmm0
push eax
movq xmm0, qword [0x100bb860]
push reloc.d2d1.dll_Ordinal_1
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000abf1
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x298], 0x208
push eax
lea eax, [ebp - 0x294]
push eax
push 0
push str.RimeUserDir
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x29c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000abf1
cmp dword [ebp - 0x294], 1
jne 0x1000abf1
cmp word [ebp - 0x248], si
je 0x1000abf1
xorps xmm0, xmm0
mov dword [ebp - 0x250], esi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x24c], esi
movups xmmword [ebp - 0x260], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000abe4
jmp 0x1000ac3b
push 0x104
lea eax, [ebp - 0x248]
push eax
push str._AppData_Rime
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x24c], 0
movups xmmword [ebp - 0x260], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ac30
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10003260
cmp dword [ebp - 0x24c], 7
lea eax, [ebp - 0x260]
cmova eax, dword [ebp - 0x260]
jmp 0x1000aa7a
lea ecx, [ebp - 0x30]
call fcn.1000b020
push 0x15
push str.WeaselDeployer.exe
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.1000c780
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1000ac99
mov eax, dword [eax]
push 1
push 0
push 0x100bba60
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
cmp ecx, 7
jbe 0x1000acef
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ace5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000afdc
push ecx
push edx
call fcn.1005cfe0
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
cmp ecx, 7
jbe 0x1000aad3
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
jmp 0x1000aaab
lea ecx, [ebp - 0x30]
call fcn.1000b020
push 0x15
push str.WeaselDeployer.exe
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.1000c780
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1000ad5c
mov eax, dword [eax]
push 1
push 0
push str._dict
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
cmp ecx, 7
jbe 0x1000adb2
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ada8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000afdc
push ecx
push edx
call fcn.1005cfe0
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
cmp ecx, 7
jbe 0x1000aad3
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
jmp 0x1000aaab
xor dword [edi + 0x1f0], 1
push 1
call fcn.100044f0
jmp 0x1000aae8
xor dword [edi + 0x1f0], 0x10000
mov ecx, dword [edi + 0x178]
mov eax, dword [ecx + 0x14]
mov dl, byte [eax + 0x1f2]
mov eax, dword [ecx + 0xc]
and dl, 1
mov byte [eax + 0x4e8], dl
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1000ae36
mov byte [eax + 0x2b0], dl
test byte [edi + 0x1f2], 1
jne 0x1000aae8
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x294]
push ecx
push 0x20119
mov eax, 0x100d55a0
cmova eax, dword [0x100d55a0]
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000aae8
cmp dword [0x100d5584], 7
lea eax, [ebp - 0x298]
push eax
lea eax, [edi + 0x1dc]
mov dword [ebp - 0x298], 0x10
push eax
push 0
mov ecx, 0x100d5570
cmova ecx, dword [0x100d5570]
push 0
push ecx
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000aae8
xor dword [edi + 0x1f0], 0x100000
push 1
call fcn.100044f0
mov eax, dword [edi + 0x1f0]
mov ecx, edi
shr eax, 0x14
test al, 1
je 0x1000aeef
call fcn.100072d0
jmp 0x1000aae8
call fcn.10007490
jmp 0x1000aae8
lea ecx, [ebp - 0x290]
call fcn.1000b020
push 0x13
push str.WeaselServer.exe
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.1000c780
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1000af2a
mov eax, dword [eax]
push 1
push 0
push 0x100bba60
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x264]
cmp ecx, 7
jbe 0x1000af7a
mov edx, dword [ebp - 0x278]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000af70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000afdc
push ecx
push edx
call fcn.1005cfe0
add esp, 8
mov ecx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
cmp ecx, 7
jbe 0x1000aae8
mov edx, dword [ebp - 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000afcd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000afdc
push ecx
push edx
call fcn.1005cfe0
add esp, 8
jmp 0x1000aae8
call fcn.1006c54f
nop dword [eax]
stosb byte es:[di], al
add byte [eax], dl
or byte [ebx - 0x5394f000], ch
add byte [eax], dl
fsubr dword [edx - 0x52d1f000]
add byte [eax], dl
int1
lodsd eax, dword [esi]
add byte [eax], dl
fsubr dword [edx - 0x5527f000]
add byte [eax], dl
fsubr dword [edx - 0x51fbf000]
add byte [eax], dl
lds ebp, [esi - 0x5527f000]
add byte [eax], dl
stc
scasb al, byte es:[edi]
add byte [eax], dl
int3