joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e10f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r13d, r13d
movzx r14d, dl
mov ebp, r14d
mov dword [rsp + 0x48], 0x18
xor ebp, 1
mov qword [rsp + 0x50], r13
shl ebp, 0x14
mov r15d, r14d
shl r15d, 0x14
mov rsi, rcx
mov dword [rsp + 0x58], r13d
mov edi, 0x3e8
nop word [rax + rax]
call fcn.140162520
lea r8, [rsp + 0x44]
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1401623a0
call fcn.1400cf200
mov ecx, dword [rsp + 0x40]
lea r8, str..pipeqt__lX__X
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea rcx, [rsp + 0x80]
mov edx, 0x100
call fcn.1400e3040
lea rax, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x38], rax
lea edx, [r14 + 0x40000001]
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], ebp
mov r8d, 8
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e11fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1400e11e8
add edi, 0xffffffff
jne 0x1400e1150
lea rdx, str.QProcess:_CreateNamedPipe_failed.
mov ecx, eax
call fcn.1400ad750
jmp 0x1400e130a
mov edx, 0x40000000
mov qword [rsp + 0x30], r13
mov eax, 0x80000100
mov dword [rsp + 0x28], 0x40000000
test r14b, r14b
mov dword [rsp + 0x58], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 3
cmovne edx, eax
lea rcx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e1261
lea rcx, str.QProcess:_CreateFile_failed.
call fcn.1400ad8f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e130a
xorps xmm0, xmm0
mov qword [rsp + 0x60], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400e12ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400e12ea
cmp eax, 0x3e5
je 0x1400e12da
lea rdx, str.QProcess:_ConnectNamedPipe_failed.
mov ecx, eax
call fcn.1400ad750
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e130a
mov rcx, qword [rsp + 0x78]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x1400e1303
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
jmp 0x1400e130a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140229fa0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e2680
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
mov rbx, rcx
test rax, rax
je 0x1400e26c6
mov edx, dword [rax + 0x10]
lea rcx, [0x1400e1340]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0xd8]
xor r9d, r9d
xor r8d, r8d
mov edx, select
mov ecx, dword [rcx + 0x14]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400e7c40
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x1400e7c76
nop dword [rax]
movzx eax, word [r9]
lea r9, [r9 + 2]
shl edx, 4
add edx, eax
mov eax, edx
shr edx, 0x17
and edx, 0x1e0
xor edx, eax
and edx, 0xfffffff
sub r8, 1
jne 0x1400e7c50
mov eax, edx
ret

Function at 0x140109760
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx edi, cl
cmp dword [0x14048d258], 0xffffffff
jne 0x1401097af
lea rbx, [0x140497a18]
mov rcx, rbx
call fcn.1400e8130
and rbx, 0xfffffffffffffffe
cmp dword [0x14048d258], 0xffffffff
jne 0x1401097a3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14048d258], eax
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.1400e8640
mov ecx, dword [0x14048d258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140109860
test dil, dil
je 0x140109860
mov ecx, 0x78
call fcn.140229da8
mov qword [rsp + 0x58], rax
mov edx, 1
mov rcx, rax
call fcn.140108be0
mov rsi, rax
mov qword [rsp + 0x60], rax
mov rdx, rax
mov ecx, dword [0x14048d258]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, select
call fcn.140229da8
mov qword [rsp + 0x58], rax
mov rdx, rsi
mov rcx, rax
call fcn.140108920
nop
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
nop
nop
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.1401091e0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x1404977f8]
nop
test rax, rax
jne 0x140109873
mov rax, qword [rsi + 0x38]
nop
mov qword [0x1404977f8], rax
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x58]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
nop
mov rcx, qword [rsp + 0x58]
call fcn.140109fa0
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14010a300
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
movsxd rsi, edx
mov rbp, rcx
mov rdi, qword [rcx + 8]
lea rbx, [rdi + 0x58]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x14010a335
mov rcx, rbx
call fcn.1400e8130
or rbx, 1
mov qword [rsp + 0x70], rbx
cmp byte [rdi + 0x66], 0
je 0x14010a3a7
test bl, 1
je 0x14010a351
and rbx, 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call fcn.1400e8640
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14010a750
test rbx, rbx
je 0x14010a3a7
test bl, 1
jne 0x14010a3a7
mov rcx, rbx
and rcx, 0xfffffffffffffffe
call fcn.1400e8130
or rbx, 1
mov qword [rsp + 0x70], rbx
cmp byte [rdi + 0x64], 0
jne 0x14010a4f8
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.1400a8720
mov rdx, qword [rdi + 0x98]
mov rcx, qword [rax]
mov qword [rdi + 0x98], rcx
mov qword [rax], rdx
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x14010a3f6
cmp ecx, ebx
je 0x14010a40b
mov rax, qword [rsp + 0x78]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14010a40b
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x78]
call fcn.1400affb0
mov word [rdi + 0x64], 1
mov byte [rdi + 0x68], 0
mov dword [rdi + 0x6c], 0
xor eax, eax
xchg byte [rdi + 0x67], al
lea rax, [rdi + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rbp
lea r8, [0x14010a540]
mov edx, dword [rdi + 0x70]
xor ecx, ecx
call fcn.14023022c
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x14010a469
lea rcx, str.QThread::start:_Failed_to_create_thread
call fcn.1400ad8f0
mov word [rdi + 0x64], 0x100
jmp 0x14010a4f3
mov dword [rdi + 0x74], esi
cmp esi, 7
ja case.0x14010a482.7
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x10a518]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
jmp case.0x14010a482.2
mov ebx, 0xfffffffe
jmp case.0x14010a482.2
xor ebx, ebx
jmp case.0x14010a482.2
mov ebx, 1
jmp case.0x14010a482.2
mov ebx, 2
jmp case.0x14010a482.2
mov ebx, select
jmp case.0x14010a482.2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebx, eax
mov edx, ebx
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x14010a4d8
lea rcx, str.QThread::start:_Failed_to_set_thread_priority
call fcn.1400ad8f0
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14010a4f3
lea rcx, str.QThread::start:_Failed_to_resume_new_thread
call fcn.1400ad8f0
mov rbx, qword [rsp + 0x70]
test bl, 1
je 0x14010a509
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.1400e8640
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010a6d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 8]
mov rsi, rcx
lea rbx, [rdi + 0x58]
test rbx, rbx
je 0x14010a6fb
mov rcx, rbx
call fcn.1400e8130
or rbx, 1
cmp byte [rdi + 0x64], 0
je 0x14010a729
cmp byte [rdi + 0x88], 0
jne 0x14010a713
mov byte [rdi + 0x89], 1
jmp 0x14010a729
mov rcx, qword [rdi + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.140109900
test bl, 1
je 0x14010a73a
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.1400e8640
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140162210
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 0x140162271
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 0x140162230
mov ecx, dword [r9]
jmp 0x14016235b
cmp ecx, 0x4e0
jb 0x14016235b
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 0x140162290
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 0x1401622e0
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 0x1401623a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
je 0x14016244c
mov qword [rsp + 0x50], r14
lea r14, [0x140499d40]
mov qword [rsp + 0x58], r15
mov r15d, 1
cmp rcx, r14
jne 0x1401623ef
xor eax, eax
lock cmpxchg qword [0x140499d00], r15
je 0x1401623ef
lea rcx, [0x140499d00]
call fcn.1400e8250
cmp rbx, rdi
je 0x140162419
mov qword [rsp + 0x48], rbp
nop dword [rax]
lea rcx, [rsi + 4]
call fcn.140162210
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x140162400
mov rbp, qword [rsp + 0x48]
cmp rsi, r14
mov r14, qword [rsp + 0x50]
jne 0x14016243f
xor edx, edx
mov rax, r15
lock cmpxchg qword [0x140499d00], rdx
je 0x14016243f
lea rcx, [0x140499d00]
call fcn.1400e8690
mov r15, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x140499d0c]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.140162460
Function at 0x140162460
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
sub rdi, rdx
sar rdi, 2
xor ebp, ebp
mov esi, ebp
mov rax, qword [0x14049b288]
test rax, rax
jne 0x140162494
call fcn.1401980e0
bt rax, 0xc
jae 0x1401624a9
mov rdx, rdi
mov rcx, r14
call fcn.1401982d0
mov rsi, rax
cmp rsi, rdi
je 0x14016250a
mov rbx, rdi
sub rbx, rsi
shl rbx, 2
lea rcx, [r14 + rsi*4]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
cmovne rbp, rbx
mov rax, rbp
cqo
and edx, 3
add rax, rdx
sar rax, 2
add rsi, rax
cmp rsi, rdi
je 0x14016250a
lea rbx, [r14 + rsi*4]
sub rdi, rsi
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x14016250a
lea rcx, [rsp + 0x48]
call fcn.14023fe2c
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x1401624f1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1401625b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov dword [rcx + 0x1388], 0xffffffff
mov edx, 1
mov dword [rcx], edx
mov r8d, 0x1571
mov dword [rcx + 8], r8d
mov rbx, rcx
add rcx, 0xc
nop dword [rax]
mov eax, r8d
lea rcx, [rcx + 4]
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
inc rdx
mov dword [rcx - 4], r8d
cmp rdx, 0x270
jb 0x1401625f0
lea r8, [rsp + 0x9e0]
mov dword [rbx + 4], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x140499d0c]
call fcn.140162460
xor r8d, r8d
mov edx, r8d
nop dword [rax]
mov ecx, dword [rsp + rdx*4 + 0x20]
mov eax, ecx
or eax, r8d
mov dword [rbx + rdx*4 + 8], ecx
shr ecx, 0x1f
test rdx, rdx
cmovne ecx, eax
inc rdx
mov r8d, ecx
cmp rdx, 0x270
jb 0x140162640
test ecx, ecx
jne 0x140162670
mov dword [rbx + 8], 0x80000000
mov dword [rbx + 4], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.140229fa0
add rsp, 0x9f0
pop rbx
ret
Function at 0x140169840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebp, ebp
mov rcx, qword [rcx]
mov rbx, rdx
test rcx, rcx
je 0x1401698d6
mov rsi, qword [r8 + 8]
lea r9, [rsp + 0x78]
mov rdx, rsi
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401698d6
cmp dword [rsp + 0x78], 4
jne 0x1401698d6
mov rcx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
mov rax, rbx
sete cl
mov byte [rbx + 4], cl
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx], ebp
mov rax, rbx
mov byte [rbx + 4], bpl
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401698f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 1
lea r14, [0x140484d90]
mov qword [rdx], r14
mov dword [rsp + 0x30], 1
mov rcx, qword [rcx]
test rcx, rcx
je 0x140169aa8
mov rdi, qword [r8 + 8]
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x98]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140169aa8
mov eax, dword [rbp + 0x98]
dec eax
cmp eax, 1
ja 0x140169aa8
mov eax, dword [rbp + 0x80]
cmp eax, 2
jbe 0x140169aa8
add eax, 2
mov dword [rbp + 0x80], eax
mov dword [rsp + 0x44], eax
cmp eax, 0x100
jle 0x1401699ca
movsxd rcx, eax
call fcn.14023c100
mov rcx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1401699ba
call fcn.1400ab7c0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x80]
jmp 0x1401699dc
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 0x100
mov r8d, eax
xor edx, edx
call fcn.140259400
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x98]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140169a93
mov edi, 0xffffffff
mov r8d, edi
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1400ba830
nop
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x140169a53
cmp ecx, edi
je 0x140169a68
mov rax, qword [rsp + 0x38]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140169a68
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x38]
call fcn.1400affb0
mov rcx, qword [rsi]
mov qword [rsi], rbx
mov eax, dword [rcx]
test eax, eax
je 0x140169a82
cmp eax, 0xffffffff
je 0x140169a93
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140169a93
mov edx, 2
mov r8d, 8
call fcn.1400affb0
nop
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x140169aa8
call fcn.14023c0f0
nop
mov rax, rsi
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14016e620
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
sub r10, r8
mov r11d, r9d
cmp rdx, 0x20
jb 0x14016e6a3
mov qword [rsp + 0x10], rbx
lea rbx, [r8 + 0x10]
mov qword [rsp], rdi
mov edi, select
sub rdi, r8
nop dword [rax + rax]
movdqu xmm0, xmmword [rbx + r10 - 0x10]
add r11, 0x20
movdqu xmm2, xmmword [rbx + r10]
lea rbx, [rbx + 0x20]
movdqa xmm1, xmm0
lea rax, [rdi + rbx]
psrlw xmm0, 8
psllw xmm1, 8
xorps xmm1, xmm0
movdqa xmm0, xmm2
psllw xmm0, 8
psrlw xmm2, 8
xorps xmm0, xmm2
movdqu xmmword [rbx - 0x20], xmm0
movdqu xmmword [rbx - 0x30], xmm1
cmp rax, rdx
jbe 0x14016e650
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [r11 + 0x10]
cmp rax, rdx
ja 0x14016e6cc
movdqu xmm0, xmmword [r11 + rcx]
movdqa xmm1, xmm0
psrlw xmm0, 8
psllw xmm1, 8
xorps xmm1, xmm0
movdqu xmmword [r11 + r8], xmm1
mov r11, rax
cmp r11, rdx
jae 0x14016e6fa
lea rax, [r11 + r8]
cmp r9, 0x10
jae 0x14016e6fa
movzx ecx, word [r10 + rax]
add r9, 2
ror cx, 8
mov word [rax], cx
add rax, 2
mov rcx, rax
sub rcx, r8
cmp rcx, rdx
jb 0x14016e6d5
mov rax, rdx
add rsp, 8
ret
Function at 0x14018b0e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x14018b112
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140195bc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x140195cc2
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x140195d64
cmp qword [rsi + 0x80], 0xffffffffffffffff
je 0x140195d5b
mov rdi, r8
xor r12d, r12d
mov ebx, r12d
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0x2000000
cmp rdi, r8
cmovl r8d, edi
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140195c67
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140195c5f
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jl 0x140195c20
mov rax, rbx
jmp 0x140195d72
test rbx, rbx
jne 0x140195c5f
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140164c60
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1401895e0
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x140195cb8
cmp ecx, 0xffffffff
je 0x140195d5b
mov rax, qword [rsp + 0x30]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140195d5b
mov rcx, qword [rsp + 0x30]
jmp 0x140195d4b
call fcn.140243fb4
mov ecx, eax
call fcn.140243e3c
cmp rax, 0xffffffffffffffff
je 0x140195d64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140195d64
mov rcx, qword [rsi + 0x78]
call fcn.140241238
test eax, eax
je 0x140195d64
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.140164df0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1401895e0
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x140195d43
cmp ecx, 0xffffffff
je 0x140195d5b
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x140195d5b
mov rcx, qword [rsp + 0x88]
mov r8d, 8
mov edx, 2
call fcn.1400affb0
mov rax, 0xffffffffffffffff
jmp 0x140195d72
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14018b130
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14018b130
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, r8
mov r15, rdx
mov rbp, rcx
mov r12, qword [rcx + 0x18]
test r8, r8
js 0x14018b27e
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x14018b1e6
nop dword [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r15]
mov r9, qword [rbp + 0x78]
mov edx, 1
call fcn.1402415b0
mov rdi, rax
mov rcx, qword [rbp + 0x78]
call fcn.140241238
test eax, eax
setne r14b
test eax, eax
je 0x14018b1a3
test rdi, rdi
je 0x14018b1cc
add rbx, rdi
test eax, eax
jne 0x14018b228
test rdi, rdi
jne 0x14018b1be
call fcn.14023ffb8
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14018b1c6
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x14018b170
jmp 0x14018b228
mov rcx, qword [rbp + 0x78]
call fcn.14023e1f8
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x78]
call fcn.1402418fc
jmp 0x14018b228
cmp dword [rcx + 0xa0], 0xffffffff
je 0x14018b23a
nop
mov rax, rsi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r15]
mov ecx, dword [rbp + 0xa0]
call fcn.140242578
movsxd rcx, eax
test eax, eax
jle 0x14018b221
add rbx, rcx
cmp rbx, rsi
jl 0x14018b1f0
cmp ecx, 0xffffffff
setne r14b
test r14b, r14b
jne 0x14018b2da
test rbx, rbx
jne 0x14018b2da
mov rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140164df0
nop
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.1401895e0
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x14018b2c5
cmp ecx, ebx
je 0x14018b2da
mov rcx, qword [rsp + 0x60]
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jmp 0x14018b2c3
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.140164df0
nop
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.1401895e0
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
mov rbx, 0xffffffffffffffff
test ecx, ecx
je 0x14018b2c5
cmp ecx, ebx
je 0x14018b2da
mov rax, qword [rsp + 0x60]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14018b2da
mov r8d, 8
mov edx, 2
mov rcx, qword [rsp + 0x60]
call fcn.1400affb0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret