joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5acac0
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x5acad8
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x5acad8
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x5acae0
xor eax, eax
ret
cmp rbx, 3
je 0x5acaec
cmp rbx, 4
jne 0x5acb19
cmp al, 0x2c
ja 0x5acb06
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x5acb16
cmp al, 0x24
je 0x5acb16
nop dword [rax]
cmp al, 0x26
jae 0x5acb16
jmp 0x5acb19
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x5acb16
cmp al, 0x5b
je 0x5acb16
cmp al, 0x5d
jne 0x5acb19
xor eax, eax
ret
cmp al, 0x2f
ja 0x5acb52
nop dword [rax]
cmp al, 0x26
ja 0x5acb31
cmp al, 0x24
je 0x5acb71
cmp al, 0x26
je 0x5acb71
jmp 0x5acbeb
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x5acb71
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x5acbe8
cmp al, 0x2f
je 0x5acb71
jmp 0x5acbeb
cmp al, 0x3d
ja 0x5acb69
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x5acb71
nop
cmp al, 0x3d
je 0x5acb71
jmp 0x5acbeb
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x5acbe0
cmp rbx, 2
jg 0x5acba7
cmp rbx, 1
je 0x5acba1
nop dword [rax]
cmp rbx, 2
jne 0x5acbeb
cmp al, 0x2f
je 0x5acb92
cmp al, 0x3b
je 0x5acb92
cmp al, 0x2c
jne 0x5acb99
mov ecx, 1
jmp 0x5acb9e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x5acbca
cmp al, 0x40
je 0x5acbb9
cmp al, 0x2f
je 0x5acbb9
cmp al, 0x3f
jne 0x5acbc2
mov ecx, 1
nop
jmp 0x5acbc7
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x5acbd9
cmp rbx, 7
jne 0x5acbeb
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x5acbe8
cmp al, 0x7e
jne 0x5acbeb
xor eax, eax
ret
cmp rbx, 7
jne 0x5acc01
cmp al, 0x21
je 0x5acbfd
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x5acc01
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x5b2da0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5b2fb7
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x5b2ece
nop dword [rax + rax]
cmp rdx, 0x40
ja 0x5b2fa9
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rbx, rdx
je 0x5b2e42
mov rax, rdx
mov rcx, rsi
call fcn.00466800
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
cmp rdx, 0x40
jne 0x5b2eaa
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.005b3240
xorps xmm15, xmm15
mov r14, qword [0x00952d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
cmp rcx, rsi
jb 0x5b2fa1
sub rdi, rsi
mov rdx, rcx
sub rcx, rsi
mov r8, rdi
neg rdi
sar rdi, 0x3f
and rsi, rdi
add rbx, rsi
jmp 0x5b2ed4
mov rdx, rcx
mov r8, rdi
cmp rcx, 0x40
jl 0x5b2f51
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and rcx, 0xffffffffffffffc0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
call fcn.005b3240
xorps xmm15, xmm15
mov r14, qword [0x00952d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov rcx, qword [rsp + 0x30]
and rax, rcx
and rax, 0xffffffffffffffc0
mov rbx, qword [rsp + 0x40]
add rbx, rax
sub rcx, rdx
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
test rcx, rcx
je 0x5b2f8f
cmp rcx, 0x40
mov esi, 0x40
cmovl rsi, rcx
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x5b2f8b
mov qword [rsp + 0x38], rsi
mov rax, rdi
mov rcx, rsi
call fcn.00466800
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
nop
ret
mov rax, rsi
call fcn.00465f00
mov rax, rdx
mov ecx, 0x40
call fcn.00465f00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004637e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.005b2da0
Function at 0x61d140
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x61d2eb
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x61d167
inc rcx
cmp rbx, rcx
jle 0x61d2dd
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x61d164
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.00528180
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rsi
test rsi, rsi
mov rdx, qword [rsp + 0x88]
cmovne rbx, rdx
mov rdx, qword [rsp + 0x80]
cmovne rax, rdx
mov rdx, qword [0x008f2a28]
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.00619200
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop dword [rax]
test rcx, rcx
jne 0x61d2cd
test rdx, rdx
je 0x61d2be
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403280
xorps xmm15, xmm15
mov r14, qword [0x00952d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x61d289
xor eax, eax
lea rbx, [0x00758f20]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006df6cb]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.0044e980
jmp 0x61d2b0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00758db0]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.0044e8a0
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
mov rdi, r9
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, r9
mov rbx, rsi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004637e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0061d140
Function at 0x1400020c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
xor esi, esi
lea rax, vtable.IPCService.0
mov rbx, rcx
mov dword [rcx + 0xc0], 0xffffffff
mov qword [rcx], rax
mov qword [rcx + 0xc8], rsi
mov qword [rcx + 0xd0], rsi
mov dword [rcx + 0xc4], esi
add rcx, 8
xor edx, edx
mov r8d, 0xa0
call fcn.1400085b0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140004a50
lea rcx, [rbx + 0xb8]
lea rdx, str.GlobalEEU_Memory_Map_Mutex
mov dword [rbx + 0xd8], esi
call fcn.140005700
test eax, eax
jne 0x140002165
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002280
lea r9, str.CreateMutex_failed.
mov edx, 0x60004008
mov r8d, 1
call fcn.140003a50
jmp 0x140002280
xor r9d, r9d
lea rax, str.GlobalEEU_Memory_Map
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
xor ecx, ecx
mov dword [rsp + 0x20], 0x19e0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0xa8], rax
test rax, rax
jne 0x1400021b2
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002280
lea r9, str.CreateFileMapping_failed.
jmp 0x140002150
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], 0x19e0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0xb0], rax
test rax, rax
jne 0x1400021f6
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002280
lea r9, str.MapViewOfFile_failed.
jmp 0x140002150
xor edx, edx
mov r8d, 0x19e0
mov rcx, rax
call fcn.1400085b0
mov rax, qword [rbx + 0xb0]
lea rdx, [rsp + 0x80]
lea rcx, str.ClientStatusMonitoring
mov dword [rax], 7
call fcn.1400043b0
test eax, eax
je 0x140002276
cmp dword [rsp + 0x80], esi
je 0x140002276
lea r8, [0x140002b70]
lea rcx, [rbx + 0xd0]
mov r9, rbx
mov edx, 8
call fcn.140005880
test eax, eax
jne 0x140002276
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002280
lea r9, str.CreateTheThread_for_GetClientStatusThread_failed.
lea r8d, [rax + 1]
mov edx, 0x60004002
call fcn.140003a50
jmp 0x140002280
mov dword [rbx + 0xc8], 1
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002970
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xd8], 0
mov rbx, rcx
jne 0x140002b5c
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
xor ebp, ebp
nop word [rax + rax]
lea rcx, [0x140045ac0]
mov edx, 0x3a98
call fcn.140005860
cmp eax, 0x102
jne 0x140002b4d
cmp dword [rbx + 0xd8], ebp
jne 0x140002b4d
cmp dword [rbx + 0xc0], 0xffffffff
je 0x140002b41
cmp dword [rbx + 0xcc], ebp
je 0x1400029e8
mov dword [rbx + 0xcc], ebp
jmp 0x140002b41
lea rcx, [rbx + 0xb8]
call fcn.1400056c0
test eax, eax
jne 0x140002a22
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002b41
lea r9, str.IPCService::GetClientStatusLoop_AcquireTheMutex_failed.
lea r8d, [rax + 1]
mov edx, 0x60004008
call fcn.140003a50
jmp 0x140002b41
mov rax, qword [rbx + 0xb0]
mov edx, dword [rbx + 0xc0]
lea rcx, [rbx + 0xb8]
mov edi, dword [rax + rdx*4 + 4]
lea r8, [rax + rdx*4]
mov eax, edi
and eax, 0xfffffffe
mov dword [r8 + 4], eax
call fcn.140005780
test dil, 1
jne 0x140002b41
test dil, 4
jne 0x140002b41
mov edx, dword [rbx + 0xc0]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov r8d, 8
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbp
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x140002b41
mov rcx, qword [rsp + 0x58]
cmp dword [rcx], 2
jb 0x140002aa3
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x140002b41
call sub.WTSAPI32.dll_WTSFreeMemory
mov edx, dword [rbx + 0xc0]
mov rcx, rbx
call fcn.140002900
test eax, eax
jne 0x140002ae9
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002b41
mov eax, dword [rbx + 0xc0]
lea r9, str.Create_client_event_failed_for_session_id_u.
mov edx, 0x60004003
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.140003a50
jmp 0x140002b41
mov ecx, dword [rbx + 0xc0]
call fcn.140002f70
mov rcx, qword [0x140045ae0]
test eax, eax
je 0x140002b1e
test rcx, rcx
je 0x140002b41
mov r9d, dword [rbx + 0xc0]
lea r8, str.Client_started_for_session_id__u__because_status_was_not_running_
mov edx, 4
call fcn.140003cf0
jmp 0x140002b41
test rcx, rcx
je 0x140002b41
mov eax, dword [rbx + 0xc0]
lea r9, str.Client_for_session_id__u_has_to_be_relaunched.
xor r8d, r8d
mov edx, 0x40004003
mov dword [rsp + 0x20], eax
call fcn.140003a50
cmp dword [rbx + 0xd8], ebp
je 0x1400029a0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x140002bd0
Capabilities:
Enumerate process modules
Enumerate processes on remote desktop session host

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x250
xor ebp, ebp
lea rax, [rax + 0x18]
mov rdi, rdx
mov dword [rax], ebp
mov esi, ecx
lea r9, [rsp + 0x30]
lea r8d, [rbp + 1]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
jne 0x140002c3a
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002d65
lea r9, str.WTSEnumerateProcesses_failed.
lea r8d, [rbp + 1]
mov edx, 0x60004002
call fcn.140003a50
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x270], rbx
mov ebx, ebp
cmp dword [rsp + 0x280], ebx
jbe 0x140002d53
cmp qword [rdi], rbp
jne 0x140002d53
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
cmp dword [rax + rcx*8], esi
jne 0x140002d44
mov r8d, dword [rax + rcx*8 + 4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140002d44
lea r9, [rsp + 0x288]
lea rdx, [rsp + 0x40]
mov r8d, 8
mov rcx, rax
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x288], ebp
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x140002d3a
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x200
call fcn.1400085b0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov r9d, 0x200
call sub.PSAPI.DLL_GetModuleBaseNameA
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x50]
mov r8d, 0xc
call fcn.140008b6c
test eax, eax
jne 0x140002d3a
mov rcx, qword [rsp + 0x38]
lea edx, [rax + 0xf]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140002d3a
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002d3a
lea r9, str.OpenProcessToken_failed.
lea r8d, [rax + 1]
mov edx, 0x60004002
call fcn.140003a50
lea rcx, [rsp + 0x38]
call fcn.140004a20
inc ebx
cmp ebx, dword [rsp + 0x280]
jb 0x140002c51
mov rcx, qword [rsp + 0x30]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002d70
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x180
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140002da6
lea rcx, str.SCM_could_not_be_opened.
call fcn.140008990
xor eax, eax
add rsp, 0x180
pop rbx
ret
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x190], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rax, str.Event_log
lea r8, str.AMD_External_Events_Utility
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
lea rdx, str.AMD_External_Events_Utility
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0x10
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x140002e5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_could_not_be_created.__GetLastError___i_n
mov edx, eax
call fcn.140008990
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x180
pop rbx
ret
lea rcx, str.Service_has_been_installed_successfully._n
call fcn.140008990
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x190]
mov eax, 1
add rsp, 0x180
pop rbx
ret

Function at 0x140002e90
Capabilities:
Delete service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140002ec0
lea rcx, str.SCM_could_not_be_opened.
call fcn.140008990
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.AMD_External_Events_Utility
mov r8d, 0x10000
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x140002f05
lea rcx, str.Service_could_not_be_opened._n
call fcn.140008990
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140002f3d
lea rcx, str.Service_could_not_be_deleted._n
call fcn.140008990
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.Service_has_been_deleted_successfully._n
call fcn.140008990
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140002f70
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0xf0
xor ebp, ebp
lea rdx, [rax + 0x10]
mov edi, ecx
lea ebx, [rbp + 1]
mov qword [rax + 0x10], rbp
call fcn.140002bd0
cmp qword [rsp + 0x108], rbp
jne 0x140002fcc
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140002fc5
lea r9, str.GetSystemToken_failed_to_get_a_token.__Session_id__u
xor r8d, r8d
mov edx, 0x60004002
mov dword [rsp + 0x20], edi
call fcn.140003a50
xor eax, eax
jmp 0x1400030ab
xor eax, eax
lea rcx, [rsp + 0x80]
xor edx, edx
lea r8d, [rax + 0x68]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.1400085b0
mov rcx, qword [rsp + 0x108]
lea rax, str.WinSta0Default
lea r8, str.atieclxx
xor r9d, r9d
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], ebp
mov word [rsp + 0xc0], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140003088
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140003086
lea r9, str.CreateProcessAsUser_failed.__Session_id__u
mov r8d, ebx
mov edx, 0x60004002
mov dword [rsp + 0x20], edi
call fcn.140003a50
mov ebx, ebp
lea rcx, [rsp + 0x60]
call fcn.140004a20
lea rcx, [rsp + 0x108]
call fcn.140004a20
lea rcx, [rsp + 0x68]
call fcn.140004a20
mov eax, ebx
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400030c0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, vtable.Service.0
xor edx, edx
mov rbx, rcx
mov qword [rcx], rax
lea rsi, [0x140045b00]
lea r8d, [rdx + 0x50]
mov rcx, rsi
call fcn.1400085b0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp eax, 0x13
ja 0x140003209
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov r8d, 8
mov edx, edi
xor ecx, ecx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x140003209
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
jne 0x140003145
mov dword [rsi + rdi*4], 3
jmp 0x140003151
cmp eax, 1
jne 0x140003204
mov dword [rsi + rdi*4], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x140045ad8]
mov edx, edi
call fcn.140002ba0
mov rcx, qword [0x140045ad8]
mov edx, edi
call fcn.140002900
test eax, eax
jne 0x1400031b2
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x140003209
lea r9, str.Create_client_event_failed_for_session_id_u.
lea r8d, [rax + 1]
mov edx, 0x60004003
mov dword [rsp + 0x20], edi
call fcn.140003a50
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, edi
call fcn.140002f70
test eax, eax
je 0x1400031dd
mov rcx, qword [0x140045ae0]
test rcx, rcx
je 0x1400031dd
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov r9d, edi
mov edx, 4
call fcn.140003cf0
mov rcx, qword [0x140045ad8]
xor r8d, r8d
mov edx, 0x200
call fcn.140002370
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call sub.WTSAPI32.dll_WTSFreeMemory
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003820
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x130
lea rax, vtable.LogMsg.0
mov rsi, rdx
mov rbx, rcx
mov qword [rcx], rax
xor eax, eax
lea rdx, [r11 + 8]
mov qword [rcx + 0x10c], rax
mov qword [rcx + 0x118], rax
lea rcx, str.LogOutputDebug
mov rbp, r8
mov dword [r11 + 8], eax
call fcn.1400043b0
test eax, eax
je 0x140003883
cmp dword [rsp + 0x140], 0
je 0x140003883
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputERecord
call fcn.1400043b0
test eax, eax
je 0x1400038ac
cmp dword [rsp + 0x140], 0
je 0x1400038ac
or dword [rbx + 0x10c], 2
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputFile
call fcn.1400043b0
test eax, eax
je 0x1400038d5
cmp dword [rsp + 0x140], 0
je 0x1400038d5
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x140]
lea rcx, str.LogMaskLevel
call fcn.1400043b0
test eax, eax
je 0x1400038fe
mov eax, dword [rsp + 0x140]
test eax, eax
je 0x1400038fe
mov dword [rbx + 0x110], eax
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.1400084d8
test byte [rbx + 0x10c], 2
je 0x14000392c
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x10]
call fcn.140007a80
test eax, eax
je 0x14000392c
and dword [rbx + 0x10c], 0xfffffffd
test byte [rbx + 0x10c], 4
je 0x14000397e
lea r9, [rbx + 8]
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.1400084d8
lea rdx, [0x14002d3e4]
lea rcx, [rsp + 0x20]
call fcn.140009054
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x14000397e
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003aa0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x640
mov rax, r8
mov rbx, rcx
test dword [rcx + 0x110], edx
je 0x140003b95
lea r8, [r11 + 0x20]
lea rcx, [r11 - 0x408]
mov rdx, rax
call fcn.14000942c
mov eax, dword [rbx + 0x10c]
test al, 1
jne 0x140003aea
test al, 4
je 0x140003b95
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x3c]
movzx eax, word [rsp + 0x3e]
movzx r9d, word [rsp + 0x3a]
movzx r8d, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._02d:_02d:_02d:_03d
lea rcx, [rsp + 0x440]
call fcn.1400084d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbx + 8]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x240]
lea r9, [rsp + 0x440]
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400084d8
test byte [rbx + 0x10c], 1
je 0x140003b6f
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140003b95
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.140009138
mov rcx, qword [rbx + 0x118]
call fcn.140008e50
add rsp, 0x640
pop rbx
ret