Function at 0x40c580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6736db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2144
call fcn.00611bb0
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x2134], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2140], eax
lea eax, [ebp - 0x201c]
push eax
mov dword [ebp - 0x214c], ecx
mov dword [ebp - 0x2130], edi
mov dword [ebp - 0x213c], ebx
call fcn.0040d310
test eax, eax
js 0x40cc8d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x201c]
push str.SMDB
push eax
call esi
test eax, eax
jne 0x40c60e
lea esi, [eax + 8]
jmp 0x40c657
push 0x70e3a8
lea eax, [ebp - 0x201c]
push eax
call esi
test eax, eax
jne 0x40c627
mov esi, 0x4008
jmp 0x40c657
push 0x70e3ac
lea eax, [ebp - 0x201c]
push eax
call esi
test eax, eax
jne 0x40c63e
lea esi, [eax + 0x13]
jmp 0x40c657
push 0x70e3b0
lea eax, [ebp - 0x201c]
push eax
call esi
test eax, eax
jne 0x40cc55
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2134]
call fcn.0040ded0
mov ecx, dword [ebp - 0x2134]
lea eax, [ebp - 0x201c]
push eax
call fcn.0040d310
test eax, eax
js 0x40cc8d
cmp esi, 0x13
ja 0x40ca16
je 0x40c982
cmp esi, 8
je 0x40c8de
cmp esi, 0x11
jne 0x40cc39
lea ebx, [ebp - 0x201c]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40c6a6
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2148], ebx
mov dword [ebp - 0x2128], ebx
test bl, 1
je 0x40c6fc
push str.Binary_Data_does_not_fall_on_BYTE_boundries_n
push 0
lea eax, [ebp - 0x2144]
mov dword [ebp - 0x2144], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push 8
push eax
mov dword [ebp - 0x2140], 0x431
call fcn.0040af50
add esp, 0x10
mov eax, 0x80004005
jmp 0x40cc8d
mov eax, ebx
mov dword [ebp - 0x2124], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2138], esi
mov dword [ebp - 4], 3
mov edx, 1
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040c550
cmp dword [ebp - 0x2124], 0
mov edi, eax
je 0x40c75d
push str.m_p__0
push 0x70d8fc
push 0
push 0x226
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlalloc.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40c75d
int3
cmp edi, 0x100
jbe 0x40c773
push edi
lea ecx, [ebp - 0x2124]
call fcn.0040be20
jmp 0x40c7a5
lea eax, [ebp - 0x2120]
mov dword [ebp - 0x2124], eax
jmp 0x40c7ab
mov eax, dword [ebp - 0x2124]
test eax, eax
jne 0x40c7c4
lea ecx, [ebp - 0x2124]
call fcn.0040be00
mov eax, 0x80004005
jmp 0x40cc8d
push esi
push 0
push eax
call fcn.00614d30
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x40c89b
mov esi, dword [ebp - 0x2148]
movzx ebx, word [ebp + edi*2 - 0x201c]
mov eax, ebx
mov dword [ebp - 0x2128], eax
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x40c7ff.58
movzx eax, byte [eax + 0x40ccbc]
jmp dword [eax*4 + 0x40ccac]
sub bl, 0x30
jmp 0x40c86f
sub bl, 0x37
jmp 0x40c86f
sub bl, 0x57
jmp 0x40c86f
push 0x70d7a4
push 0x70d8fc
push 0
push 0x32f
push 0x70e848
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40c83b
int3
push dword [ebp - 0x2128]
lea eax, [ebp - 0x2150]
mov dword [ebp - 0x2150], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push str.Bogus_value__Tc_passed_as_binary_Hex_value_n
push 0
push 8
push eax
mov dword [ebp - 0x214c], 0x330
call fcn.0040af50
add esp, 0x14
xor bl, bl
mov eax, edi
mov edx, edi
and eax, 1
shr edx, 1
add edx, dword [ebp - 0x2124]
mov ecx, 4
shl eax, 2
inc edi
sub ecx, eax
shl bl, cl
or byte [edx], bl
cmp edi, esi
jl 0x40c7e0
mov esi, dword [ebp - 0x2138]
mov eax, dword [ebp - 0x2130]
push esi
push dword [ebp - 0x2124]
push 3
push 0
push dword [ebp - 0x213c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x2120]
cmp dword [ebp - 0x2124], eax
je 0x40cc2c
lea ecx, [ebp - 0x2124]
call fcn.0040be00
jmp 0x40cc2c
cmp dword [edi], 0
jne 0x40c909
push str.m_hKey___0
push 0x70d8fc
push 0
push 0x1877
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlbase.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40c909
int3
lea ecx, [ebp - 0x201c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c912
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x201c]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x2128], 0x3e4
test ebx, ebx
mov eax, 0x70e434
cmovne eax, ebx
push eax
lea eax, [ebp - 0x201c]
push eax
push str.Setting_Value__Ts_at__Ts_n
push 2
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x212c], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push 8
push eax
call fcn.0040af50
add esp, 0x18
jmp 0x40cc2c
lea eax, [ebp - 0x2138]
push eax
push 0
push 0
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x40cc8d
cmp dword [edi], 0
mov eax, dword [ebp - 0x2138]
mov dword [ebp - 0x2128], eax
jne 0x40c9d9
push str.m_hKey___0
push 0x70d8fc
push 0
push 0x1866
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlbase.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40c9d9
int3
push 4
lea eax, [ebp - 0x2128]
push eax
push 4
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x2128], 0x429
test ebx, ebx
mov eax, 0x70e434
cmovne eax, ebx
push eax
push dword [ebp - 0x2138]
push str.Setting_Value__d_at__Ts_n
jmp 0x40c960
cmp esi, 0x4008
jne 0x40cc39
test ebx, ebx
mov dword [ebp - 0x212c], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
mov eax, 0x70e434
mov dword [ebp - 0x2128], 0x3e9
cmovne eax, ebx
push eax
lea eax, [ebp - 0x201c]
push eax
push str.Setting_Value__Ts_at__Ts_n
push 2
lea eax, [ebp - 0x212c]
push 8
push eax
call fcn.0040af50
lea ecx, [ebp - 0x201c]
add esp, 0x18
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ca70
sub ecx, edx
mov dword [ebp - 0x2124], 0
sar ecx, 1
add ecx, 2
mov dword [ebp - 4], 0
mov edx, 2
mov byte [ebp - 4], 1
call fcn.0040c550
cmp dword [ebp - 0x2124], 0
mov esi, eax
je 0x40cad2
push str.m_p__0
push 0x70d8fc
push 0
push 0x226
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlalloc.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40cad2
int3
cmp esi, 0x100
jbe 0x40cae8
push esi
lea ecx, [ebp - 0x2124]
call fcn.0040be20
jmp 0x40cb08
lea eax, [ebp - 0x2120]
mov dword [ebp - 0x2124], eax
jmp 0x40cb08
mov edi, dword [ebp - 0x2124]
test edi, edi
je 0x40cc0e
cmp word [ebp - 0x201c], 0
lea esi, [ebp - 0x201c]
je 0x40cb5c
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x40cb4d
cmp word [eax], 0x30
jne 0x40cb4d
xor ecx, ecx
push eax
mov word [edi], cx
call ebx
mov esi, eax
jmp 0x40cb53
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x40cb30
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp - 0x2130]
mov ebx, dword [ebp - 0x2124]
cmp dword [eax], 0
jne 0x40cb97
push str.m_hKey___0
push 0x70d8fc
push 0
push 0x1886
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlbase.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40cb97
int3
test ebx, ebx
jne 0x40cbc9
push str.__atl_condVal
push 0x70d8fc
push ebx
push 0x1887
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlbase.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40cbc0
int3
test ebx, ebx
jne 0x40cbc9
lea esi, [ebx + 0xd]
jmp 0x40cc13
xor esi, esi
mov edx, ebx
nop dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cbd5
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40cbd0
mov eax, dword [ebp - 0x2130]
push esi
push ebx
push 7
push 0
push dword [ebp - 0x213c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x40cc13
mov esi, 0xe
lea eax, [ebp - 0x2120]
cmp dword [ebp - 0x2124], eax
je 0x40cc2c
lea ecx, [ebp - 0x2124]
call fcn.0040be00
test esi, esi
je 0x40cc39
mov ecx, esi
call fcn.0040d300
jmp 0x40cc8d
push dword [ebp - 0x2140]
mov ecx, dword [ebp - 0x2134]
call fcn.0040d310
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x40cc8d
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x2144], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push eax
push 0x70e3b4
push 0
lea eax, [ebp - 0x2144]
mov dword [ebp - 0x2140], 0x3d7
push 8
push eax
call fcn.0040af50
add esp, 0x14
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 - 0x18]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret 0xc