Function at 0x1081639
Capabilities:
Create thread
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x461c
call fcn.0107a6d0
mov eax, dword [0x10e607c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x4614], esi
mov dword [ebp - 0x4610], edi
mov dword [ebp - 0x460c], edi
mov dword [ebp - 0x4618], 0xff
mov dword [0x10ef3bc], 0xffffffff
call fcn.01022d6e
movsx ebx, word [eax + 0xad4]
lea eax, [ebp - 0x4618]
imul ebx, ebx, 0x258
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push edi
push 0x1009b90
lea eax, [ebp - 0x204]
push eax
call fcn.0108067f
cmp eax, 0xffffffff
mov dword [0x10ef3f4], eax
jne 0x10816c7
xor eax, eax
jmp 0x10818dc
add esi, 0x28
mov edi, 0x10ef398
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x461c]
push eax
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push 0x107da7d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x10ef3ec], eax
je 0x1081797
cmp dword [0x10ef3bc], 0xffffffff
mov dword [ebp - 0x4608], esi
jne 0x1081785
xor edi, edi
inc edi
inc dword [ebp - 0x4608]
cmp dword [ebp - 0x4608], 0x4b0
jl 0x1081721
call fcn.01050ed2
cmp dword [0x10ef3dc], esi
jne 0x108173e
cmp dword [0x10ef3e0], esi
jne 0x108173e
mov eax, ebx
dec ebx
test eax, eax
jg 0x108173e
mov dword [ebp - 0x460c], edi
call fcn.01050a55
test eax, eax
mov eax, dword [0x10ef3f4]
je 0x1081764
cmp word [ebp - 0x460c], si
jne 0x1081764
cmp eax, 0xffffffff
je 0x1081764
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1081777
push eax
mov dword [ebp - 0x460c], edi
call sub.NTMSAPI.dll_CloseNtmsSession
or dword [0x10ef3f4], 0xffffffff
call fcn.0107875a
cmp dword [0x10ef3bc], 0xffffffff
je 0x108170a
push dword [0x10ef3ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10ef3ec], esi
mov eax, dword [0x10ef3f4]
cmp eax, 0xffffffff
je 0x10817ae
push eax
call sub.NTMSAPI.dll_CloseNtmsSession
or dword [0x10ef3f4], 0xffffffff
cmp dword [0x10ef3bc], esi
jne 0x10818d6
cmp word [ebp - 0x460c], si
je 0x10817f8
push 0x10ef388
call fcn.01081582
call fcn.0101889b
test eax, eax
je 0x10818d6
call fcn.0101889b
push esi
push 0x8023
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10818d6
push 0x25c
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, esi
pop ecx
mov dword [ebp - 0x4610], eax
je 0x10818d6
mov ebx, dword [ebp - 0x4610]
xor eax, eax
push eax
push 0xe
pop esi
push esi
mov ecx, 0x97
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4608]
push eax
lea eax, [ebp - 0x4604]
push eax
push 0x10ef388
push dword [0x10e6084]
mov dword [ebp - 0x4608], 0x3e8
call sub.NTMSAPI.dll_EnumerateNtmsObject
test eax, eax
jne 0x1081892
cmp dword [ebp - 0x4608], eax
je 0x1081892
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0x4604]
push eax
push dword [0x10e6084]
mov dword [ebp - 0x784], 0x580
mov dword [ebp - 0x780], esi
call sub.NTMSAPI.dll_GetNtmsObjectInformationW
lea edi, [ebx + 0x24]
lea esi, [ebp - 0x5c4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4614]
mov dword [ebx + 0x10], ebx
add esi, 0x38
lea edi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
mov esi, 0x10ef388
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x100210c
add ebx, 0x58
push ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [ebp - 0x4614]
mov edi, dword [ebp - 0x4610]
pop ecx
pop ecx
add ebx, 0x14
call fcn.0107ebf3
mov eax, dword [ebp - 0x4610]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 4