Function at 0x12c8150
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x12d8140]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3c4], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x3c4]
push eax
push 1
call dword [sym.imp.OLE32.dll_CoGetMalloc]
mov ebx, eax
test ebx, ebx
js 0x12c81fa
mov esi, 0x105
lea eax, [ebp - 0x18c]
push esi
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x88], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x12c8353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x12c81fa
movzx ebx, bx
or ebx, 0x80070000
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x12c8221
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8221
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3a4]
test ecx, ecx
je 0x12c827a
cmp dword [ebp - 0x3bc], 0
je 0x12c825d
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0x3bc]
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8257
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3a4]
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c827a
mov ecx, 4
int 0x29
mov edx, dword [ebp - 0x3a8]
test edx, edx
je 0x12c82cf
mov ecx, dword [ebp - 0x3b8]
test ecx, ecx
je 0x12c82b2
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c82ac
mov ecx, 4
int 0x29
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx]
mov edi, esp
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c82cf
mov ecx, 4
int 0x29
cmp dword [ebp - 0x3ac], 0
je 0x12c82e4
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3b0], 0
je 0x12c82f9
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a0], 0
je 0x12c830e
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c8], 0
je 0x12c8323
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3b4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x3cc]
test eax, eax
je 0x12c8340
push eax
call fcn.012d7a1b
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.012d7a50
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x88], bl
je 0x12c8365
mov ebx, 0x8007007a
jmp 0x12c81fa
push esi
lea eax, [ebp - 0x39c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x12c81e5
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x39e], cx
push 0x32
pop ecx
mov word [ebp + eax*2 - 0x39c], cx
lea eax, [eax*2 + 2]
cmp eax, 0x210
jae 0x12c8961
xor ecx, ecx
mov word [ebp + eax - 0x39c], cx
lea eax, [ebp - 0x3a4]
push eax
push 1
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
mov ebx, eax
test ebx, ebx
js 0x12c81fa
mov eax, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3bc]
mov edi, esp
push ecx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
call dword [0x12d9330]
call dword [esi + 0x1c]
cmp edi, esp
je 0x12c8401
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c81fa
lea eax, [ebp - 0x3c8]
push eax
push 0x12c3a44
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jle 0x12c8433
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x12c81fa
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.OLE32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x12c81fa
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x12c3a64
push 0x30
push eax
call fcn.012c7fda
mov eax, dword [ebp - 0x3c4]
add esp, 0x10
mov edi, esp
mov ecx, dword [eax]
push dword [ebp - 0x3d0]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c849b
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3bc]
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
push 0x12c3a68
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
mov eax, dword [ebp - 0x3a4]
add esp, 0x14
mov edi, esp
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c84e2
mov ecx, 4
int 0x29
and dword [ebp - 0x3c0], 0
mov dword [ebp - 0x3d8], eax
test eax, eax
je 0x12c81fa
mov edx, dword [ebp - 0x3a8]
test edx, edx
je 0x12c855a
mov ecx, dword [ebp - 0x3b8]
test ecx, ecx
je 0x12c8536
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8529
mov ecx, 4
int 0x29
and dword [ebp - 0x3b8], 0
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx]
mov edi, esp
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8553
mov ecx, 4
int 0x29
and dword [ebp - 0x3a8], 0
mov eax, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3a8]
mov edi, esp
push ecx
push dword [ebp - 0x3c0]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x10]
call dword [0x12d9330]
call dword [esi + 0x10]
cmp edi, esp
je 0x12c8589
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8939
mov eax, dword [ebp - 0x3a8]
lea ecx, [ebp - 0x3b8]
mov edi, esp
push ecx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0xc]
call dword [0x12d9330]
call dword [esi + 0xc]
cmp edi, esp
je 0x12c85bc
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8939
mov ecx, dword [ebp - 0x3b8]
cmp dword [ecx + 0x28], 5
jne 0x12c8939
test byte [ecx + 0x36], 2
je 0x12c8939
push dword [ebp - 0x3b4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x3a4]
xor ecx, ecx
mov edi, esp
mov dword [ebp - 0x3b4], ecx
push ecx
push ecx
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x3b4]
push ecx
push dword [ebp - 0x3c0]
mov ecx, dword [esi + 0x24]
push eax
call dword [0x12d9330]
call dword [esi + 0x24]
cmp edi, esp
je 0x12c8626
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8939
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3b8]
call dword [sym.imp.OLE32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x12c81fa
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x12c3a64
push 0x30
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
mov eax, dword [ebp - 0x3c4]
add esp, 0x10
mov edi, esp
mov ecx, dword [eax]
push dword [ebp - 0x3d4]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8690
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3b4]
test ecx, ecx
je 0x12c86fc
mov eax, dword [ebp - 0x3cc]
test eax, eax
je 0x12c86b1
push eax
call fcn.012d7a1b
pop ecx
mov ecx, dword [ebp - 0x3b4]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.012d79f2
mov esi, eax
mov dword [ebp - 0x3cc], esi
pop ecx
test esi, esi
je 0x12c8957
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x3b4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x12c81e5
jmp 0x12c8704
mov esi, dword [ebp - 0x3cc]
xor ebx, ebx
cmp dword [ebp - 0x3a0], 0
je 0x12c871f
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3a0], ebx
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
mov edi, 0x80070000
test ebx, ebx
jle 0x12c8748
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
cmp dword [ebp - 0x3b0], 0
je 0x12c876a
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x3b0], 0
lea eax, [ebp - 0x3b0]
push eax
push 0x12c3a54
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jle 0x12c878f
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
lea ecx, [ebp - 0x18c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c879e
sub ecx, edx
lea eax, [ebp - 0x18c]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c87cc
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c87db
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
push 1
push 0x12c3a70
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c880c
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c8818
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
push 1
push 0x12c3a78
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c8846
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
test esi, esi
je 0x12c8939
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c8859
sub ecx, edx
push ecx
push esi
push 1
push 0
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c8881
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c888c
sub ecx, edx
push ecx
push esi
push 1
push 0x12c3a4c
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c88b7
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
cmp dword [ebp - 0x3ac], 0
je 0x12c88d9
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x3ac], 0
lea eax, [ebp - 0x3ac]
push eax
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jle 0x12c88f9
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12c8905
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
push 1
push 0x12c3a44
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x12c8933
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x12c81fa
mov eax, dword [ebp - 0x3c0]
inc eax
mov dword [ebp - 0x3c0], eax
cmp eax, dword [ebp - 0x3d8]
jb 0x12c84f7
jmp 0x12c81fa
mov ebx, 0x8007000e
jmp 0x12c81fa
call fcn.012d7c34
int3