joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400116d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rax, qword [rcx + 0x6d8]
mov r9, qword [rcx + 0x6e0]
xor ebp, ebp
mov eax, dword [rax + 0x98]
lea esi, [rbp + 1]
mov r13d, r8d
mov dword [r9 + 0x3c0], eax
mov rbx, qword [rcx + 0x6e0]
mov r14, rdx
mov eax, dword [rbx + 0x3c0]
and dword [rbx + 0x5c], ebp
cmp eax, esi
jne 0x140011725
and dword [rbx + 0x58], ebp
jmp 0x140011741
cmp eax, 2
je 0x14001173e
cmp r8d, 4
mov dword [rbx + 0x58], esi
jne 0x140011736
mov dword [rbx + 0x5c], esi
cmp eax, 3
jne 0x140011741
mov dword [rbx + 0x5c], esi
mov dword [rbx + 0x58], esi
mov rcx, rbx
call fcn.140009894
cmp word [r14], bp
je 0x14001175b
xor edx, edx
mov rcx, r14
call fcn.14000661c
jmp 0x140011766
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140011871
cmp dword [rbx + 0x58], ebp
je 0x1400117b9
and qword [rsp + 0x20], rbp
cmp dword [rbx + 0x5c], ebp
mov rcx, rax
je 0x14001179d
and dword [rsp + 0x60], ebp
lea r9, [rsp + 0x60]
mov r8d, 3
lea rdx, [0x140020e60]
jmp 0x1400117b3
and dword [rsp + 0x68], ebp
lea r9, [rsp + 0x68]
mov r8d, 2
lea rdx, [0x140020e64]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x7f02
xor ecx, ecx
mov ebp, esi
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
mov qword [0x140025850], rax
call fcn.14000c6c4
xor esi, esi
cmp dword [rbx + 0x78], esi
jle 0x140011844
mov edx, esi
mov rcx, rbx
call fcn.1400093ac
mov rcx, rbx
mov r12, rax
mov rax, qword [rbx]
mov rdx, r12
call qword [rax + 0x60]
test eax, eax
je 0x140011823
mov rax, qword [rbx]
mov r9d, r13d
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x108]
test eax, eax
je 0x14001182c
add esi, ebp
cmp esi, dword [rbx + 0x78]
jge 0x140011844
jmp 0x1400117ed
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x140011844
mov edx, eax
xor ecx, ecx
call fcn.14000668c
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call fcn.14000c660
cmp word [r14], 0
je 0x140011862
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140025850]
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x14001187a
xor edx, edx
xor ecx, ecx
call fcn.14000668c
mov rbx, qword [rsp + 0x70]
mov eax, ebp
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400118dc
Capabilities:
Open clipboard

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x820
mov rbx, qword [rcx + 0x6e0]
mov rdi, rcx
lea r8, [rax + 0x10]
cmp dword [rbx + 0x3c4], 0
mov rcx, qword [rbx + 0x350]
lea rdx, [rax + 8]
je 0x140011920
call fcn.140005a10
test eax, eax
je 0x140011925
movsxd rcx, dword [rsp + 0x830]
jmp 0x14001192d
call fcn.140005a10
mov rcx, qword [rsp + 0x838]
test eax, eax
je 0x140011985
mov edx, ecx
mov rcx, rbx
call fcn.1400093ac
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x7fe
mov rbx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x6e0]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.140004d14
mov rcx, qword [rdi + 0x210]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140011985
lea rcx, [rsp + 0x20]
call fcn.14000688c
mov rbx, qword [rsp + 0x840]
add rsp, 0x820
pop rdi
ret
Function at 0x1400178d4
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x140027060], 0
jne 0x140017a3a
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
mov qword [0x140027060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtLoadDriver
mov qword [0x140027000], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtUnloadDriver
mov qword [0x140027008], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtOpenSymbolicLinkObject
mov qword [0x140027010], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtQuerySymbolicLinkObject
mov qword [0x140027018], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtQueryObject
mov qword [0x140027020], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtOpenThread
mov qword [0x140027028], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtClose
mov qword [0x140027030], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtQueryInformationThread
mov qword [0x140027038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtSuspendThread
mov qword [0x140027040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtResumeThread
mov qword [0x140027048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027060]
lea rdx, str.NtTerminateThread
mov qword [0x140027050], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027058], rax
lea rax, [0x140027000]
add rsp, 0x28
ret

Function at 0x140017a48
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14002693c], 0
jne 0x140017b16
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x140017b16
lea rdx, [0x140021cb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026000], rax
je 0x140017b16
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025ff0], rax
je 0x140017b16
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025fe8], rax
je 0x140017b16
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025dc8], rax
je 0x140017b16
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14002693c]
mov edx, 1
test rax, rax
mov qword [0x140025fe0], rax
cmovne ecx, edx
mov dword [0x14002693c], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140017b1c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140026940], 0
jne 0x140017bfe
lea rcx, str.psapi.dll
call fcn.140007690
test rax, rax
mov rbx, rax
je 0x140017bfe
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026018], rax
je 0x140017beb
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026008], rax
je 0x140017beb
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025ff8], rax
je 0x140017beb
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026250], rax
je 0x140017beb
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140026940]
mov edx, 1
test rax, rax
mov qword [0x140026010], rax
cmovne ecx, edx
mov dword [0x140026940], ecx
jmp 0x140017bf1
mov ecx, dword [0x140026940]
test ecx, ecx
jne 0x140017bfe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret
Function at 0x1400180b8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x6c0
mov rdi, rcx
mov rcx, qword [rcx + 0x48]
xor r12d, r12d
cmp rcx, r12
je 0x1400180e1
call sub.msvcrt.dll_free
xor edx, edx
mov qword [rdi + 0x48], r12
mov dword [rdi + 0x58], r12d
lea ecx, [rdx + 2]
mov dword [rdi + 0x50], r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x484]
xor edx, edx
mov r8d, 0x234
mov rbp, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x480]
mov rcx, rbp
mov dword [rsp + 0x480], 0x238
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1400182f6
mov r8d, dword [rsp + 0x488]
mov eax, dword [rsp + 0x4a0]
xor edx, edx
mov ecx, 0x410
mov word [rsp + 0x34], r12w
mov dword [rsp + 0x244], r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x240], eax
mov dword [rsp + 0x248], r12d
mov dword [rsp + 0x24c], r12d
mov dword [rsp + 0x250], r12d
mov dword [rsp + 0x254], r12d
mov dword [rsp + 0x258], r12d
mov dword [rsp + 0x25c], r12d
mov dword [rsp + 0x260], r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
jne 0x1400181d2
call fcn.140006c7c
cmp dword [rax + 4], 5
jbe 0x1400182e8
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
je 0x1400182e8
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x270], r12w
call sub.msvcrt.dll_memset
mov rcx, rdi
call fcn.140018504
mov r11, qword [rdi + 0x20]
cmp r11, r12
je 0x140018217
lea r8, [rsp + 0x270]
mov r9d, 0x104
xor edx, edx
mov rcx, rbx
call r11
cmp word [rsp + 0x270], r12w
jne 0x14001828e
cmp dword [0x140027954], r12d
mov dword [rsp + 0x6e0], 0x104
jne 0x14001826b
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, r12
je 0x14001826b
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
mov dword [0x140027954], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027958], rax
jmp 0x140018272
mov rax, qword [0x140027958]
cmp rax, r12
je 0x14001828e
lea r9, [rsp + 0x6e0]
lea r8, [rsp + 0x270]
xor edx, edx
mov rcx, rbx
call rax
cmp word [rsp + 0x272], 0x3a
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x34]
jne 0x1400182ad
call fcn.14001e8ea
jmp 0x1400182b2
call fcn.140017c04
lea rax, [rsp + 0x25c]
lea r9, [rsp + 0x254]
lea r8, [rsp + 0x24c]
lea rdx, [rsp + 0x244]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140017fc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x48]
call fcn.1400185c8
lea rdx, [rsp + 0x480]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
cmp eax, r12d
jne 0x14001812f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140018504
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140018586
lea rcx, str.psapi.dll
call fcn.140007690
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModules
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleFileNameExW
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcesses
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleInformation
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret

Function at 0x1400191dc
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rsi
push rdi
mov eax, 0x20030
call fcn.14001eca0
sub rsp, rax
test ecx, ecx
mov r10, r9
mov rdi, r8
mov rsi, rdx
je 0x140019266
cmp qword [rsp + 0x20060], 0
je 0x140019248
mov rcx, qword [rsp + 0x20060]
mov dx, 0x22
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140019248
mov r9, qword [rsp + 0x20060]
and word [rsp + 0x30], 0
lea r8, str.__s_
lea rcx, [rsp + 0x30]
mov edx, 0xfffe
call sub.msvcrt.dll__snwprintf
lea r8, [rsp + 0x30]
jmp 0x140019250
mov r8, qword [rsp + 0x20060]
mov r9, qword [rsp + 0x20070]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140019295
mov rax, qword [rsp + 0x20070]
mov r9, qword [rsp + 0x20060]
mov r8, r10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20068]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rsi, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret

Function at 0x1400192a8
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4040
call fcn.14001eca0
sub rsp, rax
mov rsi, rdx
xor edx, edx
mov rdi, r8
test ecx, ecx
mov rbx, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
je 0x14001931c
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4070]
and word [rsp + 0x30], 0
mov edx, dword [r11]
test edx, edx
je 0x1400192ff
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140007270
mov r9, qword [rsp + 0x4078]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
jmp 0x140019382
and word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4078]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
lea r8, [0x14001f9c8]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
lea rcx, [rsp + 0x30]
test eax, eax
setne dil
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x140019382
mov rdx, qword [rsp + 0x4070]
lea rcx, [rsp + 0x30]
mov r9d, eax
mov r8, rbx
call fcn.140007328
lea r11, [rsp + 0x4040]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001939c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x220
test ecx, ecx
mov eax, r9d
mov rdi, r8
mov rsi, rdx
je 0x140019408
mov rax, qword [rsp + 0x250]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
mov ebx, dword [rax]
xor edx, edx
mov r8d, 0x1fc
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov ecx, ebx
call sub.msvcrt.dll__itow
mov r9, qword [rsp + 0x258]
mov rdx, rdi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140019429
mov r9, qword [rsp + 0x258]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x250]
mov dword [rcx], eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140019440
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea eax, [r9 + r9]
mov rbx, r8
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], eax
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019488
cmp dword [rsp + 0x68], 2
jb 0x140019484
mov ecx, dword [rsp + 0x68]
shr rcx, 1
and word [rbx + rcx*2], ax
jmp 0x140019488
and word [rbx], 0
add rsp, 0x40
pop rbx
ret

Function at 0x140019a58
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
mov rdx, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
lea rcx, [0x1400199c0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rdi], rbx
je 0x140019a98
cmp qword [rdi + 8], rbx
je 0x140019a98
cmp qword [rdi + 0x10], rbx
je 0x140019a98
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019aa8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x500
mov rsi, rcx
mov ebx, 0x208
lea rcx, [rsp + 0xe2]
xor ebp, ebp
xor edx, edx
mov r8, rbx
mov word [rsp + 0xe0], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2f2]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x2f0], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xe0]
call fcn.140006d08
lea rcx, str.regedit.exe
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0xe0]
mov rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 1]
cmp rcx, 0x104
jae 0x140019b4a
lea r8, [rsp + 0x2f0]
lea rdx, str.regedit.exe
lea rcx, [rsp + 0xe0]
call fcn.140006cac
jmp 0x140019b52
mov word [rsp + 0x2f0], bp
xor eax, eax
lea rcx, [rsp + 0x78]
xor edx, edx
lea r8d, [rax + 0x60]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call sub.msvcrt.dll_memset
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], 5
mov qword [rsp + 0x530], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32
mov dword [rsp + 0x528], ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbp
je 0x140019bd7
lea rdx, [rsp + 0x528]
mov rcx, rbx
call rax
cmp dword [rsp + 0x528], ebp
je 0x140019c0c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64DisableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbp
je 0x140019c0c
lea rcx, [rsp + 0x530]
call rax
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x2f0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32
mov rbx, rax
mov dword [rsp + 0x528], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbp
je 0x140019c89
lea rdx, [rsp + 0x528]
mov rcx, rbx
call rax
cmp dword [rsp + 0x528], ebp
je 0x140019cc1
mov rbx, qword [rsp + 0x530]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbp
je 0x140019cc1
mov rcx, rbx
call rax
cmp edi, ebp
je 0x140019ce6
mov ebx, ebp
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140019a58
cmp eax, ebp
jne 0x140019ce6
add ebx, 1
cmp ebx, 0x64
jl 0x140019cc7
mov eax, edi
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a01c
Capabilities:
Log keystrokes
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call fcn.140006c7c
cmp dword [rax + 4], 5
jbe 0x14001a057
lea rdx, str.RunAsInvoker
lea rcx, str.__COMPAT_LAYER
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140019a58
cmp eax, edi
jne 0x14001a06b
mov rcx, rbx
call fcn.140019aa8
mov rcx, rbx
call fcn.140019a58
cmp eax, edi
je 0x14001a12b
mov rcx, qword [rbx]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x14001a09d
mov rcx, qword [rbx]
mov edx, 9
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rdx, rsi
mov rcx, rbx
call fcn.140019e94
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx], rdi
je 0x14001a0e3
cmp qword [rbx + 8], rdi
je 0x14001a0e3
mov rdx, qword [rbx + 0x10]
cmp rdx, rdi
je 0x14001a0e3
lea r8, [0x14001f9c8]
or r9d, 0xffffffff
mov rcx, rbx
call fcn.140019d60
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rbx
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 1
mov ecx, esi
mov edx, eax
mov ebp, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp eax, edi
je 0x14001a126
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, 1
call fcn.140006c7c
cmp dword [rax + 4], 5
jbe 0x14001a145
lea rcx, str.__COMPAT_LAYER
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14001a238
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
xor ebx, ebx
mov rdi, rcx
cmp qword [0x140026950], rbx
jne 0x14001a284
lea rcx, str.shell32.dll
call fcn.140007690
cmp rax, rbx
mov qword [0x140026950], rax
je 0x14001a284
lea rdx, str.SHGetSpecialFolderPathW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140026948], rax
jmp 0x14001a28b
mov rax, qword [0x140026948]
cmp rax, rbx
je 0x14001a2ac
call fcn.140006c7c
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x10]
xor ecx, ecx
call qword [0x140026948]
jmp 0x14001a342
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x2a0]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x14001a32d
lea rdx, str.Desktop
lea rcx, [rsp + 0x30]
call fcn.14001e8ea
mov rcx, qword [rsp + 0x2a0]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r9d, 0x104
call fcn.140019440
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14001e8ea
cmp word [rdi], bx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret