joyce8/EMBER2024-capa huggingface dataset:
Function at 0x715d9308
Capabilities:
Extract resource via kernel32 functions
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x715d9329
xor eax, eax
jmp 0x715d9462
push esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov dword [edi], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x715d9424
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x715d9424
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x715d9424
mov esi, eax
push 0x10
or esi, 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
jne 0x715d93e1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x715d93ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x715d9424
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x715d9424
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [edi], eax
je 0x715d9424
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x715d9424
mov dword [ebp - 0xc], 1
jmp 0x715d9424
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x715d9424
movzx eax, word [esi]
mov ecx, eax
shr ecx, 1
add ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [edi], eax
je 0x715d9424
movzx ecx, word [esi]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 0xc], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x715d9434
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x715d943e
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x715d944c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [edi]
cmp edi, ebx
je 0x715d945e
cmp dword [ebp - 0xc], ebx
jne 0x715d945e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x715d94fe
Capabilities:
Copy file
Delete file
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi], eax
mov dword [ebx], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x715d95a9
lea eax, [ebp - 0x110]
push eax
call fcn.715e17e6
test eax, eax
je 0x715d95a1
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x214]
push 0x715d2370
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x110]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x715d9632
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x715d9632
push eax
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x715d9629
xor esi, esi
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x14], esi
push eax
je 0x715d9600
lea eax, [ebp - 0xc]
push eax
push 0x715d236c
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x715d9629
cmp dword [ebp + 0x10], esi
je 0x715d9629
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov eax, dword [eax + 0xc]
jmp 0x715d9627
lea eax, [ebp - 8]
push eax
push 0x715d2350
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x715d9629
cmp dword [ebp + 0x10], esi
je 0x715d9629
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov dword [ebx], ecx
mov eax, dword [eax]
shr eax, 0x10
mov dword [edi], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x715d9645
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x715d9b31
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
mov edi, dword [esp + 0xc]
push edi
call esi
test eax, eax
je 0x715d9b4d
push edi
call fcn.715e1843
push edi
jmp 0x715d9b3e
pop edi
pop esi
ret 4

Function at 0x715d9b83
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.715d8de9
test eax, eax
je 0x715d9d26
cmp byte [ebx], 0x5c
jne 0x715d9bb9
cmp byte [ebx + 1], 0x5c
jne 0x715d9bb9
test byte [ebp + 0xc], 8
je 0x715d9d26
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x715d9bd9
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x715d9bf2
test byte [ebp + 0xc], 1
je 0x715d9bf9
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jmp 0x715d9d18
test byte [ebp + 0xf], 0x40
jne 0x715d9c08
push ebx
call fcn.715d9d73
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x715d9d21
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
lea eax, [ebp - 0x108]
push 0x715d1e40
push eax
call fcn.715e1804
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x108]
push 0x715d23cc
push edi
call esi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x715d9d1a
test byte [ebp - 0x248], 0x10
je 0x715d9caa
lea eax, [ebp - 0x21c]
push 0x715d1f50
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x715d9ccf
lea eax, [ebp - 0x21c]
push 0x715d23c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x715d9ccf
test byte [ebp + 0xc], 2
jne 0x715d9ccf
lea eax, [ebp - 0x21c]
push eax
push edi
call esi
test byte [ebp + 0xc], 8
je 0x715d9cbe
push 8
jmp 0x715d9cc0
push 0
lea eax, [ebp - 0x108]
push eax
call sym.ADVPACK.dll_DelNode
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x715d9ce9
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x715d9c6f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
jl 0x715d9d21
test byte [ebp + 0xc], 4
jne 0x715d9d21
test byte [ebp + 0xc], 8
je 0x715d9d08
push 9
jmp 0x715d9d0a
push 1
push ebx
call sym.ADVPACK.dll_DelNode
test eax, eax
jge 0x715d9d21
test byte [ebp + 0xc], 2
jne 0x715d9d21
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
jmp 0x715d9d2b
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x715d9d73
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x715d1e40
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.715e1804
and byte [ebp - 0x104], 0
mov ebx, 0x104
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.715e1804
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x715d9e6c
and byte [ebp - 0x101], 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x715d9e6c
and byte [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.715e1804
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x715d9e6c
and byte [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.715d418a
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.715e1804
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
jne 0x715d9e73
mov eax, 0x80004005
jmp 0x715d9eb3
lea eax, [ebp - 0x104]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.715e1804
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x715d9f15
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call esi
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1b0], 2
jne 0x715da00d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, ebx
je 0x715d9f9d
dec eax
dec eax
je 0x715d9f96
sub eax, 4
je 0x715d9f8f
dec eax
jne 0x715d9fab
push 0x715d23fc
jmp 0x715d9fa2
push 0x715d23f0
jmp 0x715d9fa2
push 0x715d23e4
jmp 0x715d9fa2
push 0x715d23dc
lea eax, [ebp - 0x12c]
push eax
call edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x12c]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.715d60e4
test eax, eax
jl 0x715d9fc9
cmp dword [ebp - 4], ebx
jne 0x715da001
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
call esi
lea eax, [ebp - 0x12c]
push 0x715d23d8
push eax
call edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x12c]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.715d60e4
test eax, eax
jl 0x715da049
cmp dword [ebp - 4], ebx
je 0x715da049
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0x10]
jmp 0x715da047
lea eax, [ebp - 0x12c]
push 0x715d23d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x12c]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.715d60e4
test eax, eax
jl 0x715da049
cmp dword [ebp - 4], ebx
je 0x715da049
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x715db65c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x715db77b
cmp dword [ebp + 0xc], esi
je 0x715db77b
cmp byte [ebx], 0
je 0x715db77b
push ebx
call fcn.715d8de9
test eax, eax
jne 0x715db6c5
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x715db6c5
cmp byte [eax], 0
je 0x715db6c5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.715e1804
jmp 0x715db6d5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call edi
cmp eax, 0xffffffff
jne 0x715db750
lea eax, [ebp - 0x110]
push eax
call fcn.715d8de9
test eax, eax
jne 0x715db744
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x715db718
mov dword [ebp - 4], 0x466
jmp 0x715db77b
lea eax, [ebp - 0x110]
push 0x715d1ba8
push eax
call fcn.715e1804
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.715e1804
lea eax, [ebp - 0x110]
push eax
call edi
cmp eax, 0xffffffff
jne 0x715db750
mov dword [ebp - 4], 0x479
mov dword [ebp - 8], ebx
jmp 0x715db77b
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x110]
push eax
call fcn.715e1843
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
call esi
mov dword [ebp - 0xc], 1
xor eax, eax
cmp dword [ebp - 4], eax
je 0x715db797
push eax
push 0x10
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [0x715e4534]
call fcn.715d6f11
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x715db7a1
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push 0x715d15a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x715db7fe
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x715db7f5
mov byte [ebp - 0x10c], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x10c], bl
je 0x715db857
cmp byte [ebp - 0x10b], 0x3a
je 0x715db836
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.715e1804
jmp 0x715db84a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
leave
ret 4
Function at 0x715db85c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
cmp word [0x715e4520], si
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x715db8d6
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push 0x715d2658
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call edi
test eax, eax
jne 0x715db8d6
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x715d2670
push dword [ebp + 8]
call edi
test eax, eax
jne 0x715db8d6
lea eax, [ebp - 0x114]
push eax
call fcn.715d8e19
cmp eax, dword [ebp - 0x10]
jne 0x715db8d6
push 1
pop eax
jmp 0x715db943
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 0x20019
push eax
push ebx
push esi
push 0x715d292c
push dword [ebp + 8]
call edi
test eax, eax
jne 0x715db940
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x715d2ba4
push dword [ebp - 0xc]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x715db93b
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x715db936
cmp dword [ebp - 4], esi
je 0x715db936
mov dword [ebp - 8], 1
push dword [ebp + 8]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x715db94a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x715dba0d
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push edi
push 0x715d28f0
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x715dba0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x715d28e0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x715dba0d
lea eax, [ebp - 0x110]
push eax
call fcn.715d8e19
cmp eax, dword [ebp - 0xc]
jne 0x715dba0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push edi
push 0x715d28b8
push dword [ebp + 8]
call esi
test eax, eax
jne 0x715db9e9
cmp byte [ebp - 0x110], 0x6e
je 0x715dba06
push dword [ebp + 8]
call fcn.715db85c
test eax, eax
jne 0x715dba06
cmp dword [ebp + 0xc], edi
je 0x715dba0d
push dword [ebp + 0xc]
call fcn.715db85c
test eax, eax
je 0x715dba0d
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 8
Function at 0x715dbaab
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x715e4048]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 2
push edi
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
mov dword [ebp - 4], ebx
jne 0x715dbbd2
lea eax, [ebp - 4]
push eax
call fcn.715dba16
test eax, eax
jne 0x715dbbc0
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x715dbbd2
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x715dbb36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x715dbb36
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x715dbbb5
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x715dbbaa
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x715dbbaa
cmp dword [esi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x715dbba1
lea edi, [esi + 4]
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x715dbb96
inc dword [ebp - 0xc]
add edi, 8
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi]
jb 0x715dbb78
jmp 0x715dbba1
push 1
pop eax
mov dword [0x715e4048], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x715dbbb5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x715dbbcf
cmp dword [ebp - 4], ebx
je 0x715dbbcf
mov dword [0x715e4048], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x715dc0da
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
push 2
pop esi
cmp word [0x715e4520], si
jb 0x715dc0f7
push edi
push edi
call fcn.715d43af
test eax, eax
jne 0x715dc0fa
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x715dc11a
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0x2001f
push ebx
push 0x715d14c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x715dc26d
push edi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x174]
mov edi, 0x715d2cc8
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
mov esi, 0x104
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x715dc193
lea eax, [ebp - 0x174]
push esi
push eax
call fcn.715d418a
test eax, eax
je 0x715dc193
lea eax, [ebp - 0x174]
push eax
push edi
push dword [ebp - 4]
call fcn.715dc0da
lea eax, [ebp - 0x174]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x174]
push 0x715d2cb8
push eax
call fcn.715e1804
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x715dc1c6
mov edi, 0x715d2ca4
mov esi, 0x715d2c98
jmp 0x715dc1df
cmp word [0x715e4520], 2
mov edi, 0x715d2c84
mov esi, 0x715d2c98
jae 0x715dc1df
mov esi, 0x715d2c78
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x64
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x715dc255
call fcn.715d49c8
test eax, eax
je 0x715dc255
push ebx
lea eax, [ebp - 0x70]
push 0x64
push eax
push esi
lea eax, [ebp - 0x174]
push 0x715d1588
push eax
call fcn.715d5f40
test eax, eax
jge 0x715dc233
lea eax, [ebp - 0x70]
push 0x715d2c78
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.715d4a3f
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x715dc1b5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x715dca36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.715dc61e
push eax
push esi
push dword [ebp + 8]
call fcn.715dc5d3
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.715dc60e
les esp, [ecx]
js 0x715dca5b
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
nop
push ss
call fcn.715dc60e
das
je 0x715dcaeb
fisttp qword [ebp - 0x837b]
call dword [eax - 0x18]
sbb al, 0xfb
invalid