Function at 0x41b729
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c4
mov eax, dword [0x42b004]
xor eax, esp
mov dword [esp + 0x6c0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [0x42c790], eax
mov dword [0x42cc3c], 2
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov esi, 0x154
test edi, edi
je 0x41b789
push 0x153
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
jmp 0x41b799
push 0x401064
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00418392
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
test eax, eax
jns 0x41b7c8
cmp dword [0x42bd78], 0xffffffff
jne 0x41b7bb
push ecx
push 2
pop edx
call fcn.004277cb
push 0x40324c
push 2
pop edx
call fcn.00427c62
lea eax, [esp + 0x18]
push 0x40328c
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41b7e3
call fcn.0041a666
call fcn.00427d43
test eax, eax
je 0x41b8e1
lea eax, [esp + 0x18]
push 0x4032b4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x41bd64
cmp dword [0x42bd78], 0xffffffff
jne 0x41b81c
push ecx
push 2
pop edx
call fcn.004277cb
push 0x4032d0
push 2
pop edx
call fcn.00427c62
push 0x104
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x41bd64
lea eax, [esp + 0x2c0]
test eax, eax
je 0x41b856
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x40333c
mov edx, 0x208
lea ecx, [esp + 0x2c4]
call fcn.00418442
test eax, eax
js 0x41bd64
lea ecx, [esp + 0x2c0]
call fcn.00425077
test eax, eax
je 0x41bd64
push ecx
lea eax, [esp + 0x18]
mov edx, esi
push eax
lea ecx, [esp + 0x20]
call fcn.00418514
test eax, eax
js 0x41bd64
mov eax, dword [esp + 0x14]
sub esi, eax
push ecx
push 0x40336c
push ecx
lea ecx, [esp + 0x24]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41bd64
push 0xa
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2cc]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41bd64
push 0x401818
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4018b8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.00419121
test edi, edi
je 0x41bd38
lea eax, [esp + 0x18]
push 0x403384
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
test eax, eax
lea eax, [esp + 0x1c]
pop ecx
je 0x41b949
push 0x4033a0
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, eax
call fcn.0041bd82
jmp 0x41bd38
push 0x4033cc
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41b9be
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ebx
push eax
push 0x20019
push ebx
push 0x4033f8
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b9af
lea eax, [esp + 0x10]
push eax
push 3
push ebx
push 0x4027f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41bd38
push 0x403458
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
jmp 0x41b9b3
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x403480
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41b9de
call fcn.0041a0b2
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x4034a8
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41b9fe
call fcn.0041b4f8
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x4034c4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41ba23
call fcn.00419477
call fcn.00419628
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x4034d4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41ba43
call fcn.00426411
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x4034e8
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41ba68
call fcn.004217ac
call fcn.00422ffe
jmp 0x41bd38
lea eax, [esp + 0x18]
push 0x403500
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bad6
call fcn.0041e14e
test eax, eax
jne 0x41bd38
lea eax, [esp + 0x18]
push 0x403514
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
je 0x41baaa
call fcn.00419a23
jmp 0x41baaf
call fcn.00419737
call fcn.0041a495
call fcn.0041d5ed
call fcn.004217ac
push 0x402390
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
push ebx
push 0x3000
jmp 0x41bd2d
lea eax, [esp + 0x18]
push 0x403530
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
test eax, eax
lea eax, [esp + 0x1c]
pop ecx
je 0x41bb32
push 0x403514
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bb11
call fcn.00418b00
xor ecx, ecx
inc ecx
call fcn.00419a23
jmp 0x41bb19
xor ecx, ecx
inc ecx
call fcn.00419737
call fcn.0041a3f7
xor ecx, ecx
inc ecx
call fcn.0041d22d
call fcn.00422032
call fcn.0041a27e
jmp 0x41baca
push 0x403544
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bb82
mov esi, ebx
mov ecx, dword [esi + 0x42b010]
test ecx, ecx
je 0x41bb56
push ecx
call fcn.00428ebe
add esi, 0x20
cmp esi, 0x2c0
jb 0x41bb46
push ebx
xor edx, edx
xor ecx, ecx
call fcn.004244ee
push ebx
push ebx
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x41bd64
lea eax, [esp + 0x18]
push 0x403568
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bb9d
call fcn.0041b6bd
lea eax, [esp + 0x18]
push 0x403580
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bbb8
call fcn.0041ae0e
lea eax, [esp + 0x18]
push 0x4035a4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bbd5
xor ecx, ecx
call fcn.0041d22d
lea eax, [esp + 0x18]
push 0x4035bc
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, 0x3000
pop ecx
pop ecx
test eax, eax
je 0x41bbfc
push ebx
xor edx, edx
xor ecx, ecx
call fcn.004244ee
jmp 0x41bc38
lea eax, [esp + 0x18]
push 0x4035d0
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41bc46
xor ecx, ecx
xor edx, edx
push ebx
inc ecx
call fcn.004244ee
xor edx, edx
mov dword [0x42cc38], 1
push 1
inc edx
xor ecx, ecx
call fcn.004244ee
call fcn.00419262
push ebx
push ebx
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.0041e14e
test eax, eax
jne 0x41bd38
call fcn.004199a8
test eax, eax
jne 0x41bd38
xor ecx, ecx
mov dword [esp + 0x10], ebx
call fcn.00419737
call fcn.0041d5ed
call fcn.004217ac
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x401fd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41bd2a
mov edx, 0xff
lea ecx, [esp + 0x4c8]
call fcn.00424ce1
test eax, eax
je 0x41bd20
push ecx
lea eax, [esp + 0x18]
mov esi, 0x100
push eax
mov edx, esi
lea ecx, [esp + 0x4d0]
call fcn.00418514
test eax, eax
js 0x41bce5
mov eax, dword [esp + 0x14]
sub esi, eax
push ecx
push 0x4020f4
push ecx
lea ecx, [esp + 0x4d4]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418577
lea ecx, [esp + 0x4c8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41bcef
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x4cc]
push eax
push 1
push ebx
push 0x402108
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [esp + 0x18]
push eax
push 0x4035ec
push 2
call fcn.00427cda
mov eax, dword [0x42bd78]
add esp, 0xc
cmp eax, 0xffffffff
je 0x41bd64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x42bd78], 0xffffffff
mov ecx, dword [esp + 0x6cc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429770
mov esp, ebp
pop ebp
ret 0x10