joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004d3b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x18004d5c7
mov qword [r11 + 0x18], rbp
lea rbp, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x18004d40e
cmp r8, rsi
jae 0x18004d5a4
movzx edx, byte [r8]
test dl, dl
je 0x18004d5a4
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x9e150]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x18004d442
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x18004d45b
movzx r13d, byte [rax]
jmp 0x18004d45e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x18004d46d
movzx r12d, byte [rax]
jmp 0x18004d470
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x18004d47f
movzx r15d, byte [rax]
jmp 0x18004d482
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x9e170]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x9e1a0]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x9e188]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x9e1b8]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x18004d586
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x180000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x18004d400
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x18004d5dd
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800549b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800ba768]
lea r10, [0x18009d6c0]
mov r8d, ecx
mov rbx, qword [rax + 0x3ef8]
add rbx, 0xf0
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
mov eax, r8d
mov r8d, dword [rbx + 4]
xor rdx, rcx
shr rax, 0x18
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [r10 + rcx*4]
not edi
cmp r9d, r8d
jne 0x180054a71
lea ecx, [r9 + 1]
test r8d, r8d
je 0x180054a5d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180054a62
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.18005d260
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180073270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x180]
mov r10, rcx
movsxd rax, edx
imul rbx, rax, 0x70
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x74], edx
test dword [rbx], 0x10000
movss xmm1, dword [rbx + 0x34]
je 0x1800732ac
addss xmm1, dword [rcx + 0x8c]
lea rsi, [r9 + 0x100]
movss dword [rsi], xmm1
movss xmm0, dword [rcx + 0xc0]
addss xmm0, dword [rcx + 0x7c]
movss dword [r9 + 0x118], xmm1
subss xmm1, dword [r9 + 0x20]
movss dword [r9 + 0x104], xmm0
subss xmm1, dword [r9 + 0x144]
movss dword [r9 + 0x148], xmm1
mov eax, dword [rcx + 0x88]
mov dword [r9 + 0x138], eax
movsx eax, byte [rbx + 0x6a]
mov dword [r9 + 0x158], eax
movss dword [r9 + 0x21c], xmm0
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x218], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x220], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1bc], eax
movzx eax, byte [rbx + 0x68]
mov byte [r9 + 0xbb], al
cmp byte [rbx + 0x68], 0
je 0x180073353
mov rax, qword [0x1800ba768]
xor ecx, ecx
mov dword [rax + 0x4794], ecx
mov dword [rax + 0x479c], ecx
test dword [r10 + 4], 0x100000
je 0x180073368
mov r8d, 2
jmp 0x1800733e8
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x298]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x5c]
mov rdx, qword [r9 + 0x298]
mov rcx, qword [r10 + 0x198]
call fcn.1800689d0
mov rdi, qword [0x1800ba768]
cmp byte [rdi + 0x5c80], 0
je 0x18007342d
cmp byte [rbx + 0x68], 0
jne 0x18007342d
xor r8d, r8d
lea rdx, [0x1800a461c]
mov rcx, rsi
call fcn.18004f140
mov dword [rdi + 0x5cb0], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180075f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1800ba768]
mov r8, qword [rax + 0x4b38]
cmp ecx, 0xffffffff
jne 0x180075f90
cmp dword [r8 + 0x74], ecx
cmovne ecx, dword [r8 + 0x74]
cmp ecx, dword [r8 + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [r8 + 4], 7
je 0x180075fdb
movzx eax, word [r8 + 0x78]
xor edx, edx
mov word [r8 + 0x210], cx
lea rcx, str.ContextMenu
mov word [r8 + 0x7a], ax
mov byte [r8 + 0x227], 1
mov r8d, dword [r8]
call fcn.18004ce40
xor edx, edx
mov ecx, eax
add rsp, 0x28
jmp fcn.180053e40
add rsp, 0x28
ret
Function at 0x180075fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ba768]
mov rcx, qword [rax + 0x4b38]
mov r10, qword [rax + 0x3ef8]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x298]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x238], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x298]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp fcn.1800689d0

