joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a3f0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x40
call fcn.18004f270
sub rsp, rax
mov rsi, qword [rdx]
lea r14, [rcx + 0x60]
mov rbx, rdx
mov edx, dword [r14]
mov rdi, rcx
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.1800047f0
test rax, rax
je 0x18000a473
mov rax, qword [rax]
test rax, rax
je 0x18000a473
mov rax, qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x18000a461
cmp byte [rbx + 0x1c], 0
je 0x18000a461
mov edx, 1
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor edx, edx
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [rdi + 0xe8]
mov rcx, qword [rdi + 0xf8]
lea r8, [rsp + 0x28]
xor r9d, r9d
call fcn.1800047f0
test rax, rax
je 0x18000a495
mov rax, qword [rax]
mov rdi, qword [rax + 0x10]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x38]
mov rdx, qword [rdi + 8]
call qword [0x1800e7088]
cmp eax, 0x1f4
je 0x18000a60e
test eax, eax
je 0x18000a4cd
mov ecx, eax
call fcn.180004400
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x18
call fcn.18000cd00
test rax, rax
je 0x18000a61b
mov edx, dword [rbx + 0x18]
mov r9, qword [rsp + 0x38]
movzx r8d, byte [rbx + 0x1c]
mov dword [rax], edx
lea rdx, [rsp + 0x28]
mov rcx, r14
mov byte [rax + 4], r8b
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
call fcn.18000add0
mov ecx, dword [rdi + 0x60]
test ecx, ecx
jne 0x18000a530
lea edx, [rcx + 1]
lea rcx, [rdi + 0x60]
call fcn.18000b880
mov ecx, dword [rdi + 0x60]
test ecx, ecx
je 0x18000a61b
mov r8, qword [rdi + 0x70]
test ecx, ecx
jne 0x18000a543
mov ebp, dword [rsp + 0x20]
xor ebx, ebx
jmp 0x18000a5d2
movzx eax, byte [rsp + 0x21]
movzx ebp, sil
xor edx, edx
xor ebp, 0x811c9dc5
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x22]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x23]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x24]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x25]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x26]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x27]
imul ebp, ebp, 0x1000193
xor ebp, eax
imul ebp, ebp, 0x1000193
mov eax, ebp
div ecx
mov rax, qword [r8 + rdx*8]
lea rbx, [r8 + rdx*8]
test rax, rax
je 0x18000a5d2
cmp qword [rax + 8], rsi
je 0x18000a5d2
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x18000a5c1
cmp qword [rbx], 0
jne 0x18000a60e
mov ecx, 0x18
call fcn.18000cd00
test rax, rax
je 0x18000a5f5
mov qword [rax], 0
mov qword [rax + 8], rsi
mov dword [rax + 0x10], ebp
mov qword [rbx], rax
test rax, rax
je 0x18000a61b
inc qword [rdi + 0x68]
mov rdx, qword [rdi + 0x68]
lea rcx, [rdi + 0x60]
call fcn.18000b880
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 2
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000ce50
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.18004f270
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18000ce90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18004f270
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18000ceb0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18004f270
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret
Function at 0x18000ef40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.18004f270
sub rsp, rax
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x18000f004
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], si
jne 0x18000ef80
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18000f007
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x18000efcb
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], di
jne 0x18000efd0
test rax, rax
je 0x18000f004
mov rdx, rdi
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x18000eff5
cmp rdx, rax
jb 0x18000efe1
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180010e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov eax, 0x30
call fcn.18004f270
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x18001103a
xor edx, edx
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], dx
jne 0x180010e40
test rax, rax
je 0x180010e74
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x18001103a
cmp r8w, 0x2f
je 0x18001103a
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x180010e50
mov rcx, rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call fcn.180011060
mov rsi, rax
test rax, rax
je 0x180010f65
mov qword [rsp + 0x50], r14
call fcn.180011840
mov r14, rax
test rax, rax
je 0x180010f52
mov rcx, rsi
call fcn.18000ed60
test eax, eax
je 0x180010f3b
lea rax, str.system32_
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x180010ee7
mov r8, rbx
mov rcx, rsi
call fcn.18005d768
test eax, eax
je 0x180010f0f
lea rax, [rsp + 0x30]
add rdi, 8
cmp rdi, rax
jb 0x180010ee0
jmp 0x180010f1e
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.180010810
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x180010f49
mov rcx, rsi
call fcn.18000ed00
test eax, eax
je 0x180010f49
mov rbp, rsi
xor esi, esi
jmp 0x180010f49
mov rdx, rsi
mov rcx, r14
call fcn.180010810
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x180011006
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x18001100f
mov rcx, rbx
call fcn.18000ebd0
mov rdi, rax
test rax, rax
je 0x18001100f
mov ecx, 0x37e4
call fcn.180010350
test eax, eax
je 0x180010fa4
lea rcx, [0x1800a7df8]
call fcn.180011570
jmp 0x180010fa9
call fcn.180011840
mov rbx, rax
test rax, rax
je 0x180010ffd
mov rdx, rdi
mov rcx, rax
call fcn.180010810
mov rbp, rax
test rax, rax
je 0x180010ff4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180010fd6
test al, 0x50
je 0x180010ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180010fe9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x18001100f
xor ecx, ecx
jmp 0x18001101c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180011022
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x180011840
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.18004f270
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800118ab
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1800118a0
cmp edi, eax
jb 0x1800118a0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800128d0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1800d6058]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor eax, eax
mov dword [rsp + 0x20], 0x6a09e667
mov rbx, rcx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea r8, [r8*8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov qword [rsp + 0x3c], 0x5be0cd19
call fcn.180012990
mov r9b, 1
lea rcx, [rsp + 0x20]
mov r8b, 0x81
mov rdx, rbx
call fcn.180012670
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18004e520
add rsp, 0xb0
pop rbx
ret

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

Disassembly:
sub rsp, 0x48
test ecx, ecx
jle 0x18002fbe4
mov qword [rsp + 0x40], rbx
movsxd rbx, ecx
cmp ecx, 0x64
jle 0x18002fb74
imul rax, rbx, 0xfffffffffffffff6
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x58], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
xor r9d, r9d
lea rdx, [rsp + 0x58]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
lea rcx, [rsp + 0x68]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x18009a9c0]
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x60]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x68]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jl 0x18002fb97
movaps xmm6, xmmword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x1800583cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1800582a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800582a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800582a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800582a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800582a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800582a3
cmp dword [rcx + 0xf8], 0
je 0x1800582a3
mov ecx, ebx
call fcn.180058344
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180058120
cmp dword [rbp + 0x20], 0
je 0x1800582f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800582f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x18005823c
Function at 0x1800717fc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18007180f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180071e1c
lea rdx, [0x1800d3908]
lea rcx, [rsp + 0x20]
call fcn.1800525a4
int3

Function at 0x18007c108
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800ea4a0]
xor edx, edx
jmp fcn.1800717fc

Function at 0x18007caac
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800ea4a0]
jmp fcn.1800717fc

Function at 0x180088798
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180088854]
mov r9, qword [r9 + 8]
jmp fcn.180079aa0

Function at 0x18008882c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180088864]
mov r9, qword [r9 + 8]
jmp fcn.180079aa0
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x140022e40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400eb]
call fcn.140011b72
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140022e97
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140022fa3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140022f3c
cmp qword [rbp + 0x28], 0
jle 0x140022f3c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140022edc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011ae1
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140022f92
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140022f92
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011659
Capabilities:
Terminate process

Disassembly:
jmp 0x140026700
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400117ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140025ac0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140025ae0
xor al, al
jmp 0x140025b61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140025af3
xor al, al
jmp 0x140025b61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140025b1d
xor al, al
jmp 0x140025b61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140025b31
xor al, al
jmp 0x140025b61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140025b43
xor al, al
jmp 0x140025b61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140025b5f
xor al, al
jmp 0x140025b61
mov al, 1
add rsp, 0x38
ret
Function at 0x14001185c
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14001c1f0
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400f9]
call fcn.140011b72
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14001137f]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140037880], rax
cmp qword [0x140037880], 0
jne 0x14001c260
lea rax, str.Failed_to_install_hook_
mov qword [rbp + 8], rax
lea rax, str.Error
mov qword [rbp + 0x28], rax
mov r9d, 0x10
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011b4f
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ce00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140037040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400400eb]
call fcn.140011b72
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001ce66
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ce6d
mov al, 1
jmp 0x14001cfbd
call fcn.140011339
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011339
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011910
movzx eax, al
test eax, eax
je 0x14001cebe
xor al, al
jmp 0x14001cfbd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001cf23
cmp dword [rbp + 0x154], 1
je 0x14001cf2e
cmp dword [rbp + 0x154], 3
je 0x14001cfac
jmp 0x14001cfbb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001cf7e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001cf7e
xor al, al
jmp 0x14001cfbd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001cf99
mov dword [rbp + 0x154], 1
jmp 0x14001cfa3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001cfbd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001cfbd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002fb20]
call fcn.14001198d
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011573
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140006ec0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140007049
mov ecx, 0xd
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r9, rax
movzx ecx, word [rax]
test cx, cx
je 0x14000703b
mov r8d, dword [rbx + 0x60]
mov r11d, 0x800
mov r10d, 0x80
mov eax, dword [rbx + 0x50]
sub eax, dword [rbx + 0x58]
lea edx, [r8 + rax]
cmovns edx, eax
cmp cx, r11w
jb 0x140006f90
lea eax, [r8 - 3]
cmp edx, eax
jae 0x140007029
mov rax, qword [rbx + 0x50]
shr cx, 0xc
or cl, 0xe0
mov byte [rax], cl
inc qword [rbx + 0x50]
mov r8, qword [rbx + 0x50]
mov rdx, qword [rbx + 0x48]
mov rcx, r8
mov eax, dword [rbx + 0x60]
sub rcx, rdx
cmp rcx, rax
jl 0x140006f7c
mov qword [rbx + 0x50], rdx
movzx eax, word [r9]
shr ax, 6
and al, 0x3f
or al, r10b
mov byte [rdx], al
jmp 0x140006faf
movzx eax, word [r9]
mov rdx, r8
shr ax, 6
and al, 0x3f
or al, r10b
mov byte [rdx], al
jmp 0x140006faf
cmp cx, r10w
jb 0x140006ffb
lea eax, [r8 - 2]
cmp edx, eax
jae 0x140007029
mov rax, qword [rbx + 0x50]
shr cx, 6
or cl, 0xc0
mov byte [rax], cl
inc qword [rbx + 0x50]
mov r8, qword [rbx + 0x50]
mov rdx, qword [rbx + 0x48]
mov rcx, r8
mov eax, dword [rbx + 0x60]
sub rcx, rdx
cmp rcx, rax
jl 0x140006fcf
mov qword [rbx + 0x50], rdx
jmp 0x140006fd2
mov rdx, r8
movzx eax, byte [r9]
and al, 0x3f
or al, r10b
mov byte [rdx], al
inc qword [rbx + 0x50]
mov rax, qword [rbx + 0x50]
mov rcx, qword [rbx + 0x48]
mov r8d, dword [rbx + 0x60]
sub rax, rcx
cmp rax, r8
jl 0x140007029
mov qword [rbx + 0x50], rcx
jmp 0x140007029
lea eax, [r8 - 1]
cmp edx, eax
jae 0x140007029
mov rax, qword [rbx + 0x50]
mov byte [rax], cl
inc qword [rbx + 0x50]
mov rcx, qword [rbx + 0x50]
mov rax, qword [rbx + 0x50]
sub rcx, qword [rbx + 0x48]
mov r8d, dword [rbx + 0x60]
cmp rcx, r8
cmovge rax, qword [rbx + 0x48]
mov qword [rbx + 0x50], rax
movzx ecx, word [r9 + 2]
add r9, 2
test cx, cx
jne 0x140006f21
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_CloseClipboard]