Function at 0x409a00
Capabilities:
Accept command line arguments
Check mutex on windows
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x4541e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.user32.dll
mov dword [ebp - 0x110], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409a46
push str.SetProcessDpiAwarenessContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409a46
push 0xfffffffffffffffd
call eax
push 0
call fcn.00405dc0
add esp, 4
test eax, eax
jne 0x409a5d
push eax
call fcn.00405a90
add esp, 4
lea eax, [ebp - 0x110]
mov dword [ebp - 0x178], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x409ac0
xor esi, esi
cmp dword [ebp - 0x110], esi
jle 0x409ab9
nop dword [eax + eax]
push str.autorun
push dword [edi + esi*4]
call fcn.0041c5cb
add esp, 8
test eax, eax
jne 0x409aaf
inc esi
cmp esi, dword [ebp - 0x110]
jl 0x409a90
jmp 0x409ab9
mov dword [ebp - 0x178], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x80
push 0x455410
push 0x67
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push str.adlock_web_view
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x4552ec], eax
test eax, eax
jne 0x409c5c
push str.adlock_web_view
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4552ec], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0041d260
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0041c220
mov ecx, 1
lea edx, [ebp - 0x10c]
sub ecx, edx
add esp, 8
add eax, ecx
cmp eax, 0x105
jae 0x40a1d7
mov ecx, edx
mov byte [ebp + eax - 0x10c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x12c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409b90
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401480
push 0x14
push str.AdlockLibWebView.dll
lea ecx, [ebp - 0x140]
call fcn.00407bf0
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0041d260
add esp, 0xc
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], 0x10
cmovae eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4552e0], eax
test eax, eax
je 0x409cc4
lea eax, [ebp - 0x15c]
push eax
call fcn.0040d6c0
mov eax, dword [section..data]
xor ecx, ecx
add esp, 4
cmp dword [ebp - 0x14c], ecx
cmove eax, ecx
mov ecx, dword [ebp - 0x148]
mov dword [section..data], eax
cmp ecx, 8
jb 0x409cce
mov edx, dword [ebp - 0x15c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409cb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a1dc
jmp 0x409cb8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409b05
push dword [0x454014]
push str.adlock_web_view
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x409c9b
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b2d9
mov esp, ebp
pop ebp
ret 0x10
push ecx
push edx
call fcn.0041ac6f
add esp, 8
jmp 0x409cce
mov dword [section..data], 0
push str.TaskbarCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0xce
push ebx
mov dword [0x4552f4], eax
mov dword [ebp - 0x174], 0x30
mov dword [ebp - 0x170], 3
mov dword [ebp - 0x16c], 0x4066d0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], ebx
call esi
push 0xcf
push ebx
mov dword [ebp - 0x15c], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x148], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffffff
mov dword [ebp - 0x158], eax
call esi
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], str.adlock_web_view
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x409dc7
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0x10
jb 0x409ca3
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409db8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a1e1
push ecx
push edx
call fcn.0041ac6f
add esp, 8
jmp 0x409ca3
push ebx
call fcn.00415c50
add esp, 4
mov dword [0x45540c], ebx
push 0
push ebx
push 0
push 0
push dword [0x454008]
push dword [0x454004]
push SysReAllocString
push SysReAllocString
push 0x2cf0321
push 0x455410
push str.adlock_web_view
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x455408], eax
test eax, eax
je 0x40a1c7
push 1
call dword [sym.imp.USER32.dll_GetSysColorBrush]
test eax, eax
je 0x409e54
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call esi
push eax
push 0xfffffffffffffff6
push dword [0x455408]
call dword [sym.imp.USER32.dll_SetClassLongA]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push 0
push dword [0x455408]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x454014]
push dword [0x455408]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x455408]
call fcn.00405dc0
add esp, 4
test eax, eax
jne 0x409edf
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x120], xmm0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x454008]
mov esi, dword [0x454004]
push 5
push eax
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x114]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push esi
push eax
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x118]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push 0
push dword [0x455408]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x4552e4], 0
jne 0x40a05e
mov ecx, dword [0x455490]
test ecx, ecx
jne 0x409f7d
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x15c]
push str.AdLock_Service
movups xmmword [ebp - 0x15c], xmm0
call fcn.00401480
push 0x28
call fcn.0041ac3f
mov esi, eax
add esp, 4
test esi, esi
je 0x409f5d
push 0x34
sub esp, 0x18
lea eax, [ebp - 0x15c]
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
push eax
movq qword [esi + 0x20], xmm0
call fcn.00402010
mov ecx, esi
call fcn.004022b0
jmp 0x409f5f
xor eax, eax
lea ecx, [ebp - 0x15c]
mov dword [0x455490], eax
call fcn.00402c30
mov ecx, dword [0x455490]
test ecx, ecx
je 0x40a00e
call fcn.00405f80
cmp eax, 1
jne 0x409fa2
mov ecx, dword [0x455490]
call fcn.00406470
push 1
push dword [0x455408]
call fcn.00408c20
add esp, 8
mov ecx, dword [0x455490]
test ecx, ecx
je 0x40a00e
push 0
push 0x7530
push 4
call fcn.00406640
test al, al
je 0x40a00e
push 1
call fcn.0041ac3f
lea ecx, [ebp - 0x114]
push ecx
push 0
push eax
push 0x401b60
push 0
push 0
call fcn.00423c57
add esp, 0x1c
mov dword [ebp - 0x118], eax
test eax, eax
je 0x40a1f3
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x40a1e6
push ecx
push eax
call fcn.00419adb
add esp, 8
test eax, eax
jne 0x40a1ed
push 1
call fcn.0041ac3f
lea ecx, [ebp - 0x114]
push ecx
push 0
push eax
push 0x401c70
push 0
push 0
call fcn.00423c57
add esp, 0x1c
mov dword [ebp - 0x118], eax
test eax, eax
je 0x40a1f3
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x40a204
push ecx
push eax
call fcn.00419adb
add esp, 8
test eax, eax
jne 0x40a20b
push 0x19
xorps xmm0, xmm0
mov dword [0x4552e4], 1
push str.SoftwareHankuperAdLock_
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x144], 0
movups xmmword [ebp - 0x15c], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
call fcn.00401480
cmp dword [ebp - 0x148], 0x10
lea ecx, [ebp - 0x144]
push ecx
push 0x20119
lea eax, [ebp - 0x15c]
cmovae eax, dword [ebp - 0x15c]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a117
mov ecx, dword [ebp - 0x148]
cmp ecx, 0x10
jb 0x40a1a0
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a108
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a211
push ecx
push edx
call fcn.0041ac6f
add esp, 8
jmp 0x40a1a0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x124], 0
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x128], 0x400
push eax
push 0
push str.value_p
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x144]
test eax, eax
je 0x40a17a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x15c]
call fcn.00402c30
jmp 0x40a1a0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x124]
lea ecx, [ebp - 0x15c]
call fcn.00402c30
mov eax, dword [0x4552f0]
test esi, esi
cmovg eax, esi
mov dword [0x4552f0], eax
push 0
push dword [ebp - 0x178]
push 1
call fcn.004090c0
add esp, 0xc
cmp dword [section..data], 0
jne 0x40a1c7
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x140]
call fcn.00402c30
jmp 0x409ca3
call fcn.0041aff5
call fcn.004203af
call fcn.004203af
push 1
call fcn.00419c88
push eax
call fcn.00419c5b
push 6
mov dword [ebp - 0x114], 0
call fcn.00419c88
push 1
call fcn.00419c88
push eax
call fcn.00419c5b
call fcn.004203af
int3