Function at 0x1004057
Capabilities:
Create thread
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10070f0]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x52
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10040b2
push 0x1001ee8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x10040b2
push 0x1001ed8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10040b2
push 0xffffffffffffffff
call eax
push esi
mov esi, 0x1001ea8
push esi
call fcn.010022ec
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x7c], eax
je 0x10040dc
push 0x1001428
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp - 0x7c]
call edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call esi
push 0x1001e7c
call fcn.010022ec
push 0x1001e54
mov dword [ebp - 0x6c], eax
call fcn.010022ec
push 0x1001e24
mov dword [ebp - 0x70], eax
call fcn.010022ec
push ebx
push 0x1001e54
mov dword [ebp - 0x7c], eax
call esi
cmp dword [ebp - 0x6c], ebx
je 0x1004138
push ebx
push 0x1001e7c
call esi
push dword [ebp - 0x6c]
call fcn.01003382
push dword [ebp - 0x6c]
call edi
cmp dword [ebp - 0x70], ebx
je 0x10043c6
cmp dword [ebp - 0x70], ebx
je 0x1004185
push 0x1001428
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1004165
push 0x1001e20
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004185
push dword [ebp - 0x7c]
call fcn.01002d70
push 0x1001e20
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10043c6
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push 0x1001390
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041da
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x1001e08
push dword [ebp - 0x74]
mov dword [ebp - 0x88], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x8c], ebx
je 0x10041f2
push 1
push ebx
push 1
push ebx
push 0x1007018
call fcn.01002534
push 0x1001de0
call fcn.010022ec
push 0x1001db8
mov dword [ebp - 0x80], eax
call fcn.010022ec
push 0x1001d88
mov dword [ebp - 0x84], eax
call fcn.01002aa5
push ebx
push 0x1001de0
mov dword [ebp - 0x6c], eax
call esi
push ebx
push 0x1001db8
call esi
push ebx
push 0x1001d88
call esi
call fcn.01002da9
mov esi, eax
call fcn.0100303f
call fcn.0100318c
test eax, eax
je 0x1004284
cmp dword [ebp - 0x6c], ebx
je 0x1004251
xor esi, esi
inc esi
push 0x1001d6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x9c], eax
je 0x1004284
push 0x1001d54
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1004278
call eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.USER32.dll_LoadRemoteFonts
cmp esi, ebx
je 0x10042b9
call fcn.010029bb
push 1
push esi
push dword [ebp - 0x84]
push dword [ebp - 0x80]
call fcn.01003b84
push esi
push dword [ebp - 0x6c]
call fcn.0100400a
call fcn.0100358f
mov dword [ebp - 0x94], eax
jmp 0x10042e3
call fcn.0100358f
mov dword [ebp - 0x94], eax
call fcn.010029bb
push 1
push ebx
push dword [ebp - 0x84]
push dword [ebp - 0x80]
call fcn.01003b84
push ebx
push dword [ebp - 0x6c]
call fcn.0100400a
push esi
call fcn.0100320a
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x84]
call edi
push dword [ebp - 0x6c]
call edi
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x98]
call fcn.0100349e
lea eax, [ebp - 0xa4]
push eax
push ebx
lea eax, [ebp - 0x94]
push eax
push 0x1002c9a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push 0x1001318
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10043c6
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x1001d2c
push dword [ebp - 0x74]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x90], ebx
je 0x10043bd
push 0x1001d10
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.01002534
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100713c]
cmp eax, ebx
pop esi
je 0x10043eb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x100713c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100713c], ebx
push dword [ebp - 0x70]
call edi
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x78], ebx
pop edi
pop ebx
je 0x1004405
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01005225
leave
ret 0x10