joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f6100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x100f6130
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100f616c
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x100f616c
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x100f6263
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x100f6194
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x100f61ca
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.10173877
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x1019a4f8]
mov ecx, dword [ebp - 0x34]
call esi
test eax, eax
js 0x100f6263
cmp eax, 1
jle 0x100f6236
cmp eax, 3
jne 0x100f6263
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10173877
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100f6253
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.10174037
add esp, 0x10
cmp esi, eax
jne 0x100f6263
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100f6157
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 4
Function at 0x100f6d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100f6e48
cmp byte [ebx + 0x3d], 0
je 0x100f6e48
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x100f6e36
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x100f6dfe
sub eax, 1
je 0x100f6e02
sub eax, 2
jne 0x100f6e36
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100f6e1f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10174037
add esp, 0x10
cmp esi, eax
jne 0x100f6e36
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret

Function at 0x100f7250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192690
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101f62b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1015c7bb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1015aca4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x100fbb00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x100fbb8e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100fbb80
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fbb60
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001e80
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100fbbd0
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100fbbd0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fbbb0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001e80
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100fbc20
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x100fbbe3
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x100fbc20
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x100fbc15
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x100fbbfc
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.10100810
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret

Function at 0x100fc0d0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x100fc11c
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10169b66
mov esi, eax
add esp, 4
test esi, esi
je 0x100fc11c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100fc122
push esi
call fcn.1016845e
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fc127
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.10001e80
push esi
call fcn.1016845e
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x100fc320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.10107c30
cmp dword [ebp - 0x214], 2
jne 0x100fc366
mov ecx, esi
call fcn.100fc150
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x100fc38e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10174db7
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fc3b0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001e80
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret

Function at 0x100fc3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x100fc41e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10174db7
lea edx, [ebp - 0x20c]
add esp, 0xc
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100fc440
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10001e80
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x100fd9f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100fd9fd
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x100fda20
cmp ecx, 8
jb 0x100fda12
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x100fda27
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x100fdaa4
mov esi, dword [0x101fc354]
test esi, esi
je 0x100fda74
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x101ace8c
push 0x101ace8c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x101fc358]
test eax, eax
je 0x100fdaa2
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x101ace8c
push 0x32
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x10105ab0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10105ad2
cmp eax, 0xffffffff
je 0x10105ad2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret 8
xor al, al
pop ebp
ret 8
Function at 0x10107e20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0x110
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.10160390
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x10107ee9
inc esi
cmp esi, 0xf
jl 0x10107e60
jmp 0x10107eee
lea eax, [esi - 1]
mov dword [ebx], eax
mov edi, 1
movzx esi, word [ebx]
lea eax, [esp + 0x14]
push 0x110
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.10160390
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x10107f7d
inc edi
cmp edi, 0xa
jl 0x10107ef3
jmp 0x10107f83
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
push 0x110
push 0
mov dword [esp + 0x18], 0x11c
movzx edi, word [eax + 4]
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.10160390
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x10108034
inc ebx
cmp ebx, 0xa
jl 0x10107f90
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x10109e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ee70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10109ea7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10109ec4
test eax, 0x400
je 0x10109ec4
mov eax, 1
jmp 0x1010a070
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002820
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.10002820
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.100fd010
test al, al
je 0x10109f7d
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov edi, dword [ebp - 0x44]
cmp ecx, 8
mov edx, dword [ebp - 0x34]
cmovae eax, ebx
cmp dword [ebp - 0x30], 8
cmovae esi, edi
cmp edx, dword [ebp - 0x1c]
jne 0x10109f36
test edx, edx
je 0x10109f83
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x10109f33
add eax, 2
sub edx, 1
jne 0x10109f20
jmp 0x10109f83
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10109f56
test eax, 0x400
jne 0x10109ff4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.10001e80
lea ecx, [ebp - 0x2c]
call fcn.100fd010
test al, al
jne 0x10109ef1
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x10109fbd
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10109fb0
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010a08c
push ecx
push edi
call fcn.1015cb05
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1010a06e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1010a064
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010a08c
jmp 0x1010a064
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x1010a027
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1010a01d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010a08c
push ecx
push edi
call fcn.1015cb05
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1010a05d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010a053
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010a08c
push edx
push ecx
call fcn.1015cb05
add esp, 8
mov eax, 2
jmp 0x1010a070
push ecx
push ebx
call fcn.1015cb05
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
call fcn.10168635
int3
Function at 0x1010a350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1010a3a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1010a3a9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1010a398
cmp esi, edx
jae 0x1010a3a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1010a386
cmp esi, edx
jae 0x1010a3a9
cmp word [esi], 0
je 0x1010a3a9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1010a720
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
test ecx, ecx
jne 0x1010a75f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1010a772
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x1010a794
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1010a794
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1010a844
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1010a7ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1010a844
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1010a844
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1010a844
xor edi, edi
cmp dword [ebx], edi
jbe 0x1010a842
lea esi, [ebx + 8]
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1010a837
test byte [esi], 4
jne 0x1010a889
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x1010a822
mov esi, dword [ebp - 0x1c]
xor edi, edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1010a852
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x1010a85d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1010a86b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1010a876
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov edi, 1
jmp 0x1010a844
Function at 0x1010c3a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194640
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x101f62b4]
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
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 0xf
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1010c44a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1010c40c
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1010c438
mov edx, dword [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.1010bd10
add esp, 4
test al, al
je 0x1010c438
inc edi
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1010c402
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x1010dbd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1010dc1c
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1010dc2c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
test eax, eax
je 0x1010dc16
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret