Function at 0x3cfed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3e2dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x3eb520]
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
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x5c], eax
jmp 0x3cff10
cmp eax, 2
jge 0x3d00cc
xor ebx, ebx
cmp eax, edi
setne bl
add ebx, 0x80000001
cmp eax, edi
je 0x3cff36
mov eax, 0x3ec660
mov esi, 0x3ec3ec
jmp 0x3cff40
mov eax, 0x3ec6f8
mov esi, 0x3ec414
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.003ca1b0
add esp, 8
lea ecx, [ebp - 0x58]
push esi
push ecx
mov byte [ebp - 4], 1
call fcn.003ca1b0
mov eax, dword [ebp - 0x68]
add esp, 8
cmp dword [eax - 0xc], edi
je 0x3d0079
mov edx, dword [ebp - 0x58]
cmp dword [edx - 0xc], edi
je 0x3d0079
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x54]
push edx
push edi
push 3
push edi
push edi
push edi
push eax
push ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x3d0076
mov ebx, dword [ebp - 0x54]
push 0x2a
lea ecx, [ebp - 0x3e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x40], ax
call fcn.003d33e0
mov edx, dword [ebp - 0x58]
add esp, 0xc
push edx
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x54], 0x16
call fcn.003d0160
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.003d0160
cmp eax, 2
jne 0x3d0062
xor eax, eax
lea ecx, [ebp - 0x50]
push ecx
mov word [ebp - 0x50], ax
xor edi, edi
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov word [ebp - 0x42], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x64]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
push eax
push ecx
push str._I64u
mov edx, esi
push 0x16
push edx
call fcn.003d2148
mov esi, dword [ebp - 0x58]
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x3d0074
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], 0
xor edi, edi
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x3d0098
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x3d00bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
jmp 0x3cff10
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.003d13cb
mov esp, ebp
pop ebp
ret