joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002954
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, r8
mov r14, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x20]
call fcn.14001f180
or r13, 0xffffffffffffffff
xor r12d, r12d
mov rdi, r13
test rbp, rbp
je 0x140002aef
mov rax, r13
inc rax
cmp word [rbp + rax*2], r12w
jne 0x1400029ae
test rax, rax
je 0x140002aef
mov r9, r13
lea r8, [0x140050ef4]
mov rdx, r13
mov rcx, rbp
call fcn.14000282c
mov rsi, rax
test rax, rax
jne 0x1400029ed
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002adf
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, r13
je 0x140002acb
test byte [rsp + 0x20], 0x10
je 0x140002a3c
lea rdx, [0x140050ef8]
lea rcx, [rsp + 0x4c]
call fcn.14002589c
test eax, eax
je 0x140002ab5
lea rdx, [0x140050efc]
lea rcx, [rsp + 0x4c]
call fcn.14002589c
test eax, eax
je 0x140002ab5
mov r9, r13
lea r8, [rsp + 0x4c]
mov rdx, r13
mov rcx, rbp
call fcn.14000282c
mov rbx, rax
test rax, rax
je 0x140002ab5
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x140002a90
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002a77
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x140002a85
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.140002954
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140002aa1
mov r8, r15
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [0x1400405a8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002a07
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x140002afc
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002d80
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
or edx, 0xffffffff
lea rcx, str.CptControl.exe
call fcn.14000d31c
mov r9d, 1
lea rcx, str.CptControl.exe
xor r8d, r8d
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140002db8
Function at 0x140002db8
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x588]
sub rsp, 0x688
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov r12d, 0x208
mov r8d, r12d
lea rcx, [rbp + 0x360]
xor edx, edx
mov r14d, r9d
call fcn.14001f180
mov r8d, r12d
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.14001f180
and qword [rsp + 0x30], 0
lea rax, [rbp + 0x150]
mov byte [rsp + 0x28], 1
lea r9, [rbp + 0x360]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400036c0
test eax, eax
je 0x140002f08
mov r8d, r12d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14001f180
mov ebx, 0x104
lea r8, [rbp + 0x150]
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140026ac0
lea r8, str..tmp
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140026780
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call fcn.140002ce4
test ebx, ebx
je 0x140002f04
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], 1
mov r9d, r14d
mov r8d, 1
mov dword [rsp + 0x20], r14d
mov rcx, rax
call fcn.140014d78
test al, al
jne 0x140002ee1
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x140002f18
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140002edd
mov eax, ebx
jmp 0x140002f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140002edd
mov eax, 1
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x688
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140003038
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov rdx, rcx
xor r9d, r9d
lea rcx, str.CptService.exe
xor r8d, r8d
jmp fcn.140002db8
Function at 0x1400035c4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400035f0
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rdx, str.Zoom
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.SHLWAPI.dll_PathAppendW]

Function at 0x140003608
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000364b
test rdx, rdx
je 0x14000364b
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000364b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x14000364d
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003988
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
call fcn.140003594
test eax, eax
je 0x140003a07
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003a07
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400039e4
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x1400039fc
xor r8d, r8d
lea rdx, [0x140002650]
lea rcx, [rsp + 0x20]
call fcn.140002954
test eax, eax
je 0x140003a07
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x248
ret

Function at 0x140008978
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x140008b07
cmp ecx, 0x7c
je 0x140008b07
cmp ecx, 0x29
jne 0x1400089c0
cmp dword [rbx + 0x1c], 0
jne 0x140008b07
test dword [rbx + 0x80], 0x10000000
je 0x140008b20
jmp 0x140008ab5
cmp ecx, 0x2e
jne 0x1400089e0
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14000b244
mov rcx, rbx
call fcn.14000b29c
jmp 0x140008af5
cmp ecx, 0x5c
jne 0x140008a41
mov rcx, rbx
call fcn.14000b29c
test byte [rbx + 0x80], 0x80
je 0x140008a34
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x140008a18
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14000b244
mov rcx, rbx
call fcn.14000b29c
jmp 0x140008afd
cmp al, 0x42
jne 0x140008a34
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14000b244
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x140008a0b
mov rcx, rbx
call fcn.140008b4c
jmp 0x140008af5
cmp ecx, 0x5b
jne 0x140008a65
mov rcx, rbx
call fcn.14000b29c
mov rcx, rbx
call fcn.140009328
cmp dword [rbx + 0x7c], 0x5d
jne 0x140008b2e
jmp 0x1400089d3
cmp ecx, 0x28
jne 0x140008a89
mov rcx, rbx
call fcn.14000b29c
mov rcx, rbx
call fcn.14000b9f0
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140008b20
jmp 0x140008ae8
cmp ecx, 0x5e
jne 0x140008a96
lea edx, [rcx - 0x5c]
jmp 0x140008a02
cmp ecx, 0x24
jne 0x140008aa3
lea edx, [rcx - 0x21]
jmp 0x140008a02
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x140008b12
cmp ecx, 0x3f
je 0x140008b12
cmp ecx, 0x7b
je 0x140008b12
cmp ecx, 0x7d
jne 0x140008ac8
test dword [rbx + 0x80], 0x10000000
je 0x140008b3c
jmp 0x140008ad9
cmp ecx, 0x5d
jne 0x140008ad9
test dword [rbx + 0x80], 0x10000000
je 0x140008b2e
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140007fc4
mov dil, 1
mov rcx, rbx
call fcn.14000b29c
test dil, dil
je 0x140008afd
mov rcx, rbx
call fcn.14000b2ec
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14000898a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.14000a590
int3
mov edx, 5
mov rcx, rbx
call fcn.14000a590
int3
mov edx, 4
mov rcx, rbx
call fcn.14000a590
int3
mov edx, 6
mov rcx, rbx
call fcn.14000a590
int3
Function at 0x14000d120
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000d1de
cmp di, word [rcx]
je 0x14000d1de
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call fcn.14001f180
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000d1de
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x14000d1da
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x14000d1de
mov al, 1
jmp 0x14000d1e0
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret

Function at 0x14000d31c
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x390
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov r14, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d362
xor al, al
jmp 0x14000d448
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
xor ebx, ebx
test eax, eax
je 0x14000d43d
mov rdx, r14
lea rcx, [rsp + 0x5c]
call fcn.14002589c
test eax, eax
jne 0x14000d426
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000d43b
test ebp, ebp
js 0x14000d3d6
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000d3d6
cmp dword [rsp + 0x20], ebp
jne 0x14000d426
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.14001f180
mov r8d, 0x104
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edx, 0x3e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000d381
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14001c630
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d53c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x14000d639
cmp si, word [rcx]
je 0x14000d639
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14000d634
call fcn.14000d024
cmp eax, 0x3d
jg 0x14000d634
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14001f180
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x14000d634
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x14000d5d2
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x14000d634
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d616
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d616
lea r8, [0x14004144c]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140026780
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140026780
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x14000d63b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001c630
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000fd70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x40], r14d
mov r8, qword [rdx + 0x10]
test r8, r8
jne 0x14000feb0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
lea edi, [r14 + 7]
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r14w
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x38], r14
lea r9, [rbp - 0x38]
xor edx, edx
lea rcx, [0x140043310]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000fe05
mov rdx, qword [rbp - 0x38]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000fde8
lea rcx, [rbp - 0x30]
call fcn.140002318
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbx, [rsi + 0xd0]
lea rax, [rbp - 0x30]
cmp rbx, rax
je 0x14000fe3b
mov rcx, rbx
call fcn.1400022b0
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r14w
jmp 0x14000fe3f
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
jb 0x14000fe7b
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fe76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ff3e
call fcn.14001c650
cmp qword [rsi + 0xe0], r14
je 0x14000fece
mov r8d, 1
lea rdx, [0x14004144c]
mov rcx, rbx
call fcn.14000bb34
mov r8d, 4
lea rdx, str.Zoom
mov rcx, rbx
call fcn.14000bb34
jmp 0x14000fece
lea rbx, [rcx + 0xd0]
cmp rbx, rdx
je 0x14000fece
cmp qword [rdx + 0x18], 8
jb 0x14000fec6
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140002318
lea rdi, [rsi + 0xf0]
cmp rdi, rbx
je 0x14000fef3
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000fee7
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140002318
mov r8d, 6
lea rdx, [0x140042568]
mov rcx, rdi
call fcn.14000bb34
mov r8d, 0xb
lea rdx, str.Zoom.us.ini
mov rcx, rdi
call fcn.14000bb34
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001c630
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140026a48
int3

Function at 0x1400117e4
Capabilities:
Query service status

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14001182b
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14001182b
mov eax, dword [rsp + 0x54]
jmp 0x14001182d
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x78
ret
Function at 0x140011974
Capabilities:
Query service status

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400119a4
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400119a4
mov eax, dword [rsp + 0x24]
jmp 0x1400119a6
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x58
ret

Function at 0x1400119b8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x30], 0
lea rcx, str.Wtsapi32.dll
mov rsi, r9
mov dword [rsp + 0x38], edx
mov rbx, r8
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor dil, dil
lea r8, [rsp + 0x30]
lea rdx, str.WTSQueryUserToken
call fcn.1400114fc
cmp dword [rsp + 0x30], 0
je 0x140011acb
test rbx, rbx
je 0x140011acb
lea rdx, str.Zoom
mov rcx, rbx
call fcn.140027bb8
test eax, eax
je 0x140011a59
lea rdx, str.ZoomRooms
mov rcx, rbx
call fcn.140027bb8
test eax, eax
jne 0x140011acb
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14001f180
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140011acb
test rsi, rsi
je 0x140011acb
mov edi, 0x104
lea r8, [0x14004144c]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140026780
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, edi
call fcn.140026780
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140026ac0
mov dil, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011adb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011d08
Capabilities:
Create service
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov r15d, 0x208
mov r8d, r15d
lea rcx, [rbp + 0x1d0]
xor edx, edx
mov rdi, r9
call fcn.14001f180
mov r8d, r15d
lea rcx, [rbp - 0x40]
xor edx, edx
call fcn.14001f180
or rax, 0xffffffffffffffff
lea r15, [rbx + 0x70]
xor r12d, r12d
inc rax
cmp word [r15 + rax*2], r12w
jne 0x140011d6f
test rax, rax
je 0x140011e95
test rsi, rsi
je 0x140011e95
test r14, r14
je 0x140011e95
lea rcx, [rbp - 0x40]
call fcn.140002ca4
test eax, eax
je 0x140011e95
mov ebx, 0x40
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call fcn.14001f180
mov r8d, ebx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.14000c634
test al, al
je 0x140011e95
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
lea rdx, str.6.2.0.46690
lea rcx, [rbp - 0x80]
call fcn.14000dad4
test al, al
je 0x140011e95
cmp dword [rsp + 0x70], r12d
jl 0x140011e95
test rdi, rdi
je 0x140011e1c
mov r9, rdi
lea r8, [rbp - 0x40]
lea rdx, str.__s___s
lea rcx, [rbp + 0x1d0]
call fcn.140006328
mov edi, 2
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140011e95
mov qword [rsp + 0x60], r12
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x58], r12
mov r9d, 0xf01ff
mov qword [rsp + 0x50], r12
mov r8, r14
mov qword [rsp + 0x48], r12
mov rdx, r15
mov qword [rsp + 0x40], r12
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140011eb8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140011e97

Function at 0x140011f94
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test eax, eax
je 0x140011fda
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140011974
inc ebx
cmp eax, 4
je 0x140011fd7
cmp ebx, 0x64
jl 0x140011fb5
cmp eax, 4
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400120c4
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
or rax, 0xffffffffffffffff
lea rbx, [rcx + 0x70]
xor edi, edi
inc rax
cmp word [rbx + rax*2], di
jne 0x1400120d8
test rax, rax
je 0x140012128
call fcn.140011c38
test al, al
jne 0x1400120f3
mov al, 1
jmp 0x140012128
mov r9d, 0xf01ff
lea rcx, [rsp + 0x20]
mov r8d, 2
mov rdx, rbx
call fcn.1400115f0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
lea rcx, [rsp + 0x20]
setne bl
call fcn.14001164c
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001547c
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400155ee
cmp si, word [rdx]
je 0x1400155ee
cmp qword [rcx + 8], rsi
je 0x1400154b0
call fcn.140015390
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400155ee
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x1400155ee
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400155ee
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x1400155ee
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x1400155ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x1400155ee
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400155ee
cmp dword [rcx], 0x4550
jne 0x1400155ee
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x1400155c7
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x1400155be
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x1400155ee
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x1400155d5
mov dword [rbx + 0x30], 2
jmp 0x1400155b5
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x1400155ee
mov al, 1
jmp 0x1400155f8
mov rcx, rbx
call fcn.140015390
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret