Function at 0x10001170
Capabilities:
Link many functions at runtime
Set registry value

Disassembly:
sub esp, 0x2c0
mov ecx, dword [esp + 0x2c4]
push ebp
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x20006
push esi
push ecx
push 0x80000002
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100011c8
mov eax, ebp
pop esi
pop ebp
add esp, 0x2c0
ret
push ebx
push edi
push str.samsrv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.SamIConnect
push ebx
mov dword [esp + 0x44], ebx
call edi
push str.SamrOpenDomain
push ebx
mov dword [0x1000afbc], eax
call edi
push str.SamrOpenUser
push ebx
mov dword [0x1000afc0], eax
call edi
push str.SamrQueryInformationUser
push ebx
mov dword [0x1000afd4], eax
call edi
push str.SamrEnumerateUsersInDomain
push ebx
mov dword [0x1000afcc], eax
call edi
push str.SamIFree_SAMPR_USER_INFO_BUFFER
push ebx
mov dword [0x1000afc4], eax
call edi
push str.SamIFree_SAMPR_ENUMERATION_BUFFER
push ebx
mov dword [0x1000afc8], eax
call edi
push str.SamrCloseHandle
push ebx
mov dword [0x1000afb8], eax
call edi
mov ecx, dword [0x1000afbc]
mov dword [0x1000afd0], eax
cmp ecx, esi
je 0x100016f6
cmp dword [0x1000afc0], esi
je 0x100016f6
cmp dword [0x1000afd4], esi
je 0x100016f6
cmp dword [0x1000afcc], esi
je 0x100016f6
cmp dword [0x1000afc4], esi
je 0x100016f6
cmp dword [0x1000afc8], esi
je 0x100016f6
cmp dword [0x1000afb8], esi
je 0x100016f6
cmp eax, esi
je 0x100016f6
call sym.LsaExt.dll_initCrypto
test eax, eax
jne 0x100012ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x68]
push str.CryptAcquireContext_failed:_0x_08x
push edx
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push esi
push str.Status
push ecx
jmp 0x10001718
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x4c]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x50]
push 0xf0fff
push eax
push esi
mov dword [esp + 0x5c], 0x18
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp eax, esi
jge 0x10001325
push eax
push str.LsaOpenPolicy_failed:_0x_08x
jmp 0x10001390
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push 5
push edx
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
cmp eax, esi
jge 0x10001373
push eax
lea eax, [esp + 0x68]
push str.LsaQueryInformationPolicy_failed:_0x_08x
push eax
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x10]
dec ecx
push ecx
lea ecx, [esp + 0x68]
push ecx
push 1
push esi
push str.Status
push edx
jmp 0x10001718
push 1
lea eax, [esp + 0x24]
push 0x2000000
push eax
push esi
call dword [0x1000afbc]
cmp eax, esi
jge 0x100013b6
push eax
push str.SamConnect_failed_:_0x_08x
lea ecx, [esp + 0x6c]
push ecx
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
jmp 0x1000170b
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 8]
push eax
push 0xf07ff
push ecx
call dword [0x1000afc0]
cmp eax, esi
jge 0x1000141a
push eax
lea edx, [esp + 0x68]
push str.SamOpenDomain_failed_:_0x_08x
push edx
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push esi
push str.Status
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x1c], esi
jmp 0x1000171e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push 0x3e8
push eax
lea ecx, [esp + 0x54]
push esi
push ecx
push edx
call dword [0x1000afc4]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x38], ebx
je 0x1000148d
cmp ebx, 0x105
je 0x1000148d
push ebx
lea eax, [esp + 0x68]
push str.SamrEnumerateUsersInDomain_failed:_0x_08x
push eax
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x10]
dec ecx
push ecx
lea ecx, [esp + 0x68]
push ecx
push 1
push esi
push str.Status
push edx
call ebp
jmp 0x100016e2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
cmp eax, esi
jle 0x100016d3
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d0]
mov dword [esp + 0x24], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + ebx]
push eax
push 0x2000000
push ecx
call dword [0x1000afd4]
cmp eax, esi
jge 0x1000151d
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 4]
lea edx, [esp + 0x68]
mov ecx, dword [eax + ebx]
push ecx
push str.SamrOpenUser_0x_x__failed:_0x_08x
push edx
call fcn.10001afd
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push esi
push str.Status
push ecx
call ebp
jmp 0x100016b7
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push 0x12
push eax
call dword [0x1000afcc]
cmp eax, esi
mov dword [esp + 0x44], eax
jge 0x10001581
push eax
lea ecx, [esp + 0x68]
push str.SamrQueryInformationUser_failed:_0x_08x
push ecx
call fcn.10001afd
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x64]
not ecx
dec ecx
push ecx
push edx
push 1
push esi
push str.Status
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call dword [0x1000afd0]
mov dword [esp + 0x18], esi
jmp 0x100016b7
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
lea ecx, [eax + ebx]
mov ax, word [eax + ebx + 4]
mov edx, eax
and edx, 0xfffe
cmp dx, 0x200
jbe 0x100015a6
mov eax, 0x100
jmp 0x100015ad
and eax, 0xffff
shr eax, 1
push eax
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x1d4]
push eax
push ecx
call fcn.100018c2
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea edx, [esp + 0x1dc]
mov ecx, dword [eax + ebx]
lea eax, [esp + 0x1dc]
push ecx
push edx
push str._s:_d
push eax
call fcn.10001afd
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, 8
lea edi, [esp + 0x1ac]
mov dword [esp + 0x50], 0x20
push 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2f8]
mov eax, dword [edx + 4]
push ecx
lea edx, [esp + 0x58]
mov ecx, dword [eax + ebx]
lea eax, [esp + 0x1b4]
push ecx
push edx
push eax
call sym.LsaExt.dll_obfuscate
add esp, 0x30
test eax, eax
jne 0x10001674
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push ecx
mov eax, dword [edx + 4]
lea edx, [esp + 0x68]
mov ecx, dword [eax + ebx]
push ecx
push str.Obbfuscate_0x_x__failed:_0x_08x
push edx
call fcn.10001afd
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.Status
push ecx
call ebp
jmp 0x100016b5
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x190]
push edx
mov edx, dword [esp + 0x14]
push eax
xor esi, esi
push 3
lea ecx, [esp + 0x1dc]
push esi
push ecx
push edx
call ebp
mov eax, dword [esp + 0x24]
push 0x12
push eax
call dword [0x1000afc8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
push ecx
call dword [0x1000afd0]
mov dword [esp + 0x18], esi
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x1000149f
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push edx
call dword [0x1000afb8]
mov dword [esp + 0x14], esi
cmp ebx, 0x105
je 0x10001420
mov ebx, dword [esp + 0x3c]
xor ebp, ebp
jmp 0x1000171e
mov edi, str.Failed_to_load_functions.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Failed_to_load_functions.
mov eax, dword [esp + 0x18]
push 1
push esi
push str.Status
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call sym.LsaExt.dll_closeCrypto
cmp dword [esp + 0x18], esi
je 0x10001734
lea ecx, [esp + 0x18]
push ecx
call dword [0x1000afd0]
cmp dword [esp + 0x1c], esi
je 0x10001745
lea edx, [esp + 0x1c]
push edx
call dword [0x1000afd0]
cmp dword [esp + 0x20], esi
je 0x10001756
lea eax, [esp + 0x20]
push eax
call dword [0x1000afd0]
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10001764
push eax
call sub.ADVAPI32.dll_LsaClose
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10001773
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x1000177e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x2c0
ret