Function at 0x18000b9d0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get user security identifier

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x798], rbx
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov ebx, r8d
mov dword [rsp + 0x74], ebx
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x20], rdx
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x60], rsi
lea r8, [rbp - 0x60]
lea rdx, [0x18006ad20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x18000ba68
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPrivilegeValue_error:__u_n
mov edx, eax
call fcn.18002aa50
nop
cmp qword [rdi + 0x18], 0x10
jb 0x18000ba61
mov rcx, qword [rdi]
call fcn.180027f2c
xor eax, eax
jmp 0x18000c5c4
mov dword [rbp + 8], 1
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0xc], rax
mov dword [rbp + 0x14], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x68]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x10
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000bac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AdjustTokenPrivileges_error:__u_n
jmp 0x18000ba4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x18000bae7
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
call fcn.18002aa50
jmp 0x18000ba52
or r9, 0xffffffffffffffff
lea edx, [r9 + 0x21]
lea rcx, [rbp + 0x300]
test ebx, ebx
je 0x18000bb0f
lea r8, [0x18006adb8]
call fcn.18002a5b4
lea r8, [0x18006adc8]
jmp 0x18000bb22
lea r8, str.ANONYMOUS_LOGON
call fcn.18002a5b4
lea r8, str.Everyone
or r9, 0xffffffffffffffff
lea edx, [r9 + 0x21]
lea rcx, [rbp + 0x2e0]
call fcn.18002a5b4
lea r8, str..
mov rdx, rdi
lea rcx, [rbp + 0x158]
call fcn.18000d380
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000bb57
mov rax, qword [rax]
lea rdx, [rbp + 0x1a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
mov qword [rbp - 0x78], rax
cmp qword [rbp + 0x170], 0x10
jb 0x18000bb84
mov rcx, qword [rbp + 0x158]
call fcn.180027f2c
mov qword [rbp + 0x170], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x168], rsi
mov byte [rbp + 0x158], 0
cmp rbx, 0xffffffffffffffff
jne 0x18000bbc0
mov rcx, rdi
call fcn.180001e20
lea eax, [rbx + 2]
jmp 0x18000c5d3
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
mov qword [rbp], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 8], rsi
mov byte [rbp - 0x18], 0
cmp byte [rbp + 0x1cc], 0
jne 0x18000bbe6
mov r8, rsi
jmp 0x18000bbfb
lea rax, [rbp + 0x1cc]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x18000bbf1
lea rdx, [rbp + 0x1cc]
lea rcx, [rbp - 0x18]
call fcn.180002020
nop
test byte [rbp + 0x1a0], 0x10
je 0x18000bd6b
lea rcx, [rbp - 0x18]
mov rdi, qword [rbp - 0x18]
mov rsi, qword [rbp]
cmp rsi, 0x10
cmovae rcx, rdi
mov r8d, 1
mov rbx, qword [rbp - 8]
cmp rbx, r8
cmovb r8, rbx
test r8, r8
jne 0x18000bc49
xor edx, edx
mov eax, edx
jmp 0x18000bc57
lea rdx, [0x18006a944]
call fcn.18002af50
xor edx, edx
cdqe
test rax, rax
jne 0x18000bc72
cmp rbx, 1
jae 0x18000bc69
or eax, 0xffffffff
jmp 0x18000bc72
mov eax, edx
cmp rbx, 1
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x18000c412
lea rcx, [rbp - 0x18]
cmp rsi, 0x10
cmovae rcx, rdi
mov r8d, 2
cmp rbx, r8
cmovb r8, rbx
test r8, r8
jne 0x18000bca6
mov eax, edx
jmp 0x18000bcb4
lea rdx, [0x18006a95c]
call fcn.18002af50
xor edx, edx
cdqe
test rax, rax
jne 0x18000bccf
cmp rbx, 2
jae 0x18000bcc6
or eax, 0xffffffff
jmp 0x18000bccf
mov eax, edx
cmp rbx, 2
setne al
test eax, eax
sete al
test al, al
sete al
mov rdi, qword [rsp + 0x40]
test al, al
je 0x18000c417
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea r8, [0x18006a9ec]
mov rdx, rdi
lea rcx, [rbp + 0xb8]
call fcn.18000d380
nop
lea r8, [rbp - 0x18]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.18000d290
nop
mov r8d, dword [rsp + 0x74]
mov rdx, rax
mov rcx, qword [rbp - 0x70]
call fcn.18000b9d0
test eax, eax
sete bl
cmp qword [rbp + 0xd0], 0x10
jb 0x18000bd43
mov rcx, qword [rbp + 0xb8]
call fcn.180027f2c
mov qword [rbp + 0xd0], reloc.ACTIVEDS.dll_FreeADsMem
xor esi, esi
mov qword [rbp + 0xc8], rsi
mov byte [rbp + 0xb8], sil
test bl, bl
jne 0x18000c457
jmp 0x18000c417
lea r8, [0x18006aa74]
mov rdx, rdi
lea rcx, [rbp + 0xd8]
call fcn.18000d380
nop
lea r8, [rbp + 0x1cc]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000d300
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000bda0
mov rax, qword [rax]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
mov ebx, eax
cmp qword [rbp + 0x70], 0x10
jb 0x18000bde3
mov rcx, qword [rbp + 0x58]
call fcn.180027f2c
mov qword [rbp + 0x70], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x58], 0
cmp qword [rbp + 0xf0], 0x10
jb 0x18000be09
mov rcx, qword [rbp + 0xd8]
call fcn.180027f2c
mov qword [rbp + reloc.ACTIVEDS.dll_FreeADsMem0], 0xf
mov qword [rbp + 0xe8], rsi
mov byte [rbp + 0xd8], 0
test ebx, ebx
jne 0x18000c374
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000c36c
cmp word [rcx + 4], bx
jbe 0x18000c36c
mov dword [rsp + 0x6c], esi
xor edx, edx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x2c], 8
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xc]
lea rdx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x18000c59f
mov ebx, dword [rbp - 0x2c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18000c575
mov r8d, 2
mov edx, dword [rbp - 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x18000c56c
xor eax, eax
mov edi, eax
mov rbx, qword [rsp + 0x60]
cmp ax, word [rbx + 4]
jae 0x18000c34e
jmp 0x18000bed2
xor eax, eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x5c], eax
mov byte [rbp + 0x320], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x321]
call fcn.1800292e0
mov byte [rbp + 0x430], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x431]
call fcn.1800292e0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0x104
lea r8, [rsp + 0x78]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x18000c549
mov rax, qword [rsp + 0x78]
cmp byte [rax], 2
je 0x18000bf53
lea rcx, str.ACE_ERROR:_not_SYSTEM_AUDIT_ACE_TYPE_n
call fcn.18002aa50
jmp 0x18000c11e
lea rdx, [rax + 8]
mov esi, dword [rax + 4]
mov dword [rsp + 0x68], 0x104
mov dword [rsp + 0x5c], 0x104
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x430]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x320]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x18000c506
lea rax, [rbp + 0x320]
lea r8, [rbp + 0x300]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x18000bfd3
inc rax
test ecx, ecx
jne 0x18000bfc0
test edx, edx
jne 0x18000c0f1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x540]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x18000c0d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000c0d7
mov ecx, dword [rsp + 0x48]
call fcn.18002a67c
mov rbx, rax
test rax, rax
je 0x18000c4b8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x540]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8, rbx
lea rdx, [rbp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x18000c0b4
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9, rbx
mov r8d, esi
mov edx, 2
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_AddAuditAccessAce]
test eax, eax
je 0x18000c486
mov dword [rsp + 0x6c], 1
jmp 0x18000c0cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FAILED:__d_n
call fcn.18002aa50
mov rsi, qword [rsp + 0x50]
mov rcx, rbx
call fcn.180029620
jmp 0x18000c11e
lea rdx, [rbp + 0x2e0]
lea rcx, str.FAILED_to_find__s_n
call fcn.18002aa50
mov rsi, qword [rsp + 0x50]
jmp 0x18000c11e
mov r9, qword [rsp + 0x78]
movzx eax, word [r9 + 2]
mov dword [rsp + 0x20], eax
or r8d, 0xffffffff
mov edx, 2
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x18000c4dc
inc edi
mov rbx, qword [rsp + 0x60]
movzx eax, word [rbx + 4]
cmp edi, eax
jl 0x18000bed0
mov eax, dword [rsp + 0x6c]
mov rdi, qword [rsp + 0x40]
test eax, eax
je 0x18000c353
lea r8, [0x18006ad1c]
mov rdx, rdi
lea rcx, [rbp + 0x118]
call fcn.18000d380
nop
lea r8, [rbp + 0x1cc]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.18000d300
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c17a
mov rax, qword [rax]
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea edx, [rcx + 1]
lea r8d, [rcx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov ebx, eax
cmp qword [rbp + 0xb0], 0x10
jb 0x18000c1b6
mov rcx, qword [rbp + 0x98]
call fcn.180027f2c
mov qword [rbp + 0xb0], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0xa8], 0
mov byte [rbp + 0x98], 0
cmp qword [rbp + 0x130], 0x10
jb 0x18000c1e9
mov rcx, qword [rbp + 0x118]
call fcn.180027f2c
mov qword [rbp + 0x130], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x128], 0
mov byte [rbp + 0x118], 0
mov rdx, rdi
test ebx, ebx
jne 0x18000c2ba
lea r8, [0x18006ad34]
lea rcx, [rbp + 0xf8]
call fcn.18000d380
nop
lea r8, [rbp + 0x1cc]
mov rdx, rax
lea rcx, [rbp + 0x178]
call fcn.18000d300
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c246
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Fixed:__s_n
call fcn.18002aa50
nop
cmp qword [rbp + 0x190], 0x10
jb 0x18000c26c
mov rcx, qword [rbp + 0x178]
call fcn.180027f2c
mov qword [rbp + 0x190], reloc.ACTIVEDS.dll_FreeADsMem
xor ebx, ebx
mov qword [rbp + 0x188], rbx
mov byte [rbp + 0x178], bl
cmp qword [rbp + 0x110], 0x10
jb 0x18000c29c
mov rcx, qword [rbp + 0xf8]
call fcn.180027f2c
mov qword [rbp + 0x110], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x108], rbx
mov byte [rbp + 0xf8], 0
jmp 0x18000c353
lea r8, [0x18006ad7c]
lea rcx, [rbp + 0x18]
call fcn.18000d380
nop
lea r8, [rbp + 0x1cc]
mov rdx, rax
lea rcx, [rbp + 0x138]
call fcn.18000d300
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c2ec
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Failed_to_fix:__s_n
call fcn.18002aa50
nop
cmp qword [rbp + 0x150], 0x10
jb 0x18000c312
mov rcx, qword [rbp + 0x138]
call fcn.180027f2c
mov qword [rbp + 0x150], reloc.ACTIVEDS.dll_FreeADsMem
xor ebx, ebx
mov qword [rbp + 0x148], rbx
mov byte [rbp + 0x138], bl
cmp qword [rbp + 0x30], 0x10
jb 0x18000c33c
mov rcx, qword [rbp + 0x18]
call fcn.180027f2c
mov qword [rbp + 0x30], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x28], rbx
mov byte [rbp + 0x18], 0
jmp 0x18000c353
mov rdi, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000c401
test ebx, ebx
je 0x18000c401
lea r8, [0x18006adb4]
mov rdx, rdi
lea rcx, [rbp + 0x78]
call fcn.18000d380
nop
lea r8, [rbp + 0x1cc]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.18000d300
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c3a6
mov rax, qword [rax]
mov r8, rax
mov edx, ebx
lea rcx, str.fail__d__s_n
call fcn.18002aa50
nop
cmp qword [rbp + 0x50], 0x10
jb 0x18000c3c8
mov rcx, qword [rbp + 0x38]
call fcn.180027f2c
mov qword [rbp + 0x50], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0x38], 0
cmp qword [rbp + 0x90], 0x10
jb 0x18000c3eb
mov rcx, qword [rbp + 0x78]
call fcn.180027f2c
mov qword [rbp + 0x90], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp + 0x88], rsi
mov byte [rbp + 0x78], 0
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18000c417
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000c417
mov rdi, qword [rsp + 0x40]
cmp qword [rbp], 0x10
jb 0x18000c427
mov rcx, qword [rbp - 0x18]
call fcn.180027f2c
mov qword [rbp], reloc.ACTIVEDS.dll_FreeADsMem
xor esi, esi
mov qword [rbp - 8], rsi
mov byte [rbp - 0x18], sil
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18000c5b0
jmp 0x18000bbc0
cmp qword [rbp], 0x10
jb 0x18000c467
mov rcx, qword [rbp - 0x18]
call fcn.180027f2c
mov qword [rbp - 8], rsi
mov qword [rbp], reloc.ACTIVEDS.dll_FreeADsMem
mov byte [rbp - 0x18], 0
mov rcx, rdi
call fcn.180001e20
xor eax, eax
jmp 0x18000c5d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_updated_ACL__d__n
call fcn.18002aa50
mov rcx, rbx
call fcn.180029620
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000c51b
lea rcx, str.memory_failed_n
call fcn.18002aa50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000c51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_add_ACE_to_acl___d__n
call fcn.18002aa50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000c51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_grab_SID___d_
call fcn.18002aa50
nop
cmp qword [rbp], 0x10
jb 0x18000c52b
mov rcx, qword [rbp - 0x18]
call fcn.180027f2c
mov qword [rbp], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 8], 0
mov byte [rbp - 0x18], 0
mov rcx, qword [rsp + 0x40]
jmp 0x18000c47a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x60]
movzx edx, word [rax + 4]
mov r8d, edi
lea rcx, str.ACE_error__d:_d__d__n
call fcn.18002aa50
jmp 0x18000c51b
lea rcx, str.Cant_allocate_new_ACL__exiting_n
jmp 0x18000c57c
lea rcx, [0x18006aec0]
call fcn.18002aa50
nop
cmp qword [rbp], 0x10
jb 0x18000c592
mov rcx, qword [rbp - 0x18]
call fcn.180027f2c
mov qword [rbp - 8], 0
jmp 0x18000c46b
lea rcx, str.Cant_find_ACL_info__exiting_n
call fcn.18002aa50
jmp 0x18000c457
cmp qword [rdi + 0x18], 0x10
jb 0x18000c5bf
mov rcx, qword [rdi]
call fcn.180027f2c
mov eax, 1
mov qword [rdi + 0x18], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rdi + 0x10], rsi
mov byte [rdi], 0
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x798]
add rsp, 0x760
pop rdi
pop rsi
pop rbp
ret