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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rdx + 8]
cmp rdi, 0xffffffffffffffff
je 0x1802022a1
mov eax, dword [rdx + 0x10]
movzx ebx, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r14d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x18020220a
mov r12, qword [rdx]
cmp bx, 0x2e
jne 0x1802022bc
test r15w, r15w
je 0x18020220a
mov eax, r15d
xor eax, 0x2e
or ax, r14w
jne 0x1802022bc
mov r14, rdx
lea rbx, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x1802022ad
mov rbx, qword [r14]
lea r14, [rbp - 0x60]
mov r15, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x18020225d
mov rcx, rdi
mov rdx, r14
call r15
test eax, eax
je 0x1802022ad
cmp word [rbp - 0x34], 0x2e
jne 0x18020227a
movzx eax, word [rbp - 0x32]
test ax, ax
je 0x180202250
cmp ax, 0x2e
jne 0x18020227a
cmp word [rbp - 0x30], 0
je 0x180202250
lock inc qword [rbx]
jle 0x180202348
lea rcx, [rsi + 0x10]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov eax, 8
jmp 0x180202327
mov qword [rsi], 0
jmp 0x180202333
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x180202310
xor eax, eax
jmp 0x180202330
lock inc qword [r12]
jle 0x180202348
lea rax, [rdx + 0x14]
add rdx, 0x46
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x1c]
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
lea rcx, [rsi + 0x42]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi + 8], r12
mov word [rsi + 0x3c], bx
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r14w
mov qword [rsi], 1
jmp 0x180202333
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsi + 8], 0
mov eax, 0x10
mov qword [rsi + rax], rbx
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2
Function at 0x180202b00
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.1802054d0
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x180202b5b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.180206220
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x180202b66
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x180202b92
test rdi, rdi
je 0x180202bbe
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.180004690
xor eax, eax
jmp 0x180202b5e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x180202b5e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.180004690
jmp 0x180202b5b
xor eax, eax
jmp 0x180202b5e
Function at 0x180204350
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1802c7050]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1802043df
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1802043ec
xor edx, edx
xor eax, eax
jmp 0x180204416
cmp eax, 0x103
je 0x180204420
test eax, eax
js 0x1802043ff
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x180204416
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x1802c70e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1801fba00
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1801f66a0
mov ecx, 7
int 0x29
ud2

