Function at 0x401000
Capabilities:
Create thread
Set registry value

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401227
mov edi, str.autorun.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
mov byte [edx + ecx], al
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareHewlett_PackardHPZGlue
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4010b0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x38]
push ecx
push 1
push ebx
push str.AutorunLocation
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x34]
sub edx, ecx
push edx
push str.autorun.inf
push eax
call fcn.00404572
lea ecx, [esp + 0x40]
push 0x104
push ecx
push 0x40dcf4
call fcn.004044e8
mov edi, dword [esp + 0x154]
mov dword [0x40dce4], ebx
push edi
mov dword [0x40dcec], ebx
call fcn.00401240
mov esi, dword [esp + 0x160]
push str._debug
push esi
call fcn.00404472
add esp, 0x24
test eax, eax
jne 0x40111f
xor ebp, ebp
jmp 0x401130
mov ebp, dword [esp + 0x148]
mov dword [0x40dcec], 1
push str._noautoload
push esi
call fcn.00404472
add esp, 8
test eax, eax
je 0x401148
mov dword [0x40d050], ebx
push ebp
push edi
call fcn.004012d0
add esp, 8
test eax, eax
jne 0x401163
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10
mov eax, dword [0x40dcf0]
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push 0x401520
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [0x40dcec]
cmp eax, ebx
jne 0x4011bd
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x40dce4], ebx
je 0x40119d
call fcn.00401bd0
cmp esi, ebx
je 0x401227
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x128
ret 0x10
cmp esi, ebx
je 0x4011c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
mov esi, eax
call edi
test eax, eax
je 0x401227
mov ebp, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push esi
push eax
call ebp
test eax, eax
jne 0x401216
lea ecx, [esp + 0x18]
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4011f3
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10