Function at 0x7d22ff20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3a8
mov ecx, dword [0x7d2b7328]
lea edx, [esp + 0xa8]
push ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x18
cmp byte [0x7d2b7350], bl
mov eax, 0x100
push ebp
cmovne ebx, eax
mov dword [esp + 0x1c], 0
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0x40
push edi
mov dword [esp + 0x28], eax
sub edx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x7d22ff80
mov edx, dword [str.usercurrent]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d22ffa0
lea edi, [esp + 0xb8]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d22ffc0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d22ffe4
mov ebp, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
mov ecx, 9
mov esi, str._softwareclasses
rep movsd dword es:[edi], dword [esi]
push eax
call ebp
push 0
push 2
push 0
push 0
lea eax, [esp + 0x30]
or ebx, 0xf003f
push eax
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov esi, eax
cmp esi, 0xc0000035
je 0x7d2301fe
cmp esi, 0xc0000022
jne 0x7d230066
lea eax, [esp + 0xb8]
push eax
push 0x6b
call fcn.7d221631
test al, 0x30
je 0x7d23006a
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x3a8
ret
test esi, esi
jns 0x7d23009b
push esi
push str._11____08X_
lea eax, [esp + 0x40]
push 0x40
push eax
call sym.SbieDll.dll_Sbie_snwprintf
lea eax, [esp + 0x48]
push eax
push 0x916
call sym.SbieDll.dll_SbieApi_Log
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a8
ret
mov ecx, dword [0x7d2b7328]
lea edx, [esp + 0xb8]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x7d2300b0
mov edx, dword [str.usercurrent]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d2300d0
lea edi, [esp + 0xb8]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d2300f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb8]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x7d230114
mov eax, dword [str._classes]
mov dword [ecx], eax
mov eax, dword [0x7d299d1c]
mov dword [ecx + 4], eax
mov eax, dword [0x7d299d20]
mov dword [ecx + 8], eax
mov eax, dword [0x7d299d24]
mov dword [ecx + 0xc], eax
mov ax, word [0x7d299d28]
mov word [ecx + 0x10], ax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
js 0x7d23020b
push dword [esp + 0x1c]
call edi
push str.SymbolicLinkValue
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0xb8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d2301a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0xbc]
push eax
push 6
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [esp + 0x10]
mov esi, eax
call edi
test esi, esi
jns 0x7d2301fe
push esi
push str._33____08X_
lea eax, [esp + 0x40]
push 0x40
push eax
call sym.SbieDll.dll_Sbie_snwprintf
lea eax, [esp + 0x48]
push eax
push 0x916
call sym.SbieDll.dll_SbieApi_Log
add esp, 0x18
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x3a8
ret
cmp eax, 0xc0000035
je 0x7d230185
push eax
push str._22____08X_
lea eax, [esp + 0x40]
push 0x40
push eax
call sym.SbieDll.dll_Sbie_snwprintf
lea eax, [esp + 0x48]
push eax
push 0x916
call sym.SbieDll.dll_SbieApi_Log
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x3a8
ret