joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fcc90
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [0x1402e2b78]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400fccc7
call rcx
mov edi, eax
jmp 0x1400fccc9
mov edi, ebx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.1401e42d0
cmp edi, 0xffffffff
je 0x1400fcd5a
cmp edi, dword [0x1402da430]
je 0x1400fcd5a
lea rdx, str.GlobalGotoHTTP__u
lea rcx, [rsp + 0x30]
mov r8d, edi
mov dword [0x1402da430], edi
call fcn.1401e462c
lea rdx, [rsp + 0x30]
mov ecx, edi
mov dword [0x1402e2b84], ebx
call fcn.1400fc910
test rax, rax
je 0x1400fcd29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400fcd5a
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fcd5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.creating_ui_process_error__err_u
lea rdx, str..Service.cpp
mov r8d, 0x42d
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
mov eax, dword [0x1402e2b84]
inc eax
mov dword [0x1402e2b84], eax
cmp eax, 5
jne 0x1400fce1f
mov qword [rsp + 0x260], rsi
mov dword [0x1402e2b84], ebx
cmp word [rsp + 0x30], bx
jne 0x1400fcd9a
lea rdx, str.GlobalGotoHTTP__u
lea rcx, [rsp + 0x30]
mov r8d, edi
call fcn.1401e462c
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x1400fce17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xb7
je 0x1400fce17
lea rdx, [rsp + 0x30]
mov ecx, edi
call fcn.1400fc910
test rax, rax
je 0x1400fcde6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400fce17
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fce17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.creating_ui_process_error__err_u
lea rdx, str..Service.cpp
mov r8d, 0x445
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
mov rsi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400fce40
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
test rcx, rcx
jne 0x1400fce6a
xor eax, eax
jmp 0x1400fcef5
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov qword [rsp + 0x288], rdi
mov dword [rsp + 0x20], 0
call fcn.1401e42d0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400fceeb
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400fcee2
nop dword [rax + rax]
lea rcx, [rsp + 0x4c]
mov rdx, rbx
call fcn.1401e5458
test eax, eax
je 0x1400fcf0e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400fcec0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x270
pop rbx
ret
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400fceed

Function at 0x1400fd150
Capabilities:
Simulate ctrl alt del

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
lea rcx, str.Winlogon
mov r9d, 0x400001cf
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov rdi, rax
test rax, rax
je 0x1400fd209
mov rcx, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x1400fd1c9
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fd1c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SetThreadDesktop_ERROR__d
lea rdx, str.c:work_t120_vs2008gotohttpTShareApe.h
mov r8d, 0x117
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
lea rdx, str.SAS_window
lea rcx, str.SAS_window_class
call qword [sym.imp.USER32.dll_FindWindowW]
mov ecx, 0xffff
mov r9d, 0x2e0003
test rax, rax
mov edx, 0x312
cmove rax, rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CloseDesktop]
test rbx, rbx
je 0x1400fd21c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fd600
Capabilities:
Start service

Disassembly:
sub rsp, 0x28
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14001ba20
test al, al
jne 0x1400fd665
mov ecx, 0x20
call fcn.1401e37b4
test rax, rax
je 0x1400fd652
lea rcx, vtable.CADThread.0
xor r8d, r8d
xor edx, edx
mov qword [rax], rcx
mov rcx, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0
mov qword [rax + 0x18], rax
add rsp, 0x28
jmp fcn.140001050
xor eax, eax
xor r8d, r8d
xor edx, edx
mov rcx, rax
add rsp, 0x28
jmp fcn.140001050
mov ecx, 0x83
add rsp, 0x28
jmp fcn.1400fc780
Function at 0x1400fdc10
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x900
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
xor ebp, ebp
mov esi, r8d
mov rbx, rdx
mov rdi, rbp
test rcx, rcx
je 0x1400fdc49
call fcn.140001930
mov rdi, rax
lea rax, [rsp + 0xf0]
mov rdx, rdi
sub rax, rdi
nop word [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rax + rdx - 2], cx
test cx, cx
jne 0x1400fdc60
test rdi, rdi
je 0x1400fdc7e
mov rcx, rdi
call fcn.1401e36c8
test rbx, rbx
je 0x1400fdce0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xf0]
repne scasw ax, word [rdi]
mov eax, dword [0x14023c460]
mov rcx, rbx
mov dword [rdi - 2], eax
call fcn.140001930
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xf0]
mov r11, rax
xor eax, eax
repne scasw ax, word [rdi]
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [r11 + rdx]
add rdx, 2
mov word [rdi + rdx - 4], cx
test cx, cx
jne 0x1400fdcc0
test r11, r11
je 0x1400fdce0
mov rcx, r11
call fcn.1401e36c8
call fcn.1400fd760
lea rcx, str.SeDebugPrivilege
mov rbx, rax
call fcn.1400fcf20
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.1401e42d0
mov dword [rsp + 0x80], WSASetLastError
test esi, esi
je 0x1400fdd29
mov dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], bp
xor eax, eax
lea rcx, [rsp + 0x60]
mov rdx, rbx
lea r8d, [rax + 1]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], rbp
lea edi, [rax + 0x20]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, 0x420
lea r8, [rsp + 0xf0]
test eax, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmovne edi, ecx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400fdde9
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fdddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateProcess_err__d
lea rdx, str..Service.cpp
mov r8d, 0x7dd
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400fde1d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400fde02
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x930]
add rsp, 0x900
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fde40
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea ecx, [rbx + 0x18]
call fcn.1401e37b4
mov rdi, rax
test rax, rax
je 0x1400fde98
mov qword [rax], rbx
mov dword [rax + 8], 0x80
mov dword [rax + 0xc], ebx
mov dword [rax + 0x10], 1
mov ecx, 0x80
call fcn.1401e3610
mov qword [rdi], rax
mov byte [rax], bl
jmp 0x1400fde9b
mov rdi, rbx
mov qword [rsp + 0x58], rdi
lea rdx, str._C_start
lea rcx, [rsp + 0x58]
call fcn.140004290
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140003520
lea r8, [0x14023c498]
mov edx, 0x26
lea rcx, [rsp + 0x58]
call fcn.1400fdb00
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.14001ba20
test al, al
je 0x1400fdf3f
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400fdef7
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400fdefa
mov rdx, rbx
mov r8d, 1
lea rcx, str.cmd.exe
call fcn.1400fdc10
test eax, eax
je 0x1400fdf3f
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400fdf38
dec dword [rbx + 0x10]
cmp dword [rbx + 0x10], 0
jg 0x1400fdf38
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400fdf30
call fcn.1401e36c8
mov rcx, rbx
call fcn.1401e32b0
mov eax, 1
jmp 0x1400fdf91
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta bl
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400fdf8f
dec dword [rdi + 0x10]
cmp dword [rdi + 0x10], 0
jg 0x1400fdf8f
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400fdf87
call fcn.1401e36c8
mov rcx, rdi
call fcn.1401e32b0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400fe1b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, rcx
mov r9, rcx
lea r8, [0x14023c578]
lea rcx, [rsp + 0x490]
mov edx, 0x104
call fcn.1401e6fc4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400fe2db
test byte [rsp + 0x30], 0x10
je 0x1400fe284
lea rsi, [rsp + 0x5c]
lea rdi, [0x14023c574]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400fe2bc
lea rsi, [rsp + 0x5c]
lea rdi, [0x14023c56c]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400fe2bc
lea rax, [rsp + 0x5c]
lea r8, str._s_s
lea rcx, [rsp + 0x280]
mov r9, rbx
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1401e6fc4
lea rcx, [rsp + 0x280]
call fcn.1400fe1b0
jmp 0x1400fe2b8
lea rax, [rsp + 0x5c]
lea r8, str._s_s
lea rcx, [rsp + 0x280]
mov r9, rbx
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1401e6fc4
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400fe2e8
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400fe218
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400fe2ec
xor eax, eax
jmp 0x1400fe2f1
mov eax, 1
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401e42a0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400fe320
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400fe371
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x20], 0x10
mov rcx, rbx
je 0x1400fe369
call fcn.1400fe1b0
jmp 0x1400fe373
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400fe373
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x280
pop rbx
ret
Function at 0x1400fec70
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r8
mov r8d, dword [rcx + 0x38]
mov rbx, rdx
lea rcx, [rsp + 0x58]
lea rdx, str..pipegotohttp_u
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
call fcn.1401e5c60
lea r11, [rsp + 0x40]
mov r9d, 2
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], 0
lea edx, [r9 + 1]
xor r8d, r8d
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400fed1d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x1400fed21
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400fed5e
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1400fed14
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400ff100
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov edi, ecx
test rdx, rdx
jne 0x1400ff11f
xor eax, eax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
lea rcx, [0x1402e2b90]
mov qword [rsp + 0x60], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x1402da5b8]
xor r12d, r12d
mov rax, r12
test rdx, rdx
je 0x1400ff223
mov r8, qword [0x1402da5a8]
nop
mov rcx, qword [r8 + rax*8]
cmp dword [rcx + 0x38], edi
je 0x1400ff166
inc rax
cmp rax, rdx
jb 0x1400ff150
jmp 0x1400ff223
xor eax, eax
mov qword [rsp + 0x50], rsi
mov rsi, qword [rcx + 0x28]
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rsi, 0xffffffffffffffff
je 0x1400ff21e
cmp rcx, 1
jne 0x1400ff1b8
cmp byte [rbx], 0x7f
jne 0x1400ff1b8
lea r9, [rsp + 0x58]
lea r8d, [rax + 3]
lea rdx, [0x14023c714]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400ff1d1
mov r8d, ecx
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test ebp, ebp
je 0x1400ff1f6
test rdi, rdi
je 0x1400ff1e7
movzx eax, byte [rdi + rbx - 1]
cmp al, 0xa
je 0x1400ff21e
cmp al, 3
je 0x1400ff21e
mov r8d, 2
lea rdx, [0x14029d050]
jmp 0x1400ff20b
cmp rdi, 1
jne 0x1400ff21e
cmp byte [rbx], 0xd
jne 0x1400ff21e
mov r8d, edi
lea rdx, [0x14029d120]
lea r9, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x50]
lea rcx, [0x1402e2b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400ff380
Capabilities:
Terminate process

Disassembly:
push r12
sub rsp, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov esi, ecx
lea rcx, [0x1402e2b90]
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x1402da5b8]
xor r11d, r11d
test rdx, rdx
je 0x1400ff3fe
mov r8, qword [0x1402da5a8]
nop
mov rbx, qword [r8 + r11*8]
mov eax, dword [rbx + 0x38]
cmp eax, esi
je 0x1400ff3de
test esi, esi
jne 0x1400ff3d4
cmp eax, 0x64
jb 0x1400ff3de
inc r11
cmp r11, rdx
jb 0x1400ff3c0
jmp 0x1400ff3fe
mov edx, 0x18
xor ecx, ecx
call fcn.1401e4a98
test rax, rax
je 0x1400ff3fe
mov rcx, qword [rbx + 0x20]
mov r12, rax
mov ebp, 1
mov qword [rax], rcx
lea rcx, [0x1402e2b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbp, rbp
je 0x1400ff4c8
mov qword [rsp + 0x58], rdi
mov rdi, r12
nop dword [rax]
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [reloc.WS2_32.dll_accept], 3
mov ebx, eax
jg 0x1400ff461
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x22
lea r9, str.terminalte_ret_d__err_d
mov dword [rsp + 0x28], eax
lea ecx, [r8 - 0x1f]
lea rdx, str..TProcess.cpp
mov dword [rsp + 0x20], ebx
call fcn.1400045a0
test esi, esi
jne 0x1400ff4b5
nop word [rax + rax]
mov rbx, qword [rdi]
lea rcx, [0x1402e2b90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1402da5b8]
xor r11d, r11d
test rcx, rcx
je 0x1400ff4a8
mov rdx, qword [0x1402da5a8]
mov rax, qword [rdx + r11*8]
cmp qword [rax + 0x20], rbx
je 0x1400ff4eb
inc r11
cmp r11, rcx
jb 0x1400ff496
lea rcx, [0x1402e2b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rdi, 8
sub rbp, 1
jne 0x1400ff420
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test r12, r12
je 0x1400ff4e4
mov rcx, r12
call fcn.1401e36c8
add rsp, 0x30
pop r12
ret
lea rcx, [0x1402e2b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ff470
Function at 0x1400ff990
Capabilities:
Capture microphone audio

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp dword [rcx + 8], 0x7e
mov rsi, rcx
je 0x1400ffa3e
cmp qword [rcx + 0xc8], 0
jne 0x1400ffa3e
xor ebp, ebp
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov dword [rcx + 0xc], ebp
mov rbx, rbp
lea rdi, [rcx + 0x10]
nop dword [rax + rax]
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0xb8]
mov r8d, gethostbyaddr
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
jne 0x1400ffa25
inc rbx
add rdi, 8
cmp rbx, 0x10
jl 0x1400ff9d0
mov rcx, qword [rsi + 0xb8]
call qword [sym.imp.WINMM.dll_waveInStart]
mov ecx, 2
test eax, eax
cmovne ebp, ecx
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x1400ffa37
call qword [sym.imp.WINMM.dll_waveInReset]
mov eax, 1
jmp 0x1400ffa10
add rcx, 0x98
xor edx, edx
mov r8d, 0x80000
call fcn.140001050
xor ebp, ebp
test eax, eax
sete bpl
mov eax, ebp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x1400ffb10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx + rcx]
lea ecx, [rax + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400ffbb2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400ffb6e
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401e3ed0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400ffba9
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400ffc50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x50], ebp
test r8d, r8d
je 0x1400ffca3
nop dword [rax + rax]
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400ffcbd
sub ebx, dword [rsp + 0x50]
jne 0x1400ffc80
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor eax, eax
jmp 0x1400ffca8
Function at 0x1400ffe00
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x60
mov ebx, ecx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x48], r9
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x40], 0
mov word [rsp + 0x3a], dx
mov word [rsp + 0x38], cx
test edx, edx
jne 0x1400ffea8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x3a], ax
test ax, ax
je 0x1400ffea8
mov eax, dword [rsp + 0x3c]
or eax, 8
mov dword [rsp + 0x3c], eax
cmp ebx, 0x5b
je 0x1400ffea1
cmp ebx, 0x5c
je 0x1400ffea1
cmp ebx, 0x5d
je 0x1400ffea1
cmp ebx, 0x25
je 0x1400ffea1
cmp ebx, 0x27
je 0x1400ffea1
cmp ebx, 0x26
je 0x1400ffea1
cmp ebx, 0x28
je 0x1400ffea1
cmp ebx, 0x24
je 0x1400ffea1
cmp ebx, 0x23
je 0x1400ffea1
cmp ebx, 0x2e
je 0x1400ffea1
cmp ebx, 0x2d
je 0x1400ffea1
cmp ebx, 0x21
je 0x1400ffea1
cmp ebx, 0x22
je 0x1400ffea1
cmp ebx, 0xa5
je 0x1400ffea1
cmp ebx, 0xa3
je 0x1400ffea1
cmp ebx, 0x13
jne 0x1400ffea8
or eax, 1
mov dword [rsp + 0x3c], eax
mov r8d, 0x28
lea rdx, [rsp + 0x30]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
cmp eax, 1
je 0x1400ffef3
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400ffef3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Injection_failed._err_d
lea rdx, str..TShareApe.cpp
mov r8d, 0x583
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
add rsp, 0x60
pop rbx
ret

Function at 0x1401001f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
mov qword [rsp + 0x38], rsi
xor esi, esi
mov rdi, rcx
cmp qword [rcx + 0x398], rsi
jbe 0x1401002c6
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r12
mov r12d, 0x8000
nop dword [rax]
mov rax, qword [rdi + 0x388]
movzx ebx, word [rax + rsi*2]
cmp ebx, 0xa2
je 0x14010027c
cmp ebx, 0xa3
je 0x14010027c
cmp ebx, 0x11
je 0x14010027c
cmp ebx, 0xa0
je 0x140100275
cmp ebx, 0xa1
je 0x140100275
cmp ebx, 0x10
je 0x140100275
cmp ebx, 0xa4
je 0x14010026e
cmp ebx, 0xa5
je 0x14010026e
cmp ebx, 0x12
je 0x14010026e
mov ecx, ebx
jmp 0x140100281
mov ecx, reloc.WS2_32.dll_select
jmp 0x140100281
mov ecx, reloc.WS2_32.dll_recv
jmp 0x140100281
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test r12w, ax
je 0x1401002ac
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.1400ffe00
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov ecx, ebx
call fcn.1400ffe00
inc rsi
cmp rsi, qword [rdi + 0x398]
jb 0x140100220
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x388]
mov rsi, qword [rsp + 0x38]
test rcx, rcx
je 0x1401002dc
call fcn.1401e36c8
mov qword [rdi + 0x388], 0
mov qword [rdi + 0x390], 0
mov qword [rdi + 0x398], 0
add rsp, 0x20
pop rdi
ret