joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1087110
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1087164
call fcn.01091f43
push eax
push 0xb6b00ca
mov dword [ebp - 8], eax
call fcn.0108c55a
jmp 0x1087208
cmp dword [ebp - 0xc], ebx
je 0x1087208
cmp dword [ebp - 4], ebx
je 0x1087208
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x10871a1
call fcn.01091f43
push eax
push 0xb7a00ca
jmp 0x10871f1
cmp dword [ebp - 0x24], ebx
jbe 0x1087207
xor edi, edi
cmp dword [ebp - 0x24], ebx
jbe 0x1087202
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x10871e6
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
cmp cl, bl
je 0x10871cd
cmp cl, 1
jne 0x10871de
push dword [ebp + 0xc]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10871fb
inc edi
cmp edi, dword [ebp - 0x24]
jb 0x10871ad
jmp 0x1087202
call fcn.01091f43
push eax
push 0xb8500ca
mov dword [ebp - 8], eax
call fcn.0108c55a
jmp 0x1087207
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0xc
Function at 0x1088dfb
Capabilities:
Get user security identifier

Disassembly:
push 0x320
mov eax, 0x10c227e
call fcn.01077ea8
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x31c]
push eax
push 2
call fcn.0108da1b
mov esi, eax
test esi, esi
je 0x1088e40
push esi
push 0x80600ca
jmp 0x1088f01
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x31c]
mov dword [ebp - 0x324], 0x100
push 0
mov dword [ebp - 0x328], 0x104
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1088ea3
call fcn.01091f43
mov esi, eax
push esi
push 0x81600ca
push dword [ebp - 0x31c]
call fcn.0108c595
jmp 0x1088f06
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.010ad131
test eax, eax
jne 0x1088ec9
call fcn.01091f43
mov esi, eax
push esi
push 0x81c00ca
jmp 0x1088f01
push edi
push dword [ebp - 0x320]
push 0x101b2e0
call fcn.010b3db3
mov esi, eax
test esi, esi
je 0x1088ee8
push esi
push 0x82300ca
jmp 0x1088f01
push ebx
push 0
push 0x101b168
call fcn.010b3db3
mov esi, eax
test esi, esi
je 0x1088f06
push esi
push 0x82900ca
call fcn.0108c55a
cmp dword [ebp - 0x320], 0
je 0x1088f1b
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.01030b90
mov eax, esi
call fcn.01077f3a
ret 8
Function at 0x108a68f
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x10c2377
call fcn.01077e35
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.010b3c97
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x20], edi
setne al
cmp byte [esi + 0x19], 0
mov dword [ebp + 0x20], eax
je 0x108a6c3
or dword [ebp + 0x20], 2
push 0x7f02
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 0x20]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
call sub.certcli.dll_Ordinal_210
push 0x7f00
push 0
mov dword [ebp + 0x20], eax
call edi
push eax
call ebx
cmp dword [ebp + 0x20], 0
je 0x108a71a
push dword [ebp + 0x20]
and dword [ebp - 0x14], 0
push 0x1f300ce
call fcn.0108c55a
mov ecx, dword [ebp + 0x24]
xor eax, eax
cmp eax, dword [ebp - 0x14]
sbb eax, eax
neg eax
push eax
push dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebx, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x108a63b
push 0xfffffffffffffffc
push ebx
call edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x1c]
push 0xffffffffffffffeb
push ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
call edi
push esi
push 0xffffffffffffffeb
push dword [ebp + 0x1c]
call edi
push 0x3ce
lea ecx, [ebp - 0x1c]
call fcn.010b3ca6
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x108a783
mov eax, 0x1002068
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov edi, 0x3cf
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x10], 0
je 0x108a7b9
push dword [ebp - 0x10]
call sub.CRYPTUI.dll_CryptUIDlgFreeCAContext
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010b3b20
xor eax, eax
call fcn.01077f21
ret 0x20
Function at 0x108a7d4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor edi, edi
push edi
push edi
push 0xe
push dword [ebp + 8]
mov dword [eax], edi
call esi
mov ebx, eax
test ebx, ebx
jle 0x108a8b3
lea eax, [ebx + ebx + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x108a81b
mov eax, 0x8007000e
push eax
push 0x5f00ce
jmp 0x108a836
push edi
lea eax, [ebx + 1]
push eax
push 0xd
push dword [ebp + 8]
call esi
cmp ebx, eax
je 0x108a83f
mov eax, 0x80070018
push eax
push 0x6500ce
mov esi, eax
call fcn.0108c55a
jmp 0x108a8b5
mov eax, edi
mov ebx, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108a846
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2 - 2]
jmp 0x108a870
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x108a874
xor eax, eax
mov word [esi], ax
dec esi
dec esi
cmp esi, edi
ja 0x108a85a
cmp edi, esi
ja 0x108a8b3
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
je 0x108a894
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x108a894
inc ebx
inc ebx
cmp ebx, esi
jbe 0x108a878
cmp esi, ebx
jb 0x108a8b3
sub esi, ebx
shr esi, 1
lea eax, [esi + esi + 4]
push eax
push ebx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
xor edi, edi
xor esi, esi
test edi, edi
je 0x108a8c0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x108a8ce
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x41c], ecx
cmp ecx, ebx
je 0x108a921
cmp ecx, eax
je 0x108a921
push ecx
push 0xf000ce
call fcn.0108c55a
jmp 0x108aa11
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x147
push dword [esi + 0xc]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x41c], ebx
mov dword [esi + 0x14], 5
mov word [ebp - 0x20c], ax
call edi
push ebx
push eax
push 0x149
push dword [esi + 0xc]
mov dword [ebp - 0x424], eax
call edi
mov ebx, 0x104
cmp eax, ebx
jae 0x108a981
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
push 0x148
push dword [esi + 0xc]
call edi
xor eax, eax
mov word [ebp - 0x414], ax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
cmp word [ebp - 0x20c], di
je 0x108a9fb
cmp word [ebp - 0x414], di
je 0x108a9fb
push edi
push edi
lea eax, [ebp - 0x418]
push eax
push edi
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010af6e1
mov dword [ebp - 0x41c], eax
cmp eax, edi
jne 0x108aa11
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x108aa2f
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
push dword [eax + 4]
call fcn.01066b71
test eax, eax
je 0x108a9f7
push 5
jmp 0x108a9fc
push 0
jmp 0x108a9fc
push edi
push 0x3cf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x418], 0
je 0x108aa26
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x420], 0
je 0x108aa35
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 4
Function at 0x108d14f
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
cmp dword [esi], edi
jne 0x108d18f
mov esi, 0x80070057
push esi
push 0x75f019a
jmp 0x108d2d2
push 0xf0000000
push 1
push 0x1012820
push edi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x108d1bf
call fcn.01091f43
mov esi, eax
push esi
push 0x76e019a
jmp 0x108d2d2
lea eax, [ebp - 0x94]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x108d1ef
call fcn.01091f43
mov esi, eax
push esi
push 0x776019a
jmp 0x108d2d2
push edi
push dword [esi]
push dword [esi + 4]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x108d217
call fcn.01091f43
mov esi, eax
push esi
push 0x77e019a
jmp 0x108d2d2
push edi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x94]
mov dword [ebp - 0x9c], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x108d251
call fcn.01091f43
mov esi, eax
push esi
push 0x785019a
jmp 0x108d2d2
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], 0x78
push 1
call fcn.01091b9c
mov esi, eax
cmp esi, edi
je 0x108d288
push esi
push 0x78f019a
jmp 0x108d2d2
xor edx, edx
lea eax, [ebp - 0x90]
mov ecx, eax
cmp dx, word [ebp - 0x90]
je 0x108d2b4
movzx edx, word [ecx]
push 0x20
pop esi
cmp si, dx
je 0x108d2ab
mov word [eax], dx
inc eax
inc eax
inc ecx
inc ecx
xor edx, edx
cmp dx, word [ecx]
jne 0x108d29b
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.01091af5
mov esi, eax
cmp esi, edi
je 0x108d2d7
push esi
push 0x7a7019a
call fcn.0108c55a
cmp dword [ebp - 0x94], edi
je 0x108d2eb
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x98], edi
je 0x108d300
push edi
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 8
Function at 0x108d887
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_iswalpha]
je 0x108d8d6
movzx eax, word [esi]
push eax
call edi
pop ecx
test eax, eax
je 0x108d8d6
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x108d8d6
xor eax, eax
cmp ax, word [esi + 4]
jne 0x108d8d6
mov eax, 0x800700a1
push eax
push 0xa05019a
jmp 0x108d921
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x108d903
call fcn.01091f43
mov edi, eax
push edi
push 0xa0e019a
jmp 0x108d923
cmp dword [ebp + 0xc], 0
je 0x108d997
cmp dword [ebp - 0x418], 0
jne 0x108d929
mov eax, 0x800700a1
push eax
push 0xa15019a
mov edi, eax
push esi
jmp 0x108d9fb
push dword [ebp - 0x20c]
lea esi, [ebp - 0x20c]
call edi
pop ecx
push 0x5c
pop edx
test eax, eax
je 0x108d95e
push 0x3a
pop eax
cmp ax, word [ebp - 0x20a]
jne 0x108d95e
mov eax, edx
cmp ax, word [ebp - 0x208]
jne 0x108d95e
lea esi, [ebp - 0x206]
jmp 0x108d978
mov eax, edx
cmp ax, word [ebp - 0x20c]
jne 0x108d978
cmp ax, word [ebp - 0x20a]
jne 0x108d978
lea esi, [ebp - 0x208]
mov ecx, dword [ebp - 0x418]
cmp ecx, esi
jbe 0x108d992
lea eax, [ecx - 2]
cmp dx, word [eax]
jne 0x108d992
mov ecx, eax
mov dword [ebp - 0x418], ecx
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
push eax
push 0
push 0x101b5c4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x108d9d6
call fcn.01091f43
push 0x80070005
mov edi, eax
push edi
push 0xa2d019a
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c4ae
jmp 0x108da04
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x108da02
call fcn.01091f43
mov edi, eax
push edi
push 0xa33019a
lea eax, [ebp - 0x414]
push eax
call fcn.0108c595
jmp 0x108da04
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01077dc7
leave
ret 8
Function at 0x108da1b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [ebp + 0xc], esi
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x108da5a
call fcn.01091f43
mov ebx, eax
cmp ebx, 0x8007007a
je 0x108da5a
push ebx
push 0xa4d019a
call fcn.0108c55a
jmp 0x108dab2
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x108da7c
mov eax, 0x8007000e
push eax
mov ebx, eax
push 0xa55019a
jmp 0x108da9a
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x108daa1
call fcn.01091f43
mov ebx, eax
push ebx
push 0xa5b019a
call fcn.0108c55a
jmp 0x108daa7
mov dword [edi], esi
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x108dab2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x108db52
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebx], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x108db95
call fcn.01091f43
mov dword [ebp + 0xc], eax
cmp eax, 0x800700ea
je 0x108db95
push eax
push 0xaa3019a
call fcn.0108c55a
jmp 0x108dbea
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x108dbb5
mov eax, 0x8007000e
push eax
push 0xaaa019a
jmp 0x108dbce
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x108dbd8
call fcn.01091f43
push eax
push 0xaaf019a
mov dword [ebp + 0xc], eax
call fcn.0108c55a
jmp 0x108dbdf
mov dword [ebx], esi
xor esi, esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x108dbea
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x108e99a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x108e9ea
call fcn.01091f43
push 0x800700cb
mov esi, eax
push esi
push 0x1171019a
push ebx
call fcn.0108c4ae
jmp 0x108ea4b
cmp eax, esi
jb 0x108e9fb
mov eax, 0x8007006f
push eax
push 0x1176019a
jmp 0x108ea32
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108ea04
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
jne 0x108ea3b
mov eax, 0x8007000e
push eax
push 0x117d019a
mov esi, eax
call fcn.0108c55a
jmp 0x108ea4b
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call fcn.0102e082
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 8

Function at 0x108f26b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10d38ac], 0
jne 0x108f2f0
push esi
xor esi, esi
lea eax, [ebp - 0x118]
inc esi
push eax
mov dword [0x10d38ac], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x108f2bb
call fcn.01091f43
push eax
push 0x1612019a
jmp 0x108f2ce
cmp dword [ebp - 0x108], 2
je 0x108f2d5
push 0x4c7
push 0x1617019a
call fcn.0108c55a
jmp 0x108f2ef
cmp dword [ebp - 0x114], 5
ja 0x108f2e9
jb 0x108f2ef
cmp dword [ebp - 0x110], 0
jbe 0x108f2ef
mov dword [0x10d38a8], esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x10d38a8]
xor ecx, ebp
call fcn.01077dc7
leave
ret

Function at 0x108f306
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10d38b1], 0
jne 0x108f37d
lea eax, [ebp - 0x118]
push eax
mov byte [0x10d38b1], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x108f353
call fcn.01091f43
push eax
push 0x165e019a
jmp 0x108f366
cmp dword [ebp - 0x108], 2
je 0x108f36d
push 0x4c7
push 0x1663019a
call fcn.0108c55a
jmp 0x108f37d
cmp dword [ebp - 0x114], 6
jb 0x108f37d
mov byte [0x10d38b0], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x10d38b0]
xor ecx, ebp
call fcn.01077dc7
leave
ret
Function at 0x108f3ec
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x108f458
call fcn.01091f43
mov edi, eax
push edi
push 0x17d6019a
jmp 0x108f522
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x108f47b
call fcn.01091f43
mov edi, eax
cmp edi, ebx
je 0x108f47b
push edi
push 0x17de019a
jmp 0x108f522
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xa
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x108f4df
call fcn.01091f43
mov edi, eax
cmp edi, 0x800703f0
jne 0x108f4d7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
jne 0x108f4b7
call fcn.01091f43
mov edi, eax
push edi
push 0x17f0019a
jmp 0x108f522
lea ecx, [ebp - 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x108f4df
call fcn.01091f43
mov edi, eax
push edi
push 0x17f8019a
jmp 0x108f522
push edi
push 0x17fd019a
jmp 0x108f522
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x108f501
call fcn.01091f43
mov edi, eax
push edi
push 0x1806019a
jmp 0x108f522
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x108f529
call fcn.01091f43
mov edi, eax
push edi
push 0x180f019a
call fcn.0108c55a
jmp 0x108f533
cmp dword [ebp - 0x1c], ebx
setne al
mov byte [esi], al
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x108f543
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x18], ebx
je 0x108f54d
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x108f55b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 4
Function at 0x108f949
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
cmp ebx, esi
jne 0x108f97c
call fcn.01091f43
mov edi, eax
push edi
push 0x1d9f019a
call fcn.0108c55a
jmp 0x108fa53
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x108f982
sub eax, edx
sar eax, 1
lea edi, [eax + ebx + 2]
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x108f9b7
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x1da8019a
jmp 0x108fa3d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
ja 0x108fa27
test eax, eax
je 0x108fa27
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108f9cc
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [esi + eax*2 - 2]
je 0x108f9f0
push 0x1008ba8
push edi
push esi
call fcn.0102e0bc
push dword [ebp + 8]
push edi
push esi
call fcn.0102e0bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x108fa23
call fcn.01091f43
mov edi, eax
push edi
push 0x1dbf019a
push esi
call fcn.0108c595
jmp 0x108fa42
xor edi, edi
jmp 0x108fa42
call fcn.01091f43
mov edi, eax
test edi, edi
jne 0x108fa37
mov edi, 0x8007006f
push edi
push 0x1db2019a
call fcn.0108c55a
test esi, esi
je 0x108fa4d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
jne 0x108fa5a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x108fba6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, 0x101b7ec
jne 0x108fbd1
mov edx, 0x101b7e0
push ecx
push edx
push eax
push 0x101b7c8
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0108dbf9
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01077dc7
leave
ret 0xc