joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c5fa0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c5e0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c5e0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c5e0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c5e0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c5e0b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c5e0b
cmp dword [rcx + 0xf8], 0
je 0x1400c5e0b
mov ecx, ebx
call fcn.1400c5ebc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c5c98
nop
cmp dword [rbp + 0x20], 0
je 0x1400c5e59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c5e64
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c5d9c

Function at 0x1400c6340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400c6377
call fcn.1400bc6d8
mov dword [rax], 0x16
call fcn.1400bc538
xor eax, eax
jmp 0x1400c6405
mov rdx, r9
mov rcx, r8
call fcn.1400c62dc
mov rbx, rax
test rax, rax
je 0x1400c6402
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c6208]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c63ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400bc64c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c63d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c63e5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ccf3c
jmp 0x1400c6402
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c63ff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cfba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14018ba10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400cfbf7
cmp word [rdx], r13w
jne 0x1400cfbf7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400cfbfc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400cfd21
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400cfd42
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400cfc35
mov rdx, r9
mov word [rbx], cx
jmp 0x1400cfc5c
cmp r9, r8
jae 0x1400cfc6c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400cfc16
jmp 0x1400cfd21
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cfd16
cmp dword [rsp + 0x80], esi
je 0x1400cfd16
lea r8, [0x14018ba10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400cfcee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400cfcbe
mov word [rbx], r13w
jmp 0x1400cfd1e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400cfccb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400cfd1e
cmp word [rsp + 0x70], r13w
jne 0x1400cfcfb
cmp rbx, r14
je 0x1400cfcb8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400cfafc
cmp word [rsp + 0x70], r13w
je 0x1400cfd21
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14018ba10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400cfd1b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400cfd21
Function at 0x1400d2784
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d279a
mov al, 1
jmp 0x1400d27fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d27ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d27f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d62e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d27f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d27f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d27f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d27fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d5ab0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400d5ae0
xor eax, eax
jmp 0x1400d5ba3
mov rbp, rbx
cmp word [rax], si
je 0x1400d5b05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d5aec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d5ae8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400d3774
movsxd r14, eax
test eax, eax
jne 0x1400d5b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d5ad9
mov rcx, r14
call fcn.1400ccf78
mov rdi, rax
test rax, rax
jne 0x1400d5b5c
xor ecx, ecx
call fcn.1400ccf3c
jmp 0x1400d5b38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400d3774
test eax, eax
jne 0x1400d5b8d
mov rcx, rdi
call fcn.1400ccf3c
jmp 0x1400d5b97
xor ecx, ecx
call fcn.1400ccf3c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400d8838
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400ce784
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400d88d9
cmp ebx, dword [rsp + 0x30]
je 0x1400d88d2
test esi, esi
je 0x1400d88d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400d88ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400d88ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400d8897
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400d88be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400d88db
mov eax, 1
jmp 0x1400d88db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dcd80
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400cfafc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400cfafc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400dced0
cmp rax, 0xffffffffffffffff
je 0x1400dced0
xor edi, edi
test rbp, rbp
jle 0x1400dce7b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ccec4
mov rbx, rax
test rax, rax
jne 0x1400dce08
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400dce71
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cb3f4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400d1f80
cmp eax, 0xffffffff
je 0x1400dce51
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400dce18
mov edx, r15d
mov ecx, r14d
call fcn.1400cb3f4
jmp 0x1400dce71
cmp byte [rsi + 0x38], dil
je 0x1400dce68
cmp dword [rsi + 0x34], 5
jne 0x1400dce68
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400dce71
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ccf3c
jmp 0x1400dcee4
jns 0x1400dcee4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400cfafc
cmp rax, 0xffffffffffffffff
jne 0x1400dce9c
cmp byte [rsi + 0x30], dil
je 0x1400dcee4
mov edi, dword [rsi + 0x2c]
jmp 0x1400dcee4
mov ecx, r14d
call fcn.1400d62e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400dcee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400dcee4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400dcedd
mov eax, dword [rsi + 0x2c]
jmp 0x1400dcee2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400cfafc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140a24058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a241df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a24089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2406f
add dl, dl
jne 0x140a24096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a240f6
xor eax, eax
add dl, dl
jne 0x140a240a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a241ad
add dl, dl
jne 0x140a240b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a240c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a240d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a240dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a240ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a2407e
mov eax, 1
add dl, dl
jne 0x140a24106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a24113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a240fb
sub eax, ebx
mov ebx, 1
jne 0x140a2414c
mov ecx, 1
add dl, dl
jne 0x140a2412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a2413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a24123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a24168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a24175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2415d
cmp eax, 0x7d00
jae 0x140a2419b
cmp eax, 0x500
jb 0x140a24196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2407e
cmp eax, 0x7f
ja 0x140a2419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a241d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a2407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002460
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x140119e48], 0
jne 0x14000260d
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14011b1d8], rax
test rax, rax
je 0x140002629
lea rdx, str.HidD_GetAttributes
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b220], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetSerialNumberString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b1e0], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetManufacturerString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b218], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetProductString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b228], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_SetFeature
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b1f8], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetFeature
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b1f0], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetIndexedString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b230], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_GetPreparsedData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b208], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_FreePreparsedData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b200], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidP_GetCaps
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b210], rax
test rax, rax
je 0x140002614
mov rcx, qword [0x14011b1d8]
lea rdx, str.HidD_SetNumInputBuffers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011b1e8], rax
test rax, rax
je 0x140002614
mov byte [0x140119e48], 1
xor eax, eax
add rsp, 0x28
ret
mov rax, qword [0x14011b1d8]
test rax, rax
je 0x140002629
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14011b1d8], 0
mov eax, 0xffffffff
mov byte [0x140119e48], 0
add rsp, 0x28
ret

Function at 0x140002fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d62c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rbx, rcx
movzx edx, word [rcx + 0xc]
lea rcx, str.output_report_length__d__n
call fcn.140002400
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea r8d, [r9 + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400719c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140003030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d62c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
mov rbx, rcx
movzx ecx, word [rcx + 0xc]
mov rsi, r8
mov rbp, rdx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
cmp r8, rcx
jb 0x140003072
mov rdi, rdx
jmp 0x14000309f
call fcn.14007d324
mov r8, rsi
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1400a4290
movzx r8d, word [rbx + 0xc]
lea rcx, [rsi + rdi]
sub r8, rsi
xor edx, edx
call fcn.1400a4930
movzx esi, word [rbx + 0xc]
mov rcx, qword [rbx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003146
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140003146
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
xor edx, edx
mov r8d, eax
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], esi
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax]
test cx, cx
je 0x140003128
nop
cmp cx, 0xd
je 0x140003125
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140003110
jmp 0x140003128
mov word [rax], si
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
mov eax, 0xffffffff
mov dword [rsp + 0x48], eax
jmp 0x1400031c1
mov rcx, qword [rbx]
lea r8, [rsp + 0x48]
mov r9d, 1
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400031bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
xor edx, edx
mov r8d, eax
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], esi
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax]
test cx, cx
je 0x140003128
cmp cx, 0xd
je 0x140003125
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x1400031a1
jmp 0x140003128
mov eax, dword [rsp + 0x48]
cmp rdi, rbp
je 0x1400031d2
mov rcx, rdi
call fcn.14007d310
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400719c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003200
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400d62c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, qword [rcx + 0x48]
xor ebx, ebx
mov ebp, r9d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov dword [rsp + 0x48], ebx
cmp dword [rcx + 0x24], ebx
jne 0x1400032f2
mov r8, qword [rcx + 0x10]
xor edx, edx
mov dword [rcx + 0x24], 1
mov rcx, qword [rcx + 0x28]
call fcn.1400a4930
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rdi + 0x10]
lea rax, [rdi + 0x30]
mov rdx, qword [rdi + 0x28]
lea r9, [rsp + 0x48]
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400032f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400032f2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [rdi + 0x24], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax]
test cx, cx
je 0x140003380
cmp cx, 0xd
je 0x14000337d
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x1400032d6
jmp 0x140003380
test ebp, ebp
js 0x14000330c
mov edx, ebp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000330c
xor eax, eax
jmp 0x140003398
mov rcx, qword [rdi]
lea rdx, [rdi + 0x30]
mov r9d, 1
lea r8, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rdi + 0x24], ebx
test eax, eax
je 0x140003296
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140003379
mov rdx, qword [rdi + 0x28]
cmp byte [rdx], bl
jne 0x140003364
lea ecx, [rax - 1]
mov eax, ecx
mov dword [rsp + 0x48], ecx
mov ebx, ecx
cmp rsi, rax
ja 0x140003352
mov rbx, rsi
inc rdx
mov r8, rbx
mov rcx, r14
call fcn.1400a4290
mov eax, ebx
jmp 0x140003398
cmp rsi, rax
mov rbx, rsi
mov rcx, r14
cmova rbx, rax
mov r8, rbx
call fcn.1400a4290
mov eax, ebx
jmp 0x140003398
mov word [rax], bx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400719c0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400033c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [rcx + 8]
neg eax
sbb r9d, r9d
jmp sym.client.exe_hid_read_timeout
Function at 0x1400045d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400d62c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov esi, r9d
mov ebp, r8d
mov rdi, rdx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov eax, dword [0x1400d98f8]
mov rcx, qword [0x140119e38]
cmp dword [rsp + 0x68], eax
je 0x140004626
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140004655
mov edx, 5
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004643
inc dword [rdi]
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004655
dec dword [rdi]
mov eax, dword [rdi]
cmp eax, esi
jle 0x14000465f
mov dword [rdi], esi
mov eax, esi
cmp eax, ebp
jge 0x140004665
mov dword [rdi], ebp
lea rdx, [0x1400c76c8]
lea rcx, [0x1400d7e30]
call fcn.140006be0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140004685
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008450
lea rdx, [0x1400c7638]
mov rcx, rax
call fcn.140006be0
mov edx, dword [rdi]
mov rcx, rax
call fcn.140004c20
mov rcx, rax
call fcn.140006e90
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400046e9
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400046e4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000471e
mov rcx, r8
call fcn.140071a1c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400719c0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140078a5c
int3
Function at 0x140004730
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400d62c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ebp, r9d
mov esi, r8d
mov rdi, rdx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov eax, dword [0x1400d98f8]
mov rcx, qword [0x140119e38]
cmp dword [rsp + 0x68], eax
je 0x140004786
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x1400047cd
mov edx, 5
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400047af
movsd xmm0, qword [rsp + 0x70]
addsd xmm0, qword [rdi]
movsd qword [rdi], xmm0
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400047cd
movsd xmm0, qword [rdi]
subsd xmm0, qword [rsp + 0x70]
movsd qword [rdi], xmm0
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [rdi]
comisd xmm1, xmm0
jbe 0x1400047e6
movsd qword [rdi], xmm0
movaps xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x1400047f8
movsd qword [rdi], xmm0
lea rdx, [0x1400c76c8]
lea rcx, [0x1400d7e30]
call fcn.140006be0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140004818
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008450
lea rdx, [0x1400c7638]
mov rcx, rax
call fcn.140006be0
movsd xmm1, qword [rdi]
mov rcx, rax
call fcn.140004a10
mov rcx, rax
call fcn.140006e90
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000487e
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004879
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400048b3
mov rcx, r8
call fcn.140071a1c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400719c0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140078a5c
int3