Function at 0x10005c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061dc1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.100147b0
mov eax, dword [0x100840c8]
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.10006cb0
test eax, eax
js 0x100060fe
push 0x10067a34
lea eax, [ebp - 0x2014]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
test eax, eax
jne 0x10005c9e
lea esi, [eax + 8]
jmp 0x10005ce7
push 0x10067a38
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x10005cb7
mov esi, 0x4008
jmp 0x10005ce7
push 0x10067a3c
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x10005cce
lea esi, [eax + 0x13]
jmp 0x10005ce7
push 0x10067a40
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x100060f9
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2128]
call fcn.10008900
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.10006cb0
test eax, eax
js 0x100060fe
cmp esi, 0x13
ja 0x10005f81
je 0x10005ef4
cmp esi, 8
je 0x10005edc
cmp esi, 0x11
jne 0x100060dd
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10005d36
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2134], ebx
mov dword [ebp - 0x201c], ebx
test bl, 1
jne 0x10005dfe
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.10020ef0
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.10006170
mov dword [ebp - 4], 4
jmp 0x10005dd4
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x10005e08
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x10005dfe
lea ecx, [ebp - 0x2120]
call fcn.10006830
mov eax, 0x80004005
jmp 0x100060fe
push esi
push 0
push eax
call fcn.10020ef0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2124], ecx
test ebx, ebx
jle 0x10005e92
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.0x10005e47.58
movzx eax, byte [ebx + 0x1000612c]
jmp dword [eax*4 + 0x1000611c]
lea ebx, [edx - 0x37]
jmp case.0x10005e47.48
lea ebx, [edx - 0x57]
jmp case.0x10005e47.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 0x10005e30
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 0x100060ce
lea ecx, [ebp - 0x2120]
call fcn.10006830
jmp 0x100060ce
push 1
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, ebx
call fcn.10008800
mov esi, eax
jmp 0x100060ce
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 0x10005f46
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.100042d0
mov eax, esi
jmp 0x100060fe
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.100042d0
jmp 0x100060ce
cmp esi, 0x4008
jne 0x100060dd
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005f96
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.10020ef0
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.100061a0
mov dword [ebp - 4], 0
jmp 0x10006001
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x100060a9
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x10006051
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x10006042
cmp word [eax], 0x30
jne 0x10006042
xor ecx, ecx
mov word [edi], cx
push eax
call ebx
mov esi, eax
jmp 0x10006048
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x10006025
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2120]
test ebx, ebx
jne 0x10006064
lea esi, [eax + 0xd]
jmp 0x100060ae
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 0x10006070
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10006068
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 0x100060ae
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x100060ce
lea ecx, [ebp - 0x2120]
call fcn.10006830
test esi, esi
je 0x100060dd
push esi
call fcn.10006410
add esp, 4
jmp 0x100060fe
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2128]
call fcn.10006cb0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x100060fe
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.1001448f
mov esp, ebp
pop ebp
ret 0xc