joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ef40
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42f1e6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1278]
mov rcx, qword [rax + 0x1268]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42f1da
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x005ec571], 0
jne 0x42efa2
xor edx, edx
xor ebx, ebx
nop
jmp 0x42efea
xor edx, edx
jmp 0x42efcd
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.0041e940
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42efa6
add rax, 0x1268
call fcn.0042edc0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42f174
mov rsi, qword [rax + rdx*8 + 0x1278]
nop dword [rax + rax]
cmp rsi, 0x1000
jb 0x42efe7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.004128e0
test rax, rax
jne 0x42f042
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42efe7
nop
mov rsi, rcx
shr rcx, 3
add rcx, qword [rbx + 0x50]
movzx r8d, byte [rcx]
and esi, 7
mov rdx, rcx
mov rcx, rsi
mov r9d, 1
shl r9d, cl
nop
test r9b, r8b
je 0x42f085
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42efe7
nop
lock or byte [rdx], r9b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42f1cd
lea r10, [0x005be9d0]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x21040]
lea r9, [r9 + rcx]
lea r9, [r9 + 0x21040]
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42f10b
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42f145
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop dword [rax]
jmp 0x42efe7
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42f1c5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42efe7
cmp rbx, 0x200
ja 0x42f1b8
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00424ac0
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.0042edc0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
call fcn.004620a0
mov rax, r8
call fcn.00462020
mov rax, r8
mov ecx, 0x40
call fcn.00462040
mov edx, 0x200
nop
call fcn.00462080
nop
mov qword [rsp + 8], rax
call fcn.004640a0
mov rax, qword [rsp + 8]
jmp fcn.0042ef40
Function at 0x4442e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44444f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x4442f8
cmp edx, ecx
jne 0x44443d
nop dword [rax]
test rsi, rsi
jne 0x44443d
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x444356
nop
call fcn.00463960
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.004441e0
mov rcx, qword [0x005983b8]
mov rdx, qword [0x005983b0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
sar esi, 5
mov r8d, esi
shl esi, 5
sub edi, esi
test edi, edi
jl 0x444438
cmp edi, 0x20
sbb esi, esi
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x44442d
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00599110]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00599110], rbx
mov edx, 1
lea rsi, [0x00599118]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x44441c
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1228], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004e389e]
mov ebx, 0x28
call fcn.00435cc0
mov rcx, rax
mov rax, rsi
call fcn.00462020
call fcn.004340e0
lea rax, [0x004e2c7c]
mov ebx, 0x23
call fcn.00435cc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004442e0
Function at 0x450d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x450eb8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x450d7c
test r8b, r8b
jne 0x450d7c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x450d8f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x450e78
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x450e66
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x450e5c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x450de3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x450e26
mov eax, 1
cmp rax, rbx
ja 0x450e15
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.004620e0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x450e54
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x450e1d
mov r8d, eax
mov eax, r10d
jmp 0x450de8
mov rcx, rbx
call fcn.00462020
xor eax, eax
mov rcx, rax
call fcn.00462020
mov eax, r8d
mov rcx, rbx
call fcn.004620e0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x450eae
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x450e71
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x450d95
mov eax, edx
mov rcx, rbx
call fcn.00462020
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00462020
nop
int3
Function at 0x458840
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4588fb
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00458940]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045f800
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045f940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00458840
Function at 0x461a60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402faf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.004098c0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402f80
cmp byte [0x005ec570], 0
je 0x461a75
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45ea40
jmp 0x402f80

Function at 0x461a80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ec860]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005ec570], 0
je 0x461ab5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ecb80]
aesenc xmm0, xmmword [0x005ecb90]
aesenc xmm0, xmmword [0x005ecba0]
movq rax, xmm0
ret
jmp 0x409ac0

Function at 0x461ac0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ec860]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005ec570], 0
je 0x461af6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ecb80]
aesenc xmm0, xmmword [0x005ecb90]
aesenc xmm0, xmmword [0x005ecba0]
movq rax, xmm0
ret
jmp 0x409b20

Function at 0x463480
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005ecb00]
mov qword [rsp + 8], rdx
lea r8d, [0x005ec588]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.004619a0
add rsp, 0x30
ret
Function at 0x4782c0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47850b
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov ebx, dword [rax + 0x2c]
nop dword [rax + rax]
test ebx, ebx
jne 0x47836c
mov qword [rsp + 0x88], rax
lea rbx, [0x004d8060]
mov rcx, rax
lea rax, [0x005984e0]
call fcn.0046f360
test cl, cl
jne 0x478351
mov rax, qword [rsp + 0x88]
call fcn.00477ba0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x00503700]
call fcn.0044d220
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
nop dword [rax]
call fcn.00478540
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x47838d
lea rdx, [0x004d7da0]
cmp rax, rdx
jne 0x47837b
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
call fcn.0045d3e0
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x004c7240]
call fcn.0040a520
inc rdx
cmp rbx, rdx
jle 0x4783d8
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x47838a
lea rax, [0x005984e0]
lea rbx, [0x004d8060]
lea rdi, [0x004d7da0]
call fcn.0046f600
lea rdx, [0x004d7da0]
nop dword [rax]
cmp rax, rdx
jne 0x4784fb
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
lea rcx, [0x004c2da0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004cce00]
nop
call fcn.0040cfe0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x005ec800], 0
jne 0x47843a
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
jmp 0x478449
mov rbx, rax
lea rax, [0x004cce00]
call fcn.004121e0
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
nop dword [rax]
call fcn.00477600
call fcn.0045d4a0
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x478496
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
cmp rax, 1
jl 0x478488
mov dword [rsi + 0x10], edx
cmp dword [0x005ec800], 0
jne 0x4784ae
mov qword [rsi + 0x30], rcx
jmp 0x4784b7
lea rdi, [rsi + 0x30]
call fcn.00461c80
lea rax, [0x005984e0]
lea rbx, [0x004d8060]
lea rdi, [0x004d7da0]
call fcn.0046f600
lea rdx, [0x004d7da0]
cmp rax, rdx
jne 0x4784ec
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x004c7240]
call fcn.0040a520
mov rbx, rdx
lea rcx, [0x004c7240]
call fcn.0040a520
nop
mov qword [rsp + 8], rax
call fcn.0045f940
mov rax, qword [rsp + 8]
jmp fcn.004782c0
Function at 0x140001000
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
lea rcx, str.C:_Windows_System32_
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x140001051
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Nepoda_ilo_se_smazat_soubor
call fcn.1400010a0
mov rcx, rax
lea rdx, str.C:_Windows_System32_
call fcn.1400010a0
lea rdx, [0x140001270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Soubor
call fcn.1400010a0
mov rcx, rax
lea rdx, str.C:_Windows_System32_
call fcn.1400010a0
mov rcx, rax
lea rdx, str._byl
call fcn.1400010a0
lea rdx, [0x140001270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001bf8
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x14000c14c]
xor r14d, r14d
mov dword [rbp + 0x3f], r14d
mov word [rbp + 0x43], 0x500
mov dword [rbp + 0x27], r14d
lea ebx, [r14 + 2]
cmp eax, ebx
jne 0x140001460
lea rcx, [rbp + 0x27]
call fcn.1400011c0
test eax, eax
jne 0x140001447
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 6]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001460
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001438
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x140001438
mov edx, dword [rbp + 0x2b]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140001438
mov r9d, dword [rbp + 0x2b]
lea rax, [rbp + 0x2b]
mov rcx, qword [rbp + 0x2f]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000142f
lea rax, [rbp + 0x37]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], r14d
mov r8d, 0x20
mov dword [rsp + 0x40], r14d
mov dl, bl
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000142f
mov esi, r14d
cmp dword [rdi], r14d
jbe 0x140001425
mov ebx, 1
mov rdx, qword [rbp + 0x37]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14000141c
add esi, ebx
cmp esi, dword [rdi]
jb 0x1400013fc
jmp 0x140001425
mov dword [0x14000c14c], ebx
mov dword [rbp + 0x27], ebx
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rbp + 0x27]
jmp 0x140001460
mov ecx, dword [0x14000c14c]
mov ebx, 1
mov eax, dword [rbp + 0x27]
test eax, eax
cmovne ecx, ebx
mov dword [0x14000c14c], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001b44
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ecx, ecx
test eax, eax
jne 0x140001b9b
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDIIsCabinet
call fcn.140004a70
xor eax, eax
jmp 0x140001c1e
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
jne 0x140001c03
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140001b87
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140001c19
mov edx, 0x4f7
jmp 0x140001bf4
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c20
add rsp, 0x50
pop rbx
ret
Function at 0x140001f00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
cmp byte [rcx], 0
mov rdi, rcx
je 0x140002093
mov r15d, 0x104
lea rax, [rbp + 0x60]
mov rbx, rdi
lea rcx, [rbp + 0x60]
mov edx, r15d
sub rbx, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001f6f
mov al, byte [rbx + rcx]
test al, al
je 0x140001f6f
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001f51
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [0x1400097b8]
mov rdx, r15
cmovne rax, rcx
lea rcx, [rbp + 0x60]
mov byte [rax], 0
call fcn.140001080
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002093
mov r8, r15
lea rdx, [rbp + 0x60]
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x140001fd1
mov al, byte [rbx + rdx]
test al, al
je 0x140001fd1
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x140001fb3
test r8, r8
lea rax, [rdx - 1]
cmovne rax, rdx
test byte [rsp + 0x20], 0x10
mov byte [rax], 0
je 0x140002041
lea rdx, [0x1400097bc]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x14000206b
lea rdx, [0x1400097c0]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x14000206b
lea r8, [rsp + 0x4c]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140001080
lea r8, [0x1400096f0]
mov edx, r15d
lea rcx, [rbp + 0x60]
call fcn.1400073cc
lea rcx, [rbp + 0x60]
call fcn.140001f00
jmp 0x14000206b
lea r8, [rsp + 0x4c]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140001080
mov edx, 0x80
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x140001fac
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x1400020c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x140002149
lea r8, str.wininit.ini
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400073cc
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL__lopen]
mov edi, eax
cmp eax, 0xffffffff
je 0x140002149
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140002174
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
test cx, cx
je 0x14000227e
cmp cx, 1
je 0x14000220e
jbe 0x140002285
cmp cx, 3
ja 0x140002285
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002209
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x10]
jmp 0x140002285
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002209
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x1400021f4
call fcn.1400020c0
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret