joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400407d0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, SafeArrayCreateEx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
cmp eax, ebx
jne 0x14004080e
xor eax, eax
jmp 0x1400408ac
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
mov ebp, 1
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x140040807
cmp edi, 0x20
je 0x1400408a1
cmp edi, 0x40
je 0x1400408a3
test dil, 0xb
jne 0x140040878
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1400408ac
test dil, 0x14
mov r9d, ebx
mov dword [rsp + 0x28], esi
cmovne r9d, ebp
test dil, 2
cmovne ebx, ebp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x1400408ac
mov ebx, ebp
xor edx, edx
mov ecx, ebx
call sub.KERNEL32.dll_SetSystemPowerState
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400408d0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x1400409a9
lea rcx, [rsp + 0x20]
mov edx, 0x100
call sub.WSOCK32.dll_gethostname
lea rcx, [rsp + 0x20]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x1400409a9
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x140040939
mov rax, r9
add rax, 8
inc ecx
cmp qword [rax], 0
jne 0x14004092d
cmp ebx, ecx
jle 0x14004094e
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140016e4c
jmp 0x1400409a2
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140016710
mov ecx, dword [rsp + 0x2e0]
call sub.WSOCK32.dll_inet_ntoa
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140017e10
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.14003fb00
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140016e4c
mov rcx, rbx
call fcn.140016a60
call sub.WSOCK32.dll_WSACleanup
jmp 0x1400409b8
lea rdx, [0x14009b6c0]
mov rcx, rdi
call fcn.140016e4c
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret
Function at 0x140040a20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140040620
lea rcx, [rsp + 0x20]
call fcn.140016a44
xor esi, esi
mov ebx, 0x5c
cmp rax, rsi
je 0x140040a67
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x140040a67
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140040aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140040a97
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x140040a9c
mov al, 1
jmp 0x140040af5
cmp eax, 3
jne 0x140040af3
lea rcx, [rsp + 0x20]
call fcn.140015220
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.1400187d0
mov rcx, rdi
cmp rax, rsi
jne 0x140040ac2
call fcn.140016a60
jmp 0x140040af3
mov word [rax], si
call fcn.140040a20
mov rcx, rdi
mov bl, al
call fcn.140016a60
cmp bl, sil
je 0x140040aeb
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
setne bl
mov al, bl
jmp 0x140040af5
test al, 0x10
jne 0x140040a93
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140040ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140040ed7
test al, 0x10
je 0x140040ed7
mov al, 1
jmp 0x140040ed9
xor al, al
add rsp, 0x28
ret

Function at 0x140040ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140040f1d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140040f10
or eax, 0xffffffff
jmp 0x140040f1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x140040f50
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r12, rdx
lea rdx, [rsp + 0x30]
mov rbp, r8
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor edi, edi
mov ebx, eax
cmp eax, edi
jne 0x140040f88
xor al, al
jmp 0x140041156
mov rcx, rbx
call fcn.140016ed8
mov r8d, ebx
xor edx, edx
mov r9, rax
mov rcx, rsi
mov r13, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rbp
call fcn.140016a44
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140016ed8
lea r15, [0x14009bd8c]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140016e4c
mov rdx, r15
mov rcx, rbp
call fcn.140017790
cmp eax, edi
je 0x140041084
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.140016e20
mov rdx, r15
mov rcx, rbp
call fcn.140017b80
cmp rax, rdi
jne 0x140041079
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x14004105f
mov rax, qword [rsp + 0x40]
lea rdx, [rsi + 0x20]
mov r8d, 4
mov ebx, dword [rax]
mov ecx, ebx
call fcn.140040110
shr ebx, 0x10
lea rdx, [rsi + 0x28]
mov ecx, ebx
mov r8d, 4
call fcn.140040110
jmp 0x14004106e
lea rdx, str.04090000
mov rcx, rsi
call fcn.140016e20
mov rdx, r15
mov rcx, rsi
call fcn.140016e20
mov rdx, rbp
mov rcx, rsi
call fcn.140016e20
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140016d8c
cmp eax, edi
jne 0x1400410c6
lea rdx, [rsi + 0x20]
mov r8d, 8
mov rcx, r12
call fcn.14001760c
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.140016a60
mov rcx, rsi
call fcn.140016a60
mov al, 1
jmp 0x140041156
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x140041143
mov rdx, r15
mov rcx, rbp
call fcn.140017790
cmp eax, edi
jne 0x140041124
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r12
shr r8d, 0x10
call fcn.1400178dc
jmp 0x140041140
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, r12
call fcn.14001760c
mov word [r12 + 0x400], di
mov dil, 1
mov rcx, r13
call fcn.140016a60
mov rcx, rsi
call fcn.140016a60
mov al, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140041390
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1080
call fcn.140030cb0
sub rsp, rax
mov rdi, r8
mov r14, rcx
mov r13, rdx
lea r8, [rsp + 0x10c8]
lea rcx, [rsp + 0x880]
mov edx, 0x800
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1400414e3
mov esi, dword [rsp + 0x10c8]
mov rcx, r14
mov byte [rdi], 0
shr esi, 2
call fcn.140041330
xor ebp, ebp
mov r12d, eax
test esi, esi
je 0x1400414e1
lea rbx, [rsp + 0x880]
cmp byte [rdi], 0
jne 0x1400414e1
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x10c8]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, 8
mov r15, rax
call sub.PSAPI.DLL_EnumProcessModules
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x460]
mov r9d, 0x104
mov rcx, r15
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x1400414ca
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x460]
mov qword [rsp + 0x20], rax
call fcn.14001823c
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.140016e20
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140016d8c
test eax, eax
jne 0x1400414b7
mov eax, dword [rbx]
mov dword [r13], eax
jmp 0x1400414c7
test r12d, r12d
je 0x1400414ca
mov ecx, dword [rbx]
cmp r12d, ecx
jne 0x1400414ca
mov dword [r13], ecx
mov byte [rdi], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add rbx, 4
cmp ebp, esi
jb 0x14004140a
mov al, 1
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140041510
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x8a0
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, r12
mov byte [rbx], 0
call fcn.140041330
mov esi, eax
jmp 0x1400415e7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1400415f0
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8d0]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.14001823c
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140016e20
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140016d8c
test eax, eax
jne 0x1400415d5
mov eax, dword [rsp + 0x38]
mov dword [rbp], eax
jmp 0x1400415e4
test esi, esi
je 0x1400415e7
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x1400415e7
mov dword [rbp], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x140041562
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x8a0]
mov al, 1
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140041620
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea r11, [rsp + 0x60]
mov qword [rsp + 0x30], r11
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400416a2
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x140041bd0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140041c03
mov eax, 1
jmp 0x140041d68
xor ebx, ebx
cmp rax, rbx
jne 0x140041c1c
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]
cmp eax, ebx
je 0x140041c37
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x140041d61
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 r12d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r12d
mov edx, eax
mov r8d, esi
mov r13d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x140041d2f
xor edx, edx
lea esi, [rdx + 0x12]
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]
cmp eax, ebx
je 0x140041d34
lea ebx, [rsi - 0xe]
jmp 0x140041d34
mov ebx, 3
xor r8d, r8d
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x140041d66
mov ebx, 2
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140041dc0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test edx, edx
js 0x140041e4c
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, edx
movaps xmmword [rsp + 0x20], xmm7
test edx, edx
jne 0x140041de1
xor ecx, ecx
jmp 0x140041e37
cmp ebx, 0xf
jae 0x140041e35
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140041e35
pxor xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x60]
pxor xmm6, xmm6
sub r11, qword [rsp + 0x68]
cvtsi2sd xmm6, r11
call fcn.1400126e0
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x140041dfe
jmp 0x140041e3d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x140041e50
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x140041e7f
cmp byte [rcx + 9], dl
je 0x140041f79
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x140041f30
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r12 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400c8838], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x140041f09
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400c8838]
mov dword [0x1400c8834], eax
cmp ecx, eax
je 0x140041ef7
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400c8834]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x140041f79
test r12d, r12d
jne 0x140041f79
test ebp, ebp
jne 0x140041f79
mov eax, dword [0x1400c8838]
cmp ebx, eax
jne 0x140041f79
cmp eax, dword [0x1400c8834]
jne 0x140041f79
and qword [rsi + 0x28], 0
jmp 0x140041f79
test rdi, rdi
je 0x140041f64
mov edx, dword [0x1400c8834]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c8838]
mov edx, dword [0x1400c8834]
cmp r11d, edx
je 0x140041f6b
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c8838]
xor r8d, r8d
mov edx, r11d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140042010
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx + 4]
cmp edx, eax
jge 0x140042025
mov edx, eax
jmp fcn.140041dc0
Function at 0x140042030
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
cmp dword [rcx], eax
mov edx, eax
jl 0x140042044
mov edx, dword [rcx]
jmp fcn.140041dc0

Function at 0x140042050
Capabilities:
Log keystrokes
Log keystrokes via polling

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 r12
sub rsp, 0x30
movzx esi, dl
mov r12, rcx
mov bl, r8b
mov ecx, esi
mov ebp, esi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and dil, 1
cmp bl, dil
je 0x1400420dd
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov dl, sil
mov rcx, r12
mov r8d, eax
call fcn.140041fa0
mov rcx, r12
call fcn.140042010
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
and qword [rsp + 0x20], 0
mov r9d, 2
mov dl, sil
mov rcx, r12
mov r8d, eax
call fcn.140041fa0
mov rcx, r12
call fcn.140042030
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x1400433d0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rcx, rdx
cmp r8b, 1
jne 0x14004342a
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x140043447
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004343d
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret

Function at 0x140043c70
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 + 0x68]
mov rsi, r9
mov rbp, rdx
mov r8, qword [rsi]
xor r9d, r9d
mov rcx, rbp
lea edx, [r9 + 3]
mov qword [rax - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
cmp eax, ebx
jne 0x140043ce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140043ce6
mov ecx, dword [rdi]
call fcn.140043b50
mov qword [rsi], rax
cmp rax, rbx
je 0x140043ce6
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]
cmp eax, ebx
je 0x140043ce6
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 0x140043d50
Capabilities:
Create thread

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 r12
sub rsp, 0x40
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rbp, r9
mov r12, r8
mov rdi, rdx
call fcn.140043bb0
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 dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rax
mov r9, rsi
mov r8, rbx
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 [rbp]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsi + 0x10]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r11, qword [r12]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140043d00]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], r11
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140043e30
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]
cmp eax, ebx
mov rbx, qword [rsp + 0x40]
setne al
add rsp, 0x30
pop rdi
ret
Function at 0x140044080
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x70
xor r10d, r10d
mov rbp, r9
mov r12, r8
mov qword [rax - 0x20], r10
mov eax, dword [rsp + 0xb0]
lea ebx, [r10 + 1]
mov r13, rdx
test bl, al
je 0x1400440bb
mov edi, ebx
jmp 0x1400440c8
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x140044116
and qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004417c
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xc8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004418c
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x70]
mov al, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret