Function at 0x1012e76
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
cmp dword [ebp + 0xc], 7
jne 0x1012f7b
jmp 0x101d3fd
mov dword [ebp - 0x68], 0x80
jmp 0x1013066
push 0xc4
push 0x1013170
call fcn.010027c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x94], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x5c], 0x57
mov edx, dword [ebx + 4]
mov dword [ebp - 0x70], edx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x88], esi
mov edx, dword [ebx + 8]
mov dword [ebp - 0x64], edx
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 4], edx
mov dword [eax], 0xc000006d
mov dword [ecx], 0xc00000e5
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call fcn.010133f1
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x101d17d
cmp dword [ebp - 0xac], 0
je 0x1012f7b
mov ecx, dword [ebp - 0x64]
cmp ecx, 4
jb 0x101d1be
mov eax, dword [esi]
cmp eax, 0xa
jg 0x101d354
je 0x101d4bb
dec eax
dec eax
je 0x100a151
sub eax, 4
je 0x100a151
dec eax
jne 0x101d204
cmp dword [ebp + 0xc], 7
jne 0x101d2d4
cmp ecx, 0x24
jb 0x101d319
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x20], eax
push 0x14
call fcn.01001fd2
mov dword [ebp - 0x60], eax
test eax, eax
je 0x101d29b
push 2
pop ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x60]
mov dword [eax + 8], 0xc0000007
mov eax, dword [ebp - 0x60]
mov edx, dword [0x1040828]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x60]
mov dword [eax + 0x10], 7
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x74], 0x10
mov word [ebp - 0x2c], cx
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 0x28], 0x7f
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
jne 0x101d504
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
push esi
call sub.SspiCli.dll_SeciAllocateAndSetIPAddress
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call fcn.010132dc
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x101d5e6
push 0x1013164
push 8
lea eax, [ebp - 0x58]
push eax
call fcn.01013366
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntdll.dll_NtAllocateLocallyUniqueId]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
test eax, eax
jl 0x101d61c
cmp dword [ebp + 0xc], 2
je 0x100a160
cmp dword [ebp + 0xc], 0xa
je 0x100a160
test byte [ebx], 1
jne 0x101d65c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x68]
call sub.SspiCli.dll_SeciAllocateAndSetCallFlags
push 0x1013358
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
mov eax, dword [0x1040184]
mov edi, 0x1040184
cmp eax, edi
je 0x10130bc
test dword [eax + 0x1c], 0x1000
je 0x10130bc
cmp byte [eax + 0x19], 4
jb 0x10130bc
push 0x1001f50
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov ebx, dword [ebp - 0xa8]
push ebx
push dword [ebp - 0xa4]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x88]
push dword [ebp - 0x70]
push dword [ebp + 0xc]
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x8c]
call sub.SspiCli.dll_LsaLogonUser
mov esi, dword [ebp - 0x78]
mov dword [esi], eax
mov eax, dword [0x1040184]
cmp eax, edi
je 0x101313d
test dword [eax + 0x1c], 0x1000
je 0x101313d
cmp byte [eax + 0x19], 4
jb 0x101313d
push 0x1001f50
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov eax, dword [0x1040184]
mov ecx, dword [esi]
test ecx, ecx
jl 0x1014d47
and dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.010131b5
mov eax, dword [ebp - 0x5c]
call fcn.01002808
ret 0x2c
cmp eax, edi
je 0x1014d6f
test dword [eax + 0x1c], 0x1000
je 0x1014d6f
cmp byte [eax + 0x19], 2
jb 0x1014d6f
push dword [ebx]
push ecx
push 0x1001f50
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x5c], eax
jmp 0x101314b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push dword [ebp - 0x5c]
push 0x1001f50
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x101314b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push ecx
push 0x1001f50
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x101314b
dec eax
jne 0x1012f7b
cmp dword [ebp + 0xc], 7
je 0x101d24b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0xe
jmp 0x101d309
cmp ecx, 0x1c
jae 0x101d28b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push ecx
push 0x1001f50
push 0xf
jmp 0x101d1f4
mov eax, dword [edi]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x18], eax
jmp 0x1012f7b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101d2c8
test dword [eax + 0x1c], 0x1000
je 0x101d2c8
cmp byte [eax + 0x19], 2
jb 0x101d2c8
push 0x1001f50
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov dword [ebp - 0x5c], 0xe
jmp 0x101314b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x101314b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push ecx
push 0x1001f50
push 0xd
jmp 0x101d1f4
sub eax, 0xb
je 0x101d430
dec eax
dec eax
je 0x100a151
dec eax
dec eax
jne 0x1012f7b
cmp dword [ebp + 0xc], 7
je 0x101d3ad
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0x10
jmp 0x101d309
cmp ecx, 0x30
jae 0x101d3ed
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push ecx
push 0x1001f50
push 0x11
jmp 0x101d1f4
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x2c], eax
jmp 0x1012f7b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0x15
jmp 0x101d309
cmp dword [ebp + 0xc], 7
je 0x101d470
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0x12
jmp 0x101d309
cmp ecx, 0x20
jae 0x101d4b0
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push ecx
push 0x1001f50
push 0x13
jmp 0x101d1f4
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x1c], eax
push ecx
push esi
call fcn.0102ade9
test eax, eax
jne 0x1012f7b
mov dword [ebp - 0x5c], 0x57
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push 0x1001f50
push 0x14
jmp 0x101d309
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 8]
call fcn.010029fc
cmp eax, 3
je 0x1012ffe
and dword [ebp - 0xa0], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
push eax
push 0x20
lea eax, [ebp - 0xcc]
push eax
push 0x1d
push 0xffffffffffffffff
push 0
call sub.WINSTA.dll_WinStationQueryInformationW
movzx eax, al
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x25], 0
test eax, eax
je 0x1012ffe
mov ax, word [ebp - 0xcc]
movzx ecx, ax
dec ecx
dec ecx
je 0x101d5b4
sub ecx, 0x15
jne 0x1012ffe
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x44], eax
mov ax, word [ebp - 0xc8]
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0xc0]
lea edi, [ebp - 0x40]
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 esi, [ebp - 0x48]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x74], 0x1c
jmp 0x1012ffe
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0xc8]
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0xc4]
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], ah
mov al, byte [ebp - 0xc2]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0xc1]
mov byte [ebp - 0x25], al
jmp 0x1012ffe
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push dword [ebp - 0x5c]
push 0x1001f50
push 0x17
jmp 0x101d1ae
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101314b
test dword [eax + 0x1c], 0x1000
je 0x101314b
cmp byte [eax + 0x19], 2
jb 0x101314b
push dword [ebp - 0x5c]
push 0x1001f50
push 0x18
jmp 0x101d1ae
or dword [ebp - 0x68], 0x100
jmp 0x101306f