joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e420
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x421946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi + 4]
mov dword [esi], vtable.VUnknown_class_ISynchObject_.0
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esi + 8]
mov dword [esp + 0x68], 0
mov ecx, edi
call fcn.0040c5c0
lea ebp, [esi + 0x4c]
push 0
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.00409e80
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x14]
push 0
push edx
mov byte [esp + 0x74], 2
mov dword [esi], vtable.VMutex.0
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
mov ecx, ebp
call fcn.00409ed0
mov eax, dword [0x42d8b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x24]
call fcn.0040c510
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
push ecx
mov ecx, edi
call fcn.0040c9c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 2
call fcn.0040c7f0
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x60
ret 8

Function at 0x40eb10
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x40eb2e
test ecx, ecx
je 0x40eb2e
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
ret
xor edx, edx
cmp eax, ecx
sete dl
mov al, dl
ret
Function at 0x40fe80
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
call fcn.00408dd0
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ff58
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push 1
push edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ff40
mov eax, dword [ebp - 0x10]
add eax, 3
and al, 0xfc
call fcn.00420160
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edi, esp
push eax
push ecx
push edi
push 1
push edx
call ebx
test eax, eax
jne 0x40ff40
mov eax, dword [0x42d8b8]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c510
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], edi
push ecx
mov ecx, esi
call fcn.0040c9c0
or ebx, 0xffffffff
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
call fcn.0040c7f0
jmp 0x40ff43
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40ff95
xor al, al
jmp 0x41004c
mov eax, dword [0x42d8b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c510
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 1
push ecx
mov ecx, esi
call fcn.0040c9c0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c7f0
xor al, al
jmp 0x41004c
mov edx, dword [edi]
lea eax, [ebp - 0x10]
push edx
push eax
call fcn.004177d0
add esp, 8
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 2
call fcn.00408480
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00408300
push 3
push 2
push 0x10000000
lea ecx, [ebp - 0x7c]
push str.CURRENT_USER
push ecx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov edx, dword [0x42d8b8]
lea eax, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x7c]
push 0
push ecx
push 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040c510
lea edx, [ebp - 0xc0]
mov ecx, esi
push edx
mov dword [ebp - 4], 3
call fcn.0040c9c0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], ebx
call fcn.0040c7f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x410035
xor al, al
jmp 0x41004c
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0040fc50
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xcc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push 0
lea ecx, [esp + 0x10]
call fcn.00405fd0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.00405fd0
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
mov byte [esp + 0x28], 1
call fcn.00417ac0
lea edx, [esp + 0x30]
push edx
call fcn.00410910
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00406e30
test eax, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
sete bl
call fcn.00406300
test bl, bl
je 0x4107fb
push 0
push 0xffffffffffffffff
push 0x42d028
lea ecx, [esp + 0x30]
call fcn.00406140
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x14]
mov bl, 3
push ecx
push edx
mov byte [esp + 0x28], bl
call fcn.00417be0
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.00406480
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.00406300
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.00406300
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00406300
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00406300
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x410910
Capabilities:
Get hostname

