joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001360
Capabilities:
Access peb ldr_data
Encode data using xor
Enumerate processes
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov dword [rsp + 0x70], 0x238
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x1400013d4
mov rsi, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400013c3
mov ebx, 0x28
lea rdi, [rsp + 0x70]
nop word cs:[rax + rax]
dec ebx
je 0x1400013cb
mov rcx, rsi
mov rdx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400013b0
mov rcx, rsi
jmp 0x14000155c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x68], 0x3a3
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov r9d, dword [rax + rcx + 0x88]
test r9, r9
je 0x140001400
mov edx, dword [rax + r9 + 0x18]
test rdx, rdx
je 0x140001400
mov esi, dword [rax + r9 + 0x20]
add rsi, rax
lea r10, [rax + 1]
jmp 0x140001435
test rdx, rdx
je 0x140001400
mov ecx, dword [rsi + rdx*4 - 4]
dec rdx
movzx ebx, byte [rax + rcx]
test bl, bl
je 0x140001430
add rcx, r10
mov edi, 0x811c9dc5
nop dword [rax]
movsx ebx, bl
xor ebx, edi
imul edi, ebx, 0x1000193
movzx ebx, byte [rcx]
inc rcx
test bl, bl
jne 0x140001450
cmp edi, 0x3285501
jne 0x140001430
mov ecx, dword [rax + r9 + 0x1c]
mov ebx, dword [rax + r9 + 0x24]
add rcx, rax
add rbx, rax
mov edx, edx
movzx edx, word [rbx + rdx*2]
mov ebx, dword [rcx + rdx*4]
add rbx, rax
xor edi, edi
mov edx, 0x3a3
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rbx
mov qword [rsp + 0x60], rax
mov dword [rax], 0x6c6c6568
mov byte [rax + 4], 0x6f
lea rcx, [rax + 5]
mov r8d, 0x39d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x5c], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x68]
mov rcx, r14
mov r9d, 0x40
call fcn.1400016f7
mov rax, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x70]
mov edx, 0x1fffff
xor r8d, r8d
mov r9, r14
call fcn.14000165d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000154a
call qword [sym.imp.KERNEL32.dll_GetThreadId]
lea rcx, str.Success__ThreadHandle_d_n
mov edx, eax
call fcn.140001580
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.1400016aa
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1800014c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
movzx eax, byte [0x18000bb74]
test eax, eax
jne 0x1800014d8
mov byte [0x18000bb74], 1
jmp 0x1800014da
jmp 0x180001511
cmp dword [0x180007138], 0x1db0
je 0x1800014f2
cmp dword [0x180007138], 0x1db1
jne 0x1800014f9
call fcn.180001240
jmp 0x1800014fe
call fcn.180001370
mov rdx, qword [0x180007140]
lea rcx, str.PspTerminateThreadByPointer:__p_n
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x28
ret
Function at 0x1800021f0
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
cmp dword [0x18000bb64], 0
je 0x18000220d
mov eax, dword [0x18000bb64]
jmp 0x180002317
mov dword [rsp + 0x30], 0x11c
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov qword [rsp + 0x150], 0
lea rdx, str.RtlGetVersion
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x18000226d
lea rcx, [rsp + 0x30]
call qword [rsp + 0x150]
jmp 0x180002285
xor r9d, r9d
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x34]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x34], 5
jne 0x18000229f
cmp dword [rsp + 0x38], 1
jne 0x18000229f
mov dword [0x18000bb64], 0x33
jmp 0x180002311
cmp dword [rsp + 0x34], 6
jne 0x1800022b9
cmp dword [rsp + 0x38], 1
jne 0x1800022b9
mov dword [0x18000bb64], 0x3d
jmp 0x180002311
cmp dword [rsp + 0x34], 6
jne 0x1800022d3
cmp dword [rsp + 0x38], 2
jne 0x1800022d3
mov dword [0x18000bb64], 0x3e
jmp 0x180002311
cmp dword [rsp + 0x34], 6
jne 0x1800022ed
cmp dword [rsp + 0x38], 3
jne 0x1800022ed
mov dword [0x18000bb64], 0x3f
jmp 0x180002311
cmp dword [rsp + 0x34], 0xa
jne 0x180002307
cmp dword [rsp + 0x38], 0
jne 0x180002307
mov dword [0x18000bb64], 0x64
jmp 0x180002311
mov dword [0x18000bb64], 0x64
mov eax, dword [0x18000bb64]
add rsp, 0x160
pop rdi
ret
Function at 0x180003240
Capabilities:
Create device object
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov dword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x130]
lea rax, [0x1800016e0]
mov qword [rcx + 0x70], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001740]
mov qword [rcx + 0x80], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001610]
mov qword [rcx + 0xe0], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001790]
mov qword [rcx + 0x68], rax
lea rdx, str.DeviceBEIKESHOUHU
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x108]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x180003318
mov eax, dword [rsp + 0x110]
jmp 0x18000351b
lea rdx, str.DosDevicesGlobalBEIKESHOUHU
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x18000336e
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x110]
jmp 0x18000351b
lea rcx, str.BeiKeShouHu_Driver_loaded____n
call sub.ntoskrnl.exe_DbgPrint
call fcn.180001870
call fcn.1800021f0
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
lea rax, [0x1800027a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
mov edx, 0x1fffff
lea rcx, [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov r11, qword [rsp + 0x130]
mov qword [rsp + 0x30], r11
lea rax, [0x180002810]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov edx, 0x1fffff
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov r11, qword [rsp + 0x130]
mov qword [rsp + 0x30], r11
lea rax, [0x180001f40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x1fffff
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
xor eax, eax
add rsp, 0x128
ret
Function at 0x6d9834f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9a45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d983678
mov rax, qword [0x6d9a45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d98353c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d9835c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d983520
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d9836ad
mov rax, qword [0x6d9a45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9a45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d983690
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d9835be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d983620
add dword [0x6d9a45e4], 1
cmp edi, 8
jae 0x6d9835f3
test dil, 4
jne 0x6d983664
test edi, edi
je 0x6d9835e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d98367f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d9835e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d98360c
jmp 0x6d9835e8
add rsi, qword [0x6d9a45e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d9835be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d9835e8
xor esi, esi
jmp 0x6d983547
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d9835e8
mov rax, qword [0x6d9a45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d983e00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9a48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9a48a0]
test rbx, rbx
je 0x6d983e54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d983e4b
test rsi, rsi
je 0x6d983e4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d983e30
lea rcx, [0x6d9a48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d984090
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d9840a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d9840b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d9840f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d9840e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d9840f3
add rax, 0x28
cmp rax, r9
jne 0x6d9840d4
xor eax, eax
ret

Function at 0x6d984190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9a11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d9841fd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d9841fd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d9841fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d9841f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d9841ff
add rax, 0x28
cmp rax, r9
jne 0x6d9841e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d984300
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9a11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d984320
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d984318
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d98437d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d984374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d984384
add rax, 0x28
cmp rax, r9
jne 0x6d984360
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d9843a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9a11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d98440e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d98440e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d98440e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d98440e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d984405
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d984415
add rcx, 0x28
cmp rcx, rax
jne 0x6d9843f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d984428
jmp 0x6d98440e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d984436
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d98440e
test r9d, r9d
jg 0x6d984420
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d984790
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400089a4
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.1400093d4

Function at 0x140009064
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x14000908b
and qword [r8], 0
call fcn.1400091a0
mov rbx, rax
test rax, rax
je 0x140009184
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000917b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000917b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000917b
mov rax, qword [0x14004ae10]
mov rbp, rdi
test rax, rax
je 0x1400090f3
inc dword [rax + 0x3c8]
mov rdx, qword [0x14004ae20]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14000917b
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x140009152
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004ae10]
test rax, rax
je 0x140009140
dec dword [rax + 0x3c8]
mov rdx, qword [0x14004ae20]
mov rcx, rdi
call qword [0x140049008]
jmp 0x140009184
test r15d, r15d
jle 0x140009165
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140009176
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140009186
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400093d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x14004ae44], 0
lea rsi, [0x14004ae40]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x14000943b
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009409
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009401
not ebx
mov edx, ebx
test edi, edi
jle 0x14000945d
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140009443
jmp 0x140009497
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x140009497
mov r9b, 0x23
cmp r8b, r9b
jne 0x14000947c
cmp byte [r10], r9b
jne 0x14000947c
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x14000946b
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000e6c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14004ae10]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000e729
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000e734
lea rdx, [0x14003dadc]
mov rcx, rbx
mov rdi, rax
call fcn.1400091a0
mov rbx, rax
test rax, rax
je 0x14000e729
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d4ac
Capabilities:
Encrypt data using rc4 prga

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
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001d69d
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, pe_nt_image_headers64
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001d54e
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001d570
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x14003dc60]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001d690
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001d5be
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001d5c2
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001cc14
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001d04c
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001d5ad
mov r11d, pe_nt_image_headers64
add rbx, 0x28
sub rdi, r8
jne 0x14001d4fc
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001e800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14004aa78]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.1400089d4
mov rcx, qword [0x14004b298]
lea rdx, [rbp - 0x18]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x10]
sub ecx, dword [rbp - 0x18]
movd xmm1, ecx
mov ecx, dword [rbp - 0xc]
sub ecx, dword [rbp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rbp - 0x20]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x20]
xorps xmm1, xmm1
sub rax, qword [0x14004b2a0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14004b2a8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rbp - 0x20]
mov qword [0x14004b2a0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x12b], 0
mov byte [rdi + 0x12a], al
call fcn.1400089d4
cmp byte [rax + 0x3a7], 0
lea rbx, [rax + 0x110]
je 0x14001e929
cvttss2si ecx, dword [rbx]
lea rdx, [rbp - 0x30]
cvttss2si eax, dword [rax + 0x114]
mov dword [rbp - 0x30], ecx
mov rcx, qword [0x14004b298]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x14004b298]
jne 0x14001e97e
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14001e97e
mov rcx, qword [0x14004b298]
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14001e97e
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x14001e98c
or eax, 0xffffffff
jmp 0x14001e991
call fcn.140008a10
cmp dword [0x140049138], eax
je 0x14001e9a4
mov dword [0x140049138], eax
call fcn.14001e9cc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003aed0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret