Function at 0x40a07d
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x6cc]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x268]
push 0x11
pop ecx
push 0x1c4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x6dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x402bb8
lea edi, [ebp - 0x2ac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push eax
call fcn.004034e0
push 0x208
lea eax, [ebp - 0x6bc]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x6bc]
mov ebx, 0x104
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x40a3a0
lea eax, [ebp - 0x6bc]
mov edx, ebx
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403470
mov esi, eax
test esi, esi
js 0x40a3aa
push 0x208
lea eax, [ebp - 0x4b4]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4b4]
mov edx, ebx
lea ecx, [ebp - 0x2ac]
push ebx
push eax
call fcn.0040a6b4
mov esi, eax
test esi, esi
js 0x40a3aa
lea eax, [ebp - 0x6e8]
mov ebx, 0xf003f
push eax
lea eax, [ebp - 0x6ec]
push eax
push edi
push ebx
push edi
push 0x4023ec
push edi
push 0x402660
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a3ae
push 0x27
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x6cc]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6dc]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6e0]
push eax
push edi
push ebx
push edi
push 0x4023ec
push edi
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x6ec]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a30b
push 0x4e
lea eax, [ebp - 0x54]
push eax
push 1
push edi
push 0x402bfc
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40a2ff
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6e4]
push eax
push edi
push ebx
push edi
push 0x402c08
push edi
push 0x402c24
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a2ff
push 0x402c40
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x4b4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40a267
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x4b4]
push eax
push 2
push edi
push 0x402390
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40a2dc
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40a2a8
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2ac]
push eax
push 2
push edi
push 0x402c60
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a2ff
mov ecx, dword [ebp - 0x6e0]
lea edx, [ebp - 0x2ac]
call fcn.00403718
mov esi, eax
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a3ae
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6f0]
push eax
push edi
push ebx
push edi
push 0x4023ec
push edi
push 0x402bfc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a3ae
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6e0]
push eax
push edi
push ebx
push edi
push 0x4023ec
push edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a392
mov ecx, dword [ebp - 0x6e0]
call fcn.0040366b
push dword [ebp - 0x6e0]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40a3bd
test esi, esi
jg 0x40a3b4
mov edi, esi
jmp 0x40a3bd
movzx edi, si
or edi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 0x20