joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400228d4
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r12, r9
mov rdi, r8
mov r13, rdx
mov ebx, 1
mov ebp, esi
cmp qword [rdx + 8], rsi
je 0x140022a2b
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov byte [r9], sil
mov r9d, esi
mov byte [r10], sil
mov byte [r15], sil
mov byte [r14], sil
mov dword [r8], esi
movsxd rdx, r9d
mov rcx, r13
call fcn.14000637c
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140069c22
lea eax, [r9 + 1]
mov rcx, r13
mov dword [rsp + 0x70], eax
call fcn.14000637c
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x140069cd8
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400098e8
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, r13
call fcn.140022a30
test al, al
je 0x140022a22
lea rsi, [0x1400c72e0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsi]
call fcn.140028e28
test eax, eax
je 0x1400229ca
add ebp, ebx
lea rax, [0x1400c75f8]
add rsi, 8
cmp rsi, rax
jl 0x1400229a7
cmp ebp, 0x63
je 0x140069c69
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc7270], 0
jne 0x140022a27
movzx eax, byte [rax + rcx + 0xc7200]
mov dword [rdi], eax
lea rcx, [rsp + 0x20]
call fcn.14000a07c
mov eax, dword [rdi]
movzx ecx, al
mov al, bl
mov dword [rdi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov bl, sil
jmp 0x1400229f1
xor bl, bl
jmp 0x1400229f1
xor al, al
jmp 0x140022a04
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x140022955
cmp cx, 0x2b
jne 0x140069c42
mov byte [r12], bl
jmp 0x140069c61
cmp cx, 0x5e
jne 0x140069c4d
mov byte [r14], bl
jmp 0x140069c61
cmp cx, 0x21
jne 0x140069c58
mov byte [r15], bl
jmp 0x140069c61
cmp cx, 0x23
jne 0x140069c61
mov byte [r10], bl
add r9d, ebx
jmp 0x14002293a
mov edx, 2
cmp dword [rsp + 0x70], edx
jne 0x140069c84
mov rcx, r13
call fcn.14000637c
lea ecx, [rdx + 0x7b]
cmp word [rax], cx
je 0x140069c93
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140009d84
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rdi], ecx
cmp ecx, 0xffffffff
jne 0x140069cb3
lea rcx, [rsp + 0x20]
call fcn.14000a07c
nop
jmp 0x140022a2b
bt ecx, 9
jae 0x140069cbc
mov byte [r14], bl
bt ecx, 0xa
jae 0x140069cc5
mov byte [r15], bl
bt ecx, 8
jae 0x1400229f1
mov byte [r12], bl
jmp 0x1400229f1
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x140022a2b
bt eax, 9
jae 0x140069cf3
mov byte [r14], bl
bt eax, 0xa
jae 0x140069cfc
mov byte [r15], bl
bt eax, 8
jae 0x1400229fd
mov byte [r12], bl
jmp 0x1400229fd
Function at 0x140022d5c
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov dword [rcx], eax
mov rbx, rcx
mov dword [rcx + 4], eax
xor edx, edx
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x20], eax
mov dword [rcx + 0xc], 4
lea ecx, [rax + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x35], al
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x34], al
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x30], al
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x140023ea0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14b, byte [0x1400f03b7]
mov rdi, rdx
mov rsi, rcx
call fcn.14003279c
mov ecx, eax
mov edx, 0x8000
call fcn.1400325c4
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x14006a574
lea rcx, [rsp + 0x20]
call fcn.14000a368
mov rcx, rdi
call fcn.14000d4cc
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.140024120
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b6b28]
mov rcx, rsi
call fcn.140023f70
movsxd rbx, eax
test r14b, r14b
jne 0x14006a5a2
lea rcx, [rsp + 0x20]
call fcn.14000a07c
mov rcx, rsi
call fcn.140032c3c
mov rcx, rsi
call fcn.14003279c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.1400325c4
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdi
call fcn.1400818bc
mov rcx, rdi
movsxd rbx, eax
call fcn.140081864
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032a04
mov rbx, rax
jmp 0x140023f2d
mov rcx, rdi
call fcn.14000d4cc
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140023f23

Function at 0x140024380
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140048f90
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007cf4
add rsp, 0x10020
pop rbx
ret
Function at 0x14002443c
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov edi, edx
test r8, r8
jne 0x14006a6fc
mov eax, dword [0x1400f0da8]
cmp eax, 0xffffffff
je 0x140024510
movsxd rcx, eax
mov rax, qword [0x1400f0d90]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x140024490
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x14006a716
cmp edi, 8
jg 0x14006a773
je 0x1400244c2
test edi, edi
je 0x14006a75f
cmp edi, 1
je 0x1400244c2
mov edx, 6
cmp edi, 2
je 0x140024507
cmp edi, 3
je 0x1400244fe
jle 0x1400244e9
cmp edi, 5
jg 0x14006a73e
cmp byte [rbx + 0x68], 0
jne 0x140024510
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x1400244e5
mov rcx, rbp
call fcn.140024514
mov byte [rbx + 0x68], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rbx + 0x68], 1
jmp 0x14006a7de
mov byte [rbx + 0x68], 1
jmp 0x14006a746
xor eax, eax
jmp 0x1400244ee
mov rdx, r8
lea rcx, [0x1400f0cf0]
call fcn.140002a54
mov dword [0x1400f0da8], eax
jmp 0x14002445c
cmp byte [rbx + 0x2c4], 0
je 0x140024490
mov r8d, dword [rbx + 0x2c0]
mov rdx, rbx
call fcn.1400aff50
mov byte [rbx + 0x2c4], 0
jmp 0x140024490
cmp edi, edx
jne 0x1400244e9
cmp byte [rbx + 0x68], 0
je 0x140024510
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x1400244e9
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x1400244e9
mov edx, edi
sub edx, 9
je 0x14006a7de
sub edx, 0x37
je 0x14006a7ca
sub edx, 1
je 0x14006a7c6
sub edx, 1
je 0x14006a7b3
cmp edx, 1
jne 0x1400244e9
xor ecx, ecx
mov byte [rbx + 0x69], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop
jmp 0x1400244e9
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x1400244e9
xor edx, edx
jmp 0x14006a7cf
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x1400244e9
cmp byte [rbx + 0x68], 0
je 0x140024510
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.140024514
nop
jmp 0x1400244e9
Function at 0x140024514
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x14006a802
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor ebx, ebx
test rax, rax
jne 0x14006a81b
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x14006a836
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a960
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r14d
mov r8d, esi
mov edx, eax
mov r15d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a92e
lea esi, [rax + 0x12]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x14006a933
lea ebx, [rsi - 0xe]
jmp 0x14006a933
mov ebx, 3
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x14006a965
mov ebx, 2
mov eax, ebx
jmp 0x140024546

Function at 0x140029248
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140028fac
Function at 0x1400411cc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14004106c
call fcn.1400355d4
mov dword [rax], socket
call fcn.14003b164
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140041054
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140041054
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004109e
lock or dword [rax + 0x14], 0x10
jmp 0x140041054
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400410bb
mov rcx, qword [rbp + 0x10]
call fcn.14004674c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003279c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140040aa4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140041112
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140041054
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14004117e
mov rcx, qword [rbp + 0x10]
call fcn.14003279c
cmp eax, 0xffffffff
je 0x140041165
mov rcx, qword [rbp + 0x10]
call fcn.14003279c
cmp eax, 0xfffffffe
je 0x140041165
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003279c
movsxd rdi, eax
lea rsi, [0x1400ef880]
mov rcx, rbx
sar rdi, 6
call fcn.14003279c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14004116c
lea rax, [0x1400ea300]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004117e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400411b4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400411b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400411b0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140041057
jmp 0x140041024
Function at 0x14006c034
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
mov rsi, r9
mov r14, r8
mov rdi, rdx
call fcn.140009640
lea rcx, [rsp + 0x38]
call fcn.140009640
lea rcx, [rsp + 0x78]
call fcn.140009640
lea rdx, [0x1400dc1f0]
lea rcx, [rsp + 0x58]
call fcn.140007cf4
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400071f8
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.1400071f8
lea rcx, [rsp + 0x38]
call fcn.14000a854
test rdi, rdi
je 0x14006c0f1
cmp word [rdi], 0x5c
je 0x14006c0f1
cmp word [rdi + 2], 0x5c
je 0x14006c0f1
lea rdx, [0x1400dc228]
lea rcx, [rsp + 0x38]
call fcn.140007cf4
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400071f8
test rsi, rsi
je 0x14006c153
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.140026240
lea rdx, [rsp + 0x38]
mov dword [rbp - 0x64], r15d
lea rcx, [rsp + 0x78]
call fcn.14000e0a8
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.1400071f8
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
mov rdx, qword [rbp + 0x230]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], rax
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov ebx, eax
test eax, eax
js 0x14006c214
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov ebx, eax
test eax, eax
jne 0x14006c214
mov rdx, qword [rsp + 0x58]
lea rax, [rbp + 0x228]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14006c209
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x30]
mov dword [rbp + 0x218], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14006c1fc
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
shr eax, 1
mov rdx, r14
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r15w
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.14000a07c
lea rcx, [rsp + 0x38]
call fcn.14000a07c
lea rcx, [rsp + 0x58]
call fcn.14000a07c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006cb58
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov r14, r8
mov qword [rax - 0x18], rsi
mov r8, qword [r8]
mov rbp, rcx
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test eax, eax
jne 0x14006cbd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006cbd9
mov ebx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14], rax
test rax, rax
je 0x14006cbd9
mov r9d, dword [rsi]
lea edx, [rdi + 3]
mov r8, rax
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
mov rbx, qword [rsp + 0x40]
test edi, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
setne al
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14006d2c4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
xor r10d, r10d
mov rbp, r9
mov qword [rax + 0x30], r10
mov r14, r8
mov eax, dword [rsp + 0xa0]
mov r15, rdx
lea ebx, [r10 + 1]
test bl, al
je 0x14006d303
mov edi, ebx
jmp 0x14006d310
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x14006d370
and qword [rsp + 0x80], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14006d3d6
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xd0]
mov r9d, edi
mov ecx, dword [rsp + 0xb8]
mov r8, rbp
mov qword [rsp + 0x50], rax
bts ecx, 0xa
mov rax, qword [rsp + 0xc8]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14006d3e9
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x60]
mov al, sil
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14006d540
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, reloc.OLEAUT32.dll_RegisterActiveObject
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14006d5bd
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret
Function at 0x14006d780
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
lea r9, [rsi + 0x10]
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [r15]
lea r8, [0x14006d868]
and qword [rsp + 0x28], 0
mov r9, rsi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14006dbc4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
lea r9, [rsp + 0x60]
mov r15, rcx
lea r8, [rsp + 0x68]
mov rcx, qword [rcx]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x68], eax
jae 0x14006dc8a
mov rcx, qword [r15]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov rdi, rax
test eax, eax
je 0x14006dc8a
cmp edi, dword [rsp + 0x68]
jb 0x14006dc8a
cmp edi, dword [rsp + 0x60]
jb 0x14006dc8a
lea ebx, [rax + 1]
lea rcx, [rsi - 1]
lea eax, [rsi + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140024c68
mov rcx, qword [r15]
lea edx, [rsi + 0xd]
mov r9, rax
mov r8d, ebx
mov r14, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14006dc7d
cmp dword [rsp + 0x60], edi
je 0x14006dc6a
mov ecx, dword [rsp + 0x60]
mov word [r14 + rcx*2], si
mov eax, dword [rsp + 0x68]
mov rcx, rbp
lea rdx, [r14 + rax*2]
call fcn.140007cf4
mov sil, 1
mov rcx, r14
call fcn.140024c24
mov al, sil
jmp 0x14006dc8c
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret