Function at 0x415511
Capabilities:
Set registry value

Disassembly:
push 0x90
mov eax, 0x4aebc5
call fcn.0048f48f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x68], ebx
call fcn.0042f326
push str.success
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.0042f2f7
lea eax, [ebp - 0x84]
push eax
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0042f5f2
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.0042f451
mov ecx, dword [0x507340]
push 5
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop ecx
idiv ecx
mov eax, dword [0x507454]
mov ecx, 0xe7d86a94
mov edi, 0x505ab0
push edi
cmp edx, 4
cmove eax, ecx
lea ecx, [ebp - 0x74]
mov dword [0x507454], eax
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00408fd9
push str.hive
mov ecx, esi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 6
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x50]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.00402394
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00407864
push ecx
mov edi, esp
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x70], eax
call fcn.00403b5b
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.0040fb03
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4156fe
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push str.writeReg_hive_error_
push eax
call fcn.00409288
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 8
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.0042f5f2
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x70]
call fcn.00407864
push 0x16
pop edi
push 8
mov byte [ebp - 4], bl
pop esi
jmp 0x415bc3
push 0x4c1028
mov ecx, esi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x50]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
call fcn.00402394
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00407864
push 0x4c102c
mov ecx, esi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x50]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00402394
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00407864
mov edi, 0x4c10e0
push edi
mov ecx, esi
mov dword [ebp - 0x50], ebx
call fcn.0042f676
mov ecx, eax
call fcn.00430222
push edi
mov ecx, esi
test al, al
je 0x4157ab
call fcn.0042f676
mov ecx, eax
call fcn.0042fb76
mov dword [ebp - 0x60], eax
jmp 0x415801
call fcn.0042f676
mov ecx, eax
call fcn.0043026c
test al, al
je 0x415a69
push edi
mov ecx, esi
mov dword [ebp - 0x50], 1
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x54]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xd
call fcn.00402394
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 6
lea ecx, [eax - 0x10]
call fcn.00407864
mov edi, 0x4c1034
push edi
mov ecx, esi
call fcn.00430238
test al, al
je 0x415823
push edi
mov ecx, esi
call fcn.0042f676
mov ecx, eax
call fcn.0042fb76
jmp 0x415825
mov eax, ebx
mov ecx, 0x2001f
mov edi, 0xf003f
cmp eax, 0x20
jne 0x415840
mov ecx, 0x2021f
mov edi, 0xf023f
jmp 0x41584f
cmp eax, 0x40
jne 0x41584f
mov ecx, 0x2011f
mov edi, 0xf013f
lea eax, [ebp - 0x68]
push eax
push ecx
push ebx
mov ebx, dword [ebp - 0x6c]
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, 2
jne 0x41587d
push esi
lea eax, [ebp - 0x68]
push eax
push esi
push edi
push esi
push esi
push esi
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x415949
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x58]
push str.writeReg_RegOpenKeyEx_or_RegCreateKeyEx_
push eax
mov byte [ebp - 4], 0x11
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x13
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x15
call fcn.0042f5f2
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x70]
call fcn.00407864
xor ebx, ebx
mov byte [ebp - 4], bl
jmp 0x415bbd
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x41596b
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push esi
mov esi, dword [ebp - 0x64]
push esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x5c]
jmp 0x415993
mov edi, dword [ebp - 0x5c]
cmp eax, 1
jne 0x415a3f
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push esi
mov esi, dword [ebp - 0x64]
push esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x415a42
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x50]
push str.writeReg_RegSetValueEx_
push eax
mov byte [ebp - 4], 0x16
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x18
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x19
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x1a
call fcn.0042f5f2
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x19
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [edi - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
jmp 0x41592a
mov esi, dword [ebp - 0x64]
lea ecx, [edi - 0x10]
mov dword [ebp - 4], 5
call fcn.00407864
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [ebx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x70]
jmp 0x415bb3
push str.writeReg_invalid_value_type
lea ecx, [ebp - 0x50]
call fcn.00401b1e
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x10
call fcn.0042f5f2
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x70]
call fcn.00407864
jmp 0x415941
xor ebx, ebx
mov byte [ebp - 4], bl
call fcn.00407864
push 8
pop esi
push 0x16
pop edi
mov edx, dword [0x507340]
push 0xc
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
pop ecx
idiv ecx
cmp edx, 1
jne 0x415bf5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x68], 0
je 0x415c07
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x4c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x1f
call fcn.00408fd9
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x20
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x21
jb 0x415c43
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x54]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x22
call fcn.00402394
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x20
call fcn.00401056
mov eax, dword [ebp - 0x88]
mov word [eax], si
mov eax, dword [0x507340]
imul eax, eax
cdq
idiv edi
cmp edx, 0xd
jne 0x415ca2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x507340], eax
mov esi, dword [ebp - 0x60]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x415cb8
call fcn.00409bd9
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 8], eax
call fcn.0041143d
call fcn.00411501
test al, al
jne 0x415d02
mov ecx, dword [0x507340]
mov edi, ebx
mov dword [ebp - 0x60], 0x12
jmp 0x415cf1
mov eax, ecx
or eax, 0xffffffbb
add ecx, eax
mov eax, ecx
imul eax, ecx
inc edi
cmp edi, eax
jg 0x415cfc
mov eax, ecx
cdq
idiv dword [ebp - 0x60]
cmp edx, 0x3e
jne 0x415ce0
mov dword [0x507340], edi
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0042f451
call fcn.0048f3e1
ret