Function at 0x40a0e3
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, 0x402c20
lea edi, [ebp - 0x2ac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push eax
call sub.msvcrt.dll_memset
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 0x40a406
lea eax, [ebp - 0x6bc]
mov edx, ebx
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403510
mov esi, eax
test esi, esi
js 0x40a410
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.0040a7fb
mov esi, eax
test esi, esi
js 0x40a410
lea eax, [ebp - 0x6e8]
mov ebx, 0xf003f
push eax
lea eax, [ebp - 0x6ec]
push eax
push edi
push ebx
push edi
push 0x4023fc
push edi
push 0x402670
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a414
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 0x4023fc
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 0x40a371
push 0x4e
lea eax, [ebp - 0x54]
push eax
push 1
push edi
push 0x402c64
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40a365
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6e4]
push eax
push edi
push ebx
push edi
push 0x402c70
push edi
push 0x402c8c
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a365
push 0x402ca8
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 0x40a2cd
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x4b4]
push eax
push 2
push edi
push 0x4023a0
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40a342
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40a30e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2ac]
push eax
push 2
push edi
push 0x402cc8
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 0x40a365
mov ecx, dword [ebp - 0x6e0]
lea edx, [ebp - 0x2ac]
call fcn.004037a9
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 0x40a414
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6f0]
push eax
push edi
push ebx
push edi
push 0x4023fc
push edi
push 0x402c64
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a414
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6e0]
push eax
push edi
push ebx
push edi
push 0x4023fc
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 0x40a3f8
mov ecx, dword [ebp - 0x6e0]
call fcn.004036fe
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 0x40a40e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40a423
test esi, esi
jg 0x40a41a
mov edi, esi
jmp 0x40a423
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.0040de60
leave
ret 0x20