joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6c80
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14012b670], 0
je 0x1400d6cc6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140080240
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14012b648]
test rdi, rdi
je 0x1400d6d67
test byte [0x1401206c8], 1
je 0x1400d6ca9
cmp byte [rdi + 0x17], 0
jns 0x1400d6ce8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14012b670], rax
inc rax
cmp rax, 1
ja 0x1400d6ca9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140082390
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400d6e30
xor esi, esi
jmp 0x1400d6ca9
mov ecx, 0x18
call fcn.14007ed64
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140082390
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400f6c10]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400bc500
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400d6dcd
and eax, 0x7f
mov rcx, rdi
jmp 0x1400d6dd4
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400d6e0f
lea r8, [rax + rax]
test r8, r8
je 0x1400d6e0f
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400d6ddd
cmp rdx, 0xfffffffffffffffe
je 0x1400d6e0f
sar rdx, 1
cmp rax, rdx
jbe 0x1400d6ef7
inc rdx
mov rcx, rdi
call fcn.1400bc620
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140032a20
mov qword [0x14012b648], rdi
jmp 0x1400d6cd6
mov rdi, qword [0x14012b648]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14009e658
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140032890
mov rcx, qword [0x14012b648]
call fcn.1400d0810
cmp word [rax], 0x5c
je 0x1400d6e7d
mov rcx, qword [0x14012b648]
lea rdx, [0x1400f97d2]
mov r8d, 1
call fcn.140032a20
mov rcx, qword [0x14012b648]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140032a20
mov rcx, qword [0x14012b648]
cmp byte [rcx + 0x17], 0
jns 0x1400d6ea6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14012b670], rax
inc rax
cmp rax, 1
ja 0x1400d6ca9
mov qword [0x14012b670], 0
jmp 0x1400d6d60
mov rcx, rdi
call fcn.1400b38b0
int3
Function at 0x140cf5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cf51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cf5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf506f
add dl, dl
jne 0x140cf5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf50f6
xor eax, eax
add dl, dl
jne 0x140cf50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf51ad
add dl, dl
jne 0x140cf50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cf50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cf507e
mov eax, 1
add dl, dl
jne 0x140cf5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf50fb
sub eax, ebx
mov ebx, 1
jne 0x140cf514c
mov ecx, 1
add dl, dl
jne 0x140cf512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cf513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cf5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cf5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf515d
cmp eax, 0x7d00
jae 0x140cf519b
cmp eax, 0x500
jb 0x140cf5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf507e
cmp eax, 0x7f
ja 0x140cf519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cf51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140cf507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001900
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareAlpsApointUSBMouseExceptions
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001a1e
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x298], rsi
xor esi, esi
mov qword [rsp + 0x2a0], rdi
mov qword [rsp + 0x280], r14
mov edi, esi
mov ebx, esi
lea r14, [0x140062b10]
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x50], 0x208
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400019ed
cmp dword [rsp + 0x48], 4
jne 0x1400019e1
mov eax, dword [rsp + 0x4c]
mov ecx, ebx
inc ebx
mov dword [r14 + rcx*4], eax
inc edi
cmp ebx, 0x100
jb 0x140001980
jmp 0x1400019f3
mov eax, ebx
mov dword [r14 + rax*4], esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x288
ret

Function at 0x140002e70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov r8, rcx
lea r9, [rsp + 0x38]
lea rcx, [0x1400631a0]
mov edx, 0x3e8
call fcn.14000b0a0
lea rcx, [0x1400631a0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x28
ret
Function at 0x140002ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push r14
sub rsp, 0x2a8
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x82]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x60], 0x104
mov word [rsp + 0x80], r14w
call fcn.140016110
lea rcx, [0x14005a740]
mov edx, 0x10000000
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rbp, rax
test rax, rax
je 0x1400030e5
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x2c8], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x2a0], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400030ba
mov ebx, r14d
cmp dword [rsp + 0x70], ebx
jbe 0x1400030ba
or r15, 0xffffffffffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1400030ae
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400030ae
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.DriverDesc
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140003028
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400030ae
mov edi, dword [rsp + 0x60]
mov eax, 2
mul rdi
cmovo rax, r15
mov rcx, rax
call fcn.140007ae0
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140016110
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.DriverDesc
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
test edi, edi
je 0x140003093
call fcn.140007b20
jmp 0x1400030ae
lea rdx, str.ThinkPad_UltraNav_driver
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov rcx, rsi
mov edi, eax
call fcn.140007b20
test edi, edi
je 0x140003100
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x140002fa0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x2a8
pop r14
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400030c5
Function at 0x140003c40
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [rsp + 0x30]
mov ebx, eax
lea rax, [rsp + 0x40]
lea r8d, [rdi + 8]
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea r9, [rsp + 0x38]
lea r8d, [rdi + 5]
mov esi, eax
lea rax, [rsp + 0x40]
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140003cd8
mov rcx, qword [rsp + 0x38]
test esi, esi
je 0x140003cd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140003cb5
test rax, rax
je 0x140003cd2
mov rdx, qword [rsp + 0x30]
mov eax, 1
cmp dword [rdx], edi
cmove edi, eax
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
je 0x140003ce7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140003f00
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
call fcn.140007970
mov ebx, 0x104
lea rdx, [rsp + 0x230]
mov r9, rax
lea rax, [rsp + 0x230]
mov r8d, ebx
sub r9, rax
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x140003f66
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140003f66
mov word [rdx], ax
add rdx, 2
dec r8
jne 0x140003f42
jmp 0x140003f6b
test r8, r8
jne 0x140003f6f
sub rdx, 2
xor edi, edi
lea r8, [rsp + 0x230]
lea rax, [rsp + 0x20]
mov word [rdx], di
sub r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003fb4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003fb4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140003f90
jmp 0x140003fb9
test rdx, rdx
jne 0x140003fbd
sub rcx, 2
mov word [rcx], di
lea rax, [rsp + 0x20]
mov rcx, rbx
cmp word [rax], di
je 0x140003fd8
add rax, 2
dec rcx
jne 0x140003fc8
jmp 0x140004036
test rcx, rcx
je 0x140004036
mov rdx, rbx
lea rax, [rsp + 0x20]
sub rdx, rcx
mov rcx, rbx
lea rax, [rax + rdx*2]
sub rcx, rdx
je 0x14000402f
add rdx, 0x7ffffefa
lea r9, str.Apoint.exe
add rdx, rcx
sub r9, rax
test rdx, rdx
je 0x14000402a
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x14000402a
mov word [rax], r8w
add rax, 2
dec rdx
dec rcx
jne 0x140004008
jmp 0x14000402f
test rcx, rcx
jne 0x140004033
sub rax, 2
mov word [rax], di
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400040e3
lea r8, str.C:Program_FilesApoint2K
lea rax, [rsp + 0x230]
mov rdx, rbx
sub r8, rax
lea rcx, [rsp + 0x230]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140004094
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140004094
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140004070
jmp 0x140004099
test rdx, rdx
jne 0x14000409d
sub rcx, 2
lea rdx, str.C:Program_FilesApoint2KApoint.exe
lea rax, [rsp + 0x20]
mov word [rcx], di
sub rdx, rax
lea rcx, [rsp + 0x20]
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1400040d7
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400040d7
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x1400040b4
jmp 0x1400040dc
test rbx, rbx
jne 0x1400040e0
sub rcx, 2
mov word [rcx], di
mov ecx, dword [0x140062f1c]
test ecx, ecx
je 0x1400040f3
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call fcn.140004370
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret
Function at 0x140004130
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rcx, str.Service_:______LaunchCloseApp_enter_
call fcn.140002d20
call fcn.140007970
mov ebx, 0x104
mov r9, rax
lea rax, [rsp + 0x230]
mov r8d, ebx
sub r9, rax
lea rdx, [rsp + 0x230]
nop
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x1400041a4
movzx eax, word [r9 + rdx]
test ax, ax
je 0x1400041a4
mov word [rdx], ax
add rdx, 2
dec r8
jne 0x140004180
jmp 0x1400041a9
test r8, r8
jne 0x1400041ad
sub rdx, 2
xor edi, edi
lea r8, [rsp + 0x230]
lea rax, [rsp + 0x20]
mov word [rdx], di
sub r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400041f4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400041f4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400041d0
jmp 0x1400041f9
test rdx, rdx
jne 0x1400041fd
sub rcx, 2
mov word [rcx], di
lea rax, [rsp + 0x20]
mov rcx, rbx
cmp word [rax], di
je 0x140004218
add rax, 2
dec rcx
jne 0x140004208
jmp 0x140004276
test rcx, rcx
je 0x140004276
mov rdx, rbx
lea rax, [rsp + 0x20]
sub rdx, rcx
mov rcx, rbx
lea rax, [rax + rdx*2]
sub rcx, rdx
je 0x14000426f
add rdx, 0x7ffffefa
lea r9, str.ApClose.exe
add rdx, rcx
sub r9, rax
test rdx, rdx
je 0x14000426a
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x14000426a
mov word [rax], r8w
add rax, 2
dec rdx
dec rcx
jne 0x140004248
jmp 0x14000426f
test rcx, rcx
jne 0x140004273
sub rax, 2
mov word [rax], di
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004323
lea r8, str.C:Program_FilesApoint2K
lea rax, [rsp + 0x230]
mov rdx, rbx
sub r8, rax
lea rcx, [rsp + 0x230]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400042d4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400042d4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400042b0
jmp 0x1400042d9
test rdx, rdx
jne 0x1400042dd
sub rcx, 2
lea rdx, str.C:Program_FilesApoint2KApClose.exe
lea rax, [rsp + 0x20]
mov word [rcx], di
sub rdx, rax
lea rcx, [rsp + 0x20]
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140004317
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140004317
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x1400042f4
jmp 0x14000431c
test rbx, rbx
jne 0x140004320
sub rcx, 2
mov word [rcx], di
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call fcn.140004520
lea rcx, str.Service_:______LaunchCloseApp_exit_
call fcn.140002d20
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret
Function at 0x140004370
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rsi, rcx
mov rbp, r8
lea rcx, [rsp + 0xf2]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0xf0], bx
call fcn.140016110
xor eax, eax
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.140016110
lea rax, str.winsta0default
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x68
call fcn.1400046a0
mov rdi, rax
test rax, rax
je 0x1400044cb
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400044cb
lea rdx, str.CreateProcessWithLowPriv___Get_Token_success__AppName_s__Cmd_s
lea rcx, [rsp + 0xf0]
xor r9d, r9d
mov r8, rsi
call fcn.14000b140
lea rcx, [rsp + 0xf0]
call fcn.140002d20
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400044ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400044cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.CreateProcessWithLowPriv___Ret_d
lea rcx, [rsp + 0xf0]
mov r8d, ebx
call fcn.14000b140
lea rcx, [rsp + 0xf0]
call fcn.140002d20
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x528]
add rsp, 0x500
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004520
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, rcx
lea rcx, str.CreateProcessWithLowPriv_WaitProccess_:_enter_n
xor ebx, ebx
mov rbp, r8
mov qword [rsp + 0x60], rbx
call fcn.140002d20
xor eax, eax
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.140016110
lea rax, str.winsta0default
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x68
call fcn.1400046a0
mov rdi, rax
test rax, rax
je 0x140004663
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140004663
lea rcx, str.CreateProcessWithLowPriv_WaitProccess_____1_Get_Token_success__AppName_s__Cmd_s
xor r8d, r8d
mov rdx, rsi
call fcn.140002d20
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x68]
or edx, 0xffffffff
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140004652
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140004663
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CreateProcessWithLowPriv_WaitProccess_:_exit_n
call fcn.140002d20
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x128]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400077c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov rbx, r8
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007843
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140007858
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x60
pop rbx
ret

Function at 0x140007880
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov rbx, r8
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400078fa
mov r8, rbx
call fcn.1400077c0
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140007946
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x50
pop rbx
ret
Function at 0x140007970
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x42]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], di
call fcn.140016110
lea rbx, [0x140062f90]
lea r8, [0x14005a750]
mov rax, rbx
sub r8, rbx
mov edx, 0x104
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x1400079e5
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1400079e5
mov word [rax], cx
add rax, 2
dec rdx
jne 0x1400079c1
jmp 0x1400079ea
test rdx, rdx
jne 0x1400079ee
sub rax, 2
mov word [rax], di
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007a8b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.HomeDirectory
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007a80
lea rdx, str._ProgramFiles_
mov rcx, rbx
call fcn.1400107d0
test rax, rax
je 0x140007a80
lea rdx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rsp + 0x40]
jmp 0x140007a8e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140007ac0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret