joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001af98
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
xor edi, edi
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x20], rdi
lea rcx, [r11 - 0x38]
call fcn.140007abc
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14001622c
test al, al
je 0x14001affc
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001b03a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b035
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b055
call fcn.14005cb40
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.140067514
int3

Function at 0x14001b2d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, r8
xor edi, edi
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x14001b35f
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140061fe0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x14001b350
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14001b339
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140006170
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x14001b361
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x14001c078
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov edi, edx
cmp edx, 1
ja 0x14001c122
xor esi, esi
cmp qword [r8 + 0x10], rsi
je 0x14001c122
cmp qword [r8 + 0x18], 8
mov rcx, rbx
jb 0x14001c0ae
mov rcx, qword [r8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c122
cmp edi, 1
jne 0x14001c0c5
mov edi, 0x150a
jmp 0x14001c0ce
test edi, edi
jne 0x14001c122
mov edi, 0xc801
mov r8, rbx
mov edx, edi
call fcn.14001bce0
mov ecx, eax
test eax, eax
jne 0x14001c106
cmp edi, 0x150a
jne 0x14001c11e
call fcn.14001bc48
mov r8, rbx
mov edx, edi
call fcn.14001bce0
mov ecx, eax
mov al, sil
mov byte [0x1400c6b8a], al
test ecx, ecx
je 0x14001c11e
jmp 0x14001c10c
mov al, byte [0x1400c6b8a]
cmp edi, 0x150a
movzx eax, al
cmove eax, esi
mov byte [0x1400c6b8a], al
mov eax, ecx
jmp 0x14001c124
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001dbe8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov r14d, edx
mov dword [rbp - 0x29], 0x68
xor edx, edx
mov edi, r8d
mov rsi, rcx
mov ebx, r9d
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x60]
call fcn.140061fe0
xor r15d, r15d
test ebx, ebx
jne 0x14001dc3e
mov word [rbp + 0x17], r15w
mov dword [rbp + 0x13], 1
jmp 0x14001dc45
mov dword [rbp + 0x13], 0x80
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
xor r9d, r9d
lea rax, [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rsi
lea rax, [rbp - 0x29]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
movups xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001dcc2
test r14d, r14d
je 0x14001dca7
mov rcx, qword [rbp - 0x49]
or edx, 0xffffffff
test edi, edi
cmove edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001dce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov r9d, eax
lea edx, [r8 + 4]
lea ecx, [rdx + 0x6b]
call fcn.140029c40
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001e578
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xb80]
sub rsp, 0xc80
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0xb70], rax
xor esi, esi
mov r14d, 0x200
cmp byte [0x1400c6850], sil
mov rbx, rcx
mov dword [rsp + 0x50], r14d
je 0x14001e5d8
lea r8, [0x1400c6850]
mov edx, r14d
call fcn.140073dfc
mov eax, 1
jmp 0x14001e6e1
mov edi, 0x400
lea rcx, [rsp + 0x70]
mov r8d, edi
xor edx, edx
call fcn.140061fe0
mov r8d, edi
lea rcx, [rbp + 0x370]
xor edx, edx
call fcn.140061fe0
mov r8d, edi
lea rcx, [rbp + 0x770]
xor edx, edx
call fcn.140061fe0
lea rdx, [rsp + 0x40]
mov byte [rbx], sil
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x44], r14d
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14001e643
mov dword [0x1400c6a50], 0x6c
jmp 0x14001e6df
lea rdx, str.SYSTEM
lea rcx, [rsp + 0x70]
call fcn.14006f3ac
test eax, eax
jne 0x14001e664
mov dword [0x1400c6a50], 0x6b
jmp 0x14001e6df
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14001e66d
inc eax
lea r9, [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea r8, [rbp + 0x370]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x770]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14001e6d5
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x370]
call fcn.14001e404
test eax, eax
jne 0x14001e5ce
mov dword [0x1400c6a50], 0x6d
xor eax, eax
mov rcx, qword [rbp + 0xb70]
xor rcx, rsp
call fcn.14005ccc0
lea r11, [rsp + 0xc80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001e708
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xb60]
sub rsp, 0xc60
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0xb50], rax
mov rsi, rcx
mov ebx, 0x400
mov r8d, ebx
lea rcx, [rbp + 0x350]
xor edx, edx
call fcn.140061fe0
mov r8d, ebx
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140061fe0
mov r8d, ebx
lea rcx, [rbp + 0x750]
xor edx, edx
call fcn.140061fe0
mov eax, 0x200
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x350]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor r14d, r14d
test eax, eax
jne 0x14001e7a8
mov dword [0x1400c6a50], 0x6c
jmp 0x14001e8a1
lea rdx, str.SYSTEM
lea rcx, [rbp + 0x350]
call fcn.14006f3ac
test eax, eax
jne 0x14001e7ce
mov dword [0x1400c6a50], 0x6b
jmp 0x14001e8a1
lea rcx, [rbp + 0x350]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14001e7d9
inc eax
lea r9, [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x4c]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x350]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x750]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001e832
mov dword [0x1400c6a50], 0x6d
jmp 0x14001e8a1
lea rcx, [rsp + 0x50]
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14001e8a1
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test rax, rax
je 0x14001e862
movzx edi, byte [rax]
mov ebx, r14d
test edi, edi
je 0x14001e8a1
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
test rax, rax
je 0x14001e89b
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x14001e890
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rsi + 8], 4
jmp 0x14001e89b
mov r8, rax
mov rcx, rsi
call fcn.14001e8cc
inc ebx
cmp ebx, edi
jb 0x14001e869
xor eax, eax
mov rcx, qword [rbp + 0xb50]
xor rcx, rsp
call fcn.14005ccc0
lea r11, [rsp + 0xc60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001f918
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov rbx, rcx
mov esi, 0x7fffffff
mov ebp, 0x9908b0df
mov r9, qword [rbx]
mov r8d, dword [r9]
cmp r8d, 0x270
jne 0x14001f988
lea r8, [r9 + 8]
mov r10d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, esi
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001f94d
mov r8d, dword [r9]
jmp 0x14001fa56
cmp r8d, 0x4e0
jb 0x14001fa56
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x14001f9a5
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x14001f9ea
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, esi
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
xor r8d, r8d
mov eax, r8d
mov edx, dword [r9 + rax*4 + 4]
mov ecx, edx
lea eax, [r8 + 1]
shr ecx, 0xb
mov dword [r9], eax
mov eax, dword [r9 + 0x1384]
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
cmp eax, dword [rbx + 0x10]
ja 0x14001f934
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x14001fab0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
mov r11, rcx
mov rbx, r8
lea ecx, [rdx + 2]
mov r10d, edx
test ecx, ecx
js 0x14001fbff
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x40000000
jge 0x14001fbff
lea eax, [rdx*4]
cmp dword [r9], eax
jl 0x14001fbff
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r10d, 2
jle 0x14001fb85
lea ecx, [r10 - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
imul eax, edx, 0xfffffffd
mov edi, edx
add r10d, eax
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r8], al
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + r14]
mov byte [r8 + 1], al
movzx eax, byte [r11 + 2]
movzx ecx, byte [r11 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + r14]
mov byte [r8 + 2], al
movzx eax, byte [r11 + 2]
add r11, 3
and eax, 0x3f
mov al, byte [rax + r14]
mov byte [r8 + 3], al
add r8, 4
sub rdi, 1
jne 0x14001fb21
test r10d, r10d
je 0x14001fbef
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r8], al
cmp r10d, 1
jle 0x14001fbd2
movzx ecx, byte [r11]
movzx eax, byte [r11 + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov al, byte [rcx + r14]
mov byte [r8 + 1], al
movzx eax, byte [r11 + 1]
and eax, 0xf
mov byte [r8 + 3], 0x3d
mov al, byte [r14 + rax*4]
mov byte [r8 + 2], al
jmp 0x14001fbeb
movzx eax, byte [r11]
and eax, 3
add rax, rax
mov al, byte [r14 + rax*8]
mov byte [r8 + 1], al
mov word [r8 + 2], 0x3d3d
add r8, 4
mov eax, r8d
sub eax, ebx
mov dword [r9], eax
xor eax, eax
mov byte [r8], 0
jmp 0x14001fc02
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
ret
Function at 0x14001fe6c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov r12d, 0x10
mov ecx, r12d
call fcn.14005d5a4
mov rbx, rax
mov qword [rbp + 0x150], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x70]
lea rcx, [0x1400acc30]
call fcn.14005e3b0
mov dword [rsp + 0x28], 1
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, r12d
lea rdx, [rbp + 0x160]
lea rcx, [0x1400acc20]
call fcn.14005e370
movups xmm0, xmmword [rbp + 0x160]
movdqu xmmword [rbx], xmm0
mov ecx, r12d
call fcn.14005d5a4
mov rdi, rax
mov rax, qword [0x1400acc58]
mov qword [rbp + 0x140], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x140]
call fcn.14005f240
mov rax, qword [str.qbSD:]
mov qword [rbp + 0x140], rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x140]
call fcn.14005f240
mov rax, qword [0x1400acc60]
mov qword [rbp + 0x140], rax
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x140]
call fcn.14005f240
mov rax, qword [0x1400acc50]
mov qword [rbp + 0x150], rax
mov dword [rsp + 0x38], 1
lea rax, [rbp + 0x150]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, r12d
lea rdx, [rbp + 0x160]
lea rcx, [0x1400acc40]
call fcn.14005e530
movups xmm0, xmmword [rbp + 0x160]
movdqu xmmword [rdi], xmm0
mov rcx, rbx
mov r8, rdi
sub r8, rbx
lea r9, [rbp + 0x150]
sub r9, rbx
mov edx, r12d
mov al, byte [r8 + rcx]
xor al, byte [rcx]
mov byte [r9 + rcx], al
inc rcx
sub rdx, 1
jne 0x14001ffeb
xorps xmm0, xmm0
mov rax, qword [rsi]
movups xmmword [rax], xmm0
xor r9d, r9d
xor r10d, r10d
mov ecx, r9d
inc ecx
cmp ecx, 2
jle 0x140020045
mov r8d, 2
mov eax, ecx
test ecx, ecx
jns 0x140020026
lea eax, [rcx + 1]
sar eax, 1
lea r11d, [rax + 1]
cmp r11d, r8d
jl 0x14002004a
mov eax, ecx
cdq
idiv r8d
test edx, edx
je 0x140020010
inc r8d
cmp r8d, r11d
jg 0x14002004a
jmp 0x140020031
mov ecx, 2
and ecx, 0x8000000f
jge 0x140020059
dec ecx
or ecx, 0xfffffff0
inc ecx
movsxd rax, ecx
mov cl, byte [rbp + rax + 0x150]
xor cl, byte [rbp + r10 + 0x150]
mov rax, qword [rsi]
mov byte [r10 + rax], cl
inc r9d
inc r10
cmp r9d, r12d
jl 0x14002000d
mov rcx, rdi
call fcn.14005cb40
nop
mov rcx, rbx
call fcn.14005cb40
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14005ccc0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140020904
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
mov r9d, 0x20019
lea rdx, str.SoftwareWow6432NodeTencentQQBrowser
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400209cf
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140061fe0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400209c4
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400209ab
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140006170
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x1400209f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
mov r9d, 0x20019
lea rdx, str.SoftwareWow6432NodeTencentQQBrowser
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020ac2
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140061fe0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400aff68]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020ab7
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140020a9b
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140006170
mov ebx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140022094
Capabilities:
Encrypt data using rc6

Disassembly:
push rbx
sub rsp, 0x110
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor r10d, r10d
mov dword [rcx], 0xc
mov r9, rcx
lea r11d, [r10 + 2]
movzx eax, byte [r8 + 1]
lea r10, [r10 + 2]
movzx edx, byte [r8]
movzx ecx, byte [r8 + 4]
lea r8, [r8 + 8]
shl eax, 8
or edx, eax
movzx eax, byte [r8 - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [r8 - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [r8 - 3]
shl eax, 8
or ecx, eax
mov dword [rsp + r10*4 - 8], edx
movzx eax, byte [r8 - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [r8 - 1]
shl eax, 0x18
or ecx, eax
mov dword [rsp + r10*4 - 4], ecx
sub r11, 1
jne 0x1400220bf
mov dword [r9 + 4], 0xb7e15163
lea ecx, [r11 + 1]
mov eax, dword [r9 + rcx*4]
sub eax, 0x61c88647
mov dword [r9 + rcx*4 + 4], eax
inc rcx
cmp rcx, 0x1a
jl 0x140022128
xor edx, edx
xor r8d, r8d
xor r10d, r10d
xor r11d, r11d
lea ebx, [rdx + 0x4e]
add edx, r8d
lea rax, [r10 + 1]
add edx, dword [r9 + r10*4 + 4]
rol edx, 3
mov dword [r9 + r10*4 + 4], edx
xor r10d, r10d
lea ecx, [r8 + rdx]
add r8d, dword [rsp + r11*4]
and ecx, 0x1f
add r8d, edx
rol r8d, cl
lea rcx, [r11 + 1]
cmp rax, 0x1a
mov dword [rsp + r11*4], r8d
cmovl r10, rax
xor r11d, r11d
cmp rcx, 4
cmovl r11, rcx
sub rbx, 1
jne 0x14002214d
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0x110
pop rbx
ret

Function at 0x1400221b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rax, qword [rdx]
movaps xmm0, xmmword [0x1400c2fa0]
movdqu xmmword [rax], xmm0
mov ebx, 0x236392
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
call fcn.14001e708
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
sub rax, r8
sar rax, 2
mov ecx, 3
cmp eax, ecx
cmovg eax, ecx
movsxd r10, eax
test eax, eax
jle 0x14002222d
xor r9d, r9d
mov rdx, qword [rdi]
mov ecx, dword [rdx + r9*4 + 3]
mov eax, dword [r8 + r9*4]
add eax, ebx
xor eax, ecx
mov dword [rdx + r9*4 + 3], eax
add ebx, ecx
inc r9
cmp r9, r10
jl 0x14002220e
test r8, r8
je 0x140022267
mov rdx, qword [rsp + 0x30]
sub rdx, r8
and rdx, 0xfffffffffffffffc
mov rax, r8
cmp rdx, 0x1000
jb 0x14002225f
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022272
mov rcx, r8
call fcn.14005cb40
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.140067514
int3
Function at 0x140022940
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x60
cmp qword [rcx + 0x18], 8
mov rbx, r8
mov rsi, rdx
jb 0x140022958
mov rcx, qword [rcx]
xor ebp, ebp
mov qword [rsp + 0x98], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140022a72
cmp qword [rbx + 0x18], 8
mov rcx, rbx
mov rdi, qword [rsp + 0x50]
jb 0x1400229bc
mov rcx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x1400229c6
mov rsi, qword [rsi]
test rcx, rcx
je 0x140022a64
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400229e0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140022a64
test rdi, rdi
je 0x140022a22
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140022a5d
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140022a58
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022ace
mov rcx, r8
call fcn.14005cb40
mov eax, 1
jmp 0x140022aaf
test rdi, rdi
je 0x140022a72
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140022aad
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140022aa8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022ace
mov rcx, r8
call fcn.14005cb40
xor eax, eax
mov rdi, qword [rsp + 0x98]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
call fcn.140067514
int3
Function at 0x140024de0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400c846c]
test eax, eax
jne 0x140024ed3
mov dword [rsp + 0x38], 0x10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140024e56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140024ecd
mov dword [0x1400c846c], 1
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0x78
ret
lea r8, [rsp + 0x40]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140024ec7
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x4c], rax
mov r9d, 0x10
lea rax, [rsp + 0x38]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x54], 0x80000007
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140024ec7
mov dword [0x1400c846c], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1400c846c]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0x78
ret