Function at 0x18019224
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.180cb510
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2124], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x210c], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2120], edi
push eax
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2110], esi
call fcn.180190c9
test eax, eax
js 0x1801958d
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.18018f86
test eax, eax
jne 0x1801929c
mov eax, 0x80020009
jmp 0x1801958d
mov ecx, edi
call fcn.180190a0
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.180190c9
test eax, eax
js 0x1801958d
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x1801953c
sub eax, 9
je 0x18019433
push 2
pop ecx
sub eax, ecx
je 0x180193f7
sub eax, 0x3ff5
jne 0x1801957a
lea eax, [ebp - 0x2004]
push eax
call fcn.180ac191
pop ecx
push 2
pop edx
add eax, edx
xor ecx, ecx
mul edx
mov dword [ebp - 0x2108], ecx
cmp edx, ecx
ja 0x1801959e
cmp eax, 0xffffffff
ja 0x1801959e
cmp eax, 0x100
jbe 0x18019332
push eax
lea ecx, [ebp - 0x2108]
call fcn.1801df2d
mov esi, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x1801933e
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x180193d6
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x18019389
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x18019379
cmp word [eax], 0x30
jne 0x18019379
xor ecx, ecx
push eax
mov word [esi], cx
call ebx
mov edi, eax
jmp 0x1801937f
mov word [esi], cx
add edi, 2
xor ecx, ecx
add esi, 2
cmp word [edi], cx
jne 0x1801935c
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2108]
test esi, esi
jne 0x1801939b
push 0xd
jmp 0x180193d8
mov edi, ecx
mov ebx, esi
push ebx
call fcn.180ac191
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x1801939f
mov eax, dword [ebp - 0x2114]
push edi
push esi
push 7
push 0
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x180193d9
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x18019567
lea ecx, [ebp - 0x2108]
call fcn.1801d559
jmp 0x18019567
lea eax, [ebp - 0x2114]
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x1801958d
mov eax, dword [ebp - 0x2114]
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push 4
push eax
push 4
jmp 0x1801955a
lea eax, [ebp - 0x2004]
push eax
call fcn.180ac191
mov dword [ebp - 0x210c], eax
pop ecx
test al, 1
jne 0x18019495
and dword [ebp - 0x2108], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x211c], ebx
cmp ebx, 0x100
jbe 0x1801947a
push ebx
lea ecx, [ebp - 0x2108]
call fcn.1801df2d
mov eax, dword [ebp - 0x2108]
jmp 0x18019486
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x1801949f
lea ecx, [ebp - 0x2108]
call fcn.1801d559
mov eax, 0x80004005
jmp 0x1801958d
push ebx
push 0
push eax
call fcn.180a89f0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x2118], edx
cmp dword [ebp - 0x210c], edx
jle 0x18019505
mov ebx, dword [ebp - 0x210c]
mov cx, word [ebp + edx*2 - 0x2004]
mov edi, edx
mov esi, dword [ebp - 0x2108]
shr edi, 1
call fcn.18018fe6
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x2118]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x2118], edx
cmp edx, ebx
jl 0x180194c1
mov ebx, dword [ebp - 0x211c]
mov esi, dword [ebp - 0x2110]
mov eax, dword [ebp - 0x2114]
push ebx
push dword [ebp - 0x2108]
push 3
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x18019567
lea ecx, [ebp - 0x2108]
call fcn.1801d559
jmp 0x18019567
lea eax, [ebp - 0x2004]
push eax
call fcn.180ac191
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x18019574
mov ecx, edi
call fcn.180185c2
jmp 0x1801958d
mov edi, dword [ebp - 0x2120]
push dword [ebp - 0x2124]
mov ecx, edi
call fcn.180190c9
test eax, eax
js 0x1801958d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret 0xc
push 0x80070216
call fcn.18002f74
int3