joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400255f0
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x158]
call fcn.140050660
movsxd rcx, dword [rsp + 0x160]
cmp rax, rcx
jae 0x140025640
jmp 0x14002583b
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x90]
call fcn.1400475d0
lea rcx, [rsp + 0x90]
call fcn.14001daa0
nop
mov rcx, qword [rsp + 0x158]
call fcn.140050660
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x80], 0
jmp 0x14002568e
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x80], eax
jge 0x14002575f
lea rcx, [rsp + 0xb0]
call fcn.14001f530
nop
movsxd rax, dword [rsp + 0x80]
mov rdx, rax
mov rcx, qword [rsp + 0x158]
call fcn.140021910
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, rax
lea rcx, [0x14032afa8]
call fcn.14002d770
lea rcx, [rsp + 0xb0]
call fcn.140021b20
mov rdx, rax
lea rcx, [0x14032af98]
call fcn.140026530
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x70]
call fcn.14001bd40
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.14001b540
nop
lea rcx, [rsp + 0xb0]
call fcn.140020590
jmp 0x14002567e
mov eax, dword [rsp + 0x160]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
mov edx, 8
lea rcx, [rsp + 0x88]
call fcn.1400475d0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.140047ee0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.1400488a0
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140021780
movzx eax, al
test eax, eax
je 0x14002582e
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x140025808
lea rcx, [rsp + 0x88]
call fcn.140021b80
movsxd rax, dword [rax + 8]
mov rdx, rax
mov rcx, qword [rsp + 0x158]
call fcn.140021910
mov rcx, rax
call fcn.140021b20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14002580a
jmp 0x14002582e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140021f70
jmp 0x1400257a1
lea rcx, [rsp + 0x90]
call fcn.14001f9f0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x148
ret
Function at 0x140026260
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, reloc.SHELL32.dll_IsUserAnAdmin
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rdx, [rsp + 0xf0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400262a9
jmp 0x1400263aa
xor edx, edx
mov rcx, qword [rsp + 0x2b0]
call fcn.14002f250
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400262d3
jmp 0x1400263aa
lea rcx, [rsp + 0xd0]
call fcn.140006090
nop
mov dword [rsp + 0x20], 0
jmp 0x1400262f5
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x14002639d
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.14000ca20
lea rcx, [rsp + 0xd0]
call fcn.1400061b0
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [0x14032af98]
call fcn.140026180
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
call fcn.1400211f0
nop
lea rcx, [rsp + 0x50]
call fcn.140020590
nop
lea rcx, [rsp + 0xd0]
call fcn.140006170
jmp 0x1400263aa
lea rcx, [rsp + 0xd0]
call fcn.140006170
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401fe250
add rsp, reloc.SHELL32.dll_IsUserAnAdmin
ret
Function at 0x1400287d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rdx, [0x140257d94]
lea rcx, [rsp + 0x110]
call fcn.14001f4b0
nop
lea rcx, [rsp + 0x110]
call fcn.14001bd90
mov rcx, rax
call fcn.140031220
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x238]
lea rcx, [rsp + 0x90]
call fcn.14001f3a0
nop
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x110]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x90]
call fcn.14001bd90
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, rax
call fcn.14004ce20
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140028949
lea rcx, [rsp + 0x90]
call fcn.14001bd90
mov r9, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140050980
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.14001f430
nop
lea rcx, [rsp + 0x68]
call fcn.14001f8f0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x190]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140028937
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x190]
call fcn.140020590
jmp 0x14002885b
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x90]
call fcn.140020590
nop
lea rcx, [rsp + 0x110]
call fcn.140020590
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x228
ret
Function at 0x140029670
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x54], 0xf003f
lea rcx, [0x14032af98]
call fcn.140036030
test eax, eax
je 0x1400296ee
cmp dword [rsp + 0xc8], 0
je 0x1400296ca
mov eax, dword [rsp + 0x54]
bts eax, 9
mov dword [rsp + 0x54], eax
jmp 0x1400296ee
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [0x14032af98]
call fcn.140035f80
test eax, eax
je 0x1400296ee
mov eax, dword [rsp + 0x54]
bts eax, 8
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400297d1
mov dword [rsp + 0x54], 0x20006
lea rcx, [0x14032af98]
call fcn.140036030
test eax, eax
je 0x140029779
cmp dword [rsp + 0xc8], 0
je 0x140029755
mov eax, dword [rsp + 0x54]
bts eax, 9
mov dword [rsp + 0x54], eax
jmp 0x140029779
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [0x14032af98]
call fcn.140035f80
test eax, eax
je 0x140029779
mov eax, dword [rsp + 0x54]
bts eax, 8
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400297d1
xor al, al
jmp 0x14002982e
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xb0]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], 0
jne 0x140029824
mov byte [rsp + 0x50], 1
jmp 0x140029829
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x88
ret
Function at 0x14002cf30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp qword [0x14032aea8], 0
jne 0x14002cf62
jmp 0x14002d0b9
mov edx, 0x258
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x48], 0x258
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [0x14032aea8]
cmp eax, 0x6f
jne 0x14002cfb5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x48]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [0x14032aea8]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002cffb
mov r9d, dword [rsp + 0x38]
lea r8, str.Call_to_GetNetworkParams_failed._Return_Value:__08x_n
mov edx, 0x80
lea rcx, [rsp + 0x50]
call fcn.1401fc300
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14002d0ae
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rax
mov r8d, 0x80
mov rdx, rcx
lea rcx, [0x14032af98]
call fcn.1400506e0
mov rax, qword [rsp + 0x30]
add rax, 0x84
mov rcx, qword [rsp + 0xf8]
add rcx, 0x80
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rax
mov r8d, 0x80
mov rdx, rcx
lea rcx, [0x14032af98]
call fcn.1400506e0
mov rax, qword [rsp + 0x30]
add rax, 0x110
mov qword [rsp + 0x40], rax
jmp 0x14002d083
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14002d0ae
mov rax, qword [rsp + 0x40]
add rax, 8
mov r8, rax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140023e60
jmp 0x14002d076
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0xe8
ret
Function at 0x14002f120
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.14001f530
nop
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14002f198
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x40]
call fcn.140021260
jmp 0x14002f1fa
xor eax, eax
mov word [rsp + 0xc0], ax
lea rax, [rsp + 0xc2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x40]
call fcn.14001bd90
mov r8d, 3
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.140047b80
lea rdx, [0x140250f28]
lea rcx, [rsp + 0x40]
call fcn.140022f20
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x508]
call fcn.14001f3a0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140020590
mov rax, qword [rsp + 0x508]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x4f0
pop rdi
ret
Function at 0x14002fb50
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x358
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xb0]
call fcn.14001f530
nop
xor eax, eax
mov word [rsp + 0x130], ax
lea rax, [rsp + 0x132]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0xa0], 0x104
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14002fc3e
lea r9, [0x14024ff00]
mov r8d, 2
mov edx, 3
lea rcx, [rsp + 0x80]
call fcn.140038d20
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8d, eax
lea rdx, str._tasp::library_Get_pc_name_error__lu._n
lea rcx, [rsp + 0x60]
call fcn.14003b980
jmp 0x14002fcbe
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xb0]
call fcn.140021260
lea r9, [0x140250010]
mov r8d, 2
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.140038d20
lea rcx, [rsp + 0x28]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140031bf0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8, rax
lea rdx, str._tasp::library_Get_pc_name___ws_n
lea rcx, [rsp + 0x40]
call fcn.14003b980
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x378]
call fcn.14001f3a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xb0]
call fcn.140020590
mov rax, qword [rsp + 0x378]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x358
pop rdi
pop rsi
ret
Function at 0x14002fd10
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x98], 0xfffffffffffffffe
cmp qword [rsp + 0xd0], 0
jne 0x14002fd8a
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0xb8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xc0]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xd8]
call fcn.140020590
mov eax, dword [rsp + 0x48]
jmp 0x14002ff9b
lea rdx, [0x140258cf4]
mov rcx, qword [rsp + 0xd0]
call fcn.140021260
mov dword [rsp + 0x30], 0x80
xor eax, eax
cmp eax, 1
je 0x14002ff47
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov eax, 2
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14006dfa0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xc8]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xc0]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
mov r8, rcx
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cmp dword [rsp + 0x30], eax
jne 0x14002fedf
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14006dfa8
cmp qword [rsp + 0x50], 0
jne 0x14002fec0
mov qword [rsp + 0x78], 0
jmp 0x14002fed3
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
jmp 0x14002ff42
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov rdx, qword [rsp + 0x38]
mov word [rdx + rax*2], cx
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call fcn.140021260
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14006dfa8
cmp qword [rsp + 0x58], 0
jne 0x14002ff2a
mov qword [rsp + 0x88], 0
jmp 0x14002ff40
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
jmp 0x14002ff47
jmp 0x14002fda6
mov rcx, qword [rsp + 0xd0]
call fcn.14001bd90
mov rcx, rax
call fcn.140031220
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xb8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xc0]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0xd8]
call fcn.140020590
mov eax, dword [rsp + 0x44]
add rsp, 0xa8
ret
Function at 0x14002ffb0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140030005
xor eax, eax
jmp 0x1400300ef
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rsp + 0xc8]
mov edx, 0x12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400300e0
mov dword [rsp + 0x48], 0x44
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1a
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov rax, qword [rsp + 0xc8]
cmp dword [rax], 3
jne 0x1400300c8
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x40]
mov edx, 0x13
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r8, qword [rsp + 0xd0]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400300bb
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400300e0
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0xb8
ret
Function at 0x140030360
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x10d8
call fcn.1401fe1f0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0xa0]
call fcn.14001d7d0
nop
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
mov r8d, 1
xor edx, edx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
mov dword [rsp + 0x40], 0
jmp 0x14003040e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x40], eax
jae 0x14003056a
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x88]
mov edx, dword [rsp + 0x1100]
cmp dword [rcx + rax + 4], edx
jne 0x140030565
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x98], 0x3ff
mov dword [rsp + 0x94], 0x3ff
lea rax, [rsp + 0x8c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
lea rcx, [rsp + 0x9c]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x8c0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x94]
lea r8, [rsp + 0xc0]
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rcx + rax + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.1400209b0
lea rcx, [rsp + 0xa0]
call fcn.140048800
movzx eax, al
test eax, eax
jne 0x14003050d
mov dword [rsp + 0x4c], 1
jmp 0x140030563
lea r9, [0x1402523f0]
mov r8d, 2
mov edx, 3
lea rcx, [rsp + 0x78]
call fcn.140038d20
lea rcx, [rsp + 0x60]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, str._tasp::library_WTSEnumerateProcessesW_AccountNameNULL._n
lea rcx, [rsp + 0x50]
call fcn.14003b980
jmp 0x14003056a
jmp 0x140030404
cmp qword [rsp + 0x88], 0
je 0x140030582
mov rcx, qword [rsp + 0x88]
call sub.WTSAPI32.dll_WTSFreeMemory
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x10f8]
call fcn.14001d650
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0xa0]
call fcn.14001f8f0
mov rax, qword [rsp + 0x10f8]
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x10d8
pop rdi
pop rsi
ret
Function at 0x140030e20
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x100]
mov dword [rax], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140030f33
lea r9, [0x140259e20]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x80]
call fcn.140038d20
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.14002f250
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x50]
mov r9d, ecx
mov r8, rax
lea rdx, str._tServiceName_s_OpenSCManager_field_err_lu__n
lea rcx, [rsp + 0x60]
call fcn.14003b980
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140020590
mov eax, dword [rsp + 0x4c]
jmp 0x140030ffc
mov rcx, qword [rsp + 0xf8]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140030fd8
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140030fcd
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0xb4]
mov dword [rax], ecx
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140020590
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0xd8
pop rdi
pop rsi
ret