Disassembly:
push ecx
mov cl, byte [0x42da90]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x410946
or cl, al
push 0
mov byte [0x42da90], cl
mov ecx, 0x42da8c
call fcn.00405fd0
push 0x4109a0
call fcn.0041fdcc
add esp, 4
push esi
mov ecx, 0x42da8c
call fcn.00406dc0
test al, al
je 0x410981
lea eax, [esp + 4]
mov ecx, 0x42da8c
push eax
push 0x10
mov dword [esp + 0xc], 0x10
call fcn.00406370
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
mov ecx, 0x42da8c
call fcn.00406d80
mov esi, dword [esp + 0xc]
push 0x42da8c
mov ecx, esi
call fcn.00406090
mov eax, esi
pop esi
pop ecx
ret
Function at 0x411950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x411971
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xc], 1
mov eax, dword [edi + 4]
test eax, eax
jle 0x4119a9
test esi, esi
jl 0x4119cd
cmp esi, eax
jge 0x4119cd
mov eax, dword [edi + 8]
lea ecx, [eax + esi*4]
call fcn.00408d70
mov ecx, dword [ebp - 0xc]
inc esi
lea edx, [ecx + eax + 1]
mov eax, dword [edi + 4]
cmp esi, eax
mov dword [ebp - 0xc], edx
jl 0x411984
mov eax, dword [ebp - 0xc]
add eax, 3
and al, 0xfc
call fcn.00420160
mov eax, dword [edi + 4]
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 0x10], ecx
test eax, eax
mov dword [ebp - 8], ecx
jle 0x411a57
jmp 0x4119e4
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 1]
push 0x4265f0
push ecx
mov byte [ebp - 1], al
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 0xc]
test ebx, ebx
jl 0x411a9c
cmp ebx, eax
jge 0x411a9c
mov ecx, dword [edi + 8]
lea eax, [ebx*4]
add ecx, eax
call fcn.00409350
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jl 0x411a88
mov esi, dword [ebp + 0xc]
cmp ebx, dword [esi + 4]
jge 0x411a88
mov ecx, dword [esi + 8]
lea eax, [ebx*4]
add ecx, eax
call fcn.00408d70
mov ecx, dword [ebp - 8]
inc ebx
lea edx, [ecx + eax + 1]
mov eax, dword [esi + 4]
cmp ebx, eax
mov dword [ebp - 8], edx
jl 0x4119e1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov byte [edx], 0
mov edx, dword [ebp - 0x14]
push 7
push 0
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0x20]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 1]
push 0x4265f0
push ecx
mov byte [ebp - 1], al
call sub.MSVCRT.dll__CxxThrowException
mov dl, byte [ebp + 0xf]
lea eax, [ebp - 2]
push 0x4265f0
push eax
mov byte [ebp - 2], dl
call sub.MSVCRT.dll__CxxThrowException
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
call fcn.0040e8f0
mov esi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, edi
call dword [edx + 0x20]
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, bl
pop esi
pop ebx
ret 8
Function at 0x411b28
Capabilities:
Access peb ldr_data
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x421f48
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x411b46
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebx
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push edi
push esi
mov bl, 1
call fcn.00411420
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.00411fe0
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], bl
call fcn.00407fd0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call dword [edx + 8]
test al, al
je 0x411bd2
test bl, bl
je 0x411bb8
lea ecx, [esp + 0x38]
call fcn.00409350
push eax
lea ecx, [esp + 0x10]
call fcn.00411b10
test al, al
je 0x411bb8
mov bl, 1
jmp 0x411bba
xor bl, bl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call dword [edx + 8]
test al, al
jne 0x411b99
test bl, bl
je 0x411be5
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x411be5
mov bl, 1
jmp 0x411be7
xor bl, bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.00408300
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0041a570
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004114c0
mov ecx, dword [esp + 0x28]
mov al, bl
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x411ea5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x411fc8
mov ebx, dword [esp + 0x20]
mov eax, 0x20
mov dword [esp + 0x10], eax
mov cl, byte [esi + 8]
test cl, cl
je 0x411f47
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00408370
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [0x42da9c]
mov edi, eax
test ecx, ecx
je 0x411f2c
mov ebp, dword [esp + 0x20]
xor edx, edx
mov eax, ebp
div ecx
test edx, edx
jl 0x411f9a
cmp edx, ecx
jge 0x411f9a
mov eax, dword [0x42daa0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x411f2c
cmp dword [eax], ebp
je 0x411f38
mov eax, dword [eax + 8]
test eax, eax
jne 0x411f21
mov eax, dword [esp + 0x24]
mov dword [eax], 0xffffffff
jmp 0x411f7a
test eax, eax
je 0x411f2c
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
jmp 0x411f7a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.00408370
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 0x24]
mov edi, eax
mov dword [edx], 4
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00408d80
cmp edi, 0xea
jne 0x411fb1
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x10], eax
jmp 0x411ec1
mov cl, byte [esp + 0x24]
lea edx, [esp + 0x24]
push 0x428258
push edx
mov byte [esp + 0x2c], cl
call sub.MSVCRT.dll__CxxThrowException
test edi, edi
jne 0x411fc8
mov eax, dword [esi + 0xc]
pop edi
inc eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8

Function at 0x411fe0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x421fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0041a540
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x24]
mov dword [esp + 0x18], 0
mov dword [esi + 4], eax
mov byte [esi + 8], cl
mov dword [esi + 0xc], 0xffffffff
mov dword [esi], vtable.VRegistryKey::ReverseIterator.0
call fcn.00412220
push 0
push 0
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov al, byte [esi + 8]
test al, al
je 0x412075
mov edx, dword [esp + 4]
mov eax, esi
dec edx
mov dword [esi + 0xc], edx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4120e5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x412213
mov ecx, dword [esi + 0xc]
mov eax, 0x20
test ecx, ecx
mov dword [esp + 0x10], eax
jl 0x412213
mov ebx, dword [esp + 0x20]
mov cl, byte [esi + 8]
test cl, cl
je 0x412192
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00408370
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [0x42da9c]
mov edi, eax
test ecx, ecx
je 0x412177
mov ebp, dword [esp + 0x20]
xor edx, edx
mov eax, ebp
div ecx
test edx, edx
jl 0x4121e5
cmp edx, ecx
jge 0x4121e5
mov eax, dword [0x42daa0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x412177
cmp dword [eax], ebp
je 0x412183
mov eax, dword [eax + 8]
test eax, eax
jne 0x41216c
mov eax, dword [esp + 0x24]
mov dword [eax], 0xffffffff
jmp 0x4121c5
test eax, eax
je 0x412177
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
jmp 0x4121c5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.00408370
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 0x24]
mov edi, eax
mov dword [edx], 4
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00408d80
cmp edi, 0xea
jne 0x4121fc
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x10], eax
jmp 0x41210c
mov cl, byte [esp + 0x24]
lea edx, [esp + 0x24]
push 0x428258
push edx
mov byte [esp + 0x2c], cl
call sub.MSVCRT.dll__CxxThrowException
test edi, edi
jne 0x412213
mov eax, dword [esi + 0xc]
pop edi
dec eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x4128b0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00413540
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x13]
push ecx
push edx
lea ecx, [esp + 0x24]
xor bl, bl
call fcn.00413700
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
test al, al
je 0x412964
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [esp + 0x18]
push edi
push eax
call ebp
test eax, eax
je 0x412943
lea ecx, [esp + 0x1c]
call fcn.004136a0
mov cl, byte [esp + 0x34]
mov dl, byte [eax]
cmp dl, cl
jne 0x412943
mov al, byte [esp + 0x13]
test al, al
jne 0x41291c
mov eax, dword [esp + 0x14]
mov bl, 1
or dword [eax], esi
cmp byte [esp + 0x13], 1
jne 0x412943
mov eax, dword [esp + 0x14]
mov edx, esi
not edx
mov ecx, dword [eax]
and ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x412943
lea ecx, [esp + 0x1c]
call fcn.00413750
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00413700
test al, al
jne 0x4128ed
test bl, bl
pop ebp
jne 0x412976
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
push 0
lea ecx, [esp + 0x28]
call fcn.00413790
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc

Function at 0x412ae0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ecx
lea ecx, [esp + 0x10]
call fcn.00413540
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 7]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00413700
test al, al
je 0x412b80
push ebx
mov bl, byte [esp + 0x28]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push edi
push eax
call ebp
test eax, eax
je 0x412b60
lea ecx, [esp + 0x1c]
call fcn.004136a0
cmp byte [eax], bl
jne 0x412b60
mov al, byte [esp + 0x13]
test al, al
jne 0x412b60
mov eax, dword [esp + 0x14]
mov ecx, esi
not ecx
mov edx, dword [eax]
and edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x412b60
lea ecx, [esp + 0x1c]
call fcn.00413750
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x17]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00413700
test al, al
jne 0x412b1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x412cf0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00413540
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x13]
push ecx
push edx
lea ecx, [esp + 0x24]
xor bl, bl
call fcn.00413700
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
test al, al
je 0x412da4
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [esp + 0x18]
push edi
push eax
call ebp
test eax, eax
je 0x412d83
lea ecx, [esp + 0x1c]
call fcn.004136a0
mov cl, byte [esp + 0x34]
mov dl, byte [eax]
cmp dl, cl
jne 0x412d83
cmp byte [esp + 0x13], 1
jne 0x412d5b
mov eax, dword [esp + 0x14]
mov bl, 1
or dword [eax], esi
mov al, byte [esp + 0x13]
test al, al
jne 0x412d83
mov eax, dword [esp + 0x14]
mov edx, esi
not edx
mov ecx, dword [eax]
and ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x412d83
lea ecx, [esp + 0x1c]
call fcn.00413750
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00413700
test al, al
jne 0x412d2d
test bl, bl
pop ebp
jne 0x412dc8
lea ecx, [esp + 0x18]
call fcn.00413740
lea ecx, [esp + 0x18]
call fcn.00413830
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.00413790
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc

Function at 0x412f40
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ecx
lea ecx, [esp + 0x10]
call fcn.00413540
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 7]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00413700
test al, al
je 0x412fdf
push ebx
mov bl, byte [esp + 0x28]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push edi
push eax
call ebp
test eax, eax
je 0x412fbf
lea ecx, [esp + 0x1c]
call fcn.004136a0
cmp byte [eax], bl
jne 0x412fbf
cmp byte [esp + 0x13], 1
jne 0x412fbf
mov eax, dword [esp + 0x14]
mov ecx, esi
not ecx
mov edx, dword [eax]
and edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x412fbf
lea ecx, [esp + 0x1c]
call fcn.00413750
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x17]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00413700
test al, al
jne 0x412f7f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x413b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4221db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push edi
mov dword [esi], ebx
mov eax, dword [0x42d8b8]
lea edi, [esi + 4]
push eax
push ebx
mov ecx, edi
call fcn.0040c510
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], ebx
cmp edx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jle 0x413bca
push ebp
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
mov ebx, edx
mov ebp, dword [eax + 4]
add eax, 4
mov dword [ecx], ebp
add ecx, 4
dec ebx
jne 0x413bbb
pop ebp
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edx
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x413c29
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call dword [ebx + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413e70
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x4140c0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
test eax, eax
je 0x4140e0
mov ecx, dword [edx]
test ecx, ecx
je 0x4140e0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
ret 4
push esi
mov esi, dword [edx]
xor ecx, ecx
cmp eax, esi
sete cl
mov al, cl
pop esi
ret 4