joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400083c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140012050]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], ebp
xor edx, edx
mov edi, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140008449
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140008400
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
test eax, eax
js 0x140008521
mov ebx, ebp
cmp dword [rdi], ebx
jbe 0x140008521
nop word [rax + rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rsi, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], rbp
add rdx, rcx
mov qword [rsp + 0x40], rbp
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bpl
jne 0x1400084a5
lea rcx, [rsp + 0x28]
call fcn.1400065b0
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
lea rdx, [0x14000cf88]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008556
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140008517
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008512
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000859f
call fcn.14000a0e4
inc ebx
cmp ebx, dword [rdi]
jb 0x140008470
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009ba0
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400085ab
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400085a6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400085a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a0e4
mov rax, rbx
jmp 0x140008534
Function at 0x140009070
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140012050]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r9, r8
mov r13, rcx
mov rax, qword [rdx]
mov qword [rbp + 0x17], rax
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r14, rax
mov r8, qword [r13 + 0x18]
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rdx
mov qword [rbp - 9], r8
lea rax, [rbp + 0x17]
mov qword [rbp - 1], rax
lea rax, [0x14000d0f0]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x51], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rbp - 0x41], xmm1
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x21], rcx
lea rax, [rbp - 0x59]
mov qword [rbp + 7], rax
test r14, r14
jne 0x14000911b
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [0x14000d110]
xor esi, esi
jmp 0x14000918c
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
movzx eax, word [rdi + 0x14]
lea r15, [rdi + 0x18]
add r15, rax
xor esi, esi
mov ebx, esi
cmp si, word [rdi + 6]
jae 0x140009177
nop word [rax + rax]
mov qword [rbp + 0x1f], r14
mov eax, ebx
lea rdx, [rax + rax*4]
lea rax, [r15 + rdx*8]
mov qword [rbp + 0xf], rax
test rcx, rcx
je 0x1400091c9
mov rax, qword [rcx]
lea r8, [rbp + 0x1f]
lea rdx, [rbp + 0xf]
call qword [rax + 0x10]
test al, al
je 0x1400091c3
inc ebx
movzx eax, word [rdi + 6]
mov rcx, qword [rbp - 0x21]
cmp ebx, eax
jb 0x140009140
test rcx, rcx
je 0x140009190
lea rdx, [rbp - 0x59]
cmp rcx, rdx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x21], rsi
mov rax, qword [r13 + 0x18]
cmp qword [rax], 0
sete al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140009ba0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x21]
jmp 0x140009177
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__unsigned_long_long_unsigned___int64____cdecl_utils::rop::find_kgadget_char_const____ptr64__char_const____ptr64_::_2::_lambda_1___bool__struct__RTL_PROCESS_MODULE_INFORMATION____ptr64__char_const____ptr64_.0
mov qword [rdx], rax
mov rax, rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rdx + 8], xmm0
movsd xmm1, qword [rcx + 0x18]
movsd qword [rdx + 0x18], xmm1
ret

Function at 0x1400092de
Capabilities:
Execute syscall

Disassembly:
push r10
pushfq
mov r10, rcx
push qword [0x140012020]
lea rax, [0x14000932a]
push rax
push qword [0x140012028]
push qword [0x140012018]
push qword [0x140012030]
push qword [0x140012028]
lea rax, [0x1400092a0]
push rax
push qword [0x140012018]
push qword [0x140012038]
pushfq
pop rax
or rax, 0x40000
push rax
popfq
syscall
popfq
pop r10
ret
Function at 0x140009330
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400093b4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c660]
cmp byte [rcx + rax], 0
je 0x1400093b4
dec r8
sub rdx, 1
jne 0x14000939a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009724
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140009444
mov ebx, eax
test eax, eax
jne 0x140009754
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400097b7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400097ae
test al, 0x10
je 0x1400097ae
bt eax, 0xa
jae 0x1400097a7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400097c8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400097a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400097a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x1400097ae
and dword [rsp + 0x3c], 0
jmp 0x1400097b3
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a894
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a8de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a8de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a8de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a8de
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a8de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a8e0
xor al, al
add rsp, 0x28
ret
Function at 0x14006dd40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006dd4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006dd5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14006dd45
lea eax, [rcx + 1]
jmp 0x14006dd6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006dd7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14006dd64
sub eax, 3
jb 0x14006dd9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006dded
sar eax, 1
movsxd rbp, eax
jb 0x14006ddd4
jmp 0x14006ddac
add ebx, ebx
jne 0x14006ddaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006ddd4
inc ecx
add ebx, ebx
jne 0x14006ddba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006ddd4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006ddcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006ddbc
add ecx, 2
jmp 0x14006ddd9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14006dd02
jmp 0x14006dd4d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3ee00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14006de3d
cmp rsi, rcx
jae 0x14006de45
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14006de24
cmp al, 0x8f
ja 0x14006de24
cmp byte [rsi - 2], 0xf
je 0x14006de2a
sub al, 0xe8
cmp al, 1
ja 0x14006de0e
cmp rsi, rcx
jae 0x14006de45
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14006de14
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14006de45
lodsb al, byte [rsi]
jmp 0x14006de24
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6a000]
mov eax, dword [rdi]
or eax, eax
je 0x14006dea2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6e45c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14006de52
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14006de9c
mov qword [rbx], rax
add rbx, 8
jmp 0x14006de72
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14006dedc
cmp al, 0xef
ja 0x14006dece
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006deae
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14006debd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14006df30
sub rsp, 0xffffffffffffff80
jmp 0x1400164a0
Function at 0x1402616d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402616dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402616ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402616d5
lea eax, [rcx + 1]
jmp 0x1402616fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14026170e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402616f4
sub eax, 3
jb 0x14026172e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14026177d
sar eax, 1
movsxd rbp, eax
jb 0x140261764
jmp 0x14026173c
add ebx, ebx
jne 0x14026173a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140261764
inc ecx
add ebx, ebx
jne 0x14026174a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140261764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14026175d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14026174c
add ecx, 2
jmp 0x140261769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140261692
jmp 0x1402616dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x94600
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402617c9
cmp rsi, rcx
jae 0x1402617d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402617b0
cmp al, 0x8f
ja 0x1402617b0
cmp byte [rsi - 2], 0xf
je 0x1402617b6
sub al, 0xe8
cmp al, 1
ja 0x14026179a
cmp rsi, rcx
jae 0x1402617d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402617a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402617d1
lodsb al, byte [rsi]
jmp 0x1402617b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25d000]
mov eax, dword [rdi]
or eax, eax
je 0x14026183a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x263808]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402617de
jns 0x140261813
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14026181d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140261834
mov qword [rbx], rax
add rbx, 8
jmp 0x1402617fe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140261874
cmp al, 0xef
ja 0x140261866
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140261846
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140261855
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402618c8
sub rsp, 0xffffffffffffff80
jmp 0x14004a8bc
Function at 0x14001bbc0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdx, qword [rcx + 0x30]
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x14001bc38
mov rdx, qword [rbx + 0x30]
lea rax, str.Dolphin_Starter_in_OnStop
mov qword [rsp + 0x40], rsi
lea ecx, [rsi + 2]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x38], rax
lea edx, [rsi + 4]
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rdx, str.dol_start_:_Stopping_Service_n
mov ecx, 0x100
call fcn.14001dcd0
cmp dword [0x140042f48], 5
jl 0x14001bc76
mov rcx, qword [0x140042f88]
test rcx, rcx
je 0x14001bc6f
mov edx, esi
cmp byte [0x140042f78], dl
setne dl
call qword [0x140042f60]
mov qword [0x140042f88], rsi
xor ecx, ecx
mov dword [rbx + 0x60], 1
call qword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
mov rcx, qword [rbx + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001bcab
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14003f028]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x70]
call fcn.14001fbec
int3

Function at 0x14001bd80
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x60]
mov esi, edx
mov dword [rsp + 0x60], ebx
mov rbp, rcx
mov qword [rsp + 0x68], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14001be22
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x14001be17
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x68]
lea rdi, [rcx*8]
cmp dword [rdi + rax], esi
jne 0x14001be11
mov rcx, qword [rdi + rax + 8]
mov rdx, rbp
call fcn.1400221fc
test eax, eax
jne 0x14001be0d
mov rax, qword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, dword [rdi + rax + 4]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14001be31
mov edx, dword [rsp + 0x60]
inc ebx
cmp ebx, edx
jb 0x14001bdc5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001be50
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x60]
mov esi, edx
mov dword [rsp + 0x60], ebx
mov rbp, rcx
mov qword [rsp + 0x68], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14001bed6
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x14001becb
nop word [rax + rax]
mov rax, qword [rsp + 0x68]
mov edi, ebx
lea rcx, [rdi + rdi*2]
cmp dword [rax + rcx*8], esi
jne 0x14001bec5
mov rcx, qword [rax + rcx*8 + 8]
mov rdx, rbp
call fcn.1400221fc
test eax, eax
je 0x14001bee5
mov edx, dword [rsp + 0x60]
inc ebx
cmp ebx, edx
jb 0x14001bea0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + rdi*2]
mov ebx, dword [rcx + rax*8 + 4]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c770
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
lea rcx, str.close_at__s__n
xor ebp, ebp
call fcn.14001de10
lea rdx, str.dol_logon.exe
mov rcx, rbx
call fcn.1400221fc
test eax, eax
jne 0x14001c7c0
mov edi, 0x3e8
lea rdx, str.Dolphin_Logon_Screen_Reader
lea rcx, str.DolphinLogonWindow
jmp 0x14001c7ea
lea rdx, str.dol_secure.exe
mov rcx, rbx
call fcn.1400221fc
test eax, eax
jne 0x14001c863
mov edi, 0x7d0
lea rdx, str.Dolphin_Access_Secure_Desktop
lea rcx, str.dol_secure_wnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x14001c863
mov r8, rax
lea rcx, str.close_at__s__found_hwnd__d__n
mov rdx, rbx
call fcn.14001de10
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
mov rdx, rbx
test eax, eax
je 0x14001c84e
lea rcx, str.close_at__s__waiting_for_close__n
call fcn.14001de10
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jne 0x14001c820
jmp 0x14001c868
lea rcx, str.close_at__s__success__true__n
mov ebp, 2
call fcn.14001de10
mov eax, ebp
jmp 0x14001c8e2
mov ebp, 1
mov rdx, rbx
lea rcx, str.close_at__s__terminating__n
call fcn.14001de10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14001bd80
mov rdi, rax
test rax, rax
je 0x14001c8dd
mov rdx, rbx
lea rcx, str.close_at__s__TerminateProcess___n
call fcn.14001de10
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14001c8d0
mov rdx, rbx
lea rcx, str.close_at__s__TerminateProcess___success_n
call fcn.14001de10
mov ebp, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x14001c8e2
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001dae0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x30]
movzx esi, r8w
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001db5f
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, si
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14001db80
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140041008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001cbb0
mov rdx, qword [rdi + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001dc29
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001e3f0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret

Function at 0x14001dc50
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140041008]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [rsp + 0x38]
lea rdx, str._I64d
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ecx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], cl
jne 0x14001dc97
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, qword [0x140042f28]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e3f0
add rsp, 0x78
ret