joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039110
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov dil, r8b
mov rbx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r12d, r12d
test eax, eax
jne 0x140039158
xor eax, eax
jmp 0x140039299
lea r8, [rbp + 0x780]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.1400157ac
lea rcx, [rsp + 0x50]
call fcn.140014a44
mov rsi, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140039193
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140039193
mov word [rsp + rax*2 + 0x4e], r12w
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400391a7
test dil, dil
je 0x140039151
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400391e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140039151
xor edx, edx
lea rcx, [rbp + 0x160]
lea r8d, [rdx + 0x14]
call fcn.140014ac0
add si, si
lea rdx, [rsp + 0x50]
mov word [rbp + 0x16a], si
lea rcx, [rbp + 0x170]
add si, 2
mov r8d, 0x104
mov dword [rbp + 0x160], 0xa0000003
mov word [rbp + 0x16c], si
call fcn.1400154d8
movzx r11d, word [rbp + 0x16a]
mov qword [rsp + 0x38], r12
add r11w, 0xc
lea rax, [rbp + 0x9c8]
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], r12d
mov word [rbp + 0x164], r11w
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
test eax, eax
jne 0x14003928e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400391d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x1400393c0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x14009b778]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x230
pop rbx
ret

Function at 0x1400395d0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test eax, eax
je 0x1400395ee
cmp eax, r8d
jne 0x14003960a
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.140017674
and dword [rbx + 0x48c], 0
movsxd rdx, dword [rbx + 0x48c]
mov rax, qword [rbx + 0x480]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140039630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x140039663
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.140016a94
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140039670
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x488]
mov rax, qword [rcx + 0x478]
mov rbx, rcx
mov byte [r8 + rax], dl
mov edx, 1
mov r8d, 0x10000
add dword [rcx + 0x488], edx
cmp dword [rcx + 0x488], r8d
jne 0x1400396bc
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.140016a94
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400397a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x1400397d1
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140014710
jmp 0x1400397df
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140017674
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.1400176b0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400398b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400c2980], ecx
lea rdx, [0x1400c2984]
mov ecx, r8d
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x270
jl 0x1400398c6
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400c3354], r8d
ret

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

Disassembly:
test ecx, ecx
js 0x14003aa63
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14003aa58
cmp ecx, 0xf
jae 0x14003aa56
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003aa56
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400a08f8]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14003aa0e
jmp 0x14003aa5e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret
Function at 0x14003ac30
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 qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14003ad0e
lea rcx, [rsp + 0x20]
mov edx, pe_nt_image_headers64
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14003ad0e
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x14003ac9c
mov rax, r9
add rax, 8
inc ecx
cmp qword [rax], 0
jne 0x14003ac90
cmp ebx, ecx
jle 0x14003acb1
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140014a94
jmp 0x14003ad06
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140014710
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140015cb0
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.14003a050
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140014a94
mov rcx, rbx
call fcn.14001460c
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14003ad1d
lea rdx, [0x140097d60]
mov rcx, rdi
call fcn.140014a94
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x14003ad80
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.14003aa70
lea rcx, [rsp + 0x20]
call fcn.140014a44
xor esi, esi
mov ebx, 0x5c
test rax, rax
je 0x14003adc7
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x14003adc7
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003ae4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14003adf7
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14003adfc
mov al, 1
jmp 0x14003ae54
cmp eax, 3
jne 0x14003ae52
lea rcx, [rsp + 0x20]
call fcn.140013110
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.140016610
mov rcx, rdi
test rax, rax
jne 0x14003ae22
call fcn.14001460c
jmp 0x14003ae52
mov word [rax], si
call fcn.14003ad80
mov rcx, rdi
mov bl, al
call fcn.14001460c
test bl, bl
je 0x14003ae4a
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
jmp 0x14003ae54
test al, 0x10
jne 0x14003adf3
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 0x14003b200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b217
test al, 0x10
je 0x14003b217
mov al, 1
jmp 0x14003b219
xor al, al
add rsp, 0x28
ret
Function at 0x14003b220
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 0x14003b25d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14003b250
or eax, 0xffffffff
jmp 0x14003b25d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret

Function at 0x14003b290
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 qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor edi, edi
mov ebx, eax
test eax, eax
je 0x14003b497
mov rcx, rbx
call fcn.140014c1c
mov r8d, ebx
xor edx, edx
mov r9, rax
mov rcx, rsi
mov r13, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rbp
call fcn.140014a44
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140014c1c
lea r15, [0x140098abc]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140014a94
mov rdx, r15
mov rcx, rbp
call fcn.14001565c
test eax, eax
je 0x14003b3c6
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.140014a68
mov rdx, r15
mov rcx, rbp
call fcn.140015a28
test rax, rax
jne 0x14003b3bb
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14003b3a1
mov rax, qword [rsp + 0x40]
lea rdx, [rsi + 0x20]
mov r8d, 4
mov ebx, dword [rax]
mov ecx, ebx
call fcn.14003a630
shr rbx, 0x10
lea rdx, [rsi + 0x28]
mov rcx, rbx
mov r8d, 4
call fcn.14003a630
jmp 0x14003b3b0
lea rdx, str.04090000
mov rcx, rsi
call fcn.140014a68
mov rdx, r15
mov rcx, rsi
call fcn.140014a68
mov rdx, rbp
mov rcx, rsi
call fcn.140014a68
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140014fd0
test eax, eax
jne 0x14003b406
lea rdx, [rsi + 0x20]
lea r8d, [rax + 8]
mov rcx, r12
call fcn.1400154d8
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.14001460c
mov rcx, rsi
call fcn.14001460c
mov al, 1
jmp 0x14003b497
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14003b484
mov rdx, r15
mov rcx, rbp
call fcn.14001565c
test eax, eax
jne 0x14003b465
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.1400157ac
jmp 0x14003b481
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, r12
call fcn.1400154d8
mov word [r12 + 0x400], di
mov dil, 1
mov rcx, r13
call fcn.14001460c
mov rcx, rsi
call fcn.14001460c
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 0x14003b6d0
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xfb8]
mov eax, 0x1090
call fcn.1400243b0
sub rsp, rax
mov rdi, r8
mov r15, rcx
mov r14, rdx
lea r8, [rbp + 0xfd8]
lea rcx, [rbp + 0x790]
mov edx, 0x800
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x14003b82a
mov esi, dword [rbp + 0xfd8]
mov rcx, r15
mov byte [rdi], 0
shr esi, 2
call fcn.14003b670
xor r12d, r12d
mov r13d, eax
test esi, esi
je 0x14003b828
lea rbx, [rbp + 0x790]
cmp byte [rdi], 0
jne 0x14003b828
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rbp + 0xfd8]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov r8d, 8
mov qword [rsp + 0x30], rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x160]
mov r9d, 0x104
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x14003b80d
lea rax, [rbp + 0x370]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x580]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
call fcn.1400160bc
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x50]
call fcn.140014a68
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.140014fd0
test eax, eax
jne 0x14003b7fb
mov eax, dword [rbx]
mov dword [r14], eax
jmp 0x14003b80a
test r13d, r13d
je 0x14003b80d
mov ecx, dword [rbx]
cmp r13d, ecx
jne 0x14003b80d
mov dword [r14], ecx
mov byte [rdi], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r12d
add rbx, 4
cmp r12d, esi
jb 0x14003b74f
mov al, 1
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14003b850
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x7b8]
sub rsp, 0x8a0
mov r12, rdx
xor edx, edx
mov r13, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, r13
mov byte [rbx], 0
call fcn.14003b670
mov esi, eax
jmp 0x14003b932
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14003b93b
lea rax, [rbp + 0x380]
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x590]
lea rdx, [rbp + 0x7d0]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.1400160bc
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x170]
call fcn.140014a68
lea rcx, [rbp + 0x170]
mov rdx, r13
call fcn.140014fd0
test eax, eax
jne 0x14003b91f
mov eax, dword [rsp + 0x38]
mov dword [r12], eax
jmp 0x14003b92f
test esi, esi
je 0x14003b932
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x14003b932
mov dword [r12], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x14003b8b1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x8a0]
mov al, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret

Function at 0x14003b970
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 0x14003b9f2
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 0x14003be70
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, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x14003bea3
mov eax, 1
jmp 0x14003c008
xor ebx, ebx
test rax, rax
jne 0x14003bebc
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 0x14003bed7
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 0x14003c001
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]
test eax, eax
jne 0x14003bfcf
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 0x14003bfd4
lea ebx, [rsi - 0xe]
jmp 0x14003bfd4
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 0x14003c006
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 0x14003c060
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x14003c0e8
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, ecx
movaps xmmword [rsp + 0x20], xmm7
test ecx, ecx
je 0x14003c0d3
cmp ebx, 0xf
jae 0x14003c0d1
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003c0d1
pxor xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x58]
pxor xmm6, xmm6
sub r11, qword [rsp + 0x60]
cvtsi2sd xmm6, r11
call fcn.1400106d0
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14003c09a
jmp 0x14003c0d9
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 0x14003c0f0
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 0x14003c11f
cmp byte [rcx + 9], dl
je 0x14003c219
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x14003c1d0
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 [0x1400c5cb8], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x14003c1a9
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400c5cb8]
mov dword [0x1400c5cb4], eax
cmp ecx, eax
je 0x14003c197
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400c5cb4]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x14003c219
test r12d, r12d
jne 0x14003c219
test ebp, ebp
jne 0x14003c219
mov eax, dword [0x1400c5cb8]
cmp ebx, eax
jne 0x14003c219
cmp eax, dword [0x1400c5cb4]
jne 0x14003c219
and qword [rsi + 0x28], 0
jmp 0x14003c219
test rdi, rdi
je 0x14003c204
mov edx, dword [0x1400c5cb4]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c5cb8]
mov edx, dword [0x1400c5cb4]
cmp r11d, edx
je 0x14003c20b
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c5cb8]
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 0x14003c2b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
mov ecx, dword [rcx + 4]
lea edx, [rax + 2]
cmovne eax, edx
cmp ecx, eax
jge 0x14003c2c5
mov ecx, eax
jmp fcn.14003c060
Function at 0x14003c2d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
mov ecx, dword [rcx]
lea edx, [rax + 2]
cmovne eax, edx
cmp ecx, eax
jge 0x14003c2e4
mov ecx, eax
jmp fcn.14003c060

Function at 0x14003c2f0
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, 0x20
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 0x14003c371
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov dl, sil
mov r8d, eax
mov rcx, r12
call fcn.14003c240
mov rcx, r12
call fcn.14003c2b0
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, 2
mov dl, sil
mov r8d, eax
mov rcx, r12
call fcn.14003c240
mov rcx, r12
call fcn.14003c2d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov al, dil
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14003e100
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dl, 1
jne 0x14003e156
lea rax, [rsp + 0x60]
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 0x14003e173
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 0x14003e169
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 0x14003ea10
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
xor r9d, r9d
mov rdi, r8
mov qword [rax - 0x18], r8
mov r8, qword [rdx]
mov rsi, rdx
lea edx, [r9 + 3]
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
jne 0x14003ea7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003ea81
mov ecx, dword [rdi]
call fcn.14003e8f0
mov qword [rsi], rax
test rax, rax
je 0x14003ea81
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 0x14003ea81
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