Function at 0x10023540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcca1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.1004f540
mov eax, dword [0x100fe39c]
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 - 0x2128], ecx
mov dword [ebp - 0x2124], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2130], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x212c], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2138], eax
lea eax, [ebp - 0x2014]
push eax
call fcn.10024ed0
test eax, eax
js 0x10023a2e
push 0x100ce0f4
lea eax, [ebp - 0x2014]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
test eax, eax
jne 0x100235ce
lea esi, [eax + 8]
jmp 0x10023617
push 0x100ce0f8
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x100235e7
mov esi, 0x4008
jmp 0x10023617
push 0x100ce0fc
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x100235fe
lea esi, [eax + 0x13]
jmp 0x10023617
push 0x100ce100
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x10023a29
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2128]
call fcn.10027740
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.10024ed0
test eax, eax
js 0x10023a2e
cmp esi, 0x13
ja 0x100238b1
je 0x10023824
cmp esi, 8
je 0x1002380c
cmp esi, 0x11
jne 0x10023a0d
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10023666
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2134], ebx
mov dword [ebp - 0x201c], ebx
test bl, 1
jne 0x1002372e
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2018], esi
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.10087da0
add esp, 0xc
mov dword [ebp - 0x2120], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x2120]
call fcn.10023aa0
mov dword [ebp - 4], 4
jmp 0x10023704
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x10023738
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x1002372e
lea ecx, [ebp - 0x2120]
call fcn.100240e0
mov eax, 0x80004005
jmp 0x10023a2e
push esi
push 0
push eax
call fcn.10087da0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2124], ecx
test ebx, ebx
jle 0x100237c2
mov edi, dword [ebp - 0x2134]
nop word [eax + eax]
movzx edx, word [ebp + ecx*2 - 0x2014]
lea ebx, [edx - 0x30]
cmp ebx, 0x36
ja case.0x10023777.58
movzx eax, byte [ebx + 0x10023a5c]
jmp dword [eax*4 + 0x10023a4c]
lea ebx, [edx - 0x37]
jmp case.0x10023777.48
lea ebx, [edx - 0x57]
jmp case.0x10023777.48
xor ebx, ebx
shr ecx, 1
mov esi, dword [ebp - 0x2120]
add esi, ecx
mov eax, dword [ebp - 0x2124]
and eax, 1
shl eax, 2
mov ecx, 4
sub ecx, eax
shl bl, cl
or byte [esi], bl
mov ecx, dword [ebp - 0x2124]
inc ecx
mov dword [ebp - 0x2124], ecx
cmp ecx, edi
jl 0x10023760
mov esi, dword [ebp - 0x2018]
push esi
push dword [ebp - 0x2120]
push 3
push 0
push dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x100239fe
lea ecx, [ebp - 0x2120]
call fcn.100240e0
jmp 0x100239fe
push 1
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, ebx
call fcn.10027640
mov esi, eax
jmp 0x100239fe
mov dword [ebp - 0x2124], 0
mov dword [ebp - 0x2124], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x201c]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x10023876
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.10022460
mov eax, esi
jmp 0x10023a2e
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2018], eax
push 4
lea eax, [ebp - 0x2018]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.10022460
jmp 0x100239fe
cmp esi, 0x4008
jne 0x10023a0d
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100238c6
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.10087da0
add esp, 0xc
mov dword [ebp - 0x2120], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x2120]
call fcn.10023ad0
mov dword [ebp - 4], 0
jmp 0x10023931
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x100239d9
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x10023981
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x10023972
cmp word [eax], 0x30
jne 0x10023972
xor ecx, ecx
mov word [edi], cx
push eax
call ebx
mov esi, eax
jmp 0x10023978
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x10023955
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2120]
test ebx, ebx
jne 0x10023994
lea esi, [eax + 0xd]
jmp 0x100239de
xor esi, esi
mov edx, ebx
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100239a0
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10023998
push esi
push ebx
push 7
push 0
push dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x100239de
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x100239fe
lea ecx, [ebp - 0x2120]
call fcn.100240e0
test esi, esi
je 0x10023a0d
push esi
call fcn.10023ca0
add esp, 4
jmp 0x10023a2e
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2128]
call fcn.10024ed0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x10023a2e
mov eax, 0x80020009
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.1004f51c
mov esp, ebp
pop ebp
ret 0xc