Function at 0x1800760b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ba768]
mov rcx, qword [rax + 0x4b38]
mov r9, qword [rax + 0x3ef8]
movups xmm0, xmmword [r9 + 0x238]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x298]
add rsp, 0x38
jmp fcn.1800689d0
Function at 0x180094db0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
movzx ebp, r9b
mov r15, r8
mov edi, edx
mov rsi, rcx
call fcn.180098300
test rax, rax
je 0x180094e70
movzx r14d, word [rax + 0x14]
xor r12d, r12d
movzx r11d, word [rax + 6]
add r14, rax
movzx r9d, r12w
cmp r12w, r11w
jae 0x180094e70
movzx eax, r9w
lea rcx, [rax + rax*4]
mov r10d, dword [r14 + rcx*8 + 0x20]
cmp dword [r14 + rcx*8 + 0x28], r10d
mov ebx, dword [r14 + rcx*8 + 0x24]
cmovb r10d, dword [r14 + rcx*8 + 0x28]
test ebx, ebx
je 0x180094e66
test r10d, r10d
je 0x180094e66
mov rdx, qword [r14 + rcx*8 + 0x18]
mov r8d, 0x84222325
mov qword [rsp + 0x28], r12
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdx
test dl, dl
je 0x180094e61
movsx eax, dl
lea rcx, [rcx + 1]
xor eax, r8d
imul r8d, eax, 0x1b3
movzx eax, byte [rcx]
movzx edx, al
test al, al
jne 0x180094e46
cmp edi, r8d
je 0x180094e91
inc r9w
cmp r9w, r11w
jb 0x180094e02
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov edx, r10d
lea rcx, [rbx + rsi]
add rdx, rbx
movzx r9d, bpl
add rdx, rsi
mov r8, r15
call fcn.180094c40
jmp 0x180094e72

Function at 0x180097c60
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [rcx]
mov edx, 0x84222325
test al, al
je 0x180097c86
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1b3
movzx eax, byte [rcx]
test al, al
jne 0x180097c70
mov eax, edx
ret
Function at 0x180097c90
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword gs:[0x30]
movzx ebp, dl
mov edi, ecx
mov r8, qword [rax + 0x60]
mov rsi, qword [r8 + 0x18]
add rsi, 0x20
mov r10, qword [rsi]
cmp r10, rsi
je 0x180097d7a
nop word [rax + rax]
movzx ebx, word [r10 + 0x48]
xorps xmm0, xmm0
xor eax, eax
shr rbx, 1
xor r9d, r9d
mov dword [rsp + 0x60], eax
movups xmmword [rsp], xmm0
movups xmmword [rsp + 0x10], xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
add rbx, 0xfffffffffffffffc
je 0x180097d3b
mov r11, qword [r10 + 0x50]
nop dword [rax + rax]
movzx edx, word [r11]
lea r11, [r11 + 2]
movzx r8d, dl
sub dx, 0x41
cmp dx, 0x19
lea eax, [r8 + 0x20]
movzx ecx, al
cmova ecx, r8d
mov byte [rsp + r9], cl
inc r9
cmp r9, rbx
jne 0x180097d10
test edi, edi
je 0x180097d92
movzx eax, byte [rsp]
lea rdx, [rsp]
mov r8d, 0x84222325
test al, al
je 0x180097d69
movsx ecx, al
lea rdx, [rdx + 1]
movzx eax, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1b3
test al, al
jne 0x180097d51
cmp edi, r8d
je 0x180097d92
mov r10, qword [r10]
cmp r10, rsi
jne 0x180097cd0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test bpl, bpl
je 0x180097dc3
mov rcx, qword [r10 - 0x10]
mov rax, qword [r10 - 8]
mov qword [rcx + 8], rax
mov rcx, qword [r10 - 8]
mov rax, qword [r10 - 0x10]
mov qword [rcx], rax
mov rcx, qword [r10]
mov rax, qword [r10 + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r10 + 8]
mov rax, qword [r10]
mov qword [rcx], rax
mov rax, qword [r10 + 0x20]
jmp 0x180097d7c

