Function at 0x100035c0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100175f1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2130
call fcn.1000d270
mov eax, dword [section..data]
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 esi, ecx
mov dword [ebp - 0x2130], esi
mov dword [ebp - 0x2134], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2124], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2120], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2140], eax
mov dword [ebp - 0x211c], 0
lea eax, [ebp - 0x2014]
push eax
call fcn.10004000
test eax, eax
js 0x10003a43
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.10003340
test eax, eax
jne 0x1000365e
mov eax, 0x80020009
jmp 0x10003a43
mov ecx, esi
call fcn.10004910
lea eax, [ebp - 0x2014]
push eax
mov ecx, esi
call fcn.10004000
test eax, eax
js 0x10003a43
movzx eax, word [ebp - 0x211c]
cmp eax, 0x13
jg 0x100038d9
je 0x10003856
cmp eax, 8
je 0x1000383f
cmp eax, 0x11
jne 0x10003a2d
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
lea esp, [esp]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100036b0
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2128], ebx
test bl, 1
jne 0x1000379e
mov eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x211c], edi
mov dword [ebp - 0x212c], edi
mov dword [ebp - 0x2118], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x213c], edi
xor eax, eax
mov dword [ebp - 0x2138], eax
ja 0x1000373f
cmp edi, 0xffffffff
ja 0x1000373f
cmp edi, 0x100
jbe 0x1000372a
push edi
lea ecx, [ebp - 0x2118]
call fcn.10002ce0
mov dword [ebp - 4], 4
jmp 0x10003774
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], 4
jmp 0x10003774
push 0x80070216
call fcn.10003a70
mov eax, 0x1000374f
ret
mov eax, dword [ebp - 0x2118]
test eax, eax
jne 0x100037a8
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x1000379e
lea ecx, [ebp - 0x2118]
call fcn.10002cb0
mov eax, 0x80004005
jmp 0x10003a43
push edi
push 0
push eax
call fcn.1000b770
add esp, 0xc
test ebx, ebx
jle 0x100037f5
xor edi, edi
lea ebx, [ebx]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x2118]
mov cx, word [ebp + edi*2 - 0x2014]
call fcn.10003550
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, ebx
jl 0x100037c0
mov edi, dword [ebp - 0x211c]
push edi
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2124]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x10003a1a
lea ecx, [ebp - 0x2118]
call fcn.10002cb0
jmp 0x10003a1a
push ecx
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, ebx
call fcn.10003450
mov esi, eax
jmp 0x10003a1a
mov dword [ebp - 0x211c], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x212c]
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 0x1000389e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x211c]
call fcn.10003520
mov eax, esi
jmp 0x10003a43
mov eax, dword [ebp - 0x212c]
mov dword [ebp - 0x2128], eax
push 4
lea eax, [ebp - 0x2128]
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 - 0x211c]
call fcn.10003520
jmp 0x10003a1a
cmp eax, 0x4008
jne 0x10003a2d
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038f0
sub ecx, edx
sar ecx, 1
add ecx, 2
mov dword [ebp - 0x2118], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov dword [ebp - 0x213c], ecx
mov dword [ebp - 0x2138], eax
test eax, eax
jne 0x1000373f
cmp ecx, 0xffffffff
ja 0x1000373f
cmp ecx, 0x100
jbe 0x10003959
push ecx
lea ecx, [ebp - 0x2118]
call fcn.10002ce0
mov dword [ebp - 4], 0
jmp 0x10003987
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], 0
jmp 0x10003987
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x100039f5
lea edi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x100039d6
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x100039c7
cmp word [eax], 0x30
jne 0x100039c7
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x100039d0
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x100039a7
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2118]
push dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2124]
call fcn.100034b0
mov esi, eax
jmp 0x100039fa
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x10003a1a
lea ecx, [ebp - 0x2118]
call fcn.10002cb0
test esi, esi
je 0x10003a27
mov ecx, esi
call fcn.10003fe0
jmp 0x10003a43
mov esi, dword [ebp - 0x2130]
push dword [ebp - 0x2140]
mov ecx, esi
call fcn.10004000
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
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.10009163
mov esp, ebp
pop ebp
ret 0xc