Function at 0x40843c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x41a140]
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 0x4084e6
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 0x40863d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4084e6
movzx ebx, bx
or ebx, 0x80070000
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x40850d
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x40850d
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3a4]
test ecx, ecx
je 0x408566
cmp dword [ebp - 0x3bc], 0
je 0x408549
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0x3bc]
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x408543
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408566
mov ecx, 4
int 0x29
mov edx, dword [ebp - 0x3a8]
test edx, edx
je 0x4085bb
mov ecx, dword [ebp - 0x3b8]
test ecx, ecx
je 0x40859e
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x408598
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 [0x41b38c]
call esi
cmp edi, esp
je 0x4085bb
mov ecx, 4
int 0x29
cmp dword [ebp - 0x3ac], 0
je 0x4085d0
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3b0], 0
je 0x4085e5
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a0], 0
je 0x4085fa
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c8], 0
je 0x40860f
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 0x40862c
push eax
call fcn.004195d5
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419610
leave
ret
cmp byte [ebp - 0x88], bl
je 0x40864f
mov ebx, 0x8007007a
jmp 0x4084e6
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 0x4084d1
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 0x408c4f
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 0x4084e6
mov ecx, dword [ebp - 0x3a4]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0x1c]
lea eax, [ebp - 0x3bc]
push eax
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x4086ec
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x4084e6
lea eax, [ebp - 0x3c8]
push eax
push 0x402220
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jle 0x40871e
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4084e6
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x4084e6
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x402240
push 0x30
push eax
call fcn.0040542b
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408786
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 0x402244
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 [0x41b38c]
call esi
cmp edi, esp
je 0x4087cd
mov ecx, 4
int 0x29
and dword [ebp - 0x3c0], 0
mov dword [ebp - 0x3d8], eax
test eax, eax
je 0x4084e6
mov edx, dword [ebp - 0x3a8]
test edx, edx
je 0x408845
mov ecx, dword [ebp - 0x3b8]
test ecx, ecx
je 0x408821
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x408814
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 [0x41b38c]
call esi
cmp edi, esp
je 0x40883e
mov ecx, 4
int 0x29
and dword [ebp - 0x3a8], 0
mov ecx, dword [ebp - 0x3a4]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0x10]
lea eax, [ebp - 0x3a8]
push eax
push dword [ebp - 0x3c0]
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408875
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x408c27
mov ecx, dword [ebp - 0x3a8]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x3b8]
push eax
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x4088a9
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x408c27
mov ecx, dword [ebp - 0x3b8]
cmp dword [ecx + 0x28], 5
jne 0x408c27
test byte [ecx + 0x36], 2
je 0x408c27
push dword [ebp - 0x3b4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x3a4]
xor edx, edx
mov esi, esp
mov dword [ebp - 0x3b4], edx
push edx
push edx
mov eax, dword [ecx]
push edx
mov edi, dword [eax + 0x24]
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x3c0]
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408914
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x408c27
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3b8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x4084e6
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x402240
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 [0x41b38c]
call esi
cmp edi, esp
je 0x40897e
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x3b4]
test ecx, ecx
je 0x4089ea
mov eax, dword [ebp - 0x3cc]
test eax, eax
je 0x40899f
push eax
call fcn.004195d5
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.004195a6
mov esi, eax
mov dword [ebp - 0x3cc], esi
pop ecx
test esi, esi
je 0x408c45
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 0x4084d1
jmp 0x4089f2
mov esi, dword [ebp - 0x3cc]
xor ebx, ebx
cmp dword [ebp - 0x3a0], 0
je 0x408a0d
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 0x408a36
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
cmp dword [ebp - 0x3b0], 0
je 0x408a58
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x3b0], 0
lea eax, [ebp - 0x3b0]
push eax
push 0x402230
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jle 0x408a7d
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
lea ecx, [ebp - 0x18c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a8c
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 0x408aba
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ac9
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
push 1
push 0x40224c
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x408afa
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b06
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
push 1
push 0x402254
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x408b34
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
test esi, esi
je 0x408c27
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b47
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 0x408b6f
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b7a
sub ecx, edx
push ecx
push esi
push 1
push 0x402228
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x408ba5
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
cmp dword [ebp - 0x3ac], 0
je 0x408bc7
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jle 0x408be7
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408bf3
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
push 1
push 0x402220
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
test ebx, ebx
jle 0x408c21
movzx ebx, bx
or ebx, edi
test ebx, ebx
js 0x4084e6
mov eax, dword [ebp - 0x3c0]
inc eax
mov dword [ebp - 0x3c0], eax
cmp eax, dword [ebp - 0x3d8]
jb 0x4087e2
jmp 0x4084e6
mov ebx, 0x8007000e
jmp 0x4084e6
call fcn.00419808
int3