Function at 0x10009bb3
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1110
lea ebp, [esp - 0x6c]
call fcn.1000a970
and dword [ebp + 0x64], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x10a4]
mov esi, ecx
push eax
mov dword [ebp + 0x60], esi
call fcn.10009299
test eax, eax
jl 0x10009f13
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x10a4]
push eax
call fcn.10009f5a
test eax, eax
pop ecx
pop ecx
jne 0x10009c02
mov eax, 0x80020009
jmp 0x10009f13
mov ecx, esi
call fcn.10009271
lea eax, [ebp - 0x10a4]
push eax
mov ecx, esi
call fcn.10009299
test eax, eax
jl 0x10009f13
movzx eax, word [ebp + 0x64]
sub eax, 8
je 0x10009ecb
sub eax, 9
je 0x10009dda
dec eax
dec eax
je 0x10009d12
sub eax, 0x3ff5
jne 0x10009f02
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0xa4], 0
inc eax
cmp eax, 0x100
jbe 0x10009c72
push eax
lea ecx, [ebp - 0xa4]
call fcn.1000a020
jmp 0x10009c7e
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov edi, dword [ebp - 0xa4]
test edi, edi
je 0x10009ced
cmp byte [ebp - 0x10a4], 0
lea esi, [ebp - 0x10a4]
je 0x10009cd5
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10009cb7
cmp byte [eax], 0x30
jne 0x10009cb7
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x10009cd0
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10009cce
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10009c9d
mov ecx, dword [ebp + 0x74]
mov byte [edi], 0
push dword [ebp - 0xa4]
push dword [ebp + 0x78]
call fcn.10009f23
mov edi, eax
jmp 0x10009cf0
push 0xe
pop edi
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x10009ef5
lea ecx, [ebp - 0xa4]
call fcn.1000a017
jmp 0x10009ef5
lea eax, [ebp - 0x10a4]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea ebx, [edi + edi]
cmp ebx, 0x400
ja 0x10009d4b
push ebx
call fcn.100084aa
test al, al
pop ecx
je 0x10009d4b
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.1000a970
mov ebx, esp
jmp 0x10009d62
lea eax, [edi + edi + 8]
push eax
call fcn.1000acce
test eax, eax
pop ecx
je 0x10009d86
and dword [eax], 0
mov esi, eax
lea ebx, [eax + 8]
test ebx, ebx
je 0x10009d86
push edi
push ebx
push 0xffffffffffffffff
xor eax, eax
lea ecx, [ebp - 0x10a4]
push ecx
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x10009d88
xor eax, eax
test eax, eax
je 0x10009db8
lea ecx, [ebp + 0x68]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0x68]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.100012cd
mov edi, eax
jmp 0x10009dd1
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.1000ace2
pop ecx
test esi, esi
jne 0x10009dad
mov eax, 0x8007000e
jmp 0x10009f13
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.1000ace2
pop ecx
test esi, esi
jne 0x10009dc6
jmp 0x10009ef5
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp + 0x68], eax
jne 0x10009e3c
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
xor edi, edi
cmp ebx, 0x100
mov dword [ebp - 0xa4], edi
jbe 0x10009e13
push ebx
lea ecx, [ebp - 0xa4]
call fcn.1000a020
jmp 0x10009e1f
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], edi
jne 0x10009e46
lea eax, [ebp - 0xa0]
test eax, eax
je 0x10009e3c
lea ecx, [ebp - 0xa4]
call fcn.1000a017
mov eax, 0x80004005
jmp 0x10009f13
push ebx
push edi
push dword [ebp - 0xa4]
call fcn.100034df
add esp, 0xc
cmp dword [ebp + 0x68], edi
jle 0x10009e95
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov al, byte [ebp + edi - 0x10a4]
sar esi, 1
add esi, dword [ebp - 0xa4]
push eax
call fcn.10009fec
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp + 0x68]
jl 0x10009e5b
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa4]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x10009ef5
lea ecx, [ebp - 0xa4]
call fcn.1000a017
jmp 0x10009ef5
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x10a4]
push eax
mov eax, dword [ebp + 0x74]
push 1
push 0
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x10009f02
push edi
call fcn.10009b1b
pop ecx
jmp 0x10009f13
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x60]
call fcn.10009299
test eax, eax
jl 0x10009f13
xor eax, eax
lea esp, [ebp - 0x10b0]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc