Function at 0x1803b738
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.18154880
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x211c], eax
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x2114], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], esi
mov dword [ebp - 0x2118], edi
call fcn.1803b5e2
test eax, eax
jns 0x1803b796
lfence
jmp 0x1803bacc
lea edx, [ebp - 0x2114]
lea ecx, [ebp - 0x2004]
call fcn.1803b48f
test eax, eax
jne 0x1803b7b5
mov eax, 0x80020009
jmp 0x1803bacc
mov ecx, ebx
lfence
call fcn.1803b5b9
lea eax, [ebp - 0x2004]
mov ecx, ebx
push eax
call fcn.1803b5e2
test eax, eax
js 0x1803b78e
movzx eax, word [ebp - 0x2114]
sub eax, 8
je 0x1803ba8c
sub eax, 9
je 0x1803b971
dec eax
sub eax, 1
je 0x1803b927
sub eax, 0x3ff5
jne 0x1803bab2
lea eax, [ebp - 0x2004]
push eax
call fcn.18131ac0
mov ebx, 0x100
mov esi, eax
push ebx
xor edi, edi
lea eax, [ebp - 0x210c]
push edi
push eax
call fcn.1812da70
add esp, 0x10
mov dword [ebp - 0x2110], edi
lea ecx, [esi + 2]
push 2
pop edx
call fcn.18010483
cmp eax, ebx
jbe 0x1803b851
push eax
lea ecx, [ebp - 0x2110]
lfence
call fcn.180415b3
mov esi, dword [ebp - 0x2110]
jmp 0x1803b85d
lea esi, [ebp - 0x210c]
mov dword [ebp - 0x2110], esi
test esi, esi
je 0x1803b8f5
lea ebx, [ebp - 0x2004]
cmp word [ebp - 0x2004], di
je 0x1803b8a7
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x1803b899
cmp word [eax], 0x30
jne 0x1803b899
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x1803b89f
mov word [esi], cx
add ebx, 2
add esi, 2
cmp word [ebx], di
jne 0x1803b874
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2110]
test esi, esi
jne 0x1803b8b9
push 0xd
jmp 0x1803b8f7
mov ebx, edi
mov edi, esi
push edi
call fcn.18131ac0
inc eax
pop ecx
lea edi, [edi + eax*2]
lea ebx, [ebx + eax*2]
cmp eax, 1
jne 0x1803b8bd
mov eax, dword [ebp - 0x200c]
xor edi, edi
push ebx
push esi
push 7
push edi
push dword [ebp - 0x2118]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2110]
mov edi, eax
jmp 0x1803b8f8
push 0xe
pop edi
lea eax, [ebp - 0x210c]
cmp esi, eax
je 0x1803b90d
lea ecx, [ebp - 0x2110]
call fcn.180406e7
mov ebx, dword [ebp - 0x2008]
test edi, edi
je 0x1803bab2
mov ecx, edi
call fcn.1803a9bc
jmp 0x1803bacc
lea eax, [ebp - 0x200c]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x1803b78e
mov eax, dword [ebp - 0x200c]
push 4
mov dword [ebp - 0x2008], eax
lea eax, [ebp - 0x2008]
push eax
push 4
push edi
push dword [ebp - 0x2118]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x1803b913
lea eax, [ebp - 0x2004]
push eax
call fcn.18131ac0
mov ebx, eax
pop ecx
test bl, 1
jne 0x1803b9f2
cdq
mov esi, 0x100
sub eax, edx
xor edi, edi
sar eax, 1
push esi
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x210c]
push edi
push eax
call fcn.1812da70
mov ecx, dword [ebp - 0x2114]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x2110], edi
inc edx
call fcn.18010483
cmp eax, esi
jbe 0x1803b9d7
push eax
lea ecx, [ebp - 0x2110]
lfence
call fcn.180415b3
mov eax, dword [ebp - 0x2110]
jmp 0x1803b9e3
lea eax, [ebp - 0x210c]
mov dword [ebp - 0x2110], eax
test eax, eax
jne 0x1803b9fc
lea ecx, [ebp - 0x2110]
call fcn.180406e7
mov eax, 0x80004005
jmp 0x1803bacc
mov esi, dword [ebp - 0x2114]
push esi
push edi
push eax
call fcn.1812da70
add esp, 0xc
test ebx, ebx
jle 0x1803ba4a
mov esi, edi
mov cx, word [ebp + esi*2 - 0x2004]
call fcn.1803b4f7
movzx edx, al
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2110]
shl edx, cl
mov ecx, esi
shr ecx, 1
or byte [ecx + eax], dl
inc esi
cmp esi, ebx
jl 0x1803ba13
mov esi, dword [ebp - 0x2114]
mov eax, dword [ebp - 0x200c]
push esi
push dword [ebp - 0x2110]
push 3
push edi
push dword [ebp - 0x2118]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x210c]
cmp dword [ebp - 0x2110], eax
je 0x1803b90d
lea ecx, [ebp - 0x2110]
call fcn.180406e7
jmp 0x1803b90d
lea eax, [ebp - 0x2004]
push eax
call fcn.18131ac0
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push edi
jmp 0x1803b965
push dword [ebp - 0x211c]
mov ecx, ebx
lfence
call fcn.1803b5e2
test eax, eax
js 0x1803b78e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret 0xc