joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047120
Capabilities:
Create process on windows

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
sub rsp, 0x70
xor r10d, r10d
mov rbp, r9
mov r12, r8
mov qword [rax - 0x20], r10
mov eax, dword [rsp + 0xb0]
lea ebx, [r10 + 1]
mov r13, rdx
test bl, al
je 0x14004715b
mov edi, ebx
jmp 0x140047168
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x1400471b6
and qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004721c
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xc8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004722c
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x70]
mov al, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14004fd40
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
test r8, r8
je 0x14004fd6d
lea rcx, [0x1400c1e50]
mov rdx, r8
call fcn.140040460
mov dword [0x1400c1f08], eax
jmp 0x14004fd73
mov eax, dword [0x1400c1f08]
cmp eax, 0xffffffff
je 0x14004fee9
movsxd rcx, eax
mov rax, qword [0x1400c1ef0]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x62], 0
mov rsi, qword [rdi]
je 0x14004fdc9
cmp dword [rdi + 0x290], 0
mov byte [rdi + 0x62], 0
jl 0x14004fdc9
cmp byte [rdi + 0x29c], 0
je 0x14004fdc9
mov r8d, dword [rdi + 0x298]
lea rcx, [0x1400c1e50]
mov rdx, rdi
call fcn.14004f360
mov byte [rdi + 0x29c], 0
cmp ebx, 8
jg 0x14004fe63
je 0x14004fe2f
test ebx, ebx
je 0x14004fe16
cmp ebx, 1
je 0x14004fe2f
mov edx, 6
cmp ebx, 2
je 0x14004fdfd
cmp ebx, 3
je 0x14004fec4
jle 0x14004fe25
cmp ebx, 5
jle 0x14004fe2f
cmp ebx, edx
je 0x14004fe01
jmp 0x14004fe25
mov byte [rdi + 0x60], 1
cmp byte [rdi + 0x60], 0
je 0x14004fee9
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004fe25
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x60], 0
mov eax, 1
jmp 0x14004feeb
cmp byte [rdi + 0x60], 0
jne 0x14004fee9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004fe5d
cmp ebx, 4
je 0x14004fe5d
mov rcx, qword [0x1400c4710]
mov rdx, rsi
call fcn.1400448d0
mov byte [rdi + 0x60], 1
jmp 0x14004fe25
mov edx, ebx
sub edx, 9
je 0x14004fec4
sub edx, 0x37
je 0x14004febd
sub edx, 1
je 0x14004fead
sub edx, 1
je 0x14004fe9b
cmp edx, 1
jne 0x14004fe25
xor ecx, ecx
mov byte [rdi + 0x61], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x14004fe25
mov rcx, rsi
mov byte [rdi + 0x61], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004fe25
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004fe25
mov edx, 1
jmp 0x14004feaf
cmp byte [rdi + 0x60], 0
je 0x14004fee9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400c4710]
mov rdx, rsi
call fcn.1400448d0
jmp 0x14004fe25
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400509c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rcx
jmp 0x140050a4c
mov rax, qword [0x1400c4708]
xor r9d, r9d
mov ecx, 0x100
cmp byte [rax + 0x3e], r9b
lea rax, [rsp + 0x260]
lea rdx, [rsp + 0x40]
cmovne r9d, ecx
xor r8d, r8d
mov rcx, rdi
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140050aa9
mov rcx, qword [rsp + 0x260]
call fcn.1400509c0
mov rcx, qword [rsp + 0x260]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140050aa9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140050aa9
mov rcx, rdi
lea rax, [rsp + 0x268]
lea r9, [rsp + 0x258]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x258], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400509d2
mov al, 1
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
xor al, al
jmp 0x140050a98

