joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4f00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4822
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d48ba
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d489e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4892
cmp qword [rbp - 0x10], 0
je 0x2fc4d4892
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4858
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d48bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d49c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d49e8
mov eax, 0
jmp 0x2fc4d4a36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4a11
mov eax, 0
jmp 0x2fc4d4a36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4a31
mov eax, 0
jmp 0x2fc4d4a36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140007050
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x260]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rcx, qword [rbx + 0x278]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140007040]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x40
pop rbx
ret

Function at 0x140015510
Capabilities:
Query service status
Stop service

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x140015552
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000c1c0
nop
cmp byte [r8 + rdx + 1], 0
je 0x140015579
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rcx, [0x1401faaf0]
call fcn.140014900
lea rcx, [0x1401faaf0]
call fcn.140012e10
mov rcx, qword [rbx + 8]
add rsp, 0x30
pop rbx
jmp fcn.140019dc0
Function at 0x14001a300
Capabilities:
Modify service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x60], ebp
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x90]
call fcn.14010ef60
lea rax, [0x140197a28]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x60], 1
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x114], 0x78
xor r8d, r8d
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x118]
call fcn.140012060
nop
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x90], rax
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x8c], edx
lea edx, [rbp + 2]
lea rcx, [rsp + 0x98]
call fcn.14000fc00
nop
mov ebx, ebp
cmp qword [rdi], rbx
je 0x14001a413
mov rax, qword [rdi]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001ae90
mov rcx, rax
call fcn.14001b0e0
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14001a3f0
lea rcx, [rsp + 0x90]
call fcn.14001b0e0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.14001ac30
cmp qword [rax + 0x18], 8
jb 0x14001a43c
mov rax, qword [rax]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
sete bl
mov r8, qword [rsp + 0x88]
cmp r8, 8
jb 0x14001a498
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14000fcf0
test bl, bl
je 0x14001a542
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x254
mov ecx, dword [rax + rdx]
mov r8d, 0x250
test cl, 1
jne 0x14001a4d9
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, r8d
add rcx, rdx
call fcn.14000c1c0
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001a542
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1401faaf0]
mov rcx, rdi
call fcn.140014900
mov rax, qword [0x1401faaf0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff9ff
or dword [rdx + 0x18], 0x800
mov edx, ebx
mov rcx, rdi
call fcn.1400157e0
mov rax, qword [0x1401faaf0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rcx, rdi
call fcn.140012e10
nop
lea rcx, [rsp + 0x118]
call fcn.14001ac60
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.1400e8708
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400ede70
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a840
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x168], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14001a926
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.14000c8b0
xor eax, eax
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x150], 7
mov word [rsp + 0x138], ax
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x50]
call fcn.140014140
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x68], 0xfffff9ff
or dword [rsp + rdx + 0x68], 0x800
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140017e80
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x68], 0xfffff3ff
or dword [rsp + rcx + 0x68], 0x200
lea rcx, [rsp + 0x50]
call fcn.14000d170
nop
lea rcx, [rsp + 0x40]
call fcn.14000c270
mov eax, ebx
jmp 0x14001a928
xor eax, eax
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x170
pop rbx
ret

Function at 0x14001a950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14001a9a6
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000c1c0
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001a9cd
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rcx, [0x1401faaf0]
call fcn.140014900
lea rcx, [0x1401faaf0]
call fcn.140012e10
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ebx, eax
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001a840
cmp dword [rsp + 0x2c], 1
je 0x14001aa53
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x40]
shr edx, 3
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001a840
test eax, eax
jne 0x14001aa55
cmp dword [rsp + 0x2c], 1
je 0x14001aa47
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14001aa34
cmp dword [rsp + 0x2c], 1
jne 0x14001a9f0
jmp 0x14001aa53
lea rcx, str.Service_stop_timed_out._n
call fcn.14000aab0
mov eax, 0x41d
jmp 0x14001aa55
lea rcx, str.Service_stopped_successfully._n
call fcn.14000aab0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ede70
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14001aa70
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rdx], rbp
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001aaa8
call fcn.1400ee178
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001ab72
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x14001ab74
mov ecx, dword [rsp + 0x30]
call fcn.1400eeebc
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001ab01
mov eax, 0xe
jmp 0x14001ab74
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14010ef60
mov r8, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, dword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rbx + 0x18], r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001ab54
mov rcx, qword [rbx + 0x10]
call fcn.1400ee178
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x14001ab72
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x14001ab60
mov qword [rdi], rbp
jmp 0x14001ab72
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140019bc0
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ede70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026e30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r15d, r15d
mov r14d, r15d
mov qword [rsp + 0x50], r15
lea rax, [0x1401fc660]
nop dword [rax + rax]
mov rsi, qword [r14 + rax]
cmp byte [rsi + 0x40], 1
je 0x140026e94
cmp byte [rsi + 0x40], 3
jne 0x140026fc1
mov qword [rsp + 0x60], r15
lea rdx, [rsi + 8]
cmp qword [rdx + 0x18], 8
jb 0x140026ea7
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x140026fd8
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x30]
cmp rbx, rdi
je 0x140026faa
cmp byte [rsi + 0x40], 3
jne 0x140026f37
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x68], r15d
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140026f98
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx]
mov rdx, qword [rax]
mov rbp, rdx
mov r12, rax
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov r13, rax
mov rcx, r12
call qword [rbp]
mov r15, rax
mov rcx, r12
call qword [rbp + 0x10]
mov ebp, eax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x18]
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
mov r9d, ebp
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x140026fd8
xor r15d, r15d
add rbx, 8
cmp rbx, rdi
jne 0x140026ef2
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140026fba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [0x1401fc660]
add r14, 8
mov qword [rsp + 0x50], r14
cmp r14, 0x60
jb 0x140026e80
xor eax, eax
jmp 0x140026ff0
call fcn.140026d80
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140026fee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ede70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140027020
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 2
jne 0x140027097
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], 0
jb 0x140027052
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400270ac
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ebx, eax
test eax, eax
jne 0x1400270ac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140027097
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400270bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x40
pop rbx
ret

Function at 0x140027770
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140027789
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140027827
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x1400277eb
xor edi, edi
mov rcx, qword [0x1401ec598]
lea rax, [0x1401ec598]
cmp rcx, rax
je 0x140027827
test dword [rcx + 0x44], 0x100
je 0x140027827
cmp byte [rcx + 0x41], 4
jb 0x140027827
cmp qword [rbx + 0x18], 8
jb 0x1400277d2
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
call fcn.140018f30
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1401ec598]
lea rax, [0x1401ec598]
cmp rcx, rax
je 0x140027827
test dword [rcx + 0x44], 0x100
je 0x140027827
cmp byte [rcx + 0x41], 2
jb 0x140027827
cmp qword [rbx + 0x18], 8
jb 0x140027817
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.1400274f0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140027c90
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15d, r9d
mov r14d, r8d
mov ebp, edx
mov rsi, rcx
mov rbx, qword [rsp + 0xd0]
cmp qword [rcx + 8], 0
je 0x140027e35
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xor r12d, r12d
mov qword [r11 - 0x38], r12
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 5
test rdx, rdx
je 0x140027d1e
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jbe 0x140027d14
call fcn.1400193a0
int3
lea rcx, [rsp + 0x60]
call fcn.1400281d0
mov rdi, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x140027d5c
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
jb 0x140027d3c
mov rax, qword [rbx]
jmp 0x140027d3f
mov rax, rbx
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140028440
add rbx, 0x20
cmp rbx, rdi
jne 0x140027d30
cmp qword [rsi + 0x20], 0
je 0x140027d85
lea rax, [rsi + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140027d71
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140028440
mov r8, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
sub r8, rbx
sar r8, 3
mov r11d, r12d
test r14d, r14d
sete r11b
cmp ebp, 5
ja case.0x140027db6.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbp*4 + 0x27e60]
add rcx, rdx
jmp rcx
movzx r10d, r12w
jmp 0x140027de4
mov r10d, 2
jmp 0x140027de4
mov r10d, 1
jmp 0x140027de4
mov r10d, 8
jmp 0x140027de4
mov r10d, 0x10
jmp 0x140027de4
mov r10d, 4
mov edx, r15d
call fcn.140027a20
mov r9d, eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], r8w
mov qword [rsp + 0x20], r12
movzx r8d, r11w
movzx edx, r10w
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop
test rbx, rbx
je 0x140027e35
mov r8, qword [rsp + 0x70]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.140028360
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ede70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400292a0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 8]
mov rdi, rdx
test rsi, rsi
je 0x14002930b
lea rbx, [rdx + 8]
test rbx, rbx
je 0x14002930b
cmp byte [rcx + 0x4c], 0
je 0x14002930b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002930b
cmp byte [rdi + 0x4c], 0
je 0x14002930b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002930b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400535c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [rcx]
mov r10d, 0x270
mov r9, rcx
cmp eax, r10d
jne 0x14005361e
lea r8, [rcx + 8]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400535e0
jmp 0x140053702
cmp eax, 0x4e0
jb 0x140053702
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140053640
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140053690
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov dword [r9], r11d
mov eax, dword [r9]
mov edx, dword [r9 + rax*4 + 4]
inc eax
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x14006c6a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 4]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 5]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 6]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 7]
xor rcx, rax
imul rcx, rdx
mov r8, qword [r9 + 0x30]
and r8, rcx
shl r8, 4
mov rbx, qword [r9 + 0x18]
mov rax, qword [rbx + r8]
cmp rax, qword [r9 + 8]
jne 0x14006c767
mov rbx, qword [r9 + 8]
jmp 0x14006c76f
mov rbx, qword [rbx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14006c7ab
mov rcx, qword [r10]
nop word [rax + rax]
mov rbx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x14006c791
cmp rbx, rax
jne 0x14006c780
jmp 0x14006c7ab
mov rdx, rdi
mov rcx, r9
call fcn.14006f090
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14006c83d
mov rax, qword [rdi]
cmp rbx, rax
je 0x14006c7e0
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r9 + 0x18]
add rdx, r8
mov rax, qword [rdx]
cmp rax, qword [r9 + 8]
jne 0x14006c7fe
mov qword [rdx], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8 + 8], rdi
jmp 0x14006c82a
cmp rax, rbx
jne 0x14006c808
mov qword [rdx], rdi
jmp 0x14006c82a
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x14006c82a
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8 + 8], rcx
mov rcx, r9
call fcn.14006d6a0
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret