joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1bdac
Capabilities:
Check os version

Disassembly:
mov rax, rsp
sub rsp, 0x38
lea r9, [rax - 0x18]
lea r8, [rax + 8]
lea rdx, [rax + 0x10]
lea rcx, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov r11d, dword [rsp + 0x50]
cmp r11d, 5
jne 0x1bde8
cmp dword [rsp + 0x48], 2
jne 0x1bf36
lea eax, [r11 - 2]
jmp 0x1bf38
mov eax, 6
cmp r11d, eax
jne 0x1be85
mov ecx, dword [rsp + 0x48]
xor edx, edx
cmp ecx, edx
je 0x1bf38
cmp ecx, 1
jne 0x1be2f
cmp dword [rsp + 0x40], 0x1b58
jne 0x1be1b
lea eax, [rcx + 7]
jmp 0x1bf38
cmp dword [rsp + 0x40], 0x1bbc
sbb eax, eax
not eax
and eax, 0xa
jmp 0x1bf38
cmp ecx, 2
jne 0x1be6c
mov eax, dword [rsp + 0x40]
cmp eax, 0x203a
jne 0x1be47
lea eax, [rcx + 0xc]
jmp 0x1bf38
cmp eax, 0x20d0
jne 0x1be58
mov eax, 0xf
jmp 0x1bf38
mov ecx, 0x11
cmp eax, 0x23f0
cmove edx, ecx
mov eax, edx
jmp 0x1bf38
cmp ecx, 3
jne 0x1bf36
cmp dword [rsp + 0x40], 0x2580
lea eax, [rcx + 0x11]
cmove edx, eax
jmp 0x1be65
cmp r11d, 0xa
jne 0x1bf36
xor edx, edx
cmp dword [rsp + 0x48], edx
jne 0x1bf36
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x37b1
jne 0x1beaf
lea eax, [rdx + 0x27]
jmp 0x1bf38
lea eax, [rcx - 0x2b5e]
cmp eax, 0xc4d
ja 0x1bec3
mov eax, 0x25
jmp 0x1bf38
cmp ecx, 0x2b5b
jne 0x1bed2
mov eax, 0x23
jmp 0x1bf38
cmp ecx, 0x2b4a
jne 0x1bee1
mov eax, 0x21
jmp 0x1bf38
cmp ecx, 0x295a
jne 0x1bef0
mov eax, 0x1f
jmp 0x1bf38
cmp ecx, 0x2945
jne 0x1beff
mov eax, 0x1d
jmp 0x1bf38
cmp ecx, 0x2933
jne 0x1bf0e
mov eax, 0x1b
jmp 0x1bf38
cmp ecx, 0x2924
jne 0x1bf1d
mov eax, 0x19
jmp 0x1bf38
add ecx, 0xffffd800
mov eax, 0x17
cmp ecx, 0x124
cmovbe edx, eax
jmp 0x1be65
xor eax, eax
add rsp, 0x38
ret

Function at 0x1bf44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov r13, rdx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1c03b
movsxd rax, dword [rcx + 0x3c]
mov ebx, dword [rax + rcx + 0x8c]
mov dword [rsp + 0x50], ebx
mov edx, dword [rax + rcx + 0x88]
cmp edx, r8d
je 0x1c03b
mov rax, rdx
add rax, rcx
je 0x1c03b
mov rsi, rax
sub rsi, rcx
mov r14d, dword [rax + 0x1c]
add r14, rcx
mov r12d, dword [rax + 0x24]
add r12, rcx
mov r11d, dword [rax + 0x20]
add r11, rcx
mov qword [rsp + 0x58], r11
mov r15d, dword [rax + 0x18]
mov r9d, dword [rax + 0x14]
mov dword [rsp + 0x50], r9d
mov edx, r8d
mov dword [rsp], edx
cmp edx, r15d
jae 0x1c039
mov r10d, edx
movsx eax, word [r12 + r10*2]
cmp eax, r9d
jae 0x1c035
mov r9d, dword [r14 + rax*4]
cmp r9, rsi
jb 0x1bff1
lea rax, [rsi + rbx]
cmp r9, rax
jb 0x1c029
mov eax, dword [r11 + r10*4]
add rax, rcx
mov rdi, r13
sub rdi, rax
movzx r10d, byte [rax]
movzx r11d, byte [rax + rdi]
sub r10d, r11d
jne 0x1c014
inc rax
test r11d, r11d
jne 0x1bffe
cmp r10d, r8d
jne 0x1c024
lea r8, [r9 + rcx]
mov qword [rsp + 8], r8
jmp 0x1c039
mov r11, qword [rsp + 0x58]
inc edx
mov dword [rsp], edx
mov r9d, dword [rsp + 0x50]
jmp 0x1bfcd
xor eax, eax
jmp 0x1c04a
jmp 0x1c047
xor eax, eax
jmp 0x1c04a
mov rax, r8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1c918
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rcx
xor r9d, r9d
mov ecx, edx
movzx eax, word [rbx + 0x14]
movzx r11d, word [rbx + 6]
lea r8, [rax + rbx + 0x18]
test r11d, r11d
je 0x1c959
mov r10d, dword [r8 + 0xc]
cmp rcx, r10
jb 0x1c94d
mov eax, dword [r8 + 8]
add eax, r10d
cmp rcx, rax
jb 0x1c95c
inc r9d
add r8, 0x28
cmp r9d, r11d
jb 0x1c938
xor r8d, r8d
test r8, r8
je 0x1c974
mov eax, dword [rbx + 0x3c]
dec eax
not eax
and eax, dword [r8 + 0x14]
sub eax, dword [r8 + 0xc]
add eax, edx
jmp 0x1c976
mov eax, edx
mov rbx, qword [rsp + 8]
ret

Function at 0x1cac4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x70
xor r12d, r12d
mov qword [rax + 0x10], r12
mov rsi, r12
mov qword [rax - 0x58], r12
lea rdx, [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, r12d
jl 0x1cbe6
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rbx, rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
lea edx, [r12 + 0x28]
lea r8d, [r12 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rbx, qword [rbx + 0x20]
mov edx, 0x80
lea r8d, [r12 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
movzx edx, word [rbx + 0x60]
lea r8d, [r12 + 1]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov word [rsp + 0x28], r12w
mov word [rsp + 0x2a], r12w
mov r8b, 1
lea rdx, [rbx + 0x60]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
cmp eax, r12d
jl 0x1cbc6
movzx edx, word [rsp + 0x28]
inc rdx
lea ecx, [r12 + 1]
call fcn.0001c068
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp rax, r12
je 0x1cbbb
movzx r8d, word [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.0001db70
movzx r11d, word [rsp + 0x28]
mov byte [r11 + rsi], r12b
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
jmp 0x1cbcd
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x214cc1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx bx, r12b
movzx r11, si
mov rbx, 0x34d018d4
sub edi, edi
movsx ebx, r14w
movzx ebx, r8b
mov r11, rcx
movzx r9w, al
mov r10w, bx
mov r8, rdi
nop
movzx r9d, byte [r11]
seta r10b
mov r10w, r15w
movzx r10d, byte [rdx]
jmp 0x214d0a
inc r11
jmp 0x214d12
inc rdx
stc
test bl, bl
jmp 0x214d1d
je 0x214d53
mov ecx, r8d
xchg al, al
cdqe
btr eax, 0x48
mov eax, 0x4df23990
rol eax, cl
test rax, 0x7e3522e5
stc
add al, r8b
stc
test r10b, bl
cmc
xor r9b, al
jmp 0x214d4c
inc r8
cmp ax, 0x2644
test r9b, r9b
jmp 0x214d5b
je 0x214d6f
cmp r9b, r10b
jmp 0x214d69
je 0x214cf5
cmp r9b, r10b
jmp 0x214d77
jae 0x214da2
or eax, 0xffffffff
movsx di, r9b
xchg dil, bl
movzx rdi, cx
mov rbx, qword [rsp + 8]
bswap di
movzx edi, r11w
setno dil
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
seta dil
xchg al, al
mov eax, edi
movzx edi, ax
xchg di, di
movsx rdi, bp
mov rdi, qword [rsp + 0x10]
jmp 0x214dc3
ret
Function at 0x14000234c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x680
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rsi, rcx
lea rcx, [rsp + 0x272]
xor ebp, ebp
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x270], bp
call fcn.140025190
lea r8d, [rbp + 0x23]
lea rdx, [rsp + 0x470]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebp
je 0x1400024e9
mov r12d, 0x100
lea r8, [rsp + 0x470]
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140025d44
lea r8, str.SiemensAutomationTraceEngineMetaTraceService_
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140025ca8
lea r8, str.Automation_CT_TraceEngine_GlobalSettings.xml
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140025ca8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
or rdi, 0xffffffffffffffff
cmp rbx, rdi
jne 0x1400024d2
lea rcx, [rsp + 0x270]
xor edx, edx
mov r8d, 0x200
call fcn.140025190
lea r8d, [rbp + 0x2b]
lea rdx, [0x140096e10]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebp
je 0x1400024ed
lea r8, [0x140096e10]
lea rcx, [rsp + 0x270]
mov rdx, r12
mov dword [0x140097020], 1
call fcn.140025d44
lea r8, str.SiemensAutomationTraceEngineMetaTraceService_
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140025ca8
lea r8, str.Automation_CT_TraceEngine_GlobalSettings.xml
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140025ca8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rbx, rdi
je 0x1400024ed
lea r8, [rsp + 0x270]
mov rdx, r12
mov rcx, rsi
call fcn.140025d44
mov edi, ebp
jmp 0x1400024ed
or rdi, 0xffffffffffffffff
mov eax, edi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140025570
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140002ac0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x888
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rbx, qword [rsp + 0x8f0]
mov rdi, qword [rsp + 0x8f8]
movzx ebp, cx
movzx r13d, r8w
mov r12d, edx
mov r15d, 0x200
lea rcx, [rsp + 0x470]
mov r8, r15
xor edx, edx
mov rsi, r9
call fcn.140025190
lea rcx, [rsp + 0x70]
mov r8, r15
xor edx, edx
call fcn.140025190
lea rcx, [rsp + 0x270]
mov r8, r15
xor edx, edx
call fcn.140025190
lea rax, [rsp + 0x70]
lea r11, [rsp + 0x470]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x270]
xor r14d, r14d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r11
cmp rsi, r14
je 0x140002b7b
lea rcx, [rsp + 0x470]
mov r8, rsi
mov rdx, r15
call fcn.140025c34
cmp rbx, r14
je 0x140002b90
lea rcx, [rsp + 0x70]
mov r8, rbx
mov rdx, r15
call fcn.140025c34
cmp rdi, r14
je 0x140002ba8
lea rcx, [rsp + 0x270]
mov r8, rdi
mov rdx, r15
call fcn.140025c34
lea rdx, str.S7TraceServiceX.exe
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov rbx, rax
lea rax, [rsp + 0x50]
mov r9d, r12d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
movzx edx, bp
mov rcx, rbx
mov word [rsp + 0x28], r13w
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp eax, r14d
jne 0x140002c6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14006e308]
cmp word [rcx + 0x1aa415], r14w
je 0x140002c6a
lea r8, str._r_n_____Fehler_beim_EVENTLOG_Eintrag___Errcode___x____r_n
lea rcx, [rsp + 0x670]
mov r9d, eax
mov rdx, r15
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x670]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0x670]
mov r8, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140025570
add rsp, 0x888
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002ec8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rax, qword [0x14006e308]
xor r15d, r15d
movsx r12, cx
mov r8, r12
mov r14, rdx
mov edi, r15d
lea esi, [r15 + 0x10]
lea r11d, [r15 + 1]
imul r8, r8, 0x69a
movsx r13, word [r8 + rax + 0x416]
lea rax, [0x14006f45e]
mov rbx, r13
imul rbx, rbx, 0x22c
add rbx, rax
lea rax, [0x140071520]
cmp word [rbx], 0xffff
je 0x140003052
movsx rbp, word [rbx]
movzx r8d, r13w
movzx edx, r12w
imul rbp, rbp, 0x2098
mov r10, qword [rax + rbp + 0x8c]
lea rcx, [rax + rbp + 4]
call fcn.140002518
cmp r10, r15
je 0x14000304b
cmp eax, r15d
je 0x14000304b
mov ecx, 1
mov r8, r14
xor edx, edx
add dword [0x14006e2c0], ecx
mov ecx, eax
call qword [r10 + 0x10]
mov edi, eax
cmp eax, r15d
lea rax, [0x140071520]
je 0x14000308c
dec dword [0x14009244f]
mov ecx, 1
sub dword [0x14006e2c0], ecx
mov rcx, qword [0x14006e308]
cmp word [rcx + 0x1aa415], r15w
je 0x14000309c
lea rdx, [rax + rbp + 0xc]
lea rcx, [rsp + 0x230]
call fcn.140001a50
lea r11, [rsp + 0x230]
lea r8, str._r_n___Fehler_retval___x__beim_Write_des_TraceWriters__s___r_n
lea rcx, [rsp + 0x30]
mov r9d, edi
mov edx, 0x200
mov qword [rsp + 0x20], r11
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x30]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0x30]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, 1
lea rax, [0x140071520]
add rbx, 2
sub rsi, r11
jne 0x140002f3b
mov eax, edi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140025570
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r11d, 1
add word [0x1400922c0], r11w
jmp 0x140003052
mov r11d, 1
jmp 0x140003052
Function at 0x1400030a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rax, qword [0x14006e308]
xor r15d, r15d
movsx r12, cx
mov r8, r12
mov r14, rdx
mov edi, r15d
lea esi, [r15 + 0x10]
lea r11d, [r15 + 1]
imul r8, r8, 0x69a
movsx r13, word [r8 + rax + 0x416]
lea rax, [0x14006f45e]
mov rbx, r13
imul rbx, rbx, 0x22c
add rbx, rax
lea rax, [0x140071520]
cmp word [rbx], 0xffff
je 0x14000324d
movsx rbp, word [rbx]
movzx r8d, r13w
movzx edx, r12w
imul rbp, rbp, 0x2098
mov r10, qword [rax + rbp + 0x8c]
lea rcx, [rax + rbp + 4]
call fcn.140002518
cmp r10, r15
je 0x140003246
cmp eax, r15d
je 0x140003246
add dword [0x14006e2c0], r11d
xor r8d, r8d
mov rdx, r14
mov ecx, eax
call qword [r10 + 0x28]
mov edi, eax
cmp eax, r15d
lea rax, [0x140071520]
je 0x140003287
dec dword [0x14006e2c0]
dec dword [0x14009244f]
lea rdx, [rax + rbp + 0xc]
lea rcx, [rsp + 0x230]
call fcn.140001a50
mov r11, qword [0x14006e308]
cmp word [r11 + 0x1aa415], r15w
je 0x140003215
lea rax, [rsp + 0x230]
lea r8, str._r_n___Fehler_retval___x__bei_Close_des_TraceWriters__s___r_n
lea rcx, [rsp + 0x30]
mov r9d, edi
mov edx, 0x200
mov qword [rsp + 0x20], rax
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x30]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0x30]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 2
lea rax, [rsp + 0x230]
lea r9, str.Close_TraceWriter
mov edx, 0xc000100c
mov r8d, ecx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.140002ac0
mov r11d, 1
lea rax, [0x140071520]
add rbx, 2
sub rsi, r11
jne 0x140003117
mov eax, edi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140025570
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r11d, 1
add word [0x1400922c0], r11w
jmp 0x14000324d
Function at 0x140003298
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rax, qword [0x14006e308]
xor r11d, r11d
movsx r12, cx
mov r8, r12
mov r13, rdx
mov edi, r11d
lea esi, [r11 + 0x10]
lea r15d, [r11 + 1]
imul r8, r8, 0x69a
movsx r14, word [r8 + rax + 0x416]
lea rax, [0x14006f45e]
mov rbx, r14
imul rbx, rbx, 0x22c
add rbx, rax
lea rax, [0x140071520]
cmp word [rbx], 0xffff
je 0x140003440
movsx rbp, word [rbx]
movzx r8d, r14w
movzx edx, r12w
imul rbp, rbp, 0x2098
mov r10, qword [rax + rbp + 0x8c]
lea rcx, [rax + rbp + 4]
call fcn.140002518
cmp r10, r11
je 0x140003439
cmp eax, r11d
je 0x140003439
add dword [0x14006e2c0], r15d
mov rdx, r13
mov ecx, eax
call qword [r10 + 0x18]
xor r11d, r11d
mov edi, eax
cmp eax, r11d
lea rax, [0x140071520]
je 0x14000347a
sub dword [0x14006e2c0], r15d
dec dword [0x14009244f]
lea rdx, [rax + rbp + 0xc]
lea rcx, [rsp + 0x230]
call fcn.140001a50
mov r11, qword [0x14006e308]
xor ebp, ebp
cmp word [r11 + 0x1aa415], bp
je 0x14000340a
lea rax, [rsp + 0x230]
lea r8, str._r_n___Fehler_retval___x__bei_SyncPoint_des_TraceWriters__s___r_n
lea rcx, [rsp + 0x30]
mov r9d, edi
mov edx, 0x200
mov qword [rsp + 0x20], rax
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [rbp + 2]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x30]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0x30]
mov r8, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rsp + 0x230]
lea r9, str.SyncPointTraceWriter
mov r8d, 2
mov ecx, r15d
mov edx, 0xc000100d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.140002ac0
xor r11d, r11d
lea rax, [0x140071520]
add rbx, 2
sub rsi, r15
jne 0x14000330b
mov eax, edi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140025570
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
add word [0x1400922c0], r15w
jmp 0x140003440
Function at 0x14000a9e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
jne 0x14000aa03
mov ecx, 0x80004005
call fcn.14000a640
int3
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, eax
test rbx, rbx
je 0x14000aa75
cmp dword [rdi], 0
jbe 0x14000aa72
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x14000aa68
cmp ecx, 2
jbe 0x14000aa5f
cmp ecx, 7
jne 0x14000aa68
cmp dword [rdi], 1
jb 0x14000aa68
mov eax, dword [rdi]
cmp byte [rax + rbx - 1], 0
jne 0x14000aa68
cmp dword [rdi], 1
jbe 0x14000aa75
cmp byte [rax + rbx - 2], 0
jmp 0x14000aa66
mov eax, dword [rdi]
cmp byte [rax + rbx - 1], 0
je 0x14000aa75
mov byte [rbx], 0
mov eax, 0xd
jmp 0x14000aa78
mov byte [rbx], 0
mov eax, r11d
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b3b0
Capabilities:
Create service
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
call fcn.14000b344
test eax, eax
je 0x14000b3ef
mov eax, 1
jmp 0x14000b4f0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ecx, ecx
mov rdi, rax
test rax, rax
jne 0x14000b424
lea r8, [rbx + 0x50]
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000b4f0
lea rdx, [rsp + 0x80]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
lea rbp, [rbx + 0x50]
lea rax, str.RPCSS
mov ebx, 1
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov r9d, 0xf01ff
mov r8, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
jne 0x14000b4c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
xor ecx, ecx
mov r8, rbp
lea rdx, str.Couldnt_create_service
jmp 0x14000b417
lea rax, str.Siemens_SIMATIC_Common_Trace_Service
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140025570
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000b51c
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
call fcn.14000b344
test eax, eax
jne 0x14000b546
mov eax, 1
jmp 0x14000b5ea
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x14000b56b
lea r8, [rbx + 0x50]
lea rdx, str.Couldnt_open_service_manager
jmp 0x14000b5dd
lea rsi, [rbx + 0x50]
mov r8d, 0x10020
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x14000b59b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.Couldnt_open_service
jmp 0x14000b5da
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x14000b53c
lea rdx, str.Service_could_not_be_deleted
mov r8, rsi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b61c
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x40
mov edx, 3
mov r12, rcx
call fcn.14000b600
mov rcx, qword [0x14006d428]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14006ee48]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [r12 + 0x174]
xor r9d, r9d
lea edx, [r9 + 0x12]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov rcx, r12
call fcn.14000b344
xor edi, edi
cmp eax, edi
jne 0x14000b689
lea eax, [rdi + 1]
jmp 0x14000b744
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
cmp rax, rdi
jne 0x14000b6bf
lea r8, [r12 + 0x50]
lea rdx, str.Couldnt_open_service_manager
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000b744
add r12, 0x50
mov r8d, 0x24
mov rcx, rax
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
cmp rax, rdi
jne 0x14000b6f2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, r12
lea rdx, str.Couldnt_open_service
jmp 0x14000b6ad
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x14000b724
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, edi
je 0x14000b75a
cmp dword [rsp + 0x24], 1
jne 0x14000b707
mov edi, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
ret
lea rdx, str.QueryServiceStatus_...__failed__Service_could_not_be_stopped
xor r9d, r9d
mov r8, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000b730