Function at 0x180097dd0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
movzx ebp, r8b
mov rsi, rdx
mov r14d, ecx
mov r9, qword [rax + 0x60]
mov rdi, qword [r9 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180097e33
mov rcx, qword [rbx + 0x20]
cmp rsi, rcx
je 0x180097e2b
movzx r8d, bpl
mov edx, r14d
call fcn.180097e50
test rax, rax
jne 0x180097e35
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180097e11
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
Function at 0x180098300
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x180098323
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180098323
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret

Function at 0x1400012e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [0x1400011b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140001324
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001c34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c80
xor al, al
add rsp, 0x28
ret
Function at 0x1400016c0
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x1400090f4]
xor r14d, r14d
mov word [rbp + 0x43], 0x500
lea ebx, [r14 + 2]
mov dword [rbp + 0x3f], r14d
mov dword [rbp + 0x27], r14d
cmp eax, ebx
jne 0x140001860
lea rcx, [rbp + 0x27]
call fcn.1400015cc
test eax, eax
jne 0x140001847
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x2f]
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001860
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001838
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001838
mov edx, dword [rbp + 0x2b]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140001838
mov r9d, dword [rbp + 0x2b]
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000182f
lea rax, [rbp + 0x37]
lea rcx, [rbp + 0x3f]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov r8d, 0x20
mov dl, bl
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000182f
mov esi, r14d
cmp dword [rdi], r14d
jbe 0x140001825
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 0x14000181c
add esi, ebx
cmp esi, dword [rdi]
jb 0x1400017fc
jmp 0x140001825
mov dword [0x1400090f4], 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 0x140001860
mov ecx, dword [0x1400090f4]
mov eax, dword [rbp + 0x27]
mov ebx, 1
test eax, eax
cmovne ecx, ebx
mov dword [0x1400090f4], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008180
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 0x140001f74
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
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 0x140001fcb
and dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x4f5
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
xor eax, eax
jmp 0x14000204e
lea r8, [rsp + 0x3c]
lea rdx, [0x140001148]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor r9d, r9d
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 0x140002033
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140001fb7
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140002049
mov edx, 0x4f7
jmp 0x140002024
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008180
add rsp, 0x50
pop rbx
ret
Function at 0x140002500
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140002589
lea r8, [0x140001190]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.1400079b8
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 0x140002589
lea r8d, [rbx + 2]
xor edx, edx
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.140008180
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x1400025b4
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
movzx eax, cx
xor ebx, ebx
test eax, eax
je 0x1400026bb
cmp eax, 1
je 0x14000264b
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400026c2
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002646
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
lea rdx, str.PendingFileRenameOperations
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
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 0x1400026c2
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002646
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x140002631
call fcn.140002500
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x1400026d8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x14000272e
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f0
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008180
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140002884
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov rbx, rcx
mov byte [rcx], dil
cmp byte [r8], 0x23
lea r12d, [rdi + 1]
jne 0x140002a3c
add rsi, r12
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
cmp r14b, 0x53
je 0x140002a39
cmp r14b, 0x57
je 0x140002a29
lea r8, [0x1400011a0]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x40]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000293b
mov al, byte [r8 + rcx]
test al, al
je 0x14000293b
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x14000291d
test rdx, rdx
jne 0x140002943
sub rcx, r12
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, 0x104
call fcn.1400079b8
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002a4b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400010b9]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002a1c
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140002a15
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x140002a11
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002a01
mov al, byte [r8 + rcx]
test al, al
je 0x140002a01
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x1400029e3
test rdx, rdx
jne 0x140002a09
sub rcx, r12
mov byte [rcx], dil
mov edi, r12d
jmp 0x140002a1c
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002a47
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x140002a4b
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x140002a5b
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.1400079b8
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008180
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret