Function at 0x10007953
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063d60
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.10063390
mov eax, dword [0x1008a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x212c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2120], ecx
mov dword [ebp - 0x2128], edi
mov dword [ebp - 0x2124], esi
mov dword [ebp - 0x211c], ebx
call fcn.1000813c
test eax, eax
js 0x10007dc3
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.10007845
test eax, eax
jne 0x100079eb
mov eax, 0x80020009
jmp 0x10007dc3
mov ecx, dword [ebp - 0x212c]
call fcn.100088dc
mov ecx, dword [ebp - 0x212c]
lea eax, [ebp - 0x2014]
push eax
call fcn.1000813c
test eax, eax
js 0x10007dc3
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x10007d71
sub eax, 9
je 0x10007bfe
push 2
pop edi
sub eax, edi
je 0x10007b8c
sub eax, 0x3ff5
jne 0x10007da9
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
add eax, edi
mov dword [ebp - 0x2118], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x10007a8a
cmp eax, 0xffffffff
ja 0x10007a8a
cmp eax, 0x100
jbe 0x10007a7c
push eax
lea ecx, [ebp - 0x2118]
call fcn.100078f1
jmp 0x10007aab
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x10007ab1
push 0x80070216
call fcn.100063d5
mov eax, 0x10007a9a
ret
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x10007b6b
cmp word [ebp - 0x2014], 0
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x211c], eax
je 0x10007b0e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x211c]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x10007b02
push 0x30
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 0x211c]
jne 0x10007b02
xor eax, eax
push ecx
mov word [esi], ax
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x10007b07
mov word [esi], dx
add eax, edi
add esi, edi
cmp word [eax], bx
jmp 0x10007ac7
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2118]
mov dword [ebp - 0x2120], esi
test esi, esi
jne 0x10007b26
push 0xd
jmp 0x10007b6d
mov edi, ebx
mov ebx, esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push ebx
call esi
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x10007b30
mov esi, dword [ebp - 0x2120]
xor ebx, ebx
mov eax, dword [ebp - 0x2128]
push edi
push esi
push 7
push ebx
push dword [ebp - 0x2124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x10007b6e
push 0xe
pop edi
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x10007d9c
lea ecx, [ebp - 0x2118]
call fcn.100078db
jmp 0x10007d9c
lea eax, [ebp - 0x2120]
mov dword [ebp - 0x211c], ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x10007bc0
lea ecx, [ebp - 0x211c]
call fcn.10005e1a
mov eax, esi
jmp 0x10007dc3
mov eax, dword [ebp - 0x2120]
push 4
mov dword [ebp - 0x2130], eax
lea eax, [ebp - 0x2130]
push eax
mov eax, dword [ebp - 0x2128]
push 4
push ebx
push dword [ebp - 0x2124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x211c]
mov edi, eax
call fcn.10005e1a
jmp 0x10007d9c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [ebp - 0x2130], eax
pop ecx
test al, 1
je 0x10007c20
mov eax, 0x80004005
jmp 0x10007dc3
cdq
sub eax, edx
mov dword [ebp - 0x2118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
ja 0x10007a8a
cmp esi, 0x100
jbe 0x10007c5d
push esi
lea ecx, [ebp - 0x2118]
call fcn.1000792d
jmp 0x10007c85
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
jmp 0x10007c8b
mov eax, dword [ebp - 0x2118]
test eax, eax
jne 0x10007cad
lea eax, [ebp - 0x2114]
test eax, eax
je 0x10007c16
lea ecx, [ebp - 0x2118]
call fcn.10007917
jmp 0x10007c16
push esi
push ebx
push eax
call dword [sym.imp.VCRUNTIME140.dll_memset]
mov edi, dword [ebp - 0x2130]
add esp, 0xc
test edi, edi
jle 0x10007d36
push 0x30
pop ecx
mov esi, ebx
mov eax, esi
cdq
sub eax, edx
movzx edx, word [ebp + esi*2 - 0x2014]
sar eax, 1
add eax, dword [ebp - 0x2118]
mov dword [ebp - 0x2130], eax
mov eax, edx
cmp eax, ecx
jb 0x10007d0f
cmp eax, 0x39
jbe 0x10007d0a
cmp eax, 0x40
jbe 0x10007d0f
cmp eax, 0x46
jbe 0x10007d05
add eax, 0xffffff9f
cmp eax, 5
ja 0x10007d0f
sub dl, 0x57
jmp 0x10007d11
sub dl, 0x37
jmp 0x10007d11
sub dl, 0x30
jmp 0x10007d11
mov dl, bl
mov eax, esi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2130]
shl dl, cl
push 0x30
pop ecx
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x10007cc8
mov esi, dword [ebp - 0x211c]
mov eax, dword [ebp - 0x2128]
push esi
push dword [ebp - 0x2118]
push 3
push ebx
push dword [ebp - 0x2124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x10007d9c
lea ecx, [ebp - 0x2118]
call fcn.10007917
jmp 0x10007d9c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x10007da9
mov ecx, edi
call fcn.1000812e
jmp 0x10007dc3
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x212c]
call fcn.1000813c
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10061b61
mov esp, ebp
pop ebp
ret 0xc