Function at 0x404760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4188fb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x222c
call fcn.00418070
mov eax, dword [0x42300c]
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 ebx, ecx
mov dword [ebp - 0x2234], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2230], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x222c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x223c], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2018], ebx
call fcn.00404fca
test eax, eax
js 0x404c1a
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4047ed
push 8
jmp 0x404840
push 0x41f788
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40480a
mov esi, 0x4008
jmp 0x404841
push 0x41f78c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404824
push 0x13
jmp 0x404840
push 0x41f790
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404c15
push 0x11
pop esi
mov ecx, ebx
call fcn.00405767
lea eax, [ebp - 0x2014]
mov ecx, ebx
push eax
call fcn.00404fca
test eax, eax
js 0x404c1a
push 2
pop edi
sub esi, 8
je 0x404ba9
sub esi, 9
je 0x404a39
sub esi, edi
je 0x4049fd
sub esi, 0x3ff5
jne 0x404bfd
lea ecx, [ebp - 0x2014]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x404892
sub ecx, edx
lea eax, [ebp - 0x2224]
sar ecx, 1
push 0x104
push ebx
push eax
lea esi, [ecx + 2]
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x2224], ebx
mov eax, esi
mov dword [ebp - 4], ebx
mul edi
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x404c36
cmp eax, 0xffffffff
ja 0x404c36
cmp eax, 0x100
jbe 0x4048ef
push eax
lea ecx, [ebp - 0x2224]
call fcn.00404188
jmp 0x404914
lea esi, [ebp - 0x2220]
mov dword [ebp - 0x2224], esi
jmp 0x40491a
mov esi, dword [ebp - 0x2224]
test esi, esi
je 0x4049dc
cmp word [ebp - 0x2014], 0
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2228], eax
je 0x404970
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x2228]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x404963
cmp word [ecx], 0x30
jne 0x404963
xor eax, eax
push ecx
mov word [esi], ax
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x404968
mov word [esi], dx
add eax, edi
add esi, 2
cmp word [eax], bx
jmp 0x404930
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2224]
mov dword [ebp - 0x2018], esi
test esi, esi
jne 0x404988
push 0xd
jmp 0x4049de
mov edx, ebx
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x201c], eax
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x404995
sub ecx, dword [ebp - 0x201c]
sar ecx, 1
inc ecx
lea esi, [esi + ecx*2]
lea edx, [edx + ecx*2]
cmp ecx, 1
jne 0x40498a
mov esi, dword [ebp - 0x2018]
mov eax, dword [ebp - 0x2230]
push edx
push esi
push 7
push ebx
push dword [ebp - 0x222c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2224]
mov edi, eax
jmp 0x4049df
push 0xe
pop edi
lea eax, [ebp - 0x2220]
cmp esi, eax
je 0x404bea
lea ecx, [ebp - 0x2224]
call fcn.00404173
jmp 0x404bea
lea eax, [ebp - 0x201c]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x404c1a
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push 4
push eax
push 4
jmp 0x404bd3
lea ecx, [ebp - 0x2014]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x404a44
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2238], ecx
test cl, 1
jne 0x404b07
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2120]
push 0x104
push ebx
sar edi, 1
push eax
mov dword [ebp - 0x201c], edi
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp edi, 0x100
jbe 0x404ae6
push edi
lea ecx, [ebp - 0x2120]
call fcn.00404188
mov eax, dword [ebp - 0x2120]
jmp 0x404af2
lea eax, [ebp - 0x211c]
mov dword [ebp - 0x2120], eax
mov esi, dword [ebp - 0x2228]
test eax, eax
jne 0x404b11
lea ecx, [ebp - 0x2120]
call fcn.00404173
mov eax, 0x80004005
jmp 0x404c1a
push edi
push ebx
push eax
call fcn.00407e60
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x2018], edx
test esi, esi
jle 0x404b6e
mov ebx, dword [ebp - 0x2228]
mov cx, word [ebp + edx*2 - 0x2014]
mov edi, edx
mov esi, dword [ebp - 0x2120]
shr edi, 1
call fcn.004046db
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x2018]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x2018], edx
cmp edx, ebx
jl 0x404b2e
mov edi, dword [ebp - 0x201c]
xor ebx, ebx
mov eax, dword [ebp - 0x2230]
push edi
push dword [ebp - 0x2120]
push 3
push ebx
push dword [ebp - 0x222c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x404bea
lea ecx, [ebp - 0x2120]
call fcn.00404173
jmp 0x404bea
lea ecx, [ebp - 0x2014]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x404bb4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
mov eax, dword [ebp - 0x2230]
push ebx
push dword [ebp - 0x222c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x404bf7
mov ecx, edi
call fcn.00404fb9
jmp 0x404c1a
mov ebx, dword [ebp - 0x2234]
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.00404fca
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x404c1a
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.004061a0
leave
ret 0xc
push 0x80070216
call fcn.0040118f
int3