joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004e30
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.1400357e0
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.1400137ec
lea rdx, [rsp + 0x70]
xor bl, bl
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.140005eb4
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140084fae
mov eax, dword [0x1400daf40]
test eax, eax
je 0x140004fc2
mov r15d, 1
lea rcx, [0x1400dcd40]
cmp eax, r15d
je 0x140084fd0
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400daf40]
lea rdx, [0x1400daf68]
mov qword [rsp + 0x20], rax
call fcn.140005038
test al, al
je 0x140004fcb
mov al, byte [0x1400dcd40]
mov rcx, qword [0x1400daf68]
mov dil, byte [0x1400dcd41]
lea r9, [rbp + 0x1ffb8]
lea r8, [rbp + 0xff70]
mov edx, 0x7fff
mov byte [0x1400daf44], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400daf20]
call fcn.140012d0c
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400daf40]
lea rdx, [0x1400daf68]
call fcn.140003f70
test eax, eax
jne 0x140084ff4
cmp dil, r15b
je 0x140085017
call fcn.140022e5c
call fcn.1400036a4
cmp byte [0x1400daf44], 0
jne 0x140004f6f
lea rcx, [0x1400db970]
call fcn.140005220
lea rcx, [0x1400daf90]
mov edx, r15d
call fcn.14000ce00
cmp byte [0x1400daf44], 0
jne 0x140004f93
lea rcx, [0x1400db970]
call fcn.140004fd4
lea rcx, [0x1400dcd40]
call fcn.140022188
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.14000838c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
or dword [0x1400dae70], 0xffffffff
jmp 0x140004f9f
mov dword [0x1400dae70], r15d
jmp 0x140004f9f
lea r8, [0x1400c5e9c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
mov r9d, reloc.WSOCK32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x140004faa
mov r8, qword [0x1400daf48]
or r9d, 0xffffffff
mov edx, r15d
call fcn.140007c00
mov al, byte [0x1400dae76]
mov byte [0x1400dcd42], al
jmp 0x140004f2c
lea rcx, [0x1400dcd40]
call fcn.140022188
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400dae70], r15d
jmp 0x140004faa
call fcn.140050054
test al, al
jne 0x140004f50
cmp byte [rbp + 0x1ffb0], al
jne 0x140004f50
lea rcx, [rsp + 0x50]
call fcn.14000540c
lea rdx, [0x1400b099c]
lea rcx, [rsp + 0x30]
call fcn.140012aec
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14008507f
lea rdx, [0x1400c5ed0]
call fcn.1400040c0
lea rdx, [0x1400daf68]
lea rcx, [rsp + 0x30]
call fcn.140013e50
lea rdx, [0x1400c5ed0]
lea rcx, [rsp + 0x30]
jmp 0x140085082
mov rdx, rsi
call fcn.1400040c0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x50]
mov rcx, rax
lea rax, [rsp + 0x70]
lea rdx, str.runas
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.14000838c
nop
jmp 0x140004f93
Function at 0x1400055b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rcx + 0x18]
mov rbx, rcx
mov edx, 1
mov r8, r14
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140005604
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
lea r8, [0x1400c1f60]
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x14008880a
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140005604
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140005604
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140005604
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, edi
mov r10, qword [rcx]
mov rdx, rax
call qword [r10 + reloc.OLEAUT32.dll_RegisterActiveObject]
mov rcx, qword [r14]
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [rax + SafeArrayCreateEx]
mov byte [rbx + 0x20], 1
jmp 0x140005604

Function at 0x1400063e8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
cmp byte [rcx + 0x20], 0
mov r10, r9
mov r11, r8
mov rbx, rdx
jne 0x1400888ec
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.140028784
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
imul r10d, r11d
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rsp + 0x30]
jmp 0x14000641a
Function at 0x140008a80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140008b28
xor edi, edi
test rsi, rsi
je 0x140008ad3
nop
mov eax, dword [rbx + 0x10]
cmp dword [rbx + 0x14], eax
je 0x140008aef
movsxd rdx, dword [rbx + 0x14]
mov rcx, qword [rbx + 8]
inc rdi
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp - 1], dl
inc dword [rbx + 0x14]
cmp rdi, rsi
jb 0x140008ab0
add qword [rbx + 0x18], rdi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008ad3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140008ad3
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], 0
jmp 0x140008ab8
mov qword [rcx + 0x10], 0
call fcn.140006f28
jmp 0x140008aa7
Function at 0x1400197d8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rdx]
mov rsi, rcx
lea rcx, [rbp + 0x20]
mov r14d, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x20]
lea rdx, [rbp + 0x20]
mov rcx, rbx
mov dword [rdi + 0x290], eax
mov eax, dword [rbp + 0x24]
mov dword [rdi + 0x294], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp + 0x24]
cmp eax, dword [rdi + 0x298]
jne 0x1400198a8
cmp ecx, dword [rdi + 0x29c]
jne 0x1400198a8
mov ecx, dword [rsi + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rsi + 0x1c]
movzx r15d, ax
shr r15d, 0xf
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
cmp r15d, dword [rdi + 0x2a0]
jne 0x140093749
test r14d, r14d
je 0x140019878
mov dword [rdi + 0x2a0], r15d
cmp ebx, dword [rdi + 0x2a4]
jne 0x1400937d0
test r14d, r14d
je 0x14001988f
mov dword [rdi + 0x2a4], ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov dword [rdi + 0x298], eax
mov dword [rdi + 0x29c], ecx
cmp r14d, 1
jl 0x14001983f
jmp 0x14009372c
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8, rdi
mov rcx, rsi
mov edx, 0xfffffff5
call fcn.1400794dc
nop
jmp 0x14001983f
cmp r14d, 1
jl 0x14001986c
cmp byte [rdi + 0x2e0], 0
je 0x14001986c
mov eax, dword [rbp + 0x24]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
test r15d, r15d
je 0x14009377d
mov edx, 0xfffffff9
jmp 0x1400937bf
mov edx, 0xfffffff8
call fcn.1400794dc
cmp byte [rdi + 0x2a8], 0
je 0x1400937c4
mov rcx, qword [rdi]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
bt eax, 0x18
mov eax, dword [rbp + 0x24]
mov rcx, rsi
mov dword [rsp + 0x20], eax
mov edx, 0xfffffffa
jb 0x1400937bf
mov edx, 0xfffffff4
call fcn.1400794dc
mov byte [rdi + 0x2a8], 0
jmp 0x14001986c
cmp r14d, 1
jl 0x140019884
mov eax, dword [rbp + 0x24]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
mov rcx, rsi
mov edx, 0xfffffff7
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x1400937f9
mov edx, 0xfffffff6
call fcn.1400794dc
nop
jmp 0x140019884
Function at 0x14001a6b4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov rbx, rcx
mov dword [rcx], eax
mov dword [rcx + 4], eax
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]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x10]
mov byte [rbx + 0x35], al
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
lea ecx, [rdx + 0x11]
mov byte [rbx + 0x34], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x12]
mov byte [rbx + 0x30], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x140021f34
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, r9d
mov rbp, r8
test r8, r8
je 0x140087908
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140087908
lea rax, [r11 - 0x18]
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov word [rdi], bx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140087908
mov rcx, qword [rsp + 0x30]
lea eax, [rsi + rsi]
xor r9d, r9d
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021fc9
mov eax, dword [rsp + 0x60]
shr eax, 1
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x140021feb
mov word [rdi + rax*2], bx
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea eax, [rsi - 1]
jmp 0x140021fc3
xor al, al
jmp 0x140021fd6
Function at 0x140023700
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 [0x1400dae75]
mov rsi, rdx
mov rdi, rcx
call fcn.140026e28
mov edx, 0x8000
mov ecx, eax
call fcn.140026c50
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov rcx, rsi
mov ebp, eax
call fcn.140009024
test al, al
jne 0x140087910
lea rcx, [rsp + 0x20]
call fcn.140023860
mov rcx, rsi
call fcn.140015b9c
mov rdx, qword [rsi + 8]
lea r8, [rsp + 0x20]
call fcn.140023894
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400c1c60]
mov rcx, rdi
call fcn.140027070
movsxd rbx, eax
test r14b, r14b
jne 0x14008793e
lea rcx, [rsp + 0x20]
call fcn.14000838c
mov rcx, rdi
call fcn.14002726c
mov rcx, rdi
call fcn.140026e28
mov edx, 0x4000
mov ecx, eax
cmp ebp, 0xffffffff
je 0x1400237b6
mov edx, ebp
call fcn.140026c50
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret
mov rcx, rsi
call fcn.140055410
mov rcx, rsi
movsxd rbx, eax
call fcn.140055360
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140026fe0
mov rbx, rax
jmp 0x140023798
mov rcx, rsi
call fcn.140013224
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x14002378e

Function at 0x1400240b4
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400357e0
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.140012d0c
add rsp, 0x10020
pop rbx
ret
Function at 0x1400241f8
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 0x1400932ee
mov eax, dword [0x1400db8b8]
cmp eax, 0xffffffff
je 0x1400933f9
movsxd rcx, eax
mov rax, qword [0x1400db8a0]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x14002425a
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x140093308
cmp qword [rbx + 0x2d8], 0
jne 0x140093337
cmp edi, 8
jg 0x140093373
je 0x140024288
test edi, edi
je 0x14009335f
cmp edi, 1
je 0x140024288
mov edx, 6
cmp edi, 2
je 0x1400242db
cmp edi, 3
je 0x1400242d2
jle 0x1400242b3
cmp edi, 5
jg 0x1400242c8
cmp byte [rbx + 0x68], 0
jne 0x1400933f9
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x1400242af
mov rdx, rbp
call fcn.1400242e4
mov byte [rbx + 0x68], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, edx
je 0x140093346
jmp 0x1400242b3
mov byte [rbx + 0x68], 1
jmp 0x1400933da
mov byte [rbx + 0x68], 1
jmp 0x140093346
lea rcx, [0x1400db800]
mov rdx, r8
call fcn.1400193dc
mov dword [0x1400db8b8], eax
jmp 0x140024218
cmp byte [rbx + 0x2c4], 0
je 0x14002424c
mov r8d, dword [rbx + 0x2c0]
lea rcx, [0x1400db800]
mov rdx, rbx
call fcn.140080494
mov byte [rbx + 0x2c4], 0
jmp 0x14002424c
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_DrawMenuBar]
nop
jmp 0x14002425a
cmp byte [rbx + 0x68], 0
je 0x1400933f9
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x1400242b3
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x1400242b3
mov ecx, edi
sub ecx, 9
je 0x1400933da
sub ecx, 0x37
je 0x1400933c6
dec ecx
je 0x1400933c2
dec ecx
je 0x1400933af
dec ecx
jne 0x1400242b3
mov byte [rbx + 0x69], cl
xor ecx, ecx
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 0x1400242b3
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x1400242b3
xor edx, edx
jmp 0x1400933cb
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x1400242b3
cmp byte [rbx + 0x68], 0
je 0x1400933f9
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, rbp
call fcn.1400242e4
nop
jmp 0x1400242b3
xor eax, eax
jmp 0x1400242b8
Function at 0x1400242e4
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, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x14008707e
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 0x140087097
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400870b2
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 0x1400871dc
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 edx, eax
mov r8d, esi
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 0x1400871aa
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]
lea r8d, [rsi - 0x10]
xor r9d, r9d
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]
lea r8d, [rsi - 0x10]
xor r9d, r9d
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 0x1400871af
lea ebx, [rsi - 0xe]
jmp 0x1400871af
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 0x1400871e1
mov ebx, 2
mov eax, ebx
jmp 0x140024316

Function at 0x140025714
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14002557c
Function at 0x14003f64c
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 rsi, r9
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
call fcn.1400137ec
lea rcx, [rsp + 0x38]
call fcn.1400137ec
lea rcx, [rsp + 0x78]
call fcn.1400137ec
lea rdx, [0x1400c5e50]
lea rcx, [rsp + 0x58]
call fcn.140012d0c
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.1400040c0
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.1400040c0
lea rcx, [rsp + 0x38]
call fcn.140009e8c
test rdi, rdi
je 0x14003f709
cmp word [rdi], 0x5c
je 0x14003f709
cmp word [rdi + 2], 0x5c
je 0x14003f709
lea rdx, [0x1400c5e88]
lea rcx, [rsp + 0x38]
call fcn.140012d0c
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400040c0
test rsi, rsi
je 0x14003f76b
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.140024eb0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x64], r15d
call fcn.1400075d4
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.1400040c0
mov rax, qword [rsp + 0x78]
mov rdx, qword [rbp + 0x230]
lea rcx, [rbp - 0x68]
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 0x14003f82c
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 0x14003f82c
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x228]
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 0x14003f821
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x218], 0x1fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14003f814
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
mov rdx, r14
shr eax, 1
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.14000838c
lea rcx, [rsp + 0x38]
call fcn.14000838c
lea rcx, [rsp + 0x58]
call fcn.14000838c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040238
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x60]
xor r9d, r9d
mov rsi, r8
mov r8, qword [r8]
lea edx, [r9 + 3]
mov rbp, rcx
mov qword [rax - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
jne 0x1400402a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400402ab
mov ecx, dword [rdi]
call fcn.1400402e8
mov qword [rsi], rax
test rax, rax
je 0x1400402ab
mov r9d, dword [rdi]
lea edx, [rbx + 3]
mov r8, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400402ab
mov ebx, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140040984
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 r14, r8
mov qword [rax + 0x30], r10
mov eax, dword [rsp + 0xa0]
lea ebx, [r10 + 1]
mov r15, rdx
test bl, al
je 0x1400409c3
mov edi, ebx
jmp 0x1400409d0
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x140040a30
and qword [rsp + 0x80], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov rcx, rax
mov edx, 0xa
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 0x140040a96
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xb8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140040aa9
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 0x140040bf4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x140040c73
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]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

Function at 0x140040c88
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
movsx r9d, byte [rsp + 0x60]
and r9d, 2
mov r11, r8
mov rcx, rdx
or r9d, 4
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r8, r10
mov rdx, r11
shr r9d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
mov rbx, qword [rsp + 0x40]
test eax, eax
setne al
add rsp, 0x30
pop rdi
ret