joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e970
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000e9e0
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000eaa3
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e9d2
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e9c5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x28
mov rcx, rdi
call fcn.1400ec0a0
xor ecx, ecx
mov qword [rbx + 8], rcx
mov byte [rbx + 0x10], cl
jmp 0x14000eaa3
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14000ea14
lea ecx, [rax + 0x28]
call fcn.1400ec0d4
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rax + 0x20], 1
mov qword [rbx + 8], rax
jmp 0x14000ea7a
mov eax, dword [rax + 0x20]
mov rdi, qword [rbx + 8]
cmp eax, 1
jbe 0x14000ea74
mov ecx, 0x28
call fcn.1400ec0d4
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rax + 0x20], 1
mov qword [rbx + 8], rax
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000ea7a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000ea65
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x28
mov rcx, rdi
call fcn.1400ec0a0
jmp 0x14000ea7a
xor ecx, ecx
mov qword [rdi + 0x10], rcx
mov rcx, qword [rbx + 8]
mov rdx, rsi
call fcn.14000ed90
mov rax, qword [rbx + 8]
mov r8d, esi
mov rcx, rbp
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140017f70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
xor ecx, ecx
call fcn.140016650
mov rcx, qword [0x140127a30]
test rcx, rcx
je 0x140017f9d
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
movzx edx, word [0x140128a9c]
xor ebx, ebx
cmp bx, dx
jae 0x140017fee
mov qword [rsp + 0x30], rdi
mov edi, ebx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x140128a88]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x140017fdc
call fcn.140018000
movzx edx, word [0x140128a9c]
inc ebx
movzx eax, dx
add rdi, 8
cmp ebx, eax
jl 0x140017fc0
mov rdi, qword [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14001a190
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
movzx r8d, byte [0x1401289d6]
or r8b, 2
cmp qword [0x140127a88], 0
mov byte [0x1401289d6], r8b
jne 0x14001a1c8
movzx edx, word [0x140128a9c]
movzx r9d, byte [0x1401289d7]
mov rcx, qword [0x140128a88]
jmp fcn.1400156a0
ret
Function at 0x14001fd90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rsi
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbx
movzx edi, r9b
mov qword [rax - 0x18], rbp
movzx ebx, dx
mov qword [rax - 0x20], r12
movzx ebp, cl
mov qword [rax - 0x28], r13
movzx r13d, r8b
mov qword [rax - 0x38], r15
or r13b, r9b
lea eax, [rbp - 1]
cmp al, 5
ja 0x14001fdd5
cmp cl, 3
jne 0x14001fddc
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x14001fde1
mov r15b, 1
jmp 0x14001fde4
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x14001ff6e
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x14012bf24], 0
jne 0x14001fe83
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140124200]
sub eax, dword [0x14012bbc4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001fe8a
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001fe77
mov edx, 1
mov dword [0x1401241f4], 0
lea ecx, [rdx - 2]
call fcn.140001a20
mov dword [0x1401241f4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012bbc4], eax
mov rcx, qword [0x140124200]
test r12b, r12b
jne 0x14001feeb
movzx eax, byte [rcx + 0x136]
test al, al
je 0x14001fea3
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x14001fea8
mov ebx, 0xffc3d44f
cmp dword [0x14012bf24], 0
je 0x14001feba
movzx eax, byte [0x14012bf20]
jmp 0x14001fec1
xor ecx, ecx
call fcn.1400232c0
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.140022a30
mov rcx, qword [0x140124200]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x14001ff2e
test rsi, rsi
jne 0x14001ff2e
movzx eax, byte [rcx + 0x12f]
lea r9d, [rsi + 1]
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, bpl
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.140021660
jmp 0x14001ff57
movzx eax, byte [rcx + 0x136]
mov r9, rsi
mov ecx, 0xffc3d44d
movzx r8d, bx
sub ecx, eax
movzx edx, bpl
mov dword [rsp + 0x28], ecx
mov ecx, edi
mov byte [rsp + 0x20], 1
call fcn.140020500
sub r14, 1
jne 0x14001fe13
movzx edi, byte [rsp + 0xc8]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r12b, r12b
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
jne 0x14001ffdb
cmp dword [0x14012bf24], 0
je 0x14001ffaa
movzx eax, byte [0x14012bf20]
jmp 0x14001ffb1
xor ecx, ecx
call fcn.1400232c0
not dil
and dil, al
and dil, 0xcc
je 0x14001ffdb
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.140022a30
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001fff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x14012bf24], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x140020045
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x140020029
mov edx, gethostbyname
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
test ebx, ebx
jle 0x1400201bc
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xa8], r15
xor r15d, r15d
cmp dword [0x14012bf24], r15d
jne 0x1400200cd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140124200]
sub eax, dword [0x14012bbc4]
cmp eax, dword [rcx + 0x118]
jbe 0x1400200cd
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400200c1
mov edx, 1
mov dword [0x1401241f4], r15d
lea ecx, [rdx - 2]
call fcn.140001a20
mov dword [0x1401241f4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012bbc4], eax
test bpl, bpl
je 0x140020176
cmp dword [0x14012bf24], r15d
je 0x1400200e8
movzx eax, byte [0x14012bf20]
jmp 0x1400200ef
xor ecx, ecx
call fcn.1400232c0
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140022a30
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140020156
cmp ax, 0x39
ja 0x140020156
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
lea edx, [rax + 0x30]
mov byte [rsp + 0x20], r8b
xor r9d, r9d
lea ecx, [r8 + 2]
call fcn.140020500
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x140020123
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.140020500
jmp 0x140020182
movzx edx, r14b
movzx ecx, si
call fcn.14001e140
cmp dword [0x14012bf24], 2
mov rax, qword [0x140124200]
jne 0x14002019a
mov ecx, dword [rax + 0x80]
jmp 0x14002019d
mov ecx, dword [rax + 0x7c]
call fcn.140022540
sub rdi, 1
jne 0x140020063
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x1400227a0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140127a80]
test r10, r10
je 0x1400228d7
movsxd rax, dword [0x140127b50]
imul r9, rax, 0xd4
mov eax, 0x69
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140127b44], eax
sub ecx, dword [0x14012afb8]
xorps xmm0, xmm0
mov dword [0x14012afb8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140127b50]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x140114530]
mov rcx, qword [0x140127a80]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140022891
cmp rax, qword [0x140127b48]
je 0x140022875
movsxd rcx, dword [0x140127b50]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140127a80]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140127b50]
jmp 0x1400228b5
movsxd rdx, dword [0x140127b50]
mov rax, qword [0x140127a80]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400228b5
movsxd rdx, dword [0x140127b50]
movabs r8, 0x41002f004e
mov rax, qword [0x140127a80]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140127b48], rbx
cmp edx, dword [0x1401241fc]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140127b50], edx
add rsp, 0x28
ret
Function at 0x1400228e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x140022a25
cmp ebx, esi
je 0x140022a25
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140022954
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.140020500
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.140020500
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14012af90]
sete r14b
jne 0x1400229b2
mov edx, 1
mov dword [0x1401241f4], 0
lea ecx, [rdx - 2]
call fcn.140001a20
mov dword [0x1401241f4], 1
cmp dil, 0x14
jne 0x140022a09
cmp esi, 2
jne 0x140022a09
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140022a09
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.140020500
test r14b, r14b
je 0x140022a09
lea edx, [rsi - 1]
mov dword [0x1401241f4], 0
lea ecx, [rsi - 3]
call fcn.140001a20
mov dword [0x1401241f4], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140022a10
Function at 0x1400232c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140127a90], 0
je 0x1400232de
test cl, cl
jne 0x1400232de
movzx eax, byte [0x1401289d2]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov edi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, di
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
and ax, di
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
and ax, di
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
and ax, di
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
and ax, di
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
and ax, di
mov ecx, 0x5c
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, di
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx edi, cl
cmove edi, ebx
cmp qword [0x140127a90], 0
je 0x140023434
movzx ecx, byte [0x1401289d2]
movzx ebx, dil
not bl
and bl, cl
je 0x140023434
movzx edx, byte [0x1401289d0]
movzx eax, bl
not al
and byte [0x1401289d1], al
and cl, al
and dl, al
mov byte [0x1401289d2], cl
lea rcx, [0x1401288d0]
mov byte [0x1401289d0], dl
call fcn.140023450
mov rcx, qword [0x140128a60]
test rcx, rcx
je 0x140023434
test byte [rcx + 0xc], bl
mov eax, 0
cmovne rcx, rax
mov qword [0x140128a60], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400238a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140023a71
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x140106f40]
mov eax, dword [0x140106f90]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140106f50]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140106f60]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140106f70]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140106f80]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140106f94]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140023a31
lea rax, [rbp + 0x200]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023a2d
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x140023a2d
mov ecx, dword [rbp + 0x1f8]
test ecx, ecx
je 0x140023a2d
shr ecx, 1
mov edx, ecx
dec ecx
mov dword [rbp + 0x1f8], ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140023a07
mov edx, ecx
test ecx, ecx
je 0x140023a1a
nop dword [rax + rax]
dec ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140023a1a
mov dword [rbp + 0x1f8], ecx
mov edx, ecx
test ecx, ecx
jne 0x1400239f0
jmp 0x140023a1a
mov dword [rbp + 0x1f8], edx
cmp edx, 0x104
jae 0x140023a2d
mov word [rbp + rdx*2 - 0x50], di
test edx, edx
je 0x140023a31
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140023a31
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140023a41
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140023a71
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023a68
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400241b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, cx
movzx ebx, r9b
mov rsi, rdx
cmp edi, 0xa
jne 0x1400241e0
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rcx, ax
mov r8, rcx
shr r8, 8
cmp r8b, 0xff
jne 0x14002425b
cmp cl, 0xff
jne 0x14002425b
test bl, bl
je 0x140024261
mov ebp, edi
test edi, 0xffffff80
jne 0x140024261
mov edx, 0x103
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x140024261
mov edx, 2
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, 1
movzx edi, dil
mov ecx, ebp
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
movzx ecx, dil
setne r8b
and cl, 0xdf
test ebx, ebx
movzx ecx, cl
cmove ecx, edi
test r8b, 0x38
je 0x140024265
xor al, al
jmp 0x1400242af
test rsi, rsi
je 0x1400242ac
movzx eax, r8b
and al, 6
cmp al, 6
jne 0x140024279
or byte [rsi], 8
jmp 0x14002429b
test r8b, 2
je 0x14002428a
movzx eax, byte [rsi]
test al, 3
jne 0x14002428a
or al, 1
mov byte [rsi], al
test r8b, 4
je 0x14002429b
movzx eax, byte [rsi]
test al, 0xc
jne 0x14002429b
or al, 4
mov byte [rsi], al
test r8b, 1
je 0x1400242ac
movzx eax, byte [rsi]
test al, 0x30
jne 0x1400242ac
or al, 0x10
mov byte [rsi], al
movzx eax, cl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x1400f2cd0]
mov r9, rdx
not ecx
cmp r8d, 8
jb 0x1400272f1
mov r10d, r8d
shr r10, 3
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140027240
test r8d, r8d
je 0x14002731d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140027300
not ecx
mov eax, ecx
ret

Function at 0x140027740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x1400277a9
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140027793
mov dword [rdi + 0x10], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdi + 0x18]
lea rax, [rcx + rsi]
cmp rax, rdx
jbe 0x1400277be
mov esi, edx
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400277f0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x10], 0
mov rdi, rcx
jne 0x1400278ad
test byte [rcx], 1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rsi
mov esi, 2
jne 0x140027848
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140027842
mov dword [rdi + 0x10], 7
jmp 0x140027888
mov ebx, dword [rsp + 0x58]
jmp 0x140027888
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 2]
cmp rax, rcx
jbe 0x140027863
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x38]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
je 0x1400278ad
movzx eax, byte [rsp + 0x51]
movzx ecx, byte [rsp + 0x50]
shl ax, 8
or ax, cx
add rsp, 0x40
pop rdi
ret
movzx eax, word [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400278c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x50], ebx
cmp dword [rcx + 0x10], ebx
jne 0x140027993
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 4]
jne 0x140027915
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002790f
mov dword [rdi + 0x10], 7
jmp 0x140027955
mov ebx, dword [rsp + 0x58]
jmp 0x140027955
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 4]
cmp rax, rcx
jbe 0x140027930
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x140027988
movzx ecx, byte [rsp + 0x52]
movzx eax, byte [rsp + 0x53]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x51]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x50]
shl eax, 8
or eax, ecx
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400279a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov qword [rsp + 0x58], rbx
cmp dword [rcx + 0x10], ebx
jne 0x140027aab
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 8]
jne 0x1400279f6
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400279f0
mov dword [rdi + 0x10], 7
jmp 0x140027a36
mov ebx, dword [rsp + 0x50]
jmp 0x140027a36
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 8]
cmp rax, rcx
jbe 0x140027a11
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x58]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x140027a9f
movzx eax, byte [rsp + 0x5e]
movzx ecx, byte [rsp + 0x5a]
movzx edx, byte [rsp + 0x5f]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5d]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5c]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5b]
shl rdx, 8
or rax, rdx
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x59]
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x58]
shl rax, 8
or rax, rcx
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret