joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012a60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x40]
call fcn.140013200
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x140012bec
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140012b55
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140012a60
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x140012bec
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140012b00
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140012b6a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x140012c1c
mov rdi, qword [rdi]
cmp qword [rbx], 0
je 0x140012bd3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140012b9d
mov ebx, 1
jmp 0x140012be7
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012b96
mov qword [rsp + 0x28], rbp
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [case.0x1400c8de2.0]
jmp 0x140012be5
cmp dword [rbx + 8], 0
je 0x140012b96
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140012bf7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140142180
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
cmp byte [0x1401cb0b8], 0
jne 0x140012c67
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012c57
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401cb0b0], rax
mov byte [0x1401cb0b8], 1
jmp 0x140012c6e
mov rax, qword [0x1401cb0b0]
mov byte [0x1401cb0b8], 1
jmp 0x140012c6e
mov rax, qword [0x1401cb0b0]
mov rcx, qword [rdi]
test rax, rax
je 0x140012bdc
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, rsi
call qword [case.0x1400c8de2.0]
jmp 0x140012be5
Function at 0x140013340
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rdx
mov r15, rcx
mov qword [r11 - 0x60], rcx
mov qword [r11 - 0x58], rdx
xor r12d, r12d
mov dword [r11 - 0x68], r12d
mov qword [rcx], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov dword [rsp + 0x30], 1
mov dword [r11 - 0x50], r12d
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
sub rax, rcx
lea rdx, [r11 - 0x50]
mov qword [r11 - 0x78], rdx
xor r9d, r9d
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x1400134e2
xorps xmm0, xmm0
mov esi, dword [rsp + 0x48]
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov ebx, r12d
mov edi, r12d
test rsi, rsi
je 0x140013451
add rsi, rsi
cmp rsi, 0x1000
jb 0x140013417
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140013557
call fcn.1401420a0
test rax, rax
je 0x14001354b
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001342c
test rsi, rsi
je 0x140013429
mov rcx, rsi
call fcn.1401420a0
mov rbx, rax
jmp 0x14001342c
mov rbx, r12
mov rbp, rbx
mov qword [rsp + 0x50], rbx
lea rdi, [rsi + rbx]
mov qword [rsp + 0x60], rdi
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140144890
mov qword [rsp + 0x58], rdi
jmp 0x140013456
mov rbp, qword [rsp + 0x50]
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rcx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov r9, rbp
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x1400134a9
mov rax, rdi
sub rax, rbx
cmp rax, 2
jb 0x1400134a9
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140013492
mov rdx, rbx
mov rcx, r15
call fcn.140012600
nop
test rbx, rbx
je 0x1400134e2
sub rdi, rbx
sar rdi, 1
lea rdx, [rdi + rdi]
cmp rdx, 0x1000
jb 0x1400134d9
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14001354b
mov rbx, rcx
mov rcx, rbx
call fcn.1401420dc
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140013522
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140013512
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140013551
mov rcx, r8
call fcn.1401420dc
mov qword [r14], r12
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov rax, r15
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140142180
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140149044
nop
call fcn.140149044
nop
call fcn.140012f70
int3
Function at 0x140017f10
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x10], 0
mov ebx, 0xffffffff
je 0x140017f95
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400181d0
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x140017f95
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017f90
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017faa
call fcn.1401420dc
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140142180
add rsp, 0x50
pop rbx
ret
call fcn.140149044
int3

Function at 0x1400181d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov qword [r14], rcx
mov qword [r14 + 0x10], rcx
mov qword [r14 + 0x18], 7
mov word [r14], cx
mov dword [rsp + 0x20], 1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], rcx
mov ecx, 0x1027
call fcn.1401420a0
test rax, rax
je 0x1400182e5
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [rsp + 0x30], rdi
lea rbx, [rdi + 0x1000]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call fcn.140144890
mov qword [rsp + 0x38], rbx
cmp qword [rsi + 0x18], 8
jb 0x140018275
mov rsi, qword [rsi]
mov r8d, 0x800
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400182a9
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140018292
mov rdx, rdi
mov rcx, r14
call fcn.140012600
nop
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea r8, [rdi - 8]
cmp r8, 0x1f
ja 0x1400182e5
mov edx, 0x1027
call fcn.1401420dc
mov rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140142180
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140149044
int3
Function at 0x1400182f0
Capabilities:
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor bl, bl
xor r8d, r8d
call fcn.140018430
test al, al
je 0x140018404
xor ebx, ebx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400181d0
nop
cmp qword [rsp + 0x30], rbx
je 0x1400183c1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400181d0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400183a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001839e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018428
call fcn.1401420dc
cmp edi, 0xffffffff
je 0x1400183c1
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140018404
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400183ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018422
call fcn.1401420dc
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140142180
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call fcn.140149044
nop
call fcn.140149044
nop
int3
Function at 0x140018430
Capabilities:
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edi, r8b
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1400181d0
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400181d0
nop
xor esi, esi
test dil, dil
jne 0x1400184f8
cmp qword [rsp + 0x30], rsi
je 0x1400184f8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400181d0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400184ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400184ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400185e9
call fcn.1401420dc
cmp ebx, 0xffffffff
je 0x1400184f8
mov eax, esi
jmp 0x140018523
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001856a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018565
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400185ef
call fcn.1401420dc
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400185bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400185b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400185e3
call fcn.1401420dc
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140142180
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140149044
nop
call fcn.140149044
nop
call fcn.140149044
int3
Function at 0x140018600
Capabilities:
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400181d0
nop
cmp qword [rsp + 0x30], rbx
je 0x1400186bc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400181d0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14001869e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018699
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018723
call fcn.1401420dc
cmp edi, 0xffffffff
je 0x1400186bc
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400186ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400186fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001871d
call fcn.1401420dc
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140142180
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
call fcn.140149044
nop
call fcn.140149044
nop
int3
Function at 0x14001b200
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov dword [rdx], 0xffffffff
mov dword [rdx + 4], eax
mov rbx, rdx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14001b223
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14001e220
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rbp], rax
mov r12d, r9d
movzx r15d, r8w
movzx r14d, dx
mov rbx, rcx
mov rdx, qword [rbp + 0x70]
xor sil, sil
cmp qword [rdx + 0x18], 8
jb 0x14001e264
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14001e3ac
cmp qword [rbx + 0x18], 8
jb 0x14001e282
mov rbx, qword [rbx]
mov qword [rbp - 0x60], rbx
xor ebx, ebx
mov qword [rbp - 0x48], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x20], xmm0
mov ecx, ebx
mov qword [rbp - 0x78], rbx
cmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource], rbx
je 0x14001e2d1
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64___int__void____ptr64_.0
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x50]
mov qword [rbp - 0x78], rcx
lea rax, [rsp + 0x50]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], rdi
lea rax, [rbp - 0x48]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x10], rbx
test rcx, rcx
je 0x14001e307
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
mov rax, qword [rax]
call qword [case.0x1400c8de2.0]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001e324
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400c8de2.0]
mov ecx, 1
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rbx
mov r9d, r12d
movzx r8d, r15w
movzx edx, r14w
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp eax, 1
sete sil
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x14001e38b
mov qword [rbp - 0x68], rax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001e3ce
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
mov rax, qword [rax + 0x10]
call qword [case.0x1400c8de2.0]
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001e3ac
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400c8de2.0]
nop
movzx eax, sil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140142180
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14011a5a4
nop
int3
Function at 0x14001fe30
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r8
mov r14, rdx
mov rbp, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 0x10
jb 0x14001fe7a
mov rdi, qword [rdx]
add rdi, qword [rdx + 0x10]
mov r14, qword [rdx]
jmp 0x14001fe81
mov rdi, qword [rdx + 0x10]
add rdi, rdx
movdqu xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x48], rsi
sub rdi, r14
je 0x14001ff09
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14002000e
cmp rdi, 0x1000
jb 0x14001fed8
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140020014
call fcn.1401420a0
test rax, rax
je 0x140020008
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001fee3
mov rcx, rdi
call fcn.1401420a0
mov rbx, rax
mov qword [rsp + 0x38], rbx
lea rsi, [rbx + rdi]
mov qword [rsp + 0x48], rsi
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1401441e0
mov rcx, rsi
mov qword [rsp + 0x40], rcx
jmp 0x14001ff13
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
cmp dword [rbp + 0x20], 0
jl 0x14001ffa5
sub rcx, rbx
mov rax, qword [rbp + 0x10]
xor r9d, r9d
mov r8d, ecx
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov dword [rbp + 0x20], eax
mov rcx, qword [rbp + 0x10]
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x30]
lea rdx, str.HashDigestLength
mov rcx, qword [rcx]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [rbp + 0x20], eax
test eax, eax
js 0x14001ffa5
mov edx, dword [rsp + 0x30]
mov rcx, r15
call fcn.14000c130
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
mov rax, qword [rbp + 0x10]
xor r9d, r9d
mov rcx, qword [rax]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov dword [rbp + 0x20], eax
test eax, eax
jns 0x14001ffa5
mov rax, qword [r15]
mov qword [r15 + 8], rax
mov edi, dword [rbp + 0x20]
shr edi, 0x1f
xor dil, 1
test rbx, rbx
je 0x14001ffe3
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x14001ffd8
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020008
mov rdx, rsi
mov rcx, rbx
call fcn.1401420dc
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140142180
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140149044
int3
call fcn.14000fde0
int3
call fcn.140012f70
int3
Function at 0x14004edd0
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14004f050
test eax, eax
je 0x14004ee01
mov eax, 1
jmp 0x14004ef08
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004effe
cmp eax, 0x104
je 0x14004effe
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14004f047
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14004ef21
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14004e680
test eax, eax
jne 0x14004eedf
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140153c14
test eax, eax
je 0x14004eedf
cmp eax, 0xc
je 0x14004f01b
cmp eax, 0x16
je 0x14004f010
cmp eax, 0x22
je 0x14004f010
cmp eax, 0x50
jne 0x14004f005
lea r8, [rdi + 0x48]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140142180
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x48
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x14004efe2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14004e680
test eax, eax
jne 0x14004efd7
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140153c14
test eax, eax
je 0x14004efd7
cmp eax, 0xc
je 0x14004f03c
cmp eax, 0x16
je 0x14004f031
cmp eax, 0x22
je 0x14004f031
cmp eax, 0x50
jne 0x14004f026
xor r9d, r9d
mov r8, rdi
jmp 0x14004eee6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14004eef8
xor eax, eax
jmp 0x14004ef08
mov ecx, 0x80004005
call fcn.14001e060
int3
mov ecx, 0x80070057
call fcn.14001e060
int3
mov ecx, 0x8007000e
call fcn.14001e060
int3
mov ecx, 0x80004005
call fcn.14001e060
int3
mov ecx, 0x80070057
call fcn.14001e060
int3
mov ecx, 0x8007000e
call fcn.14001e060
int3
call fcn.140142954
int3
Function at 0x14004f0c0
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140012470
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14014d6dc
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x26c], esi
jne 0x14004f146
lea rcx, [rsp + 0x60]
call fcn.140153f08
lea rdx, [rdi + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14004f197
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140142180
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret