joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a270
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rcx
mov r10d, 0xffffffff
mov ecx, r10d
movzx r9d, byte [rax]
lea r8, [rax + 1]
test r9b, r9b
je 0x14000a2c0
lea r11, [0x14004f940]
cmp r9b, 0x23
jne 0x14000a2a3
cmp byte [r8], r9b
jne 0x14000a2a3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000a290
not ecx
jmp fcn.14000a1f0

Function at 0x14000ac20
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x14004f940]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f2c], ebx
jne 0x14000acb8
xor r9d, r9d
mov r8, r10
mov ecx, ebx
lea edx, [r9 + 4]
call fcn.140007fe0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000ad40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x14004f940]
movss xmm2, dword [rcx + 0x110]
movss xmm3, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14000b8a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000b8bb
mov qword [r8], 0
call fcn.14000ba00
mov rbx, rax
test rax, rax
jne 0x14000b8d1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000b9d9
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b9d9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000b9d9
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b9d9
cmp rdi, 0xffffffffffffffff
je 0x14000b9d9
mov rax, qword [0x1400a4500]
test rax, rax
je 0x14000b952
inc dword [rax + 0xf4]
mov rdx, qword [0x1400a4510]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14000b9d9
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14000b9b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400a4500]
test rax, rax
je 0x14000b99f
dec dword [rax + 0xf4]
mov rdx, qword [0x1400a4510]
mov rcx, rsi
call qword [0x140090008]
jmp 0x14000b9e2
test ebp, ebp
jle 0x14000b9c3
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000b9d4
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000b9e4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14000bcf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000bd4d
lea rbx, [0x14004f940]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000bd34
cmp r10, 2
jb 0x14000bd34
cmp byte [r9], r8b
jne 0x14000bd34
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000bd10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000bd8f
lea rbx, [0x14004f940]
cmp r8b, 0x23
jne 0x14000bd73
cmp byte [r9], r8b
jne 0x14000bd73
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000bd60
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000d6d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c90], 0
lea rbx, [rcx + 0x5c98]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000d777
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14000d72a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001c210
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001bcc0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5ca0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400a4508]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14000d77f
mov rcx, rbx
call fcn.14001bcc0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140016440
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400a4500]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bf4], ecx
test rbx, rbx
je 0x1400164af
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.1400164c0
lea rdx, [0x140050ff4]
mov rcx, rbx
mov rdi, rax
call fcn.14000ba00
mov rbx, rax
test rax, rax
je 0x1400164aa
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001a7d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1400a4500]
cmp byte [rbx + 0x5bf1], 0
jne 0x14001a92a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001a923
lea rdx, [0x140050ff0]
mov qword [rsp + 0x40], rdi
call fcn.14000ba00
mov rdi, rax
test rax, rax
je 0x14001a91e
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001a90b
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001a90b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001a90b
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001a90b
cmp rsi, 0xffffffffffffffff
je 0x14001a90b
mov rax, qword [0x1400a4500]
test rax, rax
je 0x14001a895
inc dword [rax + 0xf4]
mov rdx, qword [0x1400a4510]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x14001a90b
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001a8d1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001a8e7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001a8e7
mov rdx, rsi
mov rcx, rbp
call fcn.14000d200
mov rax, qword [0x1400a4500]
test rax, rax
je 0x14001a8f9
dec dword [rax + 0xf4]
mov rdx, qword [0x1400a4510]
mov rcx, rbp
call qword [0x140090008]
jmp 0x14001a914
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bf1], 1
movss xmm0, dword [rbx + 0x5bf4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001a96d
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bf4], xmm0
jb 0x14001a96d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001a95c
call fcn.140016440
jmp 0x14001a963
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bf4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140030ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400a4500]
mov rcx, qword [rax + 0x4b40]
mov r10, qword [rax + 0x3ed8]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x298]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x238], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x298]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x140025d70

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400a4500]
mov rcx, qword [rax + 0x4b40]
mov r9, qword [rax + 0x3ed8]
movups xmm0, xmmword [r9 + 0x238]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x298]
add rsp, 0x38
jmp 0x140025d70
Function at 0x14004cf90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004cfda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004cfda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004cfda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004cfda
cmp dword [rcx + 0x84], 0xe
jbe 0x14004cfda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004cfdc
xor al, al
add rsp, 0x28
ret
Function at 0x1400020a0
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.140008260
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140004aa0
lea rcx, [rbx + 0xb8]
lea rdx, str.GlobalEEU_Memory_Map_Mutex
mov dword [rbx + 0xd8], esi
call fcn.140005780
test eax, eax
jne 0x140002145
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002260
lea r9, str.CreateMutex_failed.
mov edx, 0x60004008
mov r8d, 1
call fcn.140003aa0
jmp 0x140002260
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 0x140002192
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002260
lea r9, str.CreateFileMapping_failed.
jmp 0x140002130
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 0x1400021d6
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002260
lea r9, str.MapViewOfFile_failed.
jmp 0x140002130
xor edx, edx
mov r8d, 0x19e0
mov rcx, rax
call fcn.140008260
mov rax, qword [rbx + 0xb0]
lea rdx, [rsp + 0x80]
lea rcx, str.ClientStatusMonitoring
mov dword [rax], 7
call fcn.140004400
test eax, eax
je 0x140002256
cmp dword [rsp + 0x80], esi
je 0x140002256
lea r8, [0x140002bc0]
lea rcx, [rbx + 0xd0]
mov r9, rbx
mov edx, 8
call fcn.140005900
test eax, eax
jne 0x140002256
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002260
lea r9, str.CreateTheThread_for_GetClientStatusThread_failed.
lea r8d, [rax + 1]
mov edx, 0x60004002
call fcn.140003aa0
jmp 0x140002260
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 0x1400029c0
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xd8], 0
mov rbx, rcx
jne 0x140002bac
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
xor ebp, ebp
nop word [rax + rax]
lea rcx, [0x14003b7b0]
mov edx, 0x3a98
call fcn.1400058e0
cmp eax, 0x102
jne 0x140002b9d
cmp dword [rbx + 0xd8], ebp
jne 0x140002b9d
cmp dword [rbx + 0xc0], 0xffffffff
je 0x140002b91
cmp dword [rbx + 0xcc], ebp
je 0x140002a38
mov dword [rbx + 0xcc], ebp
jmp 0x140002b91
lea rcx, [rbx + 0xb8]
call fcn.140005740
test eax, eax
jne 0x140002a72
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002b91
lea r9, str.IPCService::GetClientStatusLoop_AcquireTheMutex_failed.
lea r8d, [rax + 1]
mov edx, 0x60004008
call fcn.140003aa0
jmp 0x140002b91
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.140005800
test dil, 1
jne 0x140002b91
test dil, 4
jne 0x140002b91
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 0x140002b91
mov rcx, qword [rsp + 0x58]
cmp dword [rcx], 2
jb 0x140002af3
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x140002b91
call sub.WTSAPI32.dll_WTSFreeMemory
mov edx, dword [rbx + 0xc0]
mov rcx, rbx
call fcn.140002950
test eax, eax
jne 0x140002b39
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002b91
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.140003aa0
jmp 0x140002b91
mov ecx, dword [rbx + 0xc0]
call fcn.140002fc0
mov rcx, qword [0x14003b7a8]
test eax, eax
je 0x140002b6e
test rcx, rcx
je 0x140002b91
mov r9d, dword [rbx + 0xc0]
lea r8, str.Client_started_for_session_id__u__because_status_was_not_running_
mov edx, 4
call fcn.140003d40
jmp 0x140002b91
test rcx, rcx
je 0x140002b91
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.140003aa0
cmp dword [rbx + 0xd8], ebp
je 0x1400029f0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x140002c20
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 0x140002c8a
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002db5
lea r9, str.WTSEnumerateProcesses_failed.
lea r8d, [rbp + 1]
mov edx, 0x60004002
call fcn.140003aa0
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x270], rbx
mov ebx, ebp
cmp dword [rsp + 0x280], ebx
jbe 0x140002da3
cmp qword [rdi], rbp
jne 0x140002da3
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
cmp dword [rax + rcx*8], esi
jne 0x140002d94
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 0x140002d94
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 0x140002d8a
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x200
call fcn.140008260
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.140008bf4
test eax, eax
jne 0x140002d8a
mov rcx, qword [rsp + 0x38]
lea edx, [rax + 0xf]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140002d8a
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140002d8a
lea r9, str.OpenProcessToken_failed.
lea r8d, [rax + 1]
mov edx, 0x60004002
call fcn.140003aa0
lea rcx, [rsp + 0x38]
call fcn.140004a70
inc ebx
cmp ebx, dword [rsp + 0x280]
jb 0x140002ca1
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 0x140002dc0
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 0x140002df6
lea rcx, str.SCM_could_not_be_opened.
call fcn.140008a18
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], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x140002eaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_could_not_be_created.__GetLastError___i_n
mov edx, eax
call fcn.140008a18
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.140008a18
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 0x140002ee0
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 0x140002f10
lea rcx, str.SCM_could_not_be_opened.
call fcn.140008a18
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 0x140002f55
lea rcx, str.Service_could_not_be_opened._n
call fcn.140008a18
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 0x140002f8d
lea rcx, str.Service_could_not_be_deleted._n
call fcn.140008a18
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.140008a18
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 0x140002fc0
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.140002c20
cmp qword [rsp + 0x108], rbp
jne 0x14000301c
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140003015
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.140003aa0
xor eax, eax
jmp 0x1400030fb
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.140008260
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 0x1400030d8
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400030d6
lea r9, str.CreateProcessAsUser_failed.__Session_id__u
mov r8d, ebx
mov edx, 0x60004002
mov dword [rsp + 0x20], edi
call fcn.140003aa0
mov ebx, ebp
lea rcx, [rsp + 0x60]
call fcn.140004a70
lea rcx, [rsp + 0x108]
call fcn.140004a70
lea rcx, [rsp + 0x68]
call fcn.140004a70
mov eax, ebx
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret