joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001028
Capabilities:
Parse pe header
Print debug messages
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, 0x5a4d
mov r12, r8
mov r8d, edx
mov rbp, rcx
cmp word [rcx], ax
je 0x140001063
lea rcx, [0x140001c80]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x1400011d6
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
je 0x14000107b
lea rcx, [0x140001cb0]
jmp 0x140001056
mov edx, 0x20b
mov eax, 0x88
cmp word [rsi + 0x18], dx
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov rcx, rsi
mov r13d, dword [rax + rsi]
mov edx, r13d
mov eax, dword [rax + rsi + 4]
mov dword [rsp + 0x98], eax
call fcn.1400017d8
or edi, 0xffffffff
cmp eax, edi
jne 0x1400010bc
lea rcx, [0x140001ce0]
jmp 0x1400011cf
mov ebx, eax
mov rcx, rsi
add rbx, rbp
mov eax, dword [rbx + 0x18]
mov edx, dword [rbx + 0x1c]
mov dword [rsp + 0x80], eax
call fcn.1400017d8
mov edx, dword [rbx + 0x24]
mov rcx, rsi
mov r15d, eax
call fcn.1400017d8
mov edx, dword [rbx + 0x20]
mov rcx, rsi
mov r14d, eax
call fcn.1400017d8
cmp r15d, edi
je 0x1400011c8
cmp r14d, edi
je 0x1400011c8
cmp eax, edi
je 0x1400011c8
lea rcx, [r15 + rbp]
mov eax, eax
add rax, rbp
mov qword [rsp + 0x28], rcx
lea rcx, [r14 + rbp]
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov qword [rsp + 0x20], rcx
mov ebx, edi
cmp dword [rsp + 0x80], r14d
jbe 0x1400011b5
mov edx, dword [rax + r14*4]
mov rcx, rsi
call fcn.1400017d8
cmp eax, edi
je 0x140001190
mov rdx, qword [rsp + 0x28]
mov ecx, eax
mov rax, qword [rsp + 0x20]
add rcx, rbp
movzx eax, word [rax + r14*2]
mov r9d, dword [rdx + rax*4]
cmp r9d, r13d
jb 0x140001173
mov eax, dword [rsp + 0x98]
add eax, r13d
cmp r9d, eax
jb 0x140001190
mov r10, r12
sub r10, rcx
movzx eax, byte [rcx]
movzx edx, byte [rcx + r10]
sub eax, edx
jne 0x14000118c
inc rcx
test edx, edx
jne 0x140001179
test eax, eax
je 0x1400011a4
inc r14d
cmp r14d, dword [rsp + 0x80]
jae 0x1400011b5
mov rax, qword [rsp + 0x30]
jmp 0x140001137
mov edx, r9d
mov rcx, rsi
call fcn.1400017d8
mov ebx, eax
cmp eax, edi
jne 0x1400011c4
mov rdx, r12
lea rcx, [0x140001d50]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x1400011d6
lea rcx, [0x140001d10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400011f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, dword [0x14000a688]
mov rdi, rcx
mov r8, rcx
mov rcx, qword [0x14000a680]
call fcn.140001028
mov edx, eax
mov eax, 0xffffffff
cmp rdx, rax
jne 0x140001228
or eax, 0xffffffff
jmp 0x140001284
mov r10, qword [0x14000a680]
or ebx, 0xffffffff
mov esi, dword [0x14000a688]
add r10, rdx
xor ecx, ecx
mov r8, r10
movsxd r9, ecx
lea rax, [r9 + rdx]
cmp rax, rsi
jae 0x140001273
mov r11b, byte [r8]
lea eax, [r11 + 0x3e]
cmp al, 1
jbe 0x140001273
cmp r11b, 0xb8
je 0x140001269
inc ecx
inc r8
cmp ecx, 0x20
jl 0x140001240
jmp 0x140001273
mov ebx, dword [r9 + r10 + 1]
cmp ebx, 0xffffffff
jne 0x140001282
mov rdx, rdi
lea rcx, [0x140001d90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001294
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14000a610]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, qword [0x14000a698]
xor r12d, r12d
mov r15, rcx
test rbx, rbx
jne 0x140001404
lea rcx, [rbp - 0x30]
call fcn.140001440
mov rdi, rax
test rax, rax
je 0x14000133e
cmp dword [rbp - 0x30], r12d
je 0x14000133e
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
mov r14d, r12d
movzx ecx, word [rax + 0x14]
lea rbx, [rax + 0x18]
add rbx, rcx
cmp r12w, word [rax + 6]
jae 0x14000133e
mov rcx, qword [rbx]
lea rdx, [0x140001c70]
mov qword [rbp - 0x18], rcx
mov r8d, 5
lea rcx, [rbp - 0x18]
mov byte [rbp - 0x10], r12b
call sub.ntoskrnl.exe_strncmp
test eax, eax
je 0x140001365
movzx eax, word [rsi + 6]
add rbx, 0x28
inc r14d
cmp r14d, eax
jb 0x140001309
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400019c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dword [rbp - 0x28], 0xefc1f88b
mov esi, r12d
mov dword [rbp - 0x24], 0x20e78307
mov dword [rbp - 0x20], 0xfff25
mov byte [rbp - 0x1c], r12b
cmp dword [rbx + 8], 0xd
je 0x14000133e
mov ecx, dword [rbx + 0xc]
lea rdx, [rbp - 0x28]
mov r14d, esi
mov r8d, 0xd
add rcx, r14
add rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, 0xd
je 0x1400013b7
mov eax, dword [rbx + 8]
inc esi
sub eax, 0xd
cmp esi, eax
jb 0x140001387
jmp 0x14000133e
mov edx, dword [rbx + 0xc]
add rdx, 0xd
add rdx, r14
add rdx, rdi
cmp byte [rdx], 0x4c
jne 0x14000133e
cmp byte [rdx + 1], 0x8d
jne 0x14000133e
cmp byte [rdx + 2], 0x15
jne 0x14000133e
movsxd rax, dword [rdx + 3]
test eax, eax
je 0x14000133e
lea rbx, [rax + 7]
add rbx, rdx
mov qword [0x14000a698], rbx
test rbx, rbx
je 0x14000133e
mov rdi, qword [rbx]
test rdi, rdi
je 0x14000133e
mov rcx, r15
call fcn.1400011f0
cmp eax, 0xffffffff
je 0x14000133e
mov ecx, eax
cmp rcx, qword [rbx + 0x10]
jae 0x14000133e
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
sar eax, 4
cdqe
add rax, rdi
jmp 0x140001340
Function at 0x140001440
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea r9, [rax + 0x10]
and dword [rax + 0x10], esi
lea rdx, [rax + 0x10]
mov rdi, rcx
xor r8d, r8d
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [rsp + 0x38], esi
je 0x1400014de
call fcn.1400014f0
mov r8d, eax
xor ecx, ecx
mov eax, dword [rsp + 0x38]
lea edx, [rax + rax]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400014de
mov eax, dword [rsp + 0x38]
xor edx, edx
mov rcx, rbx
lea r8d, [rax + rax]
call fcn.140001a40
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
add r8d, r8d
lea ecx, [rsi + 0xb]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400014ce
mov rsi, qword [rbx + 0x18]
test rdi, rdi
je 0x1400014ce
mov ecx, dword [rbx + 0x20]
mov dword [rdi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
jmp 0x1400014e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400014f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov edx, 0x14
mov dword [rbp - 0x50], 0x20707249
xor ecx, ecx
mov dword [rbp - 0x4c], 0x2b707249
mov dword [rbp - 0x48], 0x656c6946
mov dword [rbp - 0x44], 0x6174754d
mov dword [rbp - 0x40], 0x7346744e
mov dword [rbp - 0x3c], 0x616d6553
mov dword [rbp - 0x38], 0x52777445
mov dword [rbp - 0x34], 0x6e657645
mov dword [rbp - 0x30], 0x20646156
mov dword [rbp - 0x2c], 0x73646156
mov dword [rbp - 0x28], 0x61436d4d
mov dword [rbp - 0x24], 0x20206f49
mov dword [rbp - 0x20], 0x74696157
mov dword [rbp - 0x1c], 0x65536d4d
mov dword [rbp - 0x18], 0x43504c41
mov dword [rbp - 0x14], 0x47777445
mov dword [rbp - 0x10], 0x206c644d
mov dword [rbp - 0xc], 0x65726854
mov dword [rbp - 8], 0x63536343
mov dword [rbp - 4], 0x4b677844
call fcn.14000177c
mov eax, eax
mov eax, dword [rbp + rax*4 - 0x50]
add rsp, 0x70
pop rbp
ret
Function at 0x1400015a0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x14000a610]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140001c30]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140001608
mov eax, 0xc0000001
jmp 0x14000170b
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001709
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov dword [rbp + 0x4b], eax
movups xmmword [rbp + 0x3b], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x1400016ff
mov eax, dword [rbp + 0x3f]
mov cl, 1
mov edx, eax
mov dword [0x14000a688], eax
call fcn.140001728
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x14000a688]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x14000a680], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140001709
mov rcx, qword [0x14000a680]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001709
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400019c0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x1400017d8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, word [rcx + 0x14]
xor r10d, r10d
movzx ebx, word [rcx + 6]
add r9, 0x18
add r9, rcx
test ebx, ebx
je 0x140001814
mov r11d, dword [r9 + 0xc]
cmp r11d, edx
ja 0x140001808
mov ecx, dword [r9 + 8]
add ecx, r11d
cmp ecx, edx
ja 0x14000181d
add r9, 0x28
inc r10d
cmp r10d, ebx
jl 0x1400017f4
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r11d
add edx, eax
or eax, 0xffffffff
cmp edx, r8d
cmovb eax, edx
jmp 0x140001817
Function at 0x140012f00
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rax, rsp
mov rbp, rsp
sub rsp, 0x10
movaps xmmword [rsp], xmm6
sub rsp, 0x10
movaps xmmword [rsp], xmm7
mov r10, rcx
mov r11, rdx
push r12
mov r12, r8
push rsi
push rdi
mov rsi, r12
mov rdx, r11
mov rdi, r10
mov eax, 2
movdqa xmm4, xmmword [rsi]
movdqa xmm5, xmmword [rsi + 0x10]
movdqa xmm6, xmmword [rsi + 0x20]
movdqa xmm7, xmmword [rsi + 0x30]
movdqa xmm0, xmm4
movdqa xmm1, xmm5
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psraw xmm4, 0xf
psraw xmm5, 0xf
psraw xmm6, 0xf
psraw xmm7, 0xf
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
paddw xmm0, xmmword [rdx + 0x80]
paddw xmm1, xmmword [rdx + 0x90]
paddw xmm2, xmmword [rdx + 0xa0]
paddw xmm3, xmmword [rdx + 0xb0]
pmulhuw xmm0, xmmword [rdx]
pmulhuw xmm1, xmmword [rdx + 0x10]
pmulhuw xmm2, xmmword [rdx + 0x20]
pmulhuw xmm3, xmmword [rdx + 0x30]
pmulhuw xmm0, xmmword [rdx + 0x100]
pmulhuw xmm1, xmmword [rdx + 0x110]
pmulhuw xmm2, xmmword [rdx + 0x120]
pmulhuw xmm3, xmmword [rdx + 0x130]
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
movdqa xmmword [rdi], xmm0
movdqa xmmword [rdi + 0x10], xmm1
movdqa xmmword [rdi + 0x20], xmm2
movdqa xmmword [rdi + 0x30], xmm3
add rsi, 0x40
add rdx, 0x40
add rdi, 0x40
dec rax
jne 0x140012f32
pop rdi
pop rsi
pop r12
movaps xmm7, xmmword [rsp]
add rsp, 0x10
movaps xmm6, xmmword [rsp]
add rsp, 0x10
pop rbp
ret
Function at 0x140017a50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
push rdi
sub rsp, 0xc88
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0xc60], rax
mov rdi, r8
mov rsi, rcx
cmp edx, dword [rcx + 0x10]
jg 0x140017c31
cmp byte [rcx + 9], 0
jne 0x140017a9a
cmp byte [rcx + 0xa], 0
jne 0x140017a9a
cmp byte [rcx + 8], 0
je 0x140017c31
mov qword [rsp + 0xc80], rbx
xor ecx, ecx
mov qword [rsp + 0xc78], rbp
lea rbp, [rsp + 0xcb8]
call fcn.14013ad20
lea rcx, [rsi + 0x328]
cmp rax, qword [rcx]
je 0x140017ad8
mov qword [rcx], rax
call fcn.14014c338
mov rdx, rax
mov rcx, rsi
call fcn.140076890
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140019de0
mov qword [rsp + 0x28], rbp
lea rdx, [rsp + 0x50]
xor ebp, ebp
mov r9, rdi
mov r8d, 0x400
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
or rcx, 1
call fcn.140143d20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x140017b8f
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x860]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140017b62
mov r8d, ebx
lea rdx, str.error_code_0x_08X
lea rcx, [rsp + 0x860]
call fcn.14002c2d0
lea r8, [0x1401cf724]
mov edx, 0x801
lea rcx, [rsp + 0x50]
call fcn.14013ac60
lea r8, [rsp + 0x860]
mov edx, 0x801
lea rcx, [rsp + 0x50]
call fcn.14013ac60
cmp byte [rsi + 9], bpl
je 0x140017ba0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, 0xffffffffffffffff
cmp byte [rsi + 0xa], bpl
je 0x140017be4
lea rax, [rsp + 0x50]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], bpl
jne 0x140017bb5
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp byte [rsi + 8], bpl
je 0x140017c21
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140017c21
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], bpl
jne 0x140017c00
mov r8, rbx
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0xc80]
mov rbp, qword [rsp + 0xc78]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0xc88
pop rdi
pop rsi
ret
Function at 0x140017c50
Capabilities:
Check os version
Create process on windows

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x90], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x94], 6
jb 0x140017d00
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x20], WSACleanup
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], rax
lea rax, str.runas
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x38], rax
lea rax, str._softwarecad
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x258
ret
Function at 0x14001a4f0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x310]
test rcx, rcx
je 0x14001a50b
call qword [rbx + 0x2e8]
mov rcx, qword [rbx + 0x318]
test rcx, rcx
je 0x14001a51d
call qword [rbx + 0x2e8]
xor eax, eax
mov qword [rbx + 0x310], rax
mov qword [rbx + 0x318], rax
mov byte [rbx + 0x38], al
call qword [rbx + 0x2b8]
test eax, eax
je 0x14001a573
mov rcx, qword [rbx + 0x1a0]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea rcx, [rbx + 0x1a8]
setne dil
cmp byte [rcx], 0
je 0x14001a564
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001a9a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rax, vtable.DeskDupEngine.0
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x70], rsi
mov qword [rcx + 0x78], rsi
mov qword [rcx + 0x80], rsi
mov qword [rcx + 0x88], rsi
mov byte [rcx + 0x2d], 1
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], rsi
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x48], rsi
mov qword [rcx + 0x50], rsi
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], rsi
mov qword [rcx + 0x68], rsi
lea edi, [rsi + 4]
mov r8w, 3
mov dx, 1
mov cx, 5
call fcn.140026cf0
mov ecx, 5
test al, al
cmovne edi, ecx
xor r8d, r8d
xor edx, edx
mov cx, 6
call fcn.140026cf0
mov ecx, 6
test al, al
cmovne edi, ecx
xor r8d, r8d
lea edx, [rsi + 2]
call fcn.140026cf0
test al, al
je 0x14001ab88
mov dword [rbx + 8], 0xa
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14001aab5
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x30]
call fcn.140133e58
test rax, rax
je 0x14001ab99
mov byte [rax], sil
lea r8, str.ddengine64.dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14013ac60
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x14001ab82
lea rdx, str.StartW8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.StartW8V2
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.StopW8
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.LockW8
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.UnlockW8
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.ShowCursorW8
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.HideCursorW8
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
cmp qword [rbx + 0x38], rsi
je 0x14001ab82
cmp qword [rbx + 0x48], rsi
je 0x14001ab82
cmp qword [rbx + 0x50], rsi
je 0x14001ab82
cmp qword [rbx + 0x58], rsi
je 0x14001ab82
cmp qword [rbx + 0x60], rsi
je 0x14001ab82
test rax, rax
jne 0x14001ab8b
mov byte [rbx + 0x2d], sil
jmp 0x14001ab8b
mov dword [rbx + 8], edi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001acd0
Capabilities:
Print debug messages
Read file via mapping
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x2d], 0
mov edi, r9d
mov rbx, rcx
mov dword [rcx + 0x28], 1
je 0x14001ae82
mov ecx, 0x4e
mov qword [rsp + 0x40], rsi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4f
mov esi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, dword [rsp + 0x60]
jne 0x14001ad1c
cmp esi, edi
jne 0x14001ad1c
xor cl, cl
jmp 0x14001ad1e
mov cl, 1
mov r9, qword [rbx + 0x40]
mov rsi, qword [rsp + 0x40]
test r9, r9
je 0x14001ad67
mov eax, 0x3e8
cdq
idiv dword [rsp + 0x70]
movzx edx, byte [rsp + 0x68]
mov r8d, eax
call r9
test al, al
jne 0x14001ad7f
lea r8, str.DeskDupEngine::videoDriver_start_:_DDengine_V2_failed__not_supported_by_video_driver_n
mov edx, 8
lea rcx, vtable.VNCLog.0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140017a50
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14001ad7f
call rax
test al, al
jne 0x14001ad7f
lea r8, str.DeskDupEngine::videoDriver_start_:_DDengine_failed__not_supported_by_video_driver_n
jmp 0x14001ad4c
cmp qword [rbx + 0x70], 0
jne 0x14001ae82
xor edx, edx
lea r8, str.3DA76AC7_62E7_44AF_A8D1_45022044BB3E
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14001ae82
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea edx, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x14001ae82
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x80], rdi
jne 0x14001ae82
lea r8, str.0E3D996F_B070_4503_9090_198A9DA092D5
xor edx, edx
lea ecx, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov qword [rbx + 0x80], rax
test rax, rax
je 0x14001ae82
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x88], rax
test rax, rax
je 0x14001ae82
cmp qword [rbx + 0x90], rdi
jne 0x14001ae82
lea r8, str.3BFBA3A0_2133_48B5_B5BD_E58C72853FFB
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rbx + 0x90], rax
test rax, rax
je 0x14001ae82
cmp qword [rbx + 0x98], rdi
jne 0x14001ae82
lea r8, str.3A77E11C_B0B4_40F9_BC8B_D249116A76FE
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rbx + 0x98], rax
test rax, rax
je 0x14001ae82
mov rax, qword [rbx + 0x88]
mov qword [rbx + 0x18], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x38
mov rbx, rdx
lea rax, [rsp + 0x68]
xor edi, edi
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov qword [rsp + 0x68], rdi
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001b842
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.ProductSuite
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x50], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001b837
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
call fcn.140131f5c
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rsi, rax
lea rdx, str.ProductSuite
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001b82a
mov rdi, rsi
cmp byte [rsi], al
je 0x14001b82a
nop word [rax + rax]
lea rdx, str.Terminal_Server
mov rcx, rdi
call fcn.140144860
test eax, eax
jne 0x14001b7ac
or dword [rbx + 0x130], 0x10
jmp 0x14001b811
lea rdx, [0x1401c4000]
mov rcx, rdi
call fcn.140144860
test eax, eax
je 0x14001b80a
lea rdx, str.Small_Business
mov rcx, rdi
call fcn.140144860
test eax, eax
je 0x14001b80a
lea rdx, str.Enterprise
mov rcx, rdi
call fcn.140144860
test eax, eax
jne 0x14001b7ee
or dword [rbx + 0x130], 2
jmp 0x14001b811
lea rdx, str.Personal
mov rcx, rdi
call fcn.140144860
test eax, eax
jne 0x14001b811
or dword [rbx + 0x130], 0x40
jmp 0x14001b811
or dword [rbx + 0x130], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rdi, rax
cmp byte [rdi], 0
jne 0x14001b790
mov rcx, rsi
call fcn.140131f10
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
pop rdi
pop rbx
ret