Function at 0x100237e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3961
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.100512d0
mov eax, dword [0x1010739c]
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.10025050
test eax, eax
js 0x10023cce
push 0x100d51f0
lea eax, [ebp - 0x2014]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
test eax, eax
jne 0x1002386e
lea esi, [eax + 8]
jmp 0x100238b7
push 0x100d51f4
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x10023887
mov esi, 0x4008
jmp 0x100238b7
push 0x100d51f8
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x1002389e
lea esi, [eax + 0x13]
jmp 0x100238b7
push 0x100d51fc
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x10023cc9
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2128]
call fcn.100278c0
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.10025050
test eax, eax
js 0x10023cce
cmp esi, 0x13
ja 0x10023b51
je 0x10023ac4
cmp esi, 8
je 0x10023aac
cmp esi, 0x11
jne 0x10023cad
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10023906
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2134], ebx
mov dword [ebp - 0x201c], ebx
test bl, 1
jne 0x100239ce
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.1008f970
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.10023d40
mov dword [ebp - 4], 4
jmp 0x100239a4
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x100239d8
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x100239ce
lea ecx, [ebp - 0x2120]
call fcn.10024380
mov eax, 0x80004005
jmp 0x10023cce
push esi
push 0
push eax
call fcn.1008f970
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2124], ecx
test ebx, ebx
jle 0x10023a62
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.0x10023a17.58
movzx eax, byte [ebx + 0x10023cfc]
jmp dword [eax*4 + 0x10023cec]
lea ebx, [edx - 0x37]
jmp case.0x10023a17.48
lea ebx, [edx - 0x57]
jmp case.0x10023a17.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 0x10023a00
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 0x10023c9e
lea ecx, [ebp - 0x2120]
call fcn.10024380
jmp 0x10023c9e
push 1
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, ebx
call fcn.100277c0
mov esi, eax
jmp 0x10023c9e
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 0x10023b16
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.10022700
mov eax, esi
jmp 0x10023cce
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.10022700
jmp 0x10023c9e
cmp esi, 0x4008
jne 0x10023cad
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023b66
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.1008f970
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.10023d70
mov dword [ebp - 4], 0
jmp 0x10023bd1
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x10023c79
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x10023c21
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x10023c12
cmp word [eax], 0x30
jne 0x10023c12
xor ecx, ecx
mov word [edi], cx
push eax
call ebx
mov esi, eax
jmp 0x10023c18
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x10023bf5
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2120]
test ebx, ebx
jne 0x10023c34
lea esi, [eax + 0xd]
jmp 0x10023c7e
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 0x10023c40
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10023c38
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 0x10023c7e
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x10023c9e
lea ecx, [ebp - 0x2120]
call fcn.10024380
test esi, esi
je 0x10023cad
push esi
call fcn.10023f40
add esp, 4
jmp 0x10023cce
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2128]
call fcn.10025050
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x10023cce
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.100512b9
mov esp, ebp
pop ebp
ret 0xc