joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100201d8
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x100203c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100b6cf0], 0
jne 0x100203a7
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x100203a0
xor eax, eax
push ebp
push 0x10020399
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x10020382
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1002037c
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x100b5d40]
call fcn.10006ac4
mov eax, dword [ebp - 0x24]
call fcn.10003868
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x100202b0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x100b5d44]
call fcn.10006ac4
mov eax, dword [ebp - 0x28]
call fcn.10003868
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x100202e3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x100b5d48]
call fcn.10006ac4
mov eax, dword [ebp - 0x2c]
call fcn.10003868
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10020316
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x10020368
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x10020333
cmp eax, dword [ebp - 0x10]
je 0x10020364
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x10020348
cmp eax, dword [ebp - 0x18]
je 0x10020364
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1002035d
cmp eax, dword [ebp - 0x20]
je 0x10020364
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x10020320
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100203a0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x100b6cf0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100203c9
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.10003438
ret
Function at 0x10021720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10021739
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10021774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10021770
lea ebx, [ebx]
cmp esi, edx
jae 0x10021774
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10021760
cmp esi, edx
jb 0x1002177b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10024250
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082348
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
push dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.MatrixFileIpc.SaveToDisk_sync_d_:_saving_tree_and_emptying_DataIntegrity_value_____s
push eax
call fcn.1003a800
add esp, 0x10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100242c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], 0
je 0x100242d4
mov ecx, esi
call fcn.1002e9f0
mov ecx, dword [esi + 0x1c]
call fcn.1002ff90
lea eax, [ebp + 8]
push str.MatrixFileIpc.SaveToDisk__:_about_to_save_tree
push eax
call fcn.1003a800
add esp, 8
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002431f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, esp
push dword [eax]
call fcn.10022bb0
mov ecx, dword [esi + 0x1c]
call fcn.10025df0
mov eax, dword [esi + 0x1c]
add esp, 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10024367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
push eax
push str._Lock:_failed_releasing__LE_d
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.1002fdf0
add esp, 4
push str.DataIntegrity
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x14]
push str.MatrixFileIpc.SaveToDisk__:_out
push eax
call fcn.1003a800
add esp, 8
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100243b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100298b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
or esi, 0xffffffff
mov ebx, ecx
cmp dword [0x100b0f70], 0
push edi
mov edi, edx
jne 0x100298c8
call fcn.10029810
xor edx, edx
test edi, edi
jle 0x100298ea
mov edi, edi
movzx eax, byte [edx + ebx]
inc edx
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x100b0b70]
cmp edx, edi
jl 0x100298d0
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1002b210
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov ecx, esp
push str.USER_KEY
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x3c]
call fcn.1003dc20
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push dword [eax]
call fcn.1002b5c0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002b28e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1002b29d
cmp ecx, 0x10
jge 0x1002b2af
push 0x10
push str.abcdefghijklmnop
lea ecx, [ebp - 0x30]
call fcn.1002b810
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0x208
mov dword [ebp - 0x28], 0x660e
mov dword [ebp - 0x24], 0x10
movdqu xmm0, xmmword [eax]
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1002b2ea
xor esi, esi
jmp 0x1002b315
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [ebp - 0x38]
push 0
push eax
push 4
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 2
call esi
push 0
push 0x100b0f80
push 1
push dword [ebp - 0x34]
call esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x30]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1002b336
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
Function at 0x1002b360
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082f10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov eax, ecx
mov dword [ebp - 0x28], eax
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x1002b40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.CryptGetKeyParam_failed:__lu_n
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002b527
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
shr edi, 3
push edi
mov dword [ebp - 0x10], edi
call fcn.1006bba0
movdqu xmm0, xmmword [0x100b0f80]
add esp, 4
mov dword [ebp - 0x14], eax
movdqu xmmword [eax], xmm0
push edi
call fcn.1006bba0
xor ebx, ebx
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], ebx
jbe 0x1002b513
mov ecx, dword [ebp - 0x14]
nop
push edi
push ecx
push esi
mov dword [ebp - 0x24], edi
call fcn.1006f6d0
add esp, 0xc
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1002b4c8
mov edi, dword [ebp - 0x10]
xor edx, edx
test edi, edi
je 0x1002b4aa
sub ebx, esi
add esi, edx
lea eax, [ebx + esi]
cmp eax, dword [ebp + 8]
jae 0x1002b4a4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
add eax, edx
add ecx, eax
inc edx
mov al, byte [esi]
mov esi, dword [ebp - 0x1c]
xor byte [ecx], al
cmp edx, edi
jb 0x1002b484
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
lea eax, [edi - 1]
test eax, eax
js 0x1002b4bc
inc byte [eax + ecx]
jne 0x1002b4bc
dec eax
jns 0x1002b4b4
add ebx, edi
mov dword [ebp - 0x18], ebx
cmp ebx, dword [ebp + 8]
jb 0x1002b450
jmp 0x1002b513
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.CryptEncrypt_failed:__lu_n
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002b513
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call fcn.1006ac0c
add esp, 4
push esi
call fcn.1006ac0c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b540
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
mov ebx, edx
push eax
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002b5a9
mov ecx, dword [ebp - 4]
call fcn.1002b210
mov edi, eax
test edi, edi
je 0x1002b59d
sub esp, 8
mov edx, esi
mov ecx, edi
push ebx
call fcn.1002b360
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d440
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push 0x10093064
call esi
mov edi, eax
test edi, edi
je 0x1002d4e6
push str.GetFinalPathNameByHandleW
push 0x10093094
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtQueryObject
push edi
mov dword [0x100b0f90], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x100b0fa0], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x100b0f98], eax
call esi
push 0x100930f8
push edi
mov dword [0x100b0fa4], eax
call esi
push str.ZwClose
push edi
mov dword [0x100b0f9c], eax
call esi
push 0x68
push 0xff
push 0x100b2da8
mov dword [0x100b0fa8], eax
call fcn.1006df00
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x100b2d90
call esi
push 0x100b2d78
call esi
mov dword [0x100b0f94], 1
pop edi
pop esi
ret
Function at 0x1002f5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100833a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100b0b2c]
lea ecx, [ebp - 0x10]
push 0x1008fa88
call fcn.10022bb0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x10
je 0x1002f64b
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 9
or ecx, edx
jge 0x1002f627
push 9
lea ecx, [ebp - 0x10]
call fcn.10023670
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.DataIntegrity
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002f64b
mov esi, 1
jmp 0x1002f64d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002f671
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002fdf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083498
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
call fcn.100394f0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.PathTree:__s_n
push eax
call fcn.1003a800
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002fe60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1002fe81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002ff90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push edi
mov edi, ecx
push 0x1f4
push dword [edi + 0x10]
call ebx
mov edx, eax
mov esi, 1
test edx, edx
je 0x10030079
lea ebx, [ebx]
cmp edx, 0x102
jne 0x1003005c
cmp esi, 1
jle 0x10030040
push esi
push dword [edi]
lea eax, [ebp - 4]
push str.Lock_Tree._s_:_timeout__d_
push eax
call fcn.1003a800
mov edx, dword [ebp - 4]
call fcn.100394f0
push dword [ebp - 4]
lea eax, [ebp - 8]
push str.PathTree:__s_n
push eax
call fcn.1003a800
add esp, 0x1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10030023
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10030040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1f4
push dword [edi + 0x10]
call ebx
mov edx, eax
inc esi
test edx, edx
jne 0x1002ffc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov eax, esp
push esi
push edx
push dword [edi]
push str._Lock_Tree._s_:_unexpected_error____x___d_
push eax
call fcn.1003a800
add esp, 0x14
call fcn.1002fdf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039aa0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10039ae5
xor eax, eax
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10039ad4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 1
push eax
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 0
push eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10039ad4
mov eax, dword [esp + 0xc]
or dword [esp + 0x20], 2
push 0
push 0
push dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10039ad4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, 1
xor ecx, esp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
Function at 0x10039ea0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x10039eef
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10039f97
lea eax, [ebp - 0x14]
push eax
push 0x20008
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10039f90
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0
push 0
push 5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10039f87
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10039f87
push eax
call fcn.1006c1fc
mov esi, eax
add esp, 4
test esi, esi
je 0x10039f85
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10039f77
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x18], eax
push esi
call fcn.1006d370
mov esi, dword [ebp - 0x18]
add esp, 4
jmp 0x10039f87
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
Function at 0x10039fc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.1006df00
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1003a067
test edi, edi
je 0x1003a036
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x1003a044
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1003a057
mov eax, dword [ebp - 4]
mov esi, 1
mov dword [ecx], eax
jmp 0x1003a069
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x1003a069
xor esi, esi
mov edx, dword [ebp + 8]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003a088
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003a0a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x10]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1003a0be
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100842a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100af640]
cmp eax, 0xffffffff
jne 0x1003a42b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x1008fa70
call fcn.10022bb0
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x10095a48
call fcn.10022bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
call fcn.1003a340
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.1003a550
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003a423
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x100af640], ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret