joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064240
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x150
movzx edi, dl
lea rbp, [0x1400fcb50]
lea rdx, [rax + 8]
mov rbx, rcx
mov rsi, rcx
call fcn.140064070
test al, al
je 0x140064338
test dil, dil
je 0x1400642ac
cmp byte [rsp + 0x160], 0
je 0x1400642ac
mov r9, rbx
lea r8, str._script__s
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14009d690
mov rsi, qword [0x140127ca0]
lea rbp, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x140127530]
xor edi, edi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8, rbp
mov rdx, rsi
mov byte [rsp + 0x20], dil
call fcn.140062100
test eax, eax
jne 0x140064315
mov r9, rbx
lea r8, str.Could_not_launch__s
lea edx, [rdi + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14009d690
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.1400a44b0
mov rax, qword [0x140121b00]
lea rcx, [0x1400fcb50]
test rax, rax
je 0x140064332
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140065b40
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x140065b78
cmp word [rcx + 2], 0x3a
jne 0x140065b78
cmp word [rcx + 4], 0
jne 0x140065b78
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140065b90
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140127cbc], 0
je 0x140065ba1
mov rcx, rbx
call fcn.140065bb0
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140065bb0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400daca0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140065bdd
lea rbx, [rsp + 0x20]
jmp 0x140065be2
test rbx, rbx
je 0x140065bf1
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140062bf0
add rsp, 0x10020
pop rbx
ret

Function at 0x140065c00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400daca0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140065c33
lea rcx, [rsp + 0x20]
call fcn.1400cd990
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x14006aa70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x14006aa85
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x14006aab0
mov ecx, ebx
cmp edx, 1
je 0x14006aaa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14006aabc
cmp bl, 3
jne 0x14006aac3
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x14006aae0
cmp qword [0x140125d70], 0
jne 0x14006ab02
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140125d78], 0
je 0x14006aacd
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140022cb0
test al, al
je 0x14006ab02
mov cl, 1
call fcn.140022a50
lea rcx, [0x140125d80]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret
Function at 0x14006e710
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
cmp word [rcx], 0
je 0x14006e814
test dl, dl
jne 0x14006e74c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14006e814
mov al, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
lea r9, [rsp + 0x280]
mov edx, 0x104
lea r8, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14006e773
xor edi, edi
test rax, rax
je 0x14006e791
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14006e791
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006e814
test al, 0x10
je 0x14006e814
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x14006e7b0
lea rax, [rsp + 0x60]
mov word [rsp + rbx*2 + 0x62], di
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x614
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
mov rbx, qword [rsp + 0x288]
xor al, al
add rsp, 0x270
pop rdi
ret
Function at 0x14006f030
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
xor r9d, r9d
movzx r14d, dl
xor edx, edx
mov rbp, rcx
lea r8d, [r9 + 1]
call fcn.14009d430
test eax, eax
je 0x14006f0d1
mov rcx, rbp
call fcn.14009def0
mov rbx, rax
test eax, eax
je 0x14006f0d3
test r14b, r14b
jne 0x14006f0d3
mov r8d, ebx
xor edx, edx
mov ecx, 0x101000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14006f0d3
mov rcx, rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, ebx
jne 0x14006f0b1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14006f163
cmp esi, 0x102
jne 0x14006f0d3
mov eax, ebx
jmp 0x14006f165
xor ebx, ebx
xor edx, edx
mov dword [rsp + 0x30], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14006f15a
nop dword [rax]
test ebx, ebx
je 0x14006f11a
cmp ebx, dword [rsp + 0x38]
je 0x14006f183
mov edx, 0x5c
lea rcx, [rsp + 0x5c]
call fcn.1400bca4c
test rax, rax
je 0x14006f134
add rax, 2
jmp 0x14006f139
lea rax, [rsp + 0x5c]
mov rdx, rbp
mov rcx, rax
call fcn.1400c1404
mov rcx, rdi
test eax, eax
je 0x14006f198
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14006f110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
cmovne ebx, dword [rsp + 0x50]
mov eax, ebx
jmp 0x14006f165
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
test r14b, r14b
cmovne eax, dword [rsp + 0x50]
jmp 0x14006f165

Function at 0x140073ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x140121ac0]
mov r8, rdx
cmp eax, 3
je 0x140073ceb
add eax, 0xfffffffc
cmp eax, 1
ja 0x140073cfc
mov rcx, qword [0x140121a48]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x140121a40]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x140121acc]
jge 0x140073cfc
cmp qword [0x140121a68], r8
je 0x140073cfc
mov rdx, r8
jmp fcn.140008838
ret
Function at 0x14007c610
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
mov r13, r8
mov esi, r9d
mov rbx, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r13 + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
lea ecx, [rax*2 + 2]
movsxd rcx, ecx
call fcn.1400c1588
mov rbp, rax
test rax, rax
jne 0x14007c67a
mov rcx, rbx
call fcn.1400111d0
jmp 0x14007c7a1
mov rcx, qword [r13 + 0x28]
lea r8d, [r14 + 1]
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r14, eax
cmp rdi, 0xffffffffffffffff
je 0x14007c6be
mov rcx, qword [r13 + 0x28]
test eax, eax
jne 0x14007c6f9
xor r9d, r9d
mov r8, rdi
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007c710
mov rdi, 0xffffffffffffffff
cmp rdi, rdi
jne 0x14007c710
mov rcx, qword [r13 + 0x28]
mov r9, rbp
mov edx, 0x158
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007c710
test esi, esi
je 0x14007c710
xor esi, esi
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x10], esi
mov qword [rbx], rbp
mov qword [rbx + 8], r14
jmp 0x14007c7a1
lea r8, [rdi - 1]
mov r9, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, rax
jne 0x14007c6be
mov rcx, rbp
call fcn.1400c1574
test esi, esi
je 0x14007c7da
cmp esi, 2
jne 0x14007c72f
test byte [r13 + 0x51], sil
jne 0x14007c7da
mov rcx, qword [r13 + 0x28]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x40], r15
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007c79c
xor esi, esi
lea r14, [rax + rax]
cmp rax, 0xff
ja 0x14007c7ba
mov rax, qword [rbx + 0x18]
mov qword [rbx], rax
mov word [r14 + rax], si
mov qword [rbx + 8], r15
mov r9, qword [rbx]
mov r8, rdi
mov rcx, qword [r13 + 0x28]
mov edx, 0x148
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
jne 0x14007c79c
lea rax, [0x1400fcb50]
mov dword [rbx + 0x10], esi
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
lea rcx, [r14 + 2]
call fcn.1400c1588
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14007c764
mov rcx, rbx
call fcn.1400111d0
test eax, eax
je 0x14007c79c
jmp 0x14007c770
lea eax, [rdi + 1]
mov dword [rbx + 0x10], 1
movsxd rcx, eax
mov qword [rbx], rcx
jmp 0x14007c7a1
Function at 0x14007cec0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov rcx, qword [r8 + 0x28]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
xor r15d, r15d
mov rbx, r14
cmp r14, 0xffffffffffffffff
jne 0x14007cefc
inc rbx
cmp word [r15 + rbx*2], r15w
jne 0x14007cef2
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + rbx]
cmp rbx, 0xff
ja 0x14007cf6b
mov rax, qword [rdi + 0x18]
mov qword [rdi], rax
mov word [rsi + rax], r15w
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea r8d, [r14 + 1]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rcx, eax
mov qword [rdi + 8], rcx
test eax, eax
je 0x14007cf4d
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], r15w
jne 0x14007cf4d
lea rax, [rcx - 1]
mov qword [rdi + 8], rax
mov eax, 1
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 2]
call fcn.1400c1588
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14007cf12
mov rcx, rdi
call fcn.1400111d0
cmp eax, 1
je 0x14007cf1e
xor eax, eax
jmp 0x14007cf52

Function at 0x14007d090
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x30], 0
mov rbx, rcx
je 0x14007d1d0
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14007d106
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14007d106
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov esi, eax
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8, rdi
mov edx, 0x414
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007d0f3
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
sub rsi, 1
jne 0x14007d0d0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007d146
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
cmp byte [rbx + 0x110], 0
jne 0x14007d146
mov rcx, qword [rbx + 0x30]
mov byte [rbx + 0x110], 1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x14007d15d
cmp rbx, qword [0x140125a78]
jne 0x14007d184
test rax, rax
je 0x14007d163
lea rdx, [rax + 0x20]
jmp 0x14007d16a
lea rdx, [0x140125a78]
mov rcx, qword [rbx + 0x20]
lea r8, [rcx + 0x28]
test rcx, rcx
jne 0x14007d17e
lea r8, [0x140125c98]
mov qword [rdx], rcx
mov qword [r8], rax
mov rcx, rbx
mov qword [rbx + 0x30], 0
call fcn.14007d1e0
cmp byte [rbx + 0x115], 0
je 0x14007d1a6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [0x140125a3c], 0
jne 0x14007d1d0
lea rcx, [0x140127530]
call fcn.1400467a0
test al, al
jne 0x14007d1d0
mov edx, 4
lea rcx, [0x140127530]
call fcn.140046bc0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140088f60
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
cmp dword [0x14011f180], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x140088fc6
cmp dword [0x140125a2c], 0
jne 0x140088fc6
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x140088fc6
mov rax, qword [rdx + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x140088fba
cmp byte [rax], 1
je 0x140088fe2
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x140088fb0
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [0x140125a3c]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x140088fc6
mov rbx, qword [0x14011f188]
cmp dword [rbx + 0x68], 0
jg 0x140088fc6
inc eax
add rbx, 0xc8
mov dword [0x140125a3c], eax
mov rax, qword [0x140125a30]
mov qword [0x14011f188], rbx
test rax, rax
je 0x140089028
lea rcx, [rax + 0x80]
jmp 0x14008902a
xor ecx, ecx
test rbx, rbx
je 0x140089038
lea rax, [rbx + 0x80]
jmp 0x14008903a
xor eax, eax
movups xmm0, xmmword [rcx]
xor edx, edx
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rcx + 0x40]
xorps xmm1, xmm1
movsd qword [rax + 0x40], xmm0
lea rcx, [0x140127530]
movups xmmword [rbx], xmm1
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm1
movups xmmword [rbx + 0x40], xmm1
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm1
movups xmmword [rbx + 0x70], xmm1
mov byte [rbx + 0x7f], 1
mov dword [rbx + 0x68], 0
call fcn.140045f00
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x1400890ae
mov byte [rbx + 0xc2], al
cmp dword [0x140127cd4], 0
je 0x1400890c0
cmp dword [0x140127cd0], 0
jne 0x1400890c4
test al, al
je 0x1400890f0
mov byte [rbx + 0x7f], 0
test al, al
jne 0x1400890f0
cmp dword [0x140127cd4], 0
jge 0x1400890de
mov dword [rbx + 0x70], 0xffffffff
jmp 0x1400890f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x140127cd4]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140127cd8], eax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea rcx, [r14 + 0x38]
mov qword [rsp + 0x28], rdi
mov r8d, 2
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x58], rbp
call fcn.140095330
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.1400047c0
cmp ebx, 7
sete al
jmp 0x140088fc8
Function at 0x140089170
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp word [rcx], 0
mov rbx, rcx
je 0x140089283
xor dil, dil
cmp word [rcx + 2], 0
je 0x1400891c3
movzx eax, word [rbx]
cmp ax, 0x21
je 0x1400891b3
cmp ax, 0x2b
je 0x1400891af
cmp ax, 0x5e
jne 0x1400891c3
mov al, 2
jmp 0x1400891b5
mov al, 1
jmp 0x1400891b5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x140089196
xor ecx, ecx
mov byte [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023640
movzx esi, al
test al, al
je 0x140089283
movzx eax, dil
or al, 4
test byte [rsp + 0x40], 0xc
movzx ecx, al
movzx eax, dil
cmove ecx, eax
movzx r8d, cl
movzx eax, r8b
or al, 2
test byte [rsp + 0x40], 3
movzx ecx, al
cmove ecx, r8d
movzx edx, cl
mov rcx, rbx
movzx eax, dl
or al, 1
test byte [rsp + 0x40], 0x30
movzx edi, al
cmove edi, edx
xor edx, edx
call fcn.140023550
movzx edx, ax
test ax, ax
jne 0x14008924e
xor edx, edx
movzx ecx, sil
call fcn.1400241a0
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, dil
or al, 8
movzx ecx, al
test dx, dx
movzx eax, dil
cmove ecx, eax
movzx eax, cl
shl ax, 8
or ax, si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14008ae20
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14008ae40
cmp ax, 9
jne 0x14008ae46
add rbx, 2
jmp 0x14008ae31
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x14008b06f
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14008ae77
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x14008b071
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400bcaf8
mov rbp, rax
test rax, rax
je 0x14008af58
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14008aeb8
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14008aeaf
cmp ax, 9
jne 0x14008aeb8
sub rdi, 2
cmp rdi, rbx
ja 0x14008aea0
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400c15e4
test eax, eax
jne 0x14008aedd
or sil, 1
jmp 0x14008af17
mov r8, rdi
lea rdx, [0x140101440]
mov rcx, rbx
call fcn.1400c15e4
test eax, eax
jne 0x14008aef9
or sil, 4
jmp 0x14008af17
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400c15e4
test eax, eax
jne 0x14008b06f
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14008af2f
cmp ax, 9
jne 0x14008af35
add rbx, 2
jmp 0x14008af20
test ax, ax
je 0x14008b06f
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400bcaf8
mov rbp, rax
test rax, rax
jne 0x14008ae93
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14008b029
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rbx, rax
cmp ax, 0xa
jne 0x14008af89
mov dl, 0xd
movzx eax, dl
jmp 0x14008b044
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x14008afdc
cmp dl, 0xff
jne 0x14008afdc
cmp bx, 0x5a
ja 0x14008afc9
cmp bx, 0x41
jb 0x14008afe1
movzx eax, bl
cmp bx, 0x5a
ja 0x14008afd7
cmp bx, 0x41
jb 0x14008afd7
mov cl, 1
jmp 0x14008afd9
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14008afe1
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x14008afe8
xor dl, dl
movzx eax, dl
jmp 0x14008b044
movzx eax, cl
and al, 6
cmp al, 6
jne 0x14008aff7
or sil, 8
jmp 0x14008b015
test cl, 2
je 0x14008b006
test sil, 3
jne 0x14008b006
or sil, 1
test cl, 4
je 0x14008b015
test sil, 0xc
jne 0x14008b015
or sil, 4
test cl, 1
je 0x14008b024
test sil, 0x30
jne 0x14008b024
or sil, 0x10
movzx eax, dl
jmp 0x14008b044
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023640
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x14008b053
or byte [r14], 8
test sil, 4
je 0x14008b05d
or byte [r14], 0x10
test sil, 0x10
je 0x14008b067
or byte [r14], 4
test ax, ax
setne al
jmp 0x14008b071
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140098dd0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140098ec4
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140098ec4
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140098e40
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140098e67
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400daca0
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14009d690
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140098eb2
cmp dword [rbp + 0x40], ebx
je 0x140098eb5
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret