Function at 0x1005162
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push ebx
push ebx
xor edi, edi
inc edi
push edi
push ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_SetThreadPreferredUILanguages]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10095a0], eax
cmp eax, 0xffffffff
jne 0x10051eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10039c4
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100398c
push eax
call esi
add esp, 0x14
push edi
call dword [sym.imp.msvcrt.dll_exit]
call sub.ntdll.dll_WinSqmIsOptedIn
test eax, eax
je 0x1005200
push edi
push 0x844
push ebx
call sub.ntdll.dll_WinSqmIncrementDWORD
push esi
push dword [ebp + 8]
call fcn.01006c0a
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x100524e
lea eax, [ebp - 0x58]
push eax
push 2
call dword [sym.imp.ADVAPI32.dll_EventActivityIdControl]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x100524e
push dword [ebp - 0x6c]
push 0x2837
call fcn.01006551
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov esi, dword [0x1009504]
cmp esi, ebx
je 0x10052e5
cmp dword [0x10094b8], ebx
je 0x1005274
push 0x27f8
call fcn.01006518
pop ecx
jmp 0x10051e4
push 0x44
lea eax, [ebp - 0x48]
push ebx
push eax
call sub.msvcrt.dll_memset
mov ax, word [0x1009038]
lea edi, [ebp - 0x44]
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 word [ebp - 0x34], ax
xor eax, eax
xor edi, edi
add esp, 0xc
mov word [ebp - 0x32], ax
inc edi
lea eax, [ebp - 0xa8]
push eax
push dword [0x10094c0]
push dword [0x10094b8]
push dword [0x10094bc]
push dword [0x1009018]
push dword [0x1009508]
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
cmp eax, ebx
je 0x100533e
push eax
push eax
push 0x100395c
push 0x2791
call fcn.01006518
add esp, 0x10
jmp 0x10051e4
cmp dword [0x10094b8], ebx
jne 0x100529d
xor esi, esi
push dword [0x1009018]
push dword [esi*8 + 0x10035d4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1005310
inc esi
cmp esi, 5
jb 0x10052ef
jmp 0x100531c
mov eax, dword [esi*8 + 0x10035d8]
mov dword [0x10094b8], eax
cmp dword [0x10094b8], ebx
jne 0x100529d
push dword [0x1009018]
push 0x27f9
call fcn.01006518
pop ecx
jmp 0x100526e
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x1005361
push eax
push eax
push 0x1003924
jmp 0x10052d3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
inc esi
cmp dword [0x100950c], ebx
je 0x100550f
mov edx, dword [0x10094dc]
xor eax, eax
cmp edx, ebx
setne al
inc eax
inc eax
mov dword [ebp - 0xfc], eax
mov eax, dword [0x10094cc]
mov dword [ebp - 0xf8], eax
mov eax, dword [0x100902c]
mov dword [ebp - 0xf4], eax
mov eax, dword [0x1009030]
mov dword [ebp - 0xf0], eax
cmp dword [0x1009510], ebx
je 0x1005443
mov eax, dword [0x10094e4]
mov dword [ebp - 0xe0], eax
mov eax, dword [0x10094e8]
mov dword [ebp - 0xdc], eax
mov eax, dword [0x10094f0]
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xd8], ebx
cmp eax, ebx
je 0x10053e9
mov dword [ebp - 0xd8], esi
mov ecx, dword [0x1009538]
cmp ecx, ebx
je 0x10053fd
or dword [ebp - 0xd8], 2
xor esi, esi
inc esi
mov dword [ebp - 0xd4], eax
mov eax, dword [0x100956c]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x100959c]
mov dword [ebp - 0xcc], eax
mov eax, dword [0x1009530]
mov dword [ebp - 0xc8], eax
mov eax, dword [0x1009570]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xe8], eax
jmp 0x100544f
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
cmp dword [0x10094fc], 0xe
mov dword [ebp - 0xe4], edx
jne 0x10054db
cmp dword [0x1009528], ebx
je 0x1005812
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xac]
push eax
push dword [0x10094c8]
call sub.SspiCli.dll_SspiEncodeAuthIdentityAsStrings
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x88]
push dword [ebp - 0xac]
call fcn.01004834
push 0x38
lea eax, [ebp - 0x1c0]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1c0]
add esp, 0xc
mov dword [ebp - 0x1c0], 4
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1a0], ebx
mov dword [0x10094c8], eax
lea eax, [ebp - 0xfc]
push eax
push ebx
push dword [0x10094c8]
push dword [0x10094fc]
push dword [0x1009028]
push dword [0x1009500]
push dword [ebp - 0x64]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x1005823
cmp dword [0x1009504], ebx
je 0x100557f
cmp dword [0x10094f4], ebx
jne 0x100557f
push dword [0x1009038]
movzx eax, byte [ebp - 0x35]
push eax
movzx eax, byte [ebp - 0x36]
push eax
movzx eax, byte [ebp - 0x37]
push eax
movzx eax, byte [ebp - 0x38]
push eax
movzx eax, byte [ebp - 0x39]
push eax
movzx eax, byte [ebp - 0x3a]
push eax
movzx eax, byte [ebp - 0x3b]
push eax
movzx eax, byte [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push 0x27fb
call fcn.01006530
add esp, 0x34
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.RPCRT4.dll_RpcEpResolveBinding]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x1005839
mov eax, dword [0x1009020]
imul eax, eax, 0x3e8
xor esi, esi
mov dword [0x1009020], eax
mov dword [ebp - 0x60], esi
call edi
mov ebx, eax
cmp dword [0x10094f4], esi
jne 0x1005842
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtInqStats]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x1005653
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcMgmtStatsVectorFree]
inc esi
call edi
sub eax, ebx
cmp eax, 1
jbe 0x10055de
call edi
mov ecx, eax
sub ecx, ebx
jmp 0x10055e1
xor ecx, ecx
inc ecx
cmp ecx, dword [0x1009020]
jbe 0x1005621
xor edx, edx
mov eax, ecx
div esi
mov ebx, eax
mov eax, edx
imul eax, eax, 0x3e8
xor edx, edx
div esi
xor edx, edx
push eax
mov eax, esi
imul eax, eax, 0x3e8
div ecx
push ebx
push eax
push ecx
push esi
push 0x282d
call fcn.01006518
add esp, 0x18
call edi
mov ebx, eax
xor esi, esi
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [0x100901c]
jb 0x10055a4
test esi, esi
je 0x1005c56
call edi
sub eax, ebx
cmp eax, 1
jbe 0x1005c21
call edi
mov ecx, eax
sub ecx, ebx
jmp 0x1005c24
mov esi, dword [ebp - 0x70]
xor ebx, ebx
cmp dword [0x1009540], ebx
je 0x10058b1
cmp esi, 0x52e
je 0x100578a
cmp esi, 0x8007052e
je 0x100578a
cmp esi, 0xc000006d
je 0x100578a
cmp esi, 0xd000006d
je 0x100578a
cmp esi, 5
je 0x100578a
cmp esi, 0x80070005
je 0x100578a
cmp esi, 0xc0000022
je 0x100578a
cmp esi, 0xd0000022
je 0x100578a
cmp esi, 0x56
je 0x100578a
cmp esi, 0x80070056
je 0x100578a
cmp esi, 0xc000006a
je 0x100578a
cmp esi, 0xd000006a
je 0x100578a
cmp esi, 0x8009030e
je 0x100578a
cmp esi, 0x8009030c
je 0x100578a
cmp esi, 0x80090361
je 0x100578a
cmp esi, 0xc000042d
je 0x100578a
cmp esi, 0x4f1
je 0x100578a
cmp esi, 0x800704f1
je 0x100578a
cmp esi, 0xc0000388
je 0x100578a
cmp esi, 0xd0000388
je 0x100578a
cmp esi, 0x532
je 0x100578a
cmp esi, 0x80070532
je 0x100578a
cmp esi, 0xc0000071
je 0x100578a
cmp esi, 0xd0000071
je 0x100578a
cmp esi, 0x773
je 0x100578a
cmp esi, 0x80070773
je 0x100578a
cmp esi, 0xc0000224
je 0x100578a
cmp esi, 0xd0000224
je 0x100578a
cmp esi, 0x8c2
je 0x100578a
cmp esi, 0x800708c2
jne 0x10058b1
cmp dword [ebp - 0x68], ebx
jne 0x10058b1
push ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [0x10094fc]
mov dword [ebp - 0x110], 0x14
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], 0x1003920
mov dword [ebp - 0x104], 0x10037e8
call fcn.01004d6d
push eax
push esi
lea eax, [ebp - 0x110]
push eax
push dword [0x1009500]
call sub.credui.dll_SspiPromptForCredentialsW
mov ecx, dword [ebp - 0x68]
cmp dword [0x1009510], ebx
je 0x10057fa
mov dword [0x10094e4], ecx
cmp eax, ebx
jne 0x1005896
xor esi, esi
inc esi
mov dword [0x10094c8], ecx
xor ebx, ebx
jmp 0x100536a
push 0x27fa
call fcn.01006518
pop ecx
push esi
jmp 0x10051e5
push eax
push eax
push 0x10038f0
push 0x2791
call fcn.01006518
add esp, 0x10
jmp 0x100581d
push eax
push eax
push 0x10038c8
jmp 0x100582a
push dword [0x1009514]
push 0x27fd
call fcn.01006551
pop ecx
pop ecx
call fcn.01004e11
test eax, eax
je 0x1005884
call edi
sub eax, ebx
cmp eax, 1
jbe 0x100586c
call edi
sub eax, ebx
jmp 0x100586f
xor eax, eax
inc eax
push eax
push 0x27fe
call fcn.01006518
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1005c6d
push 0x27ff
call fcn.01006518
pop ecx
xor eax, eax
jmp 0x1005c6d
push eax
push eax
push 0x1003894
push 0x2791
call fcn.01006518
add esp, 0x10
push 1
jmp 0x10051e5
push esi
push esi
push 0x2800
call fcn.01006518
add esp, 0xc
cmp dword [0x100953c], ebx
je 0x10058ef
push ebx
push 1
push ebx
push esi
push 0x1003600
push dword [ebp - 0x64]
call dword [sym.imp.RpcDiag.dll_RpcDiagnoseError]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x10058ef
push eax
push 0x2832
call fcn.01006518
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorStartEnumeration]
cmp eax, 0x6e1
jne 0x1005916
cmp dword [ebp - 0x5c], ebx
je 0x1005c5f
push dword [ebp - 0x5c]
push dword [ebp - 0x5c]
push 0x1003878
jmp 0x100589d
cmp eax, ebx
je 0x1005929
push eax
push 0x2801
call fcn.01006518
pop ecx
pop ecx
jmp 0x1005900
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorGetNumberOfRecords]
cmp eax, ebx
jne 0x1005bc3
push dword [ebp - 0xa4]
push 0x2802
call fcn.01006518
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
pop ecx
pop ecx
xor edi, edi
push 4
pop ecx
xor eax, eax
mov dword [ebp - 0x160], ecx
mov word [ebp - 0x162], cx
inc eax
lea ecx, [ebp - 0x188]
push ecx
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorGetNextRecord]
cmp eax, 0x6e1
je 0x1005baa
cmp eax, edi
jne 0x1005bb6
cmp dword [ebp - 0x184], edi
je 0x10059c4
push dword [ebp - 0x184]
push 0x2804
call fcn.01006518
pop ecx
pop ecx
push dword [ebp - 0x184]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push dword [ebp - 0x180]
push 0x2805
call fcn.01006518
pop ecx
pop ecx
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x8e]
push eax
movzx eax, word [ebp - 0x90]
push eax
movzx eax, word [ebp - 0x92]
push eax
movzx eax, word [ebp - 0x94]
push eax
movzx eax, word [ebp - 0x9c]
push eax
movzx eax, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x9a]
push eax
push 0x2806
call fcn.01006518
push dword [ebp - 0x16c]
push 0x2807
call fcn.01006518
push dword [ebp - 0x168]
push dword [ebp - 0x168]
push 0x2808
call fcn.01006518
movzx eax, word [ebp - 0x164]
push eax
push 0x2809
call fcn.01006518
movzx eax, word [ebp - 0x162]
push eax
push 0x280a
call fcn.01006518
add esp, 0x44
push dword [ebp - 0x160]
push 0x280b
call fcn.01006518
cmp dword [ebp - 0x160], edi
pop ecx
pop ecx
mov dword [ebp - 0x60], edi
jle 0x100595c
lea esi, [ebp - 0x150]
mov ecx, dword [esi - 8]
mov eax, ecx
dec eax
je 0x1005b76
dec eax
je 0x1005b6d
dec eax
je 0x1005b61
dec eax
je 0x1005b53
dec eax
je 0x1005b3f
dec eax
je 0x1005b33
dec eax
je 0x1005adc
push ecx
push 0x2812
call fcn.01006518
pop ecx
pop ecx
jmp 0x1005b90
xor eax, eax
lea edi, [ebp - 0xbc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx edi, word [esi + 4]
push 0x10
pop eax
cmp di, ax
jae 0x1005af7
movsx eax, di
push eax
push dword [esi]
lea eax, [ebp - 0xbc]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp - 0xb0]
movsx eax, di
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push eax
push 0x2836
call fcn.01006518
add esp, 0x24
xor edi, edi
jmp 0x1005b90
push 0x2811
call fcn.01006518
jmp 0x1005ad6
push dword [esi + 4]
push dword [esi]
push 0x2810
call fcn.01006518
add esp, 0xc
jmp 0x1005b90
movsx eax, word [esi]
push eax
push 0x280f
jmp 0x1005ad0
push dword [esi]
push 0x280e
jmp 0x1005ad0
push dword [esi]
push 0x280d
jmp 0x1005b7d
push dword [esi]
push 0x280c
call fcn.01006518
pop ecx
pop ecx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
add esi, 0x10
cmp eax, dword [ebp - 0x160]
jl 0x1005aa0
jmp 0x100595c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorResetEnumeration]
jmp 0x1005bc3
push eax
push 0x2803
call fcn.01006518
pop ecx
pop ecx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorSaveErrorInfo]
test eax, eax
je 0x1005beb
push eax
push eax
push 0x100384c
jmp 0x100589d
call dword [sym.imp.RPCRT4.dll_RpcErrorClearInformation]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcErrorEndEnumeration]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call dword [sym.imp.RPCRT4.dll_RpcErrorLoadErrorInfo]
test eax, eax
je 0x1005c56
push eax
push eax
push 0x1003820
jmp 0x100589d
xor ecx, ecx
inc ecx
xor edx, edx
mov eax, ecx
div esi
mov edi, eax
mov eax, edx
imul eax, eax, 0x3e8
xor edx, edx
div esi
xor edx, edx
push eax
mov eax, esi
imul eax, eax, 0x3e8
div ecx
push edi
push eax
push ecx
push esi
push 0x282d
call fcn.01006518
add esp, 0x18
cmp dword [ebp - 0x5c], 0
jne 0x1005c6a
mov esi, dword [ebp - 0x70]
cmp esi, 0x6b3
je 0x1005c6a
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005f24
leave
ret