Function at 0x180204470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1802c7050]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180204506
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x180204533
test eax, eax
js 0x180204512
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x180204529
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x1802c70e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1801fba00
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1801f66a0
mov ecx, 7
int 0x29
ud2
Function at 0x1802056f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x18020575c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x18020575c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x18020575c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x180205808
cmp byte [rdx], 0xed
jne 0x180205811
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x180205811
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x1802057a1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x1802058fb
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.1801ff9c0
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x180205920
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x1802058ae
test rdi, rdi
je 0x1802058a0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x180205838
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x1802058a0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x180205830
cmp r10b, 0xe0
jb 0x18020581a
cmp r10b, 0xed
jne 0x18020586f
cmp r8, rax
je 0x1802058a0
lea r8, [r9 + 2]
cmp r8, rax
je 0x1802058a0
cmp byte [r9 + 1], 0x9f
ja 0x18020589c
add r9, 3
mov r8, r9
jmp 0x180205830
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x180205830
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x180205830
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1802058ce
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.180225800
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1802058ab
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.180225800
mov rdx, r15
jmp 0x1802057bc
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.180225800
mov rbx, qword [rsi + 0x10]
jmp 0x1802057f9
Function at 0x180001000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r13
push r14
sub rsp, 0x20
mov rax, qword [r8]
mov r14, qword [r8 + 8]
xor esi, esi
mov rbp, r8
movzx r8d, word [rax + 0x14]
mov r12, rdx
mov r13, rcx
cmp si, word [rax + 6]
jae 0x1800010e0
mov qword [rsp + 0x48], rdi
lea rdi, [r8 + rax + 0x28]
mov qword [rsp + 0x40], rbx
mov eax, dword [rdi]
test eax, eax
jne 0x180001083
movsxd rax, dword [r12 + 0x38]
test eax, eax
jle 0x1800010c0
mov ecx, dword [rdi - 4]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
add rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov dword [rdi - 8], eax
call fcn.180002c60
jmp 0x1800010c0
mov ecx, dword [rdi - 4]
mov rdx, rax
mov r9d, 0x40
add rcx, r14
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800010ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rdi + 4]
mov r8d, dword [rdi]
mov rcx, rbx
add rdx, r13
call fcn.180002d60
mov dword [rdi - 8], ebx
mov rax, qword [rbp]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x180001044
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1800015c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x20
movsxd rbp, dword [rcx + 0x3c]
mov r12, rcx
mov r9d, 0x40
add rbp, rcx
mov r8d, 0x2000
mov edx, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001629
mov edx, dword [rbp + 0x50]
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001629
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x1000
mov rcx, rsi
mov rdi, rax
mov qword [rax + 8], rsi
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, dword [rbp + 0x50]
lea r9d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [rbp + 0x54]
mov r9d, 0x40
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r12 + 0x3c]
mov rdx, r12
add r8d, dword [rbp + 0x54]
mov rcx, rax
mov rbx, rax
call fcn.180002d60
movsxd rcx, dword [r12 + 0x3c]
mov eax, esi
add rcx, rbx
mov r8, rdi
mov rdx, rbp
mov qword [rdi], rcx
mov qword [rcx + 0x30], rax
mov rcx, r12
call section..text
mov rbx, qword [rsp + 0x30]
mov rdx, rsi
sub rdx, qword [rbp + 0x30]
je 0x1800016d3
mov rcx, rdi
call fcn.180001200
mov rcx, rdi
call fcn.1800012a0
test eax, eax
je 0x180001713
mov rcx, rdi
call fcn.180001100
mov r11, qword [rdi]
mov eax, dword [r11 + 0x28]
test eax, eax
je 0x18000170e
add rax, rsi
je 0x180001713
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
je 0x180001713
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x18000171d
mov rcx, rdi
call fcn.180001500
xor eax, eax
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x180001740
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp qword [0x18002ef70], 0
je 0x180001761
cmp dword [0x18002ef68], 0
je 0x180001761
mov eax, 1
add rsp, 0x28
ret
mov eax, dword [0x180013030]
mov ecx, eax
mov dword [0x18002ef68], eax
call fcn.180003218
lea r8, [0x180013031]
mov r9d, 0x80b8
mov r11, rax
mov qword [0x18002ef70], rax
nop dword [rax + rax]
movzx edx, byte [r8 - 1]
add r8, 3
xor dl, 0x36
movzx ecx, dl
shr dl, 4
shl cl, 4
add cl, dl
mov byte [r8 - 4], cl
movzx ecx, byte [r8 - 3]
xor cl, 0x36
movzx eax, cl
shr cl, 4
shl al, 4
add al, cl
movzx ecx, byte [r8 - 2]
mov byte [r8 - 3], al
xor cl, 0x36
movzx eax, cl
shr cl, 4
shl al, 4
add al, cl
dec r9
mov byte [r8 - 2], al
jne 0x180001790
lea r8, [0x180013034]
lea rdx, [0x18002ef68]
mov r9d, 0x18228
mov rcx, r11
call fcn.180008350
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180001ba0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x3c0
mov rax, qword [0x18002bf80]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov rdi, rcx
cmp edx, 1
jne 0x180001d09
cmp dword [0x18002f2d8], edx
je 0x180001d15
mov dword [0x18002f2d8], edx
lea rcx, [rsp + 0x21]
mov r8d, 0x12b
xor edx, edx
mov byte [rsp + 0x20], 0
call fcn.180002c60
lea rdx, [rsp + 0x20]
mov r8d, 0x12b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x20]
call fcn.18000af60
lea rcx, [rsp + 0x281]
xor edx, edx
mov r8d, 0x12b
mov qword [0x18002ef80], rdi
mov byte [rsp + 0x280], 0
call fcn.180002c60
lea rdx, [rsp + 0x280]
mov r8d, 0x12b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x151]
xor edx, edx
mov r8d, 0x12b
mov byte [rsp + 0x150], 0
call fcn.180002c60
lea rcx, [rsp + 0x150]
mov edx, 0x12c
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x150]
lea rdx, str.explorer.exe
repne scasb al, byte [rdi]
mov rax, qword [str.winmm.dll]
lea rcx, [rsp + 0x20]
mov qword [rdi - 1], rax
movzx eax, word [0x18000c398]
mov word [rdi + 7], ax
movzx eax, byte [0x18000c39a]
mov byte [rdi + 9], al
call fcn.1800032bc
test rax, rax
je 0x180001ce5
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x280]
call fcn.1800081ac
test eax, eax
je 0x180001ce5
mov ecx, 4
call fcn.180001810
xor eax, eax
jmp 0x180001d1a
lea rdx, str.sysprep.exe
lea rcx, [rsp + 0x20]
call fcn.1800032bc
test rax, rax
je 0x180001d02
mov ecx, 5
jmp 0x180001d10
mov ecx, 1
jmp 0x180001d10
test edx, edx
jne 0x180001d15
lea ecx, [rdx + 2]
call fcn.180001810
mov eax, 1
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.180002c30
add rsp, 0x3c0
pop rdi
ret
Function at 0x180006e38
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18002bf80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180003e94
xor ebx, ebx
cmp qword [0x1800302e8], rbx
mov rdi, rax
jne 0x180006f4b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180007022
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007022
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800302e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800302f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800302f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180030308], rax
test rax, rax
je 0x180006f42
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180030300], rax
jmp 0x180006f52
mov rax, qword [0x180030300]
jmp 0x180006f59
mov rax, qword [0x180030300]
mov r11, qword [0x180030308]
cmp rax, rdi
je 0x180006fc0
cmp r11, rdi
je 0x180006fc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180030308]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006fc0
test rax, rax
je 0x180006fc0
call rsi
test rax, rax
je 0x180006fba
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006fba
test byte [rsp + 0x40], 1
jne 0x180006fc0
bts ebp, 0x15
jmp 0x180007000
mov rcx, qword [0x1800302f0]
cmp rcx, rdi
je 0x180007000
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007000
call rax
mov rbx, rax
test rax, rax
je 0x180007000
mov rcx, qword [0x1800302f8]
cmp rcx, rdi
je 0x180007000
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007000
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800302e8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007022
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180007024
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180002c30
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f70
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f83
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014fad
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014fc1
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014fd3
xor al, al
jmp 0x140014ff1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014fef
xor al, al
jmp 0x140014ff1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012e30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011433
movzx eax, al
test eax, eax
jne 0x140012e50
mov ecx, 7
call fcn.1400113a7
nop
mov byte [rsp + 0x20], 0
call fcn.1400113bb
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012e74
mov ecx, 7
call fcn.1400113a7
nop
jmp 0x140012ecc
cmp dword [0x14001e868], 0
jne 0x140012ec7
mov dword [0x14001e868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111fe
test eax, eax
je 0x140012ea8
mov eax, 0xff
jmp 0x140012fd1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113b1
mov dword [0x14001e868], 2
jmp 0x140012ecc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011393
call fcn.140011320
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012f29
mov rcx, qword [rsp + 0x30]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012f29
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011357
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012f5d
mov rcx, qword [rsp + 0x38]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012f5d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113f2
nop
call fcn.140013080
mov dword [rsp + 0x28], eax
call fcn.1400112f8
movzx eax, al
test eax, eax
jne 0x140012f7c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012f8b
call fcn.1400113fc
nop
xor edx, edx
mov cl, 1
call fcn.14001118b
mov eax, dword [rsp + 0x28]
jmp 0x140012fd1
add rsp, 0x68
ret
Function at 0x140001260
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x40
lea rax, [0x140001210]
mov rdi, rcx
mov qword [rcx + 0x70], rax
lea rbx, [0x140004030]
lea rax, [0x140001210]
mov qword [rcx + 0x80], rax
lea rdx, [0x140002430]
lea rax, section..text
mov qword [rcx + 0xe0], rax
lea rax, [0x140001230]
mov qword [rcx + 0x68], rax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebp, ebp
lea rax, [0x140004040]
mov qword [rsp + 0x30], rax
mov r8, rbx
mov byte [rsp + 0x28], bpl
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], ebp
lea r9d, [rbp + 0x22]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000134c
lea rdx, [0x140002460]
lea rcx, [0x140004020]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [0x140004020]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
lfence
test eax, eax
js 0x140001339
mov rax, qword [rdi + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140001e20
test ax, ax
je 0x14000134a
lea rcx, [0x140004020]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov ebx, 0xc0000001
mov rcx, qword [0x140004040]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x14000134f
mov eax, ebx
lfence
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140001360
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x50], rdx
test rcx, 0xfffffffffffffffb
je 0x14000147e
lea rax, [rdx - 0x10000]
movabs rdx, 0x7ffffffeffff
cmp rax, rdx
ja 0x14000147e
xor edi, edi
mov qword [r11 - 0x60], rdi
mov byte [rsp + 0x21], dil
mov byte [rsp + 0x20], dil
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [r11 - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400013e5
lea eax, [rdi + 3]
jmp 0x140001483
mov esi, 1
mov byte [rsp + 0x21], sil
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x21], dil
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x20], sil
mov qword [rsp + 0x30], rdi
mov r9d, 0x8000
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov ebx, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x20], dil
test ebx, ebx
jns 0x14000144e
movzx eax, si
jmp 0x140001483
movzx eax, di
jmp 0x140001483
mov eax, 2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001f00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret