joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e0f90
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
or qword [rsp + 0x58], 0xffffffffffffffff
lea rdx, [rsp + 0x50]
mov rdi, rcx
mov rcx, qword [rcx + 0x68]
call fcn.1400c2278
mov ebx, eax
test eax, eax
jns 0x1400e0fbe
mov ecx, eax
jmp 0x1400e1049
cmp dword [rsp + 0x50], 0
je 0x1400e104e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x68]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14003bf24
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400e101b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
jmp 0x1400e0fb7
lea rcx, [rsp + 0x58]
call fcn.140039858
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e100a
cmp qword [rsp + 0x60], 0x200000
jle 0x1400e104e
mov ebx, 0x8007000d
mov ecx, ebx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x58]
call fcn.14003baa4
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400e1370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e13a0
test al, 0x10
je 0x1400e1397
xor eax, eax
test ebx, ebx
setne al
jmp 0x1400e13a2
xor eax, eax
test ebx, ebx
sete al
jmp 0x1400e13a2
xor eax, eax
mov dword [rdi], eax
xor ecx, ecx
call fcn.14006a5bc
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400f4040
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r9
lea r9, [rax - 0x18]
mov qword [rax - 0x18], rdi
mov rcx, 0xffffffff80000001
lea r8d, [rdi + 1]
call fcn.14003a1c8
mov dword [rsp + 0x60], eax
mov ebx, eax
test eax, eax
jns 0x1400f4088
mov ecx, eax
call fcn.14003e510
jmp 0x1400f40d9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.State
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400f40d2
cmp eax, 2
je 0x1400f40d7
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14003dffc
mov ebx, dword [rsp + 0x60]
test eax, eax
jne 0x1400f40d7
mov ecx, ebx
jmp 0x1400f4081
mov edi, 1
mov dword [rsi], edi
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x30]
call fcn.14003bae4
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f4654
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor eax, eax
lea r9, [rbp + 0x48]
and qword [rbp - 0x10], rax
mov rsi, rdx
and qword [rsp + 0x20], rax
lea rdx, [rbp + 0x40]
mov rdi, rcx
mov dword [rbp + 0x40], eax
xor r12d, r12d
lea r8d, [rax + 4]
mov rcx, rsi
mov qword [rbp - 0x18], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400f46bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
call fcn.14003e510
jmp 0x1400f473e
cmp dword [rbp + 0x48], 4
je 0x1400f46cb
mov ecx, 0x8007000d
mov ebx, ecx
jmp 0x1400f46b2
mov eax, dword [rbp + 0x40]
sub eax, 1
je 0x1400f4705
cmp eax, 1
jne 0x1400f46c2
lea rax, [rbp - 0x20]
mov rdx, rsi
lea r9, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x1c]
call fcn.1400f7908
mov ebx, eax
test eax, eax
js 0x1400f46b0
mov r12, qword [rbp - 0x18]
mov r14d, dword [rbp - 0x20]
mov r15d, dword [rbp - 0x1c]
jmp 0x1400f471c
mov rdx, rsi
call fcn.1400f781c
mov ebx, eax
test eax, eax
js 0x1400f46b0
mov r14d, 1
xor r15d, r15d
and qword [rbp - 0x18], 0
lea rcx, [rdi + 0x18]
mov rdx, r12
mov qword [rdi + 8], rsi
call fcn.14003be64
mov eax, dword [rbp + 0x40]
mov dword [rdi], eax
mov dword [rdi + 0x20], r15d
mov dword [rdi + 0x10], r14d
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rbp - 0x18]
call fcn.14003b754
lea rcx, [rbp - 0x10]
call fcn.14003b77c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400f781c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x40]
mov rbx, rdx
call fcn.1400eda74
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x78
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400f787a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
jmp 0x1400f78da
cmp dword [rsp + 0x30], 0x78
je 0x1400f7888
mov ebx, 0x8007000d
jmp 0x1400f78d8
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14007ae18
mov ebx, eax
test eax, eax
js 0x1400f7876
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400f78df
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.14006a1ec
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001af80
add rsp, 0xd0
pop rbx
ret
Function at 0x14010b760
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r15, rcx
mov r14, r8
lea rcx, [rsp + 0x68]
mov rsi, rdx
call fcn.14001a6c8
lea rcx, [rbp - 0x80]
call fcn.140108d8c
mov rdx, qword [r15 + 8]
lea rax, [rsp + 0x58]
and qword [rsp + 0x58], 0
mov r9d, 8
and qword [rsp + 0x48], 0
xor r8d, r8d
and qword [rsp + 0x50], 0
mov rcx, 0xffffffff80000002
and dword [rsp + 0x40], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x14010b7ee
xor ebx, ebx
jmp 0x14010b993
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14003dffc
mov ebx, dword [rsp + 0x40]
test eax, eax
jne 0x14010b80e
mov ecx, ebx
call fcn.14003e510
jmp 0x14010b993
xor edi, edi
lea r13d, [rdi + 1]
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x64]
and qword [rsp + 0x30], 0
lea r8, [rbp - 0x30]
and qword [rsp + 0x28], 0
mov edx, edi
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add edi, r13d
cmp eax, 0x103
je 0x14010b986
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14003dffc
test eax, eax
je 0x14010b97d
lea rcx, [rsp + 0x48]
call fcn.14003bf64
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x48]
lea rdx, [rbp - 0x30]
call fcn.1400ba0ec
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
js 0x14010b96a
lea rcx, [rsp + 0x50]
call fcn.14003bf64
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
lea r8, [0x140361c3c]
mov rcx, 0xffffffff80000002
call fcn.140067e90
test eax, eax
js 0x14010b971
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14010b814
lea rcx, [rbp - 0x38]
call fcn.14003bf64
lea rcx, [rbp - 0x80]
call fcn.14003bf64
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.14003f2d8
mov ebx, eax
test eax, eax
js 0x14010b96a
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.14003f2d8
mov ebx, eax
test eax, eax
js 0x14010b96a
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
and dword [rbp - 0x44], 0
lea r8, [0x140361c24]
mov rcx, 0xffffffff80000002
call fcn.140067e7c
test eax, eax
js 0x14010b94b
mov ecx, dword [rsp + 0x60]
cmp ecx, r13d
ja 0x14010b971
xor eax, eax
test ecx, ecx
cmovne eax, r13d
mov dword [rbp - 0x44], eax
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x68]
call fcn.14010cad0
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x14010b814
mov ecx, eax
jmp 0x14010b804
mov ecx, 0x8004f807
mov ebx, ecx
jmp 0x14010b804
mov ebx, dword [rsp + 0x40]
jmp 0x14010b802
lea rdx, [rsp + 0x68]
mov rcx, r14
call fcn.140109138
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x50]
call fcn.14003ba98
lea rcx, [rsp + 0x48]
call fcn.14003ba98
lea rcx, [rsp + 0x58]
call fcn.14003bae4
lea rcx, [rbp - 0x80]
call fcn.140109094
lea rcx, [rsp + 0x68]
call fcn.140108ef8
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14001af80
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14010b9f4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov r14, rdx
lea rcx, [rbp - 0x61]
call fcn.14001a6c8
lea rcx, [rbp - 0x51]
call fcn.140108d58
mov rdx, qword [rsi]
lea rax, [rbp - 0x71]
and qword [rbp - 0x71], 0
mov r9d, 8
and qword [rbp - 0x69], 0
xor r8d, r8d
and dword [rbp - 0x79], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x14010ba70
xor ebx, ebx
jmp 0x14010bb41
lea rdx, [rbp - 0x79]
mov ecx, eax
call fcn.14003dffc
mov ebx, dword [rbp - 0x79]
test eax, eax
jne 0x14010ba8e
mov ecx, ebx
call fcn.14003e510
jmp 0x14010bb41
xor edi, edi
and qword [rsp + 0x38], 0
lea r9, [rbp - 0x75]
and qword [rsp + 0x30], 0
lea r8, [rbp - 0x19]
and qword [rsp + 0x28], 0
mov edx, edi
mov rcx, qword [rbp - 0x71]
and qword [rsp + 0x20], 0
mov dword [rbp - 0x75], 0x25
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
cmp eax, 0x103
je 0x14010bb35
lea rdx, [rbp - 0x79]
mov ecx, eax
call fcn.14003dffc
test eax, eax
je 0x14010bb2d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14006853c
test eax, eax
js 0x14010bb23
lea r8, [rbp - 0x51]
mov rcx, rsi
lea rdx, [rbp - 0x19]
call fcn.14010bee0
mov ebx, eax
test eax, eax
js 0x14010bb1c
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x61]
call fcn.14010ca68
mov dword [rbp - 0x79], eax
mov ebx, eax
test eax, eax
jns 0x14010ba90
mov ecx, eax
jmp 0x14010ba84
mov ebx, 0x8004f807
jmp 0x14010ba82
mov ebx, dword [rbp - 0x79]
jmp 0x14010ba82
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.140109118
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rbp - 0x69]
call fcn.14003ba98
lea rcx, [rbp - 0x71]
call fcn.14003bae4
lea rcx, [rbp - 0x51]
call fcn.140109054
lea rcx, [rbp - 0x61]
call fcn.140108eec
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14010ccb0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
mov word [rbp + 0x2b], 0x500
lea rax, [rbp + 7]
mov qword [rbp + 0x17], r12
mov qword [r11 - 0x68], rax
mov r13, rcx
mov dword [r11 - 0x70], r12d
lea rcx, [rbp + 0x27]
mov dword [r11 - 0x78], r12d
lea r8d, [r12 + 4]
mov dword [r11 - 0x80], r12d
xor r9d, r9d
mov dword [rsp + 0x30], r12d
mov dl, 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov qword [rbp + 0x1f], r12
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
mov dword [rbp + 0x27], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14010cd57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov edi, eax
mov ecx, eax
call fcn.14003e510
jmp 0x14010ce2b
lea rax, [rbp + 0xf]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x27]
mov dword [rsp + 0x48], r12d
mov dl, 1
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
lea r8d, [r9 + 6]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14010cd3c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x17]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14010cd3c
mov rcx, qword [rbp + 0x17]
lea r8, [rbp + 0x1f]
call fcn.1401084cc
mov edi, eax
test eax, eax
js 0x14010cd4b
mov rbx, qword [rbp + 0x1f]
mov r15d, r12d
mov esi, r12d
mov r14d, r12d
cmp dword [rbx], r12d
jbe 0x14010ce22
mov rcx, qword [rbp + 7]
mov r12d, r14d
add r12, r12
mov rdx, qword [rbx + r12*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14010cdf7
xor esi, esi
lea r15d, [rsi + 1]
jmp 0x14010ce11
mov rdx, qword [rbx + r12*8 + 8]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14010ce11
xor r15d, r15d
lea esi, [r15 + 1]
inc r14d
cmp r14d, dword [rbx]
jb 0x14010cdd6
test esi, esi
jne 0x14010ce27
test r15d, r15d
jne 0x14010ce27
mov esi, 1
mov dword [r13], esi
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rbp + 0xf]
call fcn.14003bafc
lea rcx, [rbp + 7]
call fcn.14003bafc
lea rcx, [rbp + 0x1f]
call fcn.14003b77c
lea rcx, [rbp + 0x17]
call fcn.1400b6314
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14010d600
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
or qword [rbp - 0x20], 0xffffffffffffffff
mov r12, rdx
xor edi, edi
lea rdx, [rbp - 0x18]
mov rsi, rcx
mov qword [rbp - 8], rdi
mov rcx, r12
mov qword [rbp - 0x10], rdi
mov r15, r9
mov qword [rbp - 0x18], rdi
mov r13, r8
call fcn.1400615b8
mov ebx, eax
test eax, eax
js 0x14010d79e
mov rcx, qword [rbp - 0x18]
lea r8d, [rdi + 5]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14003bf24
mov rcx, rax
call fcn.140039858
test rax, rax
jne 0x14010d6a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
jmp 0x14010d79e
lea rcx, [rbp - 0x20]
call fcn.140039858
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14010d694
cmp dword [rbp - 0x30], edi
je 0x14010d6d7
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x14010d7a0
cmp r14d, 0x100000
ja 0x14010d6cb
mov rcx, r14
call fcn.1400393c0
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14003be24
mov rbx, qword [rbp - 8]
test rbx, rbx
jne 0x14010d709
mov ebx, 0x8007000e
mov ecx, ebx
jmp 0x14010d7a0
lea rcx, [rbp - 0x20]
call fcn.140039858
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r9, [rbp - 0x2c]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010d694
cmp dword [rbp - 0x2c], r14d
je 0x14010d73f
mov ebx, 0x8000ffff
jmp 0x14010d702
mov rsi, qword [rsi + 0xb8]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403358c8]
lea rax, [rbp - 0x28]
mov r8d, r14d
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call rdi
mov ebx, eax
test eax, eax
js 0x14010d79e
mov edx, dword [rbp - 0x28]
mov r9, r15
mov rcx, qword [rbp - 0x10]
mov r8, r13
call fcn.14010d7f8
mov ebx, eax
test eax, eax
js 0x14010d79e
lea rdx, [r15 + 0x20]
mov rcx, r12
call fcn.14003f2d8
mov ebx, eax
test eax, eax
jns 0x14010d7a5
mov ecx, eax
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rbp - 0x18]
call fcn.14003ba98
lea rcx, [rbp - 0x10]
call fcn.14003b43c
lea rcx, [rbp - 8]
call fcn.14003b77c
lea rcx, [rbp - 0x20]
call fcn.14003baa4
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140120274
Capabilities:
Query service status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
lea rax, [r11 - 0x48]
xor ebx, ebx
mov qword [r11 - 0x58], rax
lea r8, [r11 - 0x40]
xor edx, edx
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1401202c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ecx, eax
mov ebx, eax
call fcn.14003e510
jmp 0x1401202e0
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
mov dword [rdi + 0x20], eax
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001af80
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14016f4bc
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [r11 + 0x28]
xor ebx, ebx
movzx esi, cx
mov ebp, edx
mov r15d, r9d
lea rdx, [r11 + 0x30]
mov r14, r8
lea ecx, [rbx + 5]
cmp eax, ecx
cmova eax, ecx
mov dword [r11 + 0x28], eax
test eax, eax
je 0x14016f521
lea rcx, [rdx - 8]
mov r8d, eax
lea rdx, [r11 - 0x68]
lea rcx, [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
lea rdx, [rdx + 8]
sub r8, 1
jne 0x14016f50d
lea rdx, str.Software_Protection_Platform_Service
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
jne 0x14016f551
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016f546
mov ebx, eax
jmp 0x14016f5ad
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14016f5ad
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
movzx eax, word [rsp + 0xe0]
mov r9d, ebp
mov dword [rsp + 0x30], r15d
movzx edx, si
mov word [rsp + 0x28], ax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x14016f5a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016f59b
mov ebx, eax
jmp 0x14016f5a4
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001af80
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401708b0
Capabilities:
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
xor edi, edi
lea r8, [rax + 0x20]
mov qword [rax - 0x18], rdi
mov qword [rax + 0x20], rdi
lea edx, [rdi + 0x14]
call fcn.1401201b0
mov edx, eax
mov esi, 0x80070426
test eax, eax
jns 0x1401708e9
mov ecx, eax
jmp 0x14017095d
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
call fcn.140171070
mov edx, eax
test eax, eax
js 0x1401708e5
cmp dword [rsp + 0x50], edi
jne 0x14017096d
cmp qword [rsp + 0x20], rdi
lea r8, [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
mov edx, edi
setne dl
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14017093e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14017093e
mov ecx, eax
call fcn.14003de94
mov edx, eax
test eax, eax
jns 0x140170962
jmp 0x1401708e5
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
call fcn.140171070
mov edx, eax
test eax, eax
js 0x1401708e5
cmp dword [rsp + 0x50], edi
jne 0x140170962
mov edx, esi
mov ecx, esi
call fcn.14003e510
cmp edx, 0x800705b4
cmove edx, esi
mov edi, edx
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rsp + 0x58]
call fcn.14011dacc
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14019a4e4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x190], rax
and qword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov r8d, 0x2000000
mov qword [rsp + 0x70], rdx
mov rsi, rcx
call fcn.14003a1c8
mov dword [rsp + 0x60], eax
mov edi, eax
test eax, eax
js 0x14019a5ff
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x58], rdi
xor r8d, r8d
mov qword [rsp + 0x50], rdi
xor edx, edx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14003dffc
test eax, eax
jne 0x14019a5da
mov edi, dword [rsp + 0x60]
mov ecx, edi
jmp 0x14019a601
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x80]
dec eax
mov r9d, 0x105
mov edx, eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14003dffc
test eax, eax
je 0x14019a58d
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call fcn.14019a4e4
mov dword [rsp + 0x60], eax
mov edi, eax
test eax, eax
js 0x14019a5ff
mov eax, dword [rsp + 0x64]
test eax, eax
jne 0x14019a595
lea rcx, [rsp + 0x68]
call fcn.14003bf44
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.14003a10c
mov edi, eax
test eax, eax
jns 0x14019a606
mov ecx, eax
call fcn.14003e510
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rsp + 0x68]
call fcn.14003bae4
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x2a0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14019d454
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov rbp, rcx
mov rcx, rsi
lea rdx, [rax - 0x38]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor r14d, r14d
test rax, rax
jne 0x14019d4a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14019d506
movzx eax, ax
or eax, 0x80070000
jmp 0x14019d506
cmp dword [rsp + 0x48], 0x1000000
jne 0x14019d501
mov rdi, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14019d501
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp rbx, rsi
ja 0x14019d501
cmp dword [rbx], 0x4550
jne 0x14019d501
mov esi, r14d
cmp r14w, word [rbx + 6]
jae 0x14019d501
movzx ecx, word [rbx + 0x14]
add rcx, rbx
mov eax, esi
lea rdx, [rax + rax*4]
lea rcx, [rcx + rdx*8]
add rcx, 0x18
call fcn.1401a56e8
cmp al, 1
je 0x14019d521
movzx eax, word [rbx + 6]
inc esi
cmp esi, eax
jb 0x14019d4d9
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
movzx ecx, word [rbx + 0x14]
mov eax, esi
add rcx, rbx
lea r9, [rax*4 + 3]
add r9, rax
lea r9, [rcx + r9*8]
test r9, r9
je 0x14019d501
mov r8d, dword [rbx + 0x50]
mov rdx, rdi
mov rcx, rbp
call fcn.14019d3f4
jmp 0x14019d506

Function at 0x14019d63c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14019d68b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14019d6b5
movzx eax, ax
or eax, 0x80070000
jmp 0x14019d6b5
cmp dword [rsp + 0x24], 5
jb 0x14019d6a5
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14019d677
xor eax, eax
jmp 0x14019d6b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14019d6a1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001af80
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x14019dbbc
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 1
jb 0x14019dbe9
push rbx
sub rsp, 0x20
mov r10, rdx
mov r11d, r8d
mov rbx, rcx
mov rcx, rbx
call fcn.14019db64
xor byte [r10], al
inc r10
sub r11, 1
jne 0x14019dbd0
add rsp, 0x20
pop rbx
ret