joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9520
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400a9562
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a95a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a9602
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a95c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a9643
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140100a72]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140100a73]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a9610
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400aa530
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aa57a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aa57a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aa57a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aa57a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aa57a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400aa57c
xor al, al
add rsp, 0x28
ret
Function at 0x1400055a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400055cd
xor eax, eax
jmp 0x140005739
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005607
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005607
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005739
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000572c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000564a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005675
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400056e4
sub eax, 1
je 0x1400056e4
cmp eax, 2
jne 0x14000572c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005712
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000572c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400076a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005c60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005d33
cmp byte [rcx + 0x71], 0
je 0x140005d33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005d2f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005cf4
sub eax, 1
je 0x140005cf8
cmp eax, 2
jne 0x140005d2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400076a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005d26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005d2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005cdc
xor al, al
jmp 0x140005cdc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400076a0
add rsp, 0x60
pop rbx
ret
Function at 0x1400074a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140007501
lea r8, [r9 + 8]
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 0x1400074c0
mov ecx, dword [r9]
jmp 0x1400075eb
cmp ecx, 0x4e0
jb 0x1400075eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007520
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007570
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
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
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
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
add rsp, 8
ret

Function at 0x1400080f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r8d
mov rbx, rdx
xor edi, edi
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140017192
test byte [rcx + 0x1c], 4
je 0x140017192
cmp byte [rcx + 0x19], 5
jb 0x140017192
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xea
call fcn.14000e618
lea rcx, [0x140002408]
lea rax, [0x140002420]
test esi, esi
cmovne rax, rcx
lea r8, [0x1400022f8]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14001000c
mov ebx, eax
test eax, eax
jns 0x140017212
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x1400171fa
test byte [rcx + 0x1c], 4
je 0x1400171fa
cmp byte [rcx + 0x19], 2
jb 0x1400171fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xeb
mov r9d, eax
call fcn.14000e63c
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
jmp 0x140017261
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001725f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14001725f
test byte [rcx + 0x1c], 4
je 0x14001725f
cmp byte [rcx + 0x19], 2
jb 0x14001725f
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
lea r8, [0x140002810]
mov edx, 0xec
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140088640
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop r14
pop rdi
pop rsi
ret
Function at 0x14001728c
Capabilities:
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rsp + 0x2b0]
mov rbp, r9
mov r14d, r8d
mov rdi, rdx
xor ebx, ebx
mov rcx, qword [str.___t_]
lea r12, str.___t_
lea r13, [0x140002810]
cmp rcx, r12
je 0x1400172fa
test byte [rcx + 0x1c], 4
je 0x1400172fa
cmp byte [rcx + 0x19], 5
jb 0x1400172fa
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r13
call fcn.14000e618
lea rcx, [0x140002408]
lea rax, [0x140002420]
test r14d, r14d
cmovne rax, rcx
lea r8, [0x1400022f8]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14001000c
mov edi, eax
test eax, eax
jns 0x14001737a
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14001735f
test byte [rcx + 0x1c], 4
je 0x14001735f
cmp byte [rcx + 0x19], 2
jb 0x14001735f
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r13
call fcn.14000e63c
mov ecx, edi
movzx eax, di
mov ebx, edi
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x140017455
lea rcx, [rsp + 0x30]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140017449
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140017415
xor ebx, ebx
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x1400173cd
test byte [rcx + 0x1c], 4
je 0x1400173cd
cmp byte [rcx + 0x19], 5
jb 0x1400173cd
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r13
call fcn.14000e868
lea rdx, [rsp + 0x30]
call fcn.14001706c
test eax, eax
jne 0x140017411
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140017455
test byte [rcx + 0x1c], 4
je 0x140017455
cmp byte [rcx + 0x19], 2
jb 0x140017455
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r13
call fcn.14000e63c
jmp 0x140017455
xor eax, eax
jmp 0x14001744e
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140017455
test byte [rcx + 0x1c], 4
je 0x140017455
cmp byte [rcx + 0x19], 2
jb 0x140017455
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
jmp 0x140017455
mov eax, 1
cmp dword [rsi], 0
je 0x140017455
mov dword [rsi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140088640
add rsp, 0x250
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017790
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x1400177f1
test byte [rcx + 0x1c], 4
je 0x1400177f1
cmp byte [rcx + 0x19], 5
jb 0x1400177f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xfa
call fcn.14000e618
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001786e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140017845
test byte [rcx + 0x1c], 4
je 0x140017845
cmp byte [rcx + 0x19], 3
jb 0x140017845
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xfb
mov r9d, eax
mov qword [rsp + 0x20], rdi
call fcn.14000e678
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140088640
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x50]
lea rdx, [rsp + 0x30]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001786e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
je 0x1400178d4
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x1400178d4
test byte [rcx + 0x1c], 4
je 0x1400178d4
cmp byte [rcx + 0x19], 2
jb 0x1400178d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xfc
mov r9d, eax
mov qword [rsp + 0x20], rdi
call fcn.14000e678
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140017916
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140017916
test byte [rcx + 0x1c], 4
je 0x140017916
cmp byte [rcx + 0x19], 2
jb 0x140017916
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002810]
mov edx, 0xfd
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call fcn.14000e678
cmp ebx, 0x12
jne 0x140017845
mov qword [r14], rbp
xor eax, eax
jmp 0x140017847
Function at 0x140018384
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x1400183d0
test byte [rcx + 0x1c], 4
je 0x1400183d0
cmp byte [rcx + 0x19], 5
jb 0x1400183d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400028e0]
mov edx, 0x20
call fcn.14000e618
mov r9d, 2
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140075c60
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x14001843b
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140018490
test byte [rax + 0x1c], 4
je 0x140018490
cmp byte [rax + 0x19], 3
jb 0x140018490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rsi + 0x21]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400028e0]
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
jmp 0x140018490
lea rdx, [0x140002828]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140018487
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140018487
test byte [rcx + 0x1c], 4
je 0x140018487
cmp byte [rcx + 0x19], 3
jb 0x140018487
mov rcx, qword [rcx + 0x10]
lea r9, [0x140002828]
lea r8, [0x1400028e0]
mov edx, 0x22
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.1400764a4
test eax, eax
jne 0x1400184df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x1400184df
test byte [rcx + 0x1c], 4
je 0x1400184df
cmp byte [rcx + 0x19], 2
jb 0x1400184df
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400028e0]
mov edx, 0x23
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret

Function at 0x140018f2c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140018f82
test byte [rcx + 0x1c], 4
je 0x140018f82
cmp byte [rcx + 0x19], 5
jb 0x140018f82
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400028e0]
mov edx, 0x44
call fcn.14000e618
mov rax, qword [rsi + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140018fac
mov rbp, qword [rbx + 0x10]
mov rcx, r14
mov rdx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140018fc9
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 8]
jne 0x140018f8e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rdi, rdi
je 0x140018fd1
mov qword [rdi], rbx
mov rax, rbp
jmp 0x140018fae
Function at 0x14001cca0
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x24]
test edx, r10d
jne 0x14001ccb3
xor eax, eax
jmp 0x14001ccf0
lea eax, [r10 - 4]
test eax, 0xfffffffb
je 0x14001cceb
xor ebx, ebx
test r8d, r8d
jne 0x14001cceb
cmp r10d, 2
jne 0x14001ccd2
mov rcx, qword [rcx + 0x248]
mov rdx, qword [rcx + 0x198]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov eax, ebx
jmp 0x14001ccf0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14002f5c4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x60
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
xor ecx, ecx
mov esi, ebp
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14002f624
test byte [rcx + 0x1c], 4
je 0x14002f624
cmp byte [rcx + 0x19], 5
jb 0x14002f624
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
lea r8, [0x140002d80]
call fcn.14000e618
call fcn.140078124
lea rax, [0x1400022e8]
lea rbx, [0x14009a080]
mov qword [0x14009a090], rbp
mov qword [0x14009a080], rbp
mov qword [0x14009a0a8], rax
mov qword [0x14009a098], 1
lea rdi, [0x14009a0a8]
mov qword [str.___t_], rbx
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x48], r8
lea rcx, [0x14002e8f0]
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x28], rbp
lea rdi, [rdi + 8]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002f665
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14002f6f0
test byte [rax + 0x1c], 4
je 0x14002f6f0
cmp byte [rax + 0x19], 5
jb 0x14002f6f0
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov rcx, qword [str.___t_]
lea edx, [rbx + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002d80]
mov r9d, eax
call fcn.14000e63c
mov ecx, 1
call qword [sym.imp.GDI32.dll_EnableEUDC]
test eax, eax
je 0x14002f74e
lea rcx, [0x140096020]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14002f77b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x14002f7ab
test byte [rbx + 0x1c], 4
je 0x14002f782
cmp byte [rbx + 0x19], 2
jb 0x14002f782
mov rcx, qword [rbx + 0x10]
lea r8, [0x140002d80]
mov edx, 0x19
mov r9d, eax
call fcn.14000e63c
jmp 0x14002f77b
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x14002f7ab
test byte [rbx + 0x1c], 4
je 0x14002f782
cmp byte [rbx + 0x19], 2
jb 0x14002f782
mov rcx, qword [rbx + 0x10]
lea r8, [0x140002d80]
mov edx, 0x1a
call fcn.14000e618
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x14002f7ab
jmp 0x14002f79f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002f79c
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], rbp
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002f789
mov qword [str.___t_], r14
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [0x14009a768], eax
add eax, ebx
jne 0x14002f7d6
mov rcx, qword [0x140096c38]
cmp rcx, rbx
je 0x14002f7d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140096c38], rbx
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14003014c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140030195
test byte [rcx + 0x1c], 4
je 0x140030195
cmp byte [rcx + 0x19], 5
jb 0x140030195
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002d80]
mov edx, 0x2b
call fcn.14000e618
lea rdx, [0x140002970]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.140075c60
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140030207
mov rax, qword [str.___t_]
cmp rax, r14
je 0x1400302fc
test byte [rax + 0x1c], 4
je 0x1400302fc
cmp byte [rax + 0x19], 2
jb 0x1400302fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x2c]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002d80]
mov r9d, eax
call fcn.14000e63c
jmp 0x1400302fc
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140081ffc
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1400302cf
test eax, eax
je 0x14003028b
lea r8, [0x1400022d0]
test rbx, rbx
mov rcx, rdi
cmovne r8, rbx
call fcn.140081c64
test eax, eax
jne 0x1400302cf
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14003028b
test byte [rax + 0x1c], 4
je 0x14003028b
cmp byte [rax + 0x19], 2
jb 0x14003028b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140002d80]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x2d
call fcn.14000e63c
lea rdx, [0x1400029b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1400302cf
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x1400302cf
test byte [rcx + 0x1c], 4
je 0x1400302cf
cmp byte [rcx + 0x19], 2
jb 0x1400302cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002d80]
mov edx, 0x2e
mov r9d, eax
call fcn.14000e63c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1400302fc
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1400302e1
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.140072328
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret