Function at 0x44e1d0
Capabilities:
Get hostname
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c5362
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
mov eax, dword [0x4f5b3c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x360], ebx
mov dword [esp + 0x34], 0x104
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44e2ff
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push str.ProgramFilesDir
push edx
call ebp
test eax, eax
jne 0x44e2f4
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call fcn.004a9d5c
mov ecx, dword [esp + 0x10]
push 0x5c
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call fcn.004a72e7
dec edi
cmp eax, edi
jne 0x44e2b7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004a7219
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x350], 1
call fcn.004a9d0c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], bl
call fcn.004a9c1f
mov ecx, dword [esp + 0x10]
push ecx
push str._PROGFILESDIR_
mov ecx, 0x4ff2b0
call fcn.004a94f6
mov ecx, eax
call fcn.004a9d5c
push 0x4ee660
lea ecx, [esp + 0x14]
call fcn.004a9faf
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + 0x1c8]
call fcn.004a9d0c
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x34]
lea eax, [esp + 0x13c]
push edx
push eax
push ebx
mov dword [esp + 0x40], 0x100
call sub.MPR.dll_WNetGetUserA
cmp eax, ebx
jne 0x44e356
lea ecx, [esp + 0x13c]
push ecx
push str._CURUSERNAME_
mov ecx, 0x4ff2b0
call fcn.004a94f6
mov ecx, eax
call fcn.004a9d5c
mov edx, dword [0x4f5b3c]
mov dword [esp + 0x1c], edx
push str.Startup
lea ecx, [esp + 0x20]
mov byte [esp + 0x350], 2
call fcn.004a9d5c
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push str..DefaultSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000003
call esi
test eax, eax
jne 0x44e435
lea ecx, [esp + 0x20]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
mov edi, 0x104
push str.Startup
push ecx
mov dword [esp + 0x38], edi
call ebp
test eax, eax
jne 0x44e47f
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
call fcn.004a9d5c
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004a72e7
cmp eax, ebx
jl 0x44e426
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004a719d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x350], 3
call fcn.004a9d0c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 2
call fcn.004a9c1f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.004a9d0c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x44e435
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov ecx, 0x4ff2b0
push eax
push str._STARTUP_
call fcn.004a94f6
mov ecx, eax
call fcn.004a9d5c
mov eax, dword [0x4ff2ec]
push 0x4f0d58
push eax
call fcn.00474eb8
add esp, 8
test eax, eax
jge 0x44e545
push str.C:MyApp_
mov ecx, 0x4ff318
call fcn.004a9d5c
jmp 0x44e585
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push 1
push ebx
push str..DefaultSOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000003
call esi
test eax, eax
jne 0x44e426
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push str.Startup
push eax
mov dword [esp + 0x38], edi
call ebp
test eax, eax
jne 0x44e531
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a9d5c
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004a72e7
cmp eax, ebx
jl 0x44e531
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x18]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004a719d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x350], 4
call fcn.004a9d0c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 2
call fcn.004a9c1f
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.004a9d0c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x44e435
mov ecx, dword [esp + 0x24]
push str.MyApp_
add ecx, 0x1c8
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004a9e68
mov eax, dword [eax]
mov ecx, 0x4ff318
push eax
mov byte [esp + 0x350], 5
call fcn.004a9d5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 2
call fcn.004a9c1f
lea eax, [esp + 0x30]
lea ecx, [esp + 0x23c]
push eax
push ecx
mov dword [esp + 0x38], 0x105
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x44e5c2
lea edx, [esp + 0x23c]
mov ecx, 0x4ff2b0
push edx
push str._MACHINENAME_
call fcn.004a94f6
mov ecx, eax
call fcn.004a9d5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], bl
call fcn.004a9c1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x34c], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret