joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140005500]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov rdx, rax
mov rax, qword [0x140005530]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140005500]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005440]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005440]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054e0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005470]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
lea rax, [0x140005050]
mov rcx, rax
call sym.opendir
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001804
jmp 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
lea rdx, [0x140005050]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
lea rdx, [0x140005052]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
lea rdx, str.welcome.txt
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
lea rdx, str.302_c29b.exe
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
lea rdx, str.desktop.ini
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
mov rcx, rax
call sym.remove
test eax, eax
jne 0x1400017c3
mov rax, qword [rbp - 0x10]
add rax, 8
mov rdx, rax
lea rax, str.Deleted_successfully:__s_n
mov rcx, rax
call sym.printf
jmp 0x1400017dd
mov rax, qword [rbp - 0x10]
add rax, 8
mov rdx, rax
lea rax, str.Unable_to_delete_the_file:__s_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.readdir
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001700
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.closedir
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140001b40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002812
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x1400028aa
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000288e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002882
cmp qword [rbp - 0x10], 0
je 0x140002882
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002848
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400028ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400029b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400029d8
mov eax, 0
jmp 0x140002a26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002a01
mov eax, 0
jmp 0x140002a26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002a21
mov eax, 0
jmp 0x140002a26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002a2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002aaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002aa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002aa1
mov rax, qword [rbp - 8]
jmp 0x140002abf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
call sym._errno
mov dword [rax], 0
cmp qword [rbp + 0xe0], 0
jne 0x140002ee2
call sym._errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x1400030f2
mov rax, qword [rbp + 0xe0]
movzx eax, byte [rax]
test al, al
jne 0x140002f05
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x1400030f2
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0xffffffff
jne 0x140002f3c
call sym._errno
mov dword [rax], 2
mov eax, 0
jmp 0x1400030f2
mov eax, dword [rbp + 0xbc]
and eax, 0x10
test eax, eax
jne 0x140002f5e
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x1400030f2
mov rdx, qword [rbp + 0xe0]
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rcx, rax
call sym._fullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
add rax, 0x24b
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x140002fb7
call sym._errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x1400030f2
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x244]
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.strcpy
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + 0x244]
test al, al
je 0x140003059
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x2f
je 0x140003059
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x5c
je 0x140003059
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x5c
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x2a
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x238], 0xffffffffffffffff
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x240], 0
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x128], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12c], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12e], 0
mov rax, qword [rbp + 0xb0]
add rax, 0x130
mov r8d, 0x104
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rbp
ret
Function at 0x14001a240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2058
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rax, r8
mov edi, edx
mov ebx, ecx
lea r8, [rsp + 0x2088]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wvsprintfW]
test ebx, ebx
je 0x14001a296
lea rcx, [rsp + 0x40]
call fcn.14001a180
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.DLL_TryEnterCriticalSection]
test eax, eax
je 0x14001a2f1
cmp qword [0x140033a50], 0xffffffffffffffff
je 0x14001a2e4
test edi, edi
je 0x14001a2e4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, qword [0x140033a50]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x2058
pop rdi
pop rbx
ret

Function at 0x14001a310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2050
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov ebp, dword [0x140034f2c]
mov esi, edx
mov edi, dword [0x140034f30]
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2000
call fcn.14001e930
lea rcx, [rsp + 0x40]
mov r8, rbx
cmp esi, 0x3105
jne 0x14001a379
lea rdx, [0x14000c4b8]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001a389
mov r9d, esi
lea rdx, [0x14000c4e8]
call qword [sym.imp.USER32.dll_wsprintfW]
test edi, edi
je 0x14001a397
lea rcx, [rsp + 0x40]
call fcn.14001a180
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.DLL_TryEnterCriticalSection]
test eax, eax
je 0x14001a3f2
test ebp, ebp
je 0x14001a3e5
cmp qword [0x140033a50], 0xffffffffffffffff
je 0x14001a3e5
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, qword [0x140033a50]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14001d940
mov rbx, qword [rsp + 0x2080]
add rsp, 0x2050
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001aa80
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call fcn.14001aa00
test eax, eax
je 0x14001aabf
lea rcx, [0x14000e118]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14000e138]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14001aabf
lea rcx, [rsp + 0x40]
call rax
mov dword [rsp + 0x28], ebx
lea r9, [0x14000e160]
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e1d8]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e210]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e270]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.14001aa00
test eax, eax
je 0x14001ab89
lea rcx, [0x14000e118]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14000e2f0]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14001ab89
mov rcx, qword [rsp + 0x40]
call rax
add rsp, 0x30
pop rbx
ret
Function at 0x14001ae60
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x14001af83
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x288], rbp
lea rbp, [0x140009e90]
mov qword [rsp + 0x290], rdi
nop word [rax + rax]
xor ebx, ebx
mov rdi, rbp
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x14001af02
inc ebx
add rdi, 8
cmp ebx, 0x9f
jb 0x14001aee0
jmp 0x14001af55
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001af46
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x14001af3b
mov edx, 0x5001
lea rcx, [rsp + 0x4c]
call fcn.14001a310
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14001af55
mov edx, 0x5000
lea rcx, [rsp + 0x4c]
call fcn.14001a310
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x14001aed0
mov rdi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x270
pop rsi
ret
Function at 0x14001b3f0
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x19e0]
mov eax, 0x1ae0
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x19d0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x44], ebx
movsxd rax, dword [rsp + 0x44]
cmp rax, 0x42
jae 0x14001b461
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x44]
mov byte [rbp + rax + 0x1980], bl
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
cmp rax, 0x42
jb 0x14001b440
lea r8, [rbp + 0x1980]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14001b4aa
mov ecx, dword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
lea edx, [rax + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
je 0x14001b4b1
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x14001b5fc
xor edx, edx
mov dword [rsp + 0x48], 0xa
mov r8d, 0x1a18
lea rcx, [rsp + 0x60]
call fcn.14001e930
mov ecx, dword [rsp + 0x40]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x14001b4a0
mov qword [rsp + 0x1af8], rsi
mov qword [rsp + 0x1b00], rdi
cmp dword [rsp + 0x48], ebx
jbe 0x14001b5dd
nop dword [rax]
mov eax, ebx
imul rdi, rax, 0x29c
mov eax, dword [rbp + rdi + 0x1ec]
cmp eax, 4
je 0x14001b5d1
cmp eax, 0x3e8
je 0x14001b5d1
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp eax, dword [rsp + rdi + 0x60]
je 0x14001b5d1
mov rax, qword [rsp + 0x50]
lea rsi, [rsp + 0x6c]
mov edx, dword [0x140034f2c]
lea r8, [0x14000edb0]
mov ecx, dword [0x140034f30]
add rsi, rdi
mov r9, rsi
mov qword [rsp + 0x20], rax
call fcn.14001a240
mov r8d, dword [rsp + rdi + 0x60]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001b61c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x14001b5ba
mov edx, dword [0x140034f2c]
lea r8, [0x14000ee00]
mov ecx, dword [0x140034f30]
mov r9, rsi
call fcn.14001a240
mov edx, 0xbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
inc ebx
cmp ebx, dword [rsp + 0x48]
jb 0x14001b510
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, 1
mov rsi, qword [rsp + 0x1af8]
mov rdi, qword [rsp + 0x1b00]
mov rcx, qword [rbp + 0x19d0]
xor rcx, rsp
call fcn.14001d940
mov rbx, qword [rsp + 0x1b08]
add rsp, 0x1ae0
pop rbp
ret
mov edx, dword [0x140034f2c]
lea r8, [0x14000ee00]
mov ecx, dword [0x140034f30]
mov r9, rsi
call fcn.14001a240
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x14001b5ec
Function at 0x14001c9d0
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x48
xor edx, edx
mov dword [rsp + 0x58], 0xffffffff
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 0x4000
mov r9, rcx
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x13]
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x14001cb73
mov r8d, dword [rsp + 0x60]
lea edx, [rax + 8]
mov rcx, qword [0x140034fc0]
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14001cb63
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x14001cb51
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
xor esi, esi
cmp dword [rsp + 0x58], esi
jbe 0x14001cb22
nop
lea rdi, [rsi + rsi*2]
shl rdi, 4
add rdi, rbp
test byte [rdi + 0xc], 2
je 0x14001ca95
lea rdx, [0x140034f38]
mov rcx, rdi
call fcn.14001c9d0
jmp 0x14001cb16
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14001cb16
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
je 0x14001cb16
lea ecx, [rax - 1]
movsxd rdx, ecx
movzx r8d, word [rbx + rdx*2]
movsxd rdx, eax
add rdx, rdx
cmp r8w, 0x2e
jne 0x14001caca
cmp word [rdx + rbx], 0
je 0x14001cb16
cmp eax, 1
jle 0x14001caea
add eax, 0xfffffffe
movsxd rcx, eax
cmp word [rbx + rcx*2], 0x2e
jne 0x14001caea
cmp r8w, 0x2e
jne 0x14001caea
cmp word [rdx + rbx], 0
je 0x14001cb16
mov r9, qword [rdi + 0x18]
lea r8, [0x14000ee68]
mov edx, dword [0x140034f2c]
mov ecx, dword [0x140034f30]
call fcn.14001a240
mov rcx, qword [rdi + 0x18]
lea rdx, [0x140034f38]
call fcn.14001c4f0
inc esi
cmp esi, dword [rsp + 0x58]
jb 0x14001ca70
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8, rbp
lea rdx, [rsp + 0x58]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x14001ca62
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [0x140034fc0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x14001cb80
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor eax, eax
mov rbp, rcx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
nop word [rax + rax]
lea rax, [rsp + 0x44]
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov edx, 1
mov qword [rsp + 0x28], rax
mov rcx, rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.NETAPI32.dll_NetShareEnum]
mov esi, eax
test eax, eax
je 0x14001cc08
cmp eax, 0xea
jne 0x14001cceb
mov rbx, qword [rsp + 0x50]
mov edi, 1
cmp dword [rsp + 0x40], edi
jb 0x14001ccd6
nop dword [rax]
test dword [rbx + 8], 0x7fffffff
jne 0x14001ccc1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 2
jle 0x14001ccc1
mov rcx, qword [rbx]
lea rdx, [0x14000ee90]
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x14001ccc1
lea rdx, [0x14000eea0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x14000ee64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov edx, dword [0x140034f2c]
lea r9, [rsp + 0x60]
mov ecx, dword [0x140034f30]
lea r8, [0x14000eea8]
call fcn.14001a240
lea rdx, [0x140034f38]
lea rcx, [rsp + 0x60]
call fcn.14001c4f0
add rbx, 0x18
inc edi
cmp edi, dword [rsp + 0x40]
jbe 0x14001cc20
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 0xea
je 0x14001cbc0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001d940
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret