Function at 0x40bc90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428998
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x431180]
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 - 4], 0
xor edi, edi
mov ecx, 0x467428
cmp edi, 2
jge 0x40bec2
xor ebx, ebx
test edi, edi
setne bl
mov edx, 0x4674a0
mov eax, 0x467400
mov esi, 0x467484
add ebx, 0x80000001
test edi, edi
cmove edx, ecx
lea ecx, [ebp - 0x64]
cmove esi, eax
call fcn.00408aa0
mov edx, esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00408aa0
mov eax, dword [ebp - 0x64]
cmp dword [eax - 0xc], 0
je 0x40be74
mov ecx, dword [ebp - 0x54]
cmp dword [ecx - 0xc], 0
je 0x40be74
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push 0
push 3
push 0
push 0
push 0
push eax
mov byte [ebp - 4], 3
push ebx
mov dword [ebp - 0x58], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40be6d
mov esi, dword [ebp - 0x58]
push 0x2a
push eax
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
mov dword [ebp - 0x70], esi
call fcn.0041d150
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x58], 0x16
call fcn.0040bf50
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x70]
call fcn.0040bf50
cmp eax, 2
jne 0x40be5b
xor eax, eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x46], eax
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x4e], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x42eb74
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40be13
lea ecx, [ebp - 0x60]
push ecx
push ecx
call eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push dword [ebp - 0x60]
push str._I64u
push 0x16
push eax
call fcn.0041bd48
lea eax, [ebp - 0x40]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be32
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0
push dword [ebp - 0x54]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x40be6d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40beb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
jmp 0x40bcc7
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.0041b074
mov esp, ebp
pop ebp
ret