Function at 0x140050bf0
Capabilities:
Set socket configuration

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 r13
push r14
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov r14d, 2
mov word [rdx], r14w
mov rcx, r8
or edx, 0xffffffff
mov ebp, r9d
mov r13, r8
call fcn.140015b00
mov rcx, rax
mov rbx, rax
call sub.WSOCK32.dll_inet_addr
mov rcx, rbx
mov r12d, eax
call fcn.140018ec8
cmp r12d, 0xffffffff
jne 0x140050c63
lea rdx, str.255.255.255.255
mov rcx, r13
call fcn.140019cfc
test eax, eax
je 0x140050c63
lea edx, [r14 - 1]
jmp 0x140050c84
lea eax, [rbp - 1]
mov dword [rsi + 4], r12d
cmp eax, 0xfffe
ja 0x140050c81
movzx ecx, bp
call sub.WSOCK32.dll_htons
mov word [rsi + 2], ax
mov al, 1
jmp 0x140050c98
mov edx, r14d
mov rax, qword [rdi]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
add rcx, rdi
call fcn.140003990
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x140050f40
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x140050f57
movzx eax, word [rcx + 0xe0]
jmp 0x140050f5b
mov ax, word [rcx + 0x78]
movsx ecx, ax
lea r8, [rbx + 0x128]
cmp edx, 1
je 0x140050f71
lea r8, [rbx + 0xc0]
mov rax, qword [rbx + 0x148]
cmp ecx, 1
jne 0x140050f81
mov edx, ecx
jmp 0x140050f97
cmp ecx, 2
jne 0x140050f95
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x140050f9d
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140050fda
and dword [rsp + 0x44], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140051030
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rcx, rdx
lea rdx, [rsp + 0x30]
mov ebp, r9d
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400510bc
lea rdx, [0x14009cf5c]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x1400510aa
lea rdx, [0x1400a0230]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x1400510aa
lea rcx, [rsp + 0x5c]
mov r8d, ebp
mov rdx, rsi
call fcn.140043a60
cmp al, bl
je 0x1400510d9
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14005106c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov sil, byte [rsp + 0x2c0]
cmp sil, bl
jne 0x1400510e9
mov al, 1
jmp 0x14005119d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14005119d
lea rdx, [rsp + 0x30]
lea rcx, [0x1400a0228]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140051190
test byte [rsp + 0x30], 0x10
je 0x14005117a
lea rdx, [0x14009cf5c]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x14005117a
lea rdx, [0x1400a0230]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x14005117a
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
mov r9d, ebp
mov byte [rsp + 0x20], sil
call fcn.140051030
cmp al, bl
je 0x140051192
lea rcx, [0x1400a0230]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x140051108
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051920
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c1e34], 0
lea rbx, [0x1400c1460]
jne 0x140051945
xor ecx, ecx
call fcn.14001c834
mov rcx, rax
call fcn.1400416f0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400c1450], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
sub r9d, 1
jne 0x140051968
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
sub r9d, 1
mov dword [rbx], edx
mov rbx, r8
jne 0x140051999
mov ecx, dword [0x1400c1460]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140051e20
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
mov rdi, rcx
je 0x140051e88
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140051e88
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x58]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x58]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 0x58]
call fcn.140041cd0
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140052020
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x140052063
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400520ab
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x140052092
mov rax, qword [r9]
test rax, rax
jne 0x14005205d
mov rdx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140052107
or rax, 0xffffffffffffffff
jmp 0x14005205d
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x1400520be
cmp rax, 0xffffffffffffffff
je 0x1400520be
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140041c60
jmp 0x14005205a
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009d458]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140052056
test rax, rax
je 0x140052056
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140041c60
mov rcx, rbx
call fcn.140041cd0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14005205a

Function at 0x140052130
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x140052171
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400521b7
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x1400521a0
mov rax, qword [r9]
test rax, rax
jne 0x14005216b
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140052213
or rax, 0xffffffffffffffff
jmp 0x14005216b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x1400521ca
cmp rax, 0xffffffffffffffff
je 0x1400521ca
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140041c60
jmp 0x140052168
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009d458]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140052164
test rax, rax
je 0x140052164
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140041c60
mov rcx, rbx
call fcn.140041cd0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x140052168
Function at 0x140052330
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.140041d00
test al, al
je 0x140052372
test rdx, rdx
je 0x140052372
test r8, r8
je 0x140052372
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140052372
mov rcx, rbx
call fcn.140041cd0
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret

Function at 0x1400526e0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140052717
mov edx, 0x1388
call fcn.140043070
test al, al
jne 0x140052734
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14005272a
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret

Function at 0x140052a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov byte [0x1400b13ce], dil
test ebx, ebx
je 0x140052ac6
mov byte [0x1400b13cf], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x140052930]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.14001c028
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x140052afb
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400b13cf], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400b13ce], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400533a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov r12, r9
mov rax, rdx
lea ebx, [r14 + 1]
mov edi, r14d
mov ebp, r14d
cmp word [rdx], r14w
jne 0x1400533de
xor al, al
jmp 0x14005352a
or edx, 0xffffffff
mov rcx, rax
call fcn.140015b00
mov rsi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov rcx, rax
mov byte [rsi], r14b
mov byte [r15], r14b
mov qword [rsp + 0x30], rax
mov byte [r12], r14b
mov byte [r13], r14b
call fcn.14001a220
lea rcx, [rbx + rax]
call fcn.140018cc8
mov rdx, qword [rsp + 0x30]
mov r14, rax
movsxd rax, edi
mov cl, byte [rax + rdx]
cmp cl, 0x2b
je 0x14005344c
cmp cl, 0x5e
je 0x140053447
cmp cl, 0x21
je 0x140053447
cmp cl, 0x23
jne 0x140053472
cmp cl, 0x2b
jne 0x140053452
mov byte [r12], bl
jmp 0x14005346e
cmp cl, 0x5e
jne 0x14005345d
mov byte [r13], bl
jmp 0x14005346e
cmp cl, 0x21
jne 0x140053467
mov byte [r15], bl
jmp 0x14005346e
cmp cl, 0x23
jne 0x14005346e
mov byte [rsi], bl
add edi, ebx
jmp 0x14005342d
mov rsi, qword [rsp + 0x90]
movsxd rax, edi
add edi, ebx
mov cl, byte [rax + rdx]
mov dword [rsp + 0x88], edi
cmp cl, 0x7b
jne 0x1400534e8
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x88]
mov r8, rdx
mov r9, r14
mov dl, 0x7d
mov qword [rsp + 0x20], rax
call fcn.140044bb0
test eax, eax
jne 0x140053556
lea rdi, [0x1400afaf0]
mov rcx, qword [rdi]
mov rdx, r14
call fcn.14002f184
test eax, eax
je 0x1400534e0
lea rax, reloc.WSOCK32.dll_accept
add rdi, 8
add ebp, ebx
cmp rdi, rax
jl 0x1400534bf
cmp ebp, 0x62
jne 0x140053542
mov cl, byte [r14]
call qword [sym.imp.USER32.dll_VkKeyScanA]
movsx ecx, ax
bt ecx, 9
mov dword [rsi], ecx
jae 0x1400534fd
mov byte [r13], bl
bt ecx, 0xa
jae 0x140053506
mov byte [r15], bl
bt ecx, 8
jae 0x140053510
mov byte [r12], bl
mov rcx, qword [rsp + 0x30]
and dword [rsi], 0xff
call fcn.140018ec8
mov rcx, r14
call fcn.140018ec8
mov al, bl
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140000000]
movsxd rax, ebp
cmp byte [rax + rcx + 0xafe00], 0
je 0x14005355a
xor bl, bl
jmp 0x140053510
mov eax, dword [rcx + rax*4 + 0xafe70]
mov dword [rsi], eax
jmp 0x140053510
Function at 0x140053570
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x120
mov ebx, edx
mov rdi, rcx
xor edx, edx
mov ecx, ebx
mov bpl, r8b
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp qword [rdi + 0x20], 0
mov esi, eax
je 0x140053649
cmp ebx, 0x14
je 0x140053649
cmp ebx, 0x90
je 0x140053649
cmp ebx, 0x91
je 0x140053649
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
mov eax, 0xc0000001
mov r9d, esi
mov r8b, 1
or r9, rax
cmp bpl, r8b
je 0x1400535f7
mov edx, ebx
mov rcx, rdi
call fcn.140044c10
cmp al, r8b
jne 0x1400535fc
bts r9, 0x18
mov eax, dword [rdi + 0x18]
test r8b, al
jne 0x14005360f
bt eax, 8
jb 0x14005360f
cmp ebx, 0x12
jne 0x140053625
test al, 8
jne 0x140053625
bt eax, 0xb
jb 0x140053625
bts r9, 0x1d
mov edx, 0x105
jmp 0x14005362a
mov edx, 0x101
mov rcx, qword [rdi + 0x20]
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
xor byte [rsp + rbx + 0x20], 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x14005367a
mov r8b, 1
cmp bpl, r8b
je 0x140053666
mov edx, ebx
mov rcx, rdi
call fcn.140044c10
cmp al, r8b
mov r8d, 2
jne 0x14005366c
mov r8d, 3
xor r9d, r9d
mov dl, sil
mov cl, bl
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
jmp fcn.140045040

Function at 0x1400536a0
Capabilities:
Log keystrokes
Log keystrokes via polling

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
sub rsp, 0x120
mov ebx, edx
mov rdi, rcx
xor edx, edx
mov ecx, ebx
mov bpl, r8b
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp qword [rdi + 0x20], 0
mov esi, eax
je 0x140053772
cmp ebx, 0x14
je 0x140053772
cmp ebx, 0x90
je 0x140053772
cmp ebx, 0x91
je 0x140053772
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
or byte [rsp + rbx + 0x20], 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
mov r9d, esi
or r9, 1
cmp bpl, 1
je 0x140053731
mov edx, ebx
mov rcx, rdi
call fcn.140044c10
cmp al, 1
jne 0x140053736
bts r9, 0x18
mov eax, dword [rdi + 0x18]
test al, 1
jne 0x140053748
bt eax, 8
jb 0x140053748
cmp ebx, 0x12
jne 0x14005375e
test al, 8
jne 0x14005375e
bt eax, 0xb
jb 0x14005375e
bts r9, 0x1d
mov edx, 0x104
jmp 0x140053763
mov edx, 0x100
mov rcx, qword [rdi + 0x20]
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14005379f
cmp bpl, 1
je 0x14005378b
mov edx, ebx
mov rcx, rdi
call fcn.140044c10
cmp al, 1
je 0x14005378b
xor r8d, r8d
jmp 0x140053791
mov r8d, 1
xor r9d, r9d
mov dl, sil
mov cl, bl
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp fcn.140045020
Function at 0x1400537d0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov bl, r8b
mov edi, edx
mov rsi, rcx
call fcn.1400536a0
mov r8b, bl
mov edx, edi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140053570