joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031900
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003194a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003194a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003194a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003194a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003194a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003194c
xor al, al
add rsp, 0x28
ret

Function at 0x14003fb9c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003fbbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e248
or eax, 0xffffffff
jmp 0x14003fbbe
xor eax, eax
add rsp, 0x28
ret
Function at 0x14004591c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rbx, qword [0x14016b890]
mov rdi, rcx
test rbx, rbx
je 0x140045ab0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140162450], 5
jbe 0x140045aa7
movabs rdx, 0x800000000000
test qword [0x140162460], rdx
je 0x140045aa7
mov rax, qword [0x140162468]
and rax, rdx
cmp rax, qword [0x140162468]
jne 0x140045aa7
mov rax, qword [rdi]
lea rdx, [0x14014d9f1]
mov qword [rbp + 0x3f], 0x2000000
mov ecx, dword [rax]
mov dword [rbp + 0x6f], ecx
mov rcx, qword [0x14016b888]
mov eax, dword [rcx + 0x48]
mov dword [rbp + 0x77], eax
mov eax, dword [rcx + 0x44]
mov dword [rbp + 0x7f], eax
mov eax, dword [rcx + 0x40]
mov dword [rbp - 9], eax
movzx eax, byte [rcx + 0x3c]
mov dword [rbp - 5], eax
movzx eax, byte [rcx + 0x3b]
mov dword [rbp - 1], eax
movzx eax, byte [rcx + 0x3a]
mov dword [rbp + 3], eax
movzx eax, byte [rcx + 0x39]
mov dword [rbp + 7], eax
movzx eax, byte [rcx + 0x38]
mov dword [rbp + 0xb], eax
mov rax, qword [rcx + 0x30]
mov qword [rbp + 0xf], rax
mov rax, qword [rcx + 0x28]
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x2f], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 0x37], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x98], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x90], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x88], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 5]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xb]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
call fcn.140001000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140045ae4
test byte [rcx + 0x1c], 4
je 0x140045ae4
mov rax, qword [rdi]
lea r8, [0x14011f948]
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9d, dword [rax]
call fcn.140044450
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400493ec
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140049443
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140049416
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x140049443
mov rcx, qword [0x140162280]
lea rdi, [0x140162280]
cmp rcx, rdi
je 0x14004950f
test byte [rcx + 0x1c], 1
je 0x14004950f
mov edx, 0x1b
jmp 0x1400494fc
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140049497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140049462
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140049497
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [0x140162280]
lea rdi, [0x140162280]
cmp rcx, rdi
je 0x14004950f
test byte [rcx + 0x1c], 1
je 0x14004950f
mov edx, 0x1c
mov r9d, ebx
jmp 0x1400494ff
mov rcx, qword [0x140162280]
lea rdi, [0x140162280]
cmp rcx, rdi
je 0x1400494c5
test byte [rcx + 0x1c], 4
je 0x1400494c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013fc48]
mov edx, 0x1d
call fcn.140044430
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x14004950f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400494e3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14004950f
mov rcx, qword [0x140162280]
cmp rcx, rdi
je 0x14004950f
test byte [rcx + 0x1c], 1
je 0x14004950f
mov edx, 0x1e
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013fc48]
call fcn.140044450
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140050378
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rdi, rdx
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
lea rdx, str._ls__Reinvoke
lea rcx, [rsp + 0x50]
call fcn.1400f23a4
mov ebx, eax
test eax, eax
jns 0x1400503c8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400503c1
call fcn.140030c60
mov eax, ebx
jmp 0x140050478
mov rbx, qword [rsp + 0x50]
mov r8, rdi
mov rcx, rbx
mov edx, esi
call fcn.140050a3c
mov edi, eax
test eax, eax
jns 0x140050438
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140050415
test byte [rcx + 0x1c], 1
je 0x140050415
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0xc
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140044764
mov r8d, edi
lea rcx, str.ERROR:_RunWithRestrictedPriv__s__Failed__lx_n
mov rdx, rbx
call fcn.1400ec5f0
test rbx, rbx
je 0x140050434
mov rcx, rbx
call fcn.140030c60
mov eax, edi
jmp 0x140050478
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140050469
test byte [rcx + 0x1c], 4
je 0x140050469
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0xd
mov r9, rbx
call fcn.140044708
test rbx, rbx
je 0x140050476
mov rcx, rbx
call fcn.140030c60
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400505f4
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor ebx, ebx
mov dword [rsp + 0x38], 0x104
and qword [rsp + 0x30], rbx
mov r15, r8
and qword [rsp + 0x40], rbx
mov r14d, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 0xf]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r13, [0x140162280]
test eax, eax
jne 0x14005069d
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x14005068f
test byte [rcx + 0x1c], 1
je 0x14005068f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0x12
mov r9d, eax
call fcn.140044450
mov edx, ebx
lea rcx, str.ERROR:_OpenProcessToken___Failed__lx_n
call fcn.1400ec5f0
mov rcx, qword [rsp + 0x30]
test ebx, ebx
jns 0x1400506b8
test rcx, rcx
je 0x1400506b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140050823
lea rdx, [rsp + 0x40]
call fcn.140050488
mov edi, eax
test eax, eax
jns 0x140050719
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x1400506f2
test byte [rcx + 0x1c], 1
je 0x1400506f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0x13
mov r9d, eax
call fcn.140044450
mov edx, edi
lea rcx, str.ERROR:_RestrictTokenPrivileges___Failed__lx_n
call fcn.1400ec5f0
mov rbx, qword [rsp + 0x40]
xor edi, edi
test rbx, rbx
je 0x14005071e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x14005071e
mov rbx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov ecx, 0x10002
lea rdx, [rsp + 0x50]
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x140050776
call fcn.1400f259c
mov edi, eax
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x140050768
test byte [rcx + 0x1c], 1
je 0x140050768
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0x14
mov r9d, eax
call fcn.140044450
mov edx, edi
lea rcx, str.ERROR:_GetUserNameW___Failed__lx_n
call fcn.1400ec5f0
test edi, edi
jns 0x14005079f
test rbx, rbx
je 0x140050788
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140050798
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x140050823
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
test rbx, rbx
mov qword [rsp + 0x20], r15
mov r9d, r14d
mov rdx, rsi
cmovne rcx, rbx
call fcn.140050070
mov edi, eax
test eax, eax
jns 0x140050803
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x1400507f0
test byte [rcx + 0x1c], 1
je 0x1400507f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123908]
mov edx, 0x15
mov r9d, eax
call fcn.140044450
mov edx, edi
lea rcx, str.ERROR:_CreateProcessFromToken___Failed__lx_n
call fcn.1400ec5f0
jmp 0x14005077a
test rbx, rbx
je 0x140050811
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140050821
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140030c40
add rsp, 0x270
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400527a8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rcx
cmp rbx, rdi
je 0x140052817
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x140052812
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140052809
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140052809
test byte [rcx + 0x1c], 1
je 0x140052809
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa
mov r9, rsi
call fcn.140044708
mov rcx, rsi
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rbx, qword [rbx]
jmp 0x1400527bd
mov rbx, qword [rdi]
mov esi, 0x18
cmp rbx, rdi
je 0x140052846
mov rdx, qword [rbx]
mov rcx, rbx
mov rbx, rdx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov rdx, rsi
call fcn.140030c60
dec qword [rdi + 0x10]
jmp 0x14005281f
cmp qword [rdi + 0x10], 0
je 0x140052877
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140052877
mov rdx, qword [rbx]
mov rcx, rbx
mov rbx, rdx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov rdx, rsi
call fcn.140030c60
dec qword [rdi + 0x10]
jmp 0x140052850
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140054ff0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push r13
push r14
push r15
sub rsp, 0x30
and qword [rax - 0x28], 0
mov rbp, r9
and qword [rax - 0x20], 0
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov rcx, qword [0x140162280]
lea r13, [0x140162280]
cmp rcx, r13
je 0x140055050
test byte [rcx + 0x1c], 4
je 0x140055050
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x95
mov r9, r14
call fcn.140044708
mov r9, r14
lea rdx, [0x140123d80]
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400f23a4
mov esi, eax
test eax, eax
jns 0x1400550af
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x140055097
test byte [rcx + 0x1c], 1
je 0x140055097
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x96
mov r9d, eax
call fcn.140044450
mov edx, esi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rbx, qword [rsp + 0x20]
jmp 0x1400551ef
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.1400f16b0
mov esi, eax
test eax, eax
jns 0x140055104
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x1400550f1
test byte [rcx + 0x1c], 1
je 0x1400550f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x97
mov r9d, eax
call fcn.140044450
lea rcx, str.ERROR:_UtilExpandEnvironmentStrings___failed___lx__n
mov edx, esi
call fcn.1400ec5f0
jmp 0x1400551dd
test rbp, rbp
cmove rbp, r14
test rbx, rbx
je 0x14005511e
mov rcx, rbx
call fcn.140030c60
and qword [rsp + 0x20], 0
mov r9, rbp
lea rdx, [0x140123d80]
mov r8, r15
lea rcx, [rsp + 0x20]
call fcn.1400f23a4
mov esi, eax
test eax, eax
jns 0x14005517a
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x140055165
test byte [rcx + 0x1c], 1
je 0x140055165
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x98
mov r9d, eax
call fcn.140044450
mov edx, esi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rbx, qword [rsp + 0x20]
jmp 0x1400551dd
mov rbx, qword [rsp + 0x20]
xor r8d, r8d
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400551db
call fcn.1400f259c
mov esi, eax
add eax, 0x7ff8fffe
cmp eax, 1
jbe 0x1400551db
mov rcx, qword [0x140162280]
cmp rcx, r13
je 0x1400551cf
test byte [rcx + 0x1c], 1
je 0x1400551cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x99
mov r9d, esi
call fcn.140044450
lea rcx, str.ERROR:_CopyFileW___failed___lx__n
jmp 0x1400550f8
xor esi, esi
cmp qword [rsp + 0x28], 0
je 0x1400551ef
mov rcx, qword [rsp + 0x28]
call fcn.140030c60
test rbx, rbx
je 0x1400551fc
mov rcx, rbx
call fcn.140030c60
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x140055b88
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rbx, [0x14011ceac]
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
and qword [rbp + 0x40], 0
mov rsi, rcx
and qword [rbp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpConfigOpen]
mov edi, eax
test eax, eax
jns 0x140055c12
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140055bfb
test byte [rcx + 0x1c], 1
je 0x140055bfb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xb
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140044764
mov r8d, edi
lea rcx, str.ERROR:_MpConfigOpen__ls__failed___lx__n
mov rdx, rbx
call fcn.1400ec5f0
jmp 0x140055d98
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140055c21
call qword [sym.imp.mpclient.dll_MpFreeMemory]
and dword [rbp + 0x30], 0
mov dword [rbp + 0x38], 2
and qword [rsp + 0x28], 0
lea rax, [rbp + 0x40]
mov rcx, qword [rbp - 0x10]
lea r15, str.ProductAppDataPath
mov rdx, r15
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x38]
call qword [sym.imp.mpclient.dll_MpConfigGetValueAlloc]
mov edi, eax
test eax, eax
jns 0x140055cb1
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140055c97
test byte [rcx + 0x1c], 1
je 0x140055c97
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xc
mov dword [rsp + 0x28], edi
mov r9, rbx
mov qword [rsp + 0x20], r15
call fcn.14006041c
mov r9d, edi
lea rcx, str.ERROR:_MpConfigGetValueString__ls_ls__failed___lx__n
mov r8, r15
mov rdx, rbx
call fcn.1400ec5f0
jmp 0x140055d98
mov r8, qword [rbp + 0x40]
lea r9, str.Support
lea rdx, str._s_s
lea rcx, [rbp + 0x48]
call fcn.1400f23a4
mov edi, eax
test eax, eax
jns 0x140055d17
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140055d03
test byte [rcx + 0x1c], 1
je 0x140055d03
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xd
mov r9d, edi
call fcn.140044450
mov edx, edi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rbx, qword [rbp + 0x48]
jmp 0x140055d8b
mov rbx, qword [rbp + 0x48]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140055d83
call fcn.1400f259c
mov edi, eax
cmp eax, 0x800700b7
je 0x140055d81
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x140055d6d
test byte [rcx + 0x1c], 1
je 0x140055d6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xe
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140044764
mov r8d, edi
lea rcx, str.ERROR:_CreateDirectoryW__ls__failed___lx__n
mov rdx, rbx
call fcn.1400ec5f0
jmp 0x140055d8b
xor edi, edi
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
test rbx, rbx
je 0x140055d98
mov rcx, rbx
call fcn.140030c60
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140055da7
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140055db6
call qword [sym.imp.mpclient.dll_MpConfigClose]
mov eax, edi
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140065f9c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
and qword [rax + 8], 0
and qword [rax + 0x18], 0
test rcx, rcx
jne 0x140066096
xor ebx, ebx
mov qword [rax + 0x20], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [0x14012f5a8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140117250]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x1400660f5
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x18]
call fcn.1400fece0
mov esi, eax
test eax, eax
js 0x1400660b2
mov rax, qword [rsp + 0x70]
and qword [rsp + 0x70], 0
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140066071
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call fcn.1400fece0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140066088
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call fcn.1400fece0
nop
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1400660ef
jmp 0x140065fca
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400660e7
test byte [rcx + 0x1c], 1
je 0x1400660e7
mov edx, 0x15
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x14012f5e8]
mov rcx, qword [rcx + 0x10]
call fcn.140044764
mov ecx, esi
call fcn.1400f10c4
nop
call fcn.140065f78
nop
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x140066126
test byte [rcx + 0x1c], 1
je 0x140066126
mov edx, 0x14
mov r9d, esi
lea r8, [0x14012f5e8]
mov rcx, qword [rcx + 0x10]
call fcn.140044450
mov ecx, esi
call fcn.1400f10c4
int3
Function at 0x1400680d0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
xor eax, eax
and dword [rsp + 0x30], eax
mov rbx, rcx
lea rcx, str._nState_of__s_service:_n
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x38], xmm0
mov rdi, rdx
movups xmmword [rsp + 0x48], xmm0
call fcn.1400ec6e0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140068137
call fcn.1400f259c
jmp 0x1400681be
mov r8d, 4
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14006815a
call fcn.1400f259c
mov ebx, eax
jmp 0x1400681b3
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140068190
call fcn.1400f259c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400681b3
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x58]
mov rcx, rdi
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov dword [rbx + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030c40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400816b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r13, [r8 - 1]
mov r12, r9
mov r14, r13
mov rbp, r8
sar r14, 1
mov rdi, rdx
mov rsi, rcx
mov r15, rdx
mov rbx, rdx
cmp rdx, r14
jge 0x140081730
add rbx, rbx
lea rcx, [rbx + 2]
shl rcx, 5
add rcx, rsi
lea rdx, [rcx - 0x20]
call fcn.140079864
movzx ecx, al
xor rcx, 1
shl rdi, 5
inc rcx
add rbx, rcx
mov rdx, rbx
shl rdx, 5
lea rcx, [rsi + rdi]
add rdx, rsi
call fcn.140052ca0
mov rdi, rbx
cmp rbx, r14
jl 0x1400816ed
cmp rbx, r14
jne 0x140081756
test bpl, 1
jne 0x140081756
shl rdi, 5
lea rdx, [rsi - 0x20]
shl rbp, 5
add rdx, rbp
lea rcx, [rsi + rdi]
call fcn.140052ca0
mov rdi, r13
cmp r15, rdi
jge 0x140081793
lea rbx, [rdi - 1]
mov rdx, r12
sar rbx, 1
mov rbp, rbx
shl rbp, 5
add rbp, rsi
mov rcx, rbp
call fcn.140079864
test al, al
je 0x140081793
shl rdi, 5
mov rdx, rbp
lea rcx, [rsi + rdi]
call fcn.140052ca0
mov rdi, rbx
cmp r15, rbx
jl 0x14008175b
shl rdi, 5
mov rdx, r12
lea rcx, [rsi + rdi]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140052ca0

Function at 0x1400817c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [r8 - 1]
mov r13, r9
mov r15, rax
mov qword [rsp + 0x50], rax
sar r15, 1
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov r12, rdx
mov r14, rdx
cmp rdx, r15
jge 0x140081859
lea rbx, [r14 + r14]
lea rcx, [rbx + 2]
shl rcx, 6
add rcx, rsi
lea rdx, [rcx - 0x40]
call fcn.140079864
lea r14, [rbx + 1]
movzx ecx, al
xor rcx, 1
shl rdi, 6
add r14, rcx
add rdi, rsi
mov rbx, r14
mov rcx, rdi
shl rbx, 6
add rbx, rsi
mov rdx, rbx
call fcn.140052ca0
lea rdx, [rbx + 0x20]
lea rcx, [rdi + 0x20]
call fcn.140052ca0
mov rdi, r14
cmp r14, r15
jl 0x140081802
cmp r14, r15
jne 0x140081891
test bpl, 1
jne 0x140081891
shl rbp, 6
shl rdi, 6
add rdi, rsi
mov rcx, rdi
lea rbx, [rsi + rbp]
lea rdx, [rbx - 0x40]
call fcn.140052ca0
lea rdx, [rbx - 0x20]
lea rcx, [rdi + 0x20]
call fcn.140052ca0
mov rdi, qword [rsp + 0x50]
cmp r12, rdi
jge 0x1400818dd
lea rbx, [rdi - 1]
mov rdx, r13
sar rbx, 1
mov rbp, rbx
shl rbp, 6
add rbp, rsi
mov rcx, rbp
call fcn.140079864
test al, al
je 0x1400818dd
shl rdi, 6
mov rdx, rbp
add rdi, rsi
mov rcx, rdi
call fcn.140052ca0
lea rdx, [rbp + 0x20]
lea rcx, [rdi + 0x20]
call fcn.140052ca0
mov rdi, rbx
cmp r12, rbx
jl 0x140081896
shl rdi, 6
mov rdx, r13
add rdi, rsi
mov rcx, rdi
call fcn.140052ca0
lea rdx, [r13 + 0x20]
lea rcx, [rdi + 0x20]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140052ca0