joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10567e6
Capabilities:
Create thread

Disassembly:
push 0xf4
mov eax, 0x10ce4c7
call fcn.010987cc
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 1
push 0x122
mov ebx, 0x100c7a8
push ebx
mov edi, 0x100bfcc
push edi
mov esi, 0x100bf80
push esi
call fcn.01099386
lea ecx, [ebp - 0x50]
call fcn.0109a83a
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 8], ecx
jne 0x10569f0
cmp dword [eax + 0x10], 1
jne 0x10569f0
lea edx, [eax + 0xc]
push edx
push 4
push eax
push 0x1055c07
push ecx
push ecx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x1056918
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
push 0x100c758
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x13a
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109a510
add esp, 0x64
push 1
push 0xff
push 0xb
push 0x13b
push ebx
push edi
push esi
lea ecx, [ebp - 0x100]
call fcn.01099386
push 0
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, eax
call fcn.01099e1f
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push dword [eax]
push ecx
mov ecx, esi
call fcn.01099e1f
lea eax, [ebp - 0x50]
push 0x3008
push eax
call fcn.0109bb37
add esp, 0x64
lea ecx, [ebp - 0xa8]
call fcn.01099436
lea ecx, [ebp - 0x100]
call fcn.01099436
lea ecx, [ebp - 0x50]
call fcn.0109a8f3
mov eax, 0x8007000e
jmp 0x1056a2d
cmp eax, 0xffffffff
jne 0x10569ce
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x1056906
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
push 0x100c758
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x147
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109a510
add esp, 0x64
push 1
push 0xff
push 0xb
push 0x148
push ebx
push edi
push esi
lea ecx, [ebp - 0xa8]
call fcn.01099386
push 0xffffffffffffffff
lea ecx, [ebp - 0x100]
push ecx
mov ecx, eax
call fcn.01099e1f
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push dword [eax]
push ecx
mov ecx, esi
call fcn.01099e1f
lea eax, [ebp - 0x50]
push 0x3008
push eax
call fcn.0109bb37
add esp, 0x64
lea ecx, [ebp - 0x100]
call fcn.01099436
lea ecx, [ebp - 0xa8]
jmp 0x1056901
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x50]
mov byte [esi + 4], al
mov dword [esi + 0x10], 2
call fcn.0109a8f3
xor eax, eax
jmp 0x1056a2d
push dword [eax + 0x10]
push 0x100be74
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x127
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109a510
add esp, 0x64
lea ecx, [ebp - 0x50]
call fcn.0109a8f3
mov eax, 0x8000ffff
call fcn.010988b8
ret 4
Function at 0x1057a95
Capabilities:
Resume thread

Disassembly:
push 0x44
mov eax, 0x10d19b8
call fcn.010987cc
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 1
push 0x1f7
push 0x100d32c
mov ebx, 0x100bfcc
push ebx
mov edi, 0x100bf80
push edi
call fcn.01099386
lea ecx, [ebp - 0x50]
call fcn.0109a83a
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [esi + 8], 0
je 0x1057c4a
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 5], 1
call dword [eax + 0xc]
cmp byte [ebp + 0xc], 0
je 0x1057ba2
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1057ba2
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x100bef0
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 0xb
push 0x20a
push 0x100d32c
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109ce5e
add esp, 0x6c
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100be90
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 0xb
push 0x20d
push 0x100d32c
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109a510
add esp, 0x68
lea ecx, [ebp - 0x50]
mov dword [esi + 0x10], 5
call fcn.0109a8f3
mov eax, 0x8000ffff
call fcn.010988b8
ret 8
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1057c4a
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x100d268
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 0xb
push 0x219
push 0x100d32c
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109ce5e
add esp, 0x6c
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d1f8
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 0xb
push 0x21c
push 0x100d32c
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.0109a510
mov dword [esi + 0x10], 5
add esp, 0x68
mov esi, 0x8000ffff
lea ecx, [ebp - 0x50]
call fcn.0109a8f3
mov eax, esi
jmp 0x1057b9a
xor esi, esi
jmp 0x1057c3b
Function at 0x1071bc6
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x10d19e3
call fcn.0109883f
mov eax, dword [ebp + 8]
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 1
push 0x53
mov ebx, 0x1018a00
push ebx
mov edi, 0x10189ec
push edi
mov esi, 0x1018980
push esi
mov dword [ebp - 0x220], eax
call fcn.01099386
lea ecx, [ebp - 0x260]
call fcn.0109a83a
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1071c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1071c44
and eax, 0xffff
or eax, 0x80070000
push 0x1018958
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 1
push 0x5a
push ebx
push edi
push esi
mov dword [ebp - 0x258], eax
call fcn.01099386
lea eax, [ebp - 0x260]
push eax
call fcn.01043107
add esp, 0x60
push 0x104
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x1071ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1071caa
and eax, 0xffff
or eax, 0x80070000
push 0x1018934
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 1
push 0x60
push ebx
push edi
push esi
mov dword [ebp - 0x258], eax
call fcn.01099386
lea eax, [ebp - 0x260]
push eax
call fcn.01043107
add esp, 0x60
lea ecx, [ebp - 0x260]
call fcn.0109a8f3
call fcn.010988d1
ret 4

Function at 0x1071cf8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret 4

Function at 0x1071d19
Capabilities:
Move file

Disassembly:
push 0x44
mov eax, 0x10d19b8
call fcn.010987cc
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 1
push 0x16b
mov ebx, 0x1018a70
push ebx
mov edi, 0x10189ec
push edi
mov esi, 0x1018980
push esi
call fcn.01099386
lea ecx, [ebp - 0x50]
call fcn.0109a83a
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1071db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1071d84
and eax, 0xffff
or eax, 0x80070000
push 0x1018a54
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 1
push 0x179
push ebx
push edi
push esi
mov dword [ebp - 0x48], eax
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.01043107
add esp, 0x60
lea ecx, [ebp - 0x50]
call fcn.0109a8f3
call fcn.010988b8
ret 8
Function at 0x1071dc9
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x10d19b8
call fcn.010987cc
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 1
push 0x183
mov ebx, 0x1018ae0
push ebx
mov edi, 0x10189ec
push edi
mov esi, 0x1018980
push esi
call fcn.01099386
lea ecx, [ebp - 0x50]
call fcn.0109a83a
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1071e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1071e2f
and eax, 0xffff
or eax, 0x80070000
push 0x1018ac4
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 1
push 0x18b
push ebx
push edi
push esi
mov dword [ebp - 0x48], eax
call fcn.01099386
lea eax, [ebp - 0x50]
push eax
call fcn.01043107
add esp, 0x60
lea ecx, [ebp - 0x50]
call fcn.0109a8f3
call fcn.010988b8
ret 4
Function at 0x1090117
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
mov dword [ebp - 0x238], 0x104
mov dword [ebp - 0x234], 0x10
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
xor eax, eax
pop ecx
push eax
push eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.CLUSAPI.dll_GetClusterResourceState
mov esi, eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, 2
je 0x10901c1
push 0x102adf8
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0xff
push 1
push 0xc84
jmp 0x1090238
test eax, eax
je 0x109021c
push 0xf
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x109021c
push 0x102ada0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0xff
push 1
push 0xc8c
push 0x102ad38
push 0x102a77c
push 0x102a710
call fcn.01099386
push ebx
call fcn.0109a510
add esp, 0x60
mov al, 1
jmp 0x1090257
push 0x102acd0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0xff
push 1
push 0xc88
push 0x102ad38
push 0x102a77c
push 0x102a710
call fcn.01099386
push ebx
call fcn.0109a510
add esp, 0x60
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010987b7
leave
ret 8

Function at 0x109a058
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call sub.VssTrace.DLL_Ordinal_11
cmp eax, dword [esi + 4]
je 0x109a160
and dword [ebp - 0x808], 0
mov dword [esi + 4], eax
lea eax, [ebp - 0x808]
push eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
call sub.VssTrace.DLL_Ordinal_8_1
test eax, eax
je 0x109a0a6
mov eax, dword [ebp - 0x808]
jmp 0x109a0b9
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x109a0b4
call fcn.0109a35e
jmp 0x109a0b9
call sub.VssTrace.DLL_Ordinal_6
mov dword [esi], eax
mov eax, dword [0x10e3224]
cmp eax, dword [esi + 4]
je 0x109a160
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.01099b1d
push dword [esi + 4]
lea eax, [ebp - 0x804]
push dword [0x10e3224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10305a8
push 0x78
push 0x1030588
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x80c], esp
push 0xff
push 0xb
push 0x250
push 0x1030520
push 0x103050c
push 0x10304a8
call fcn.01099386
push esi
call fcn.01099a5d
mov eax, dword [esi + 4]
add esp, 0x7c
mov dword [0x10e3224], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010987b7
leave
ret
Function at 0x109fbee
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push ebx
sub esp, 0x58
mov dword [ebp - 4], esp
mov esi, ecx
mov ecx, esp
push 0xff
push 0xb
push 0x399
push 0x103304c
push 0x1033000
push 0x1032fa0
call fcn.01099386
lea ecx, [ebp - 0x44]
call fcn.0109a83a
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x109fc60
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ebx
setne al
cmp al, bl
sete al
movzx eax, al
push eax
lea ecx, [ebp - 0x44]
call fcn.01046874
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.0109a8f3
pop esi
mov al, bl
pop ebx
leave
ret 4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x109fc6d
push ebx
jmp 0x109fc46
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x109fc42

Function at 0x109ff46
Capabilities:
Get token membership

Disassembly:
push 0x70
mov eax, 0x10d2bb3
call fcn.0109887a
xor ebx, ebx
push ebx
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xff
push 0xb
push 0xdd
push 0x10331c0
mov edi, 0x1033000
push edi
mov esi, 0x1032fa0
push esi
call fcn.01099386
lea ecx, [ebp - 0x7c]
call fcn.0109a83a
or dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], 0x10059a0
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x20
push 2
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x10a0014
push 0x1018c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x109ffea
and eax, 0xffff
or eax, 0x80070000
push eax
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xff
push 0xb
push 0xf9
push 0x10331c0
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x7c]
push eax
call fcn.0109c13c
mov byte [ebp - 4], 2
cmp byte [ebp + 0xc], bl
je 0x10a0041
lea ecx, [ebp - 0x2c]
call fcn.01047340
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
call fcn.0109fcff
cmp al, bl
je 0x10a0041
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
jmp 0x10a0049
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, ebx
jne 0x10a0086
push 0x1033194
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10a006c
and eax, 0xffff
or eax, 0x80070000
push eax
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xff
push 0xb
push 0x119
jmp 0x109ffff
mov dword [ebp - 4], 1
jmp 0x10a014d
cmp dword [ebp - 0x20], ebx
je 0x10a015b
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x74], ebx
lea ecx, [ebp - 0x7c]
jge 0x10a0168
call fcn.0109a60d
cmp dword [ebp - 0x24], ebx
setne al
movzx eax, al
push eax
call fcn.01046874
lea ecx, [ebp - 0x2c]
mov bl, al
call fcn.0104a1b7
lea ecx, [ebp - 0x7c]
call fcn.0109a8f3
mov al, bl
call fcn.010988e5
ret 8
Function at 0x10a158b
Capabilities:
Get user security identifier

Disassembly:
push 0x64
mov eax, 0x10d2d69
call fcn.010987cc
mov dword [ebp - 0x20], ecx
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0xff
push 0xb
push 0x563
mov ebx, 0x1033db8
push ebx
mov edi, 0x1033000
push edi
mov esi, 0x1032fa0
push esi
call fcn.01099386
lea ecx, [ebp - 0x70]
call fcn.0109a83a
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x1005a68
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x1005a68
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x10a178b
cmp word [ecx], ax
je 0x10a178b
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jne 0x10a1731
cmp dword [ebp - 0x14], ecx
je 0x10a1731
cmp dword [ebp - 0x10], ecx
je 0x10a1731
cmp eax, 0x534
jne 0x10a1685
push dword [ebp + 8]
push 0x1033d08
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x57e
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x70]
push eax
call fcn.0109a510
add esp, 0x64
jmp 0x10a176b
cmp eax, 0x7a
je 0x10a16c0
push eax
push dword [ebp + 8]
push 0x1033c50
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x583
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x70]
push eax
call fcn.0109a510
add esp, 0x68
jmp 0x10a176b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.0104a2b5
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x30]
call fcn.0104a2b5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10a1721
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1033bb8
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x595
jmp 0x10a16a7
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.010a0d4e
jmp 0x10a176b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push dword [ebp + 8]
push 0x1033ac0
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x579
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x70]
push eax
call fcn.0109a510
add esp, 0x74
lea ecx, [ebp - 0x30]
call fcn.0104a17d
lea ecx, [ebp - 0x28]
call fcn.0104a17d
lea ecx, [ebp - 0x70]
call fcn.0109a8f3
call fcn.010988b8
ret 8
push 0x1033a88
push 0x8000ffff
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x572
push ebx
push edi
push esi
call fcn.01099386
lea eax, [ebp - 0x70]
push eax
call fcn.0109b1b1
int3
Function at 0x10a1ce5
Capabilities:
Compare security identifiers

Disassembly:
push 0x60
mov eax, 0x10d2df8
call fcn.010987cc
mov esi, ecx
xor edi, edi
push edi
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0xff
push 0xb
push 0x6dc
push 0x1033fb0
push 0x1033000
mov ebx, 0x1032fa0
push ebx
call fcn.01099386
lea ecx, [ebp - 0x6c]
call fcn.0109a83a
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
push 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x10]
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
and dword [ebp - 0x14], 0
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 0
jbe 0x10a1ea5
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
xor edx, edx
sub ecx, edx
je 0x10a1e71
dec ecx
jne 0x10a1e96
add eax, 8
push eax
push dword [ebp + 8]
cmp dword [ebp - 0x14], edx
jne 0x10a1e5f
call edi
test eax, eax
je 0x10a1e96
mov byte [ebp - 0xe], 1
lea ecx, [ebp - 0x6c]
call fcn.0109a35e
test eax, eax
je 0x10a1e4f
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1005a68
call fcn.01047304
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10a1e47
cmp byte [ebp - 0xd], 0
je 0x10a1df2
cmp byte [ebp - 0xe], 0
mov ecx, 0x1033fa0
je 0x10a1df7
mov ecx, 0x1033f90
cmp byte [ebp - 0xd], 0
jne 0x10a1e08
cmp byte [ebp - 0xe], 0
mov eax, 0x1033f78
je 0x10a1e0d
mov eax, 0x1033f60
push ecx
push eax
push dword [ebp - 0x18]
push 0x1033f20
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 8], esp
push 0xff
push 0xb
push 0x736
push 0x1033fb0
push 0x1033000
push ebx
call fcn.01099386
lea eax, [ebp - 0x6c]
push eax
call fcn.0109a510
add esp, 0x6c
lea ecx, [ebp - 0x1c]
call fcn.0104a17d
cmp byte [ebp - 0xd], 0
je 0x10a1eb7
cmp byte [ebp - 0xe], 0
jne 0x10a1eb7
mov al, 1
jmp 0x10a1eb9
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.010a0fd2
test al, al
jmp 0x10a1da4
add eax, 8
push eax
push dword [ebp + 8]
cmp dword [ebp - 0x14], edx
jne 0x10a1e83
call edi
test eax, eax
jmp 0x10a1e90
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.010a0fd2
test al, al
je 0x10a1e96
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jb 0x10a1d69
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jb 0x10a1d5b
jmp 0x10a1dae
xor al, al
push eax
lea ecx, [ebp - 0x6c]
call fcn.01046874
lea ecx, [ebp - 0x6c]
mov bl, al
call fcn.0109a8f3
mov al, bl
call fcn.010988b8
ret 4
Function at 0x10a2f21
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x258
mov eax, 0x10d2f0f
call fcn.0109883f
mov esi, dword [ebp + 8]
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 4
push 0x469
push 0x1034848
mov ebx, 0x1034370
push ebx
mov edi, 0x1034300
push edi
call fcn.01099386
lea ecx, [ebp - 0x264]
call fcn.0109a83a
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], 0x1005a68
mov byte [ebp - 4], 1
cmp word [esi], ax
jne 0x10a2fb9
push eax
lea ecx, [ebp - 0x264]
call fcn.01046874
lea ecx, [ebp - 0x224]
mov bl, al
call fcn.0104a17d
lea ecx, [ebp - 0x264]
call fcn.0109a8f3
mov al, bl
call fcn.010988d1
ret 4
push esi
lea ecx, [ebp - 0x224]
call fcn.0104b259
mov esi, dword [ebp - 0x220]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a2fd0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x10a3000
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a2feb
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10a305d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10347f8
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 4
push 0x47f
push 0x1034848
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x264]
push eax
call fcn.0109a510
add esp, 0x68
push 0
jmp 0x10a2f8c
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a3066
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x10a30a0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a3088
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x21a], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a30a5
jmp 0x10a3143
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10a3056
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10a3115
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10347a8
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 4
push 0x49e
push 0x1034848
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x264]
push eax
call fcn.0109a510
add esp, 0x68
jmp 0x10a311c
test eax, 0x400
jne 0x10a3155
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x10a3056
xor ecx, ecx
mov word [eax], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a3139
sub eax, edx
sar eax, 1
cmp eax, 3
jae 0x10a30b4
jmp 0x10a3056
push esi
push 0x1034774
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xff
push 4
push 0x4a2
push 0x1034848
push ebx
push edi
call fcn.01099386
lea eax, [ebp - 0x264]
push eax
call fcn.0109a510
add esp, 0x64
push 1
jmp 0x10a2f8c