joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f620
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa90
mov dil, r9b
mov rbx, r8
mov rcx, rdx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x880]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor esi, esi
cmp eax, esi
jne 0x14003f660
xor eax, eax
jmp 0x14003f7c1
lea r8, [rsp + 0x880]
lea rdx, [0x14009c1f0]
lea rcx, [rsp + 0x50]
call fcn.140018e18
lea rcx, [rsp + 0x50]
call fcn.140018b2c
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14003f6ac
lea rcx, [rsp + 0x50]
call fcn.140018b2c
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14003f6ac
lea rcx, [rsp + 0x50]
call fcn.140018b2c
mov word [rsp + rax*2 + 0x4e], si
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x14003f6c0
cmp dil, sil
je 0x14003f659
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003f659
xor edx, edx
lea rcx, [rsp + 0x260]
lea r8d, [rdx + 0x14]
call fcn.140018a40
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x260], 0xa0000003
call fcn.140018b2c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x270]
add ax, ax
mov r8d, 0x104
mov word [rsp + 0x26a], ax
add ax, 2
mov word [rsp + 0x26c], ax
call fcn.140018b48
movzx r11d, word [rsp + 0x26a]
add r11w, 0xc
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
lea r8, [rsp + 0x260]
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], esi
mov word [rsp + 0x264], r11w
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
cmp eax, esi
jne 0x14003f7b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003f6f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14003fa10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x1400993f8]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x230
pop rbx
ret

Function at 0x14003fbd0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test eax, eax
je 0x14003fbee
cmp eax, r8d
jne 0x14003fc0a
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.14001a6e8
and dword [rbx + 0x48c], 0
movsxd rdx, dword [rbx + 0x48c]
mov rax, qword [rbx + 0x480]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14003fc30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x14003fc63
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.14001a224
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003fc70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x488]
mov rax, qword [rcx + 0x478]
mov rbx, rcx
mov byte [r8 + rax], dl
mov edx, 1
mov r8d, 0x10000
add dword [rcx + 0x488], edx
cmp dword [rcx + 0x488], r8d
jne 0x14003fcbc
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.14001a224
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003fd90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x14003fdc1
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140018610
jmp 0x14003fdcf
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14001a6e8
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.140019b60
cmp eax, ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003fea0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9d, 1
mov dword [0x1400bd2e0], ecx
lea rdx, [0x1400bd2e0]
mov r8d, r9d
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
lea rax, [0x1400bdc9c]
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
cmp rdx, rax
mov dword [rdx], ecx
jl 0x14003feb6
mov dword [reloc.WSOCK32.dll_accept], r9d
mov dword [0x1400bdcb4], r9d
ret
Function at 0x1400401f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x10030
call fcn.140030df0
sub rsp, rax
mov eax, 0x1f5
mov r12d, 0xffff
mov rbx, rcx
xchg dword [rcx + 0x60], eax
mov qword [rcx + 0x20], r12
mov rcx, r12
call fcn.140017e04
mov qword [rbx + 0x10], rax
jmp 0x140040342
cmp dword [rsp + 0x10040], 0
jbe 0x14004036a
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x10040]
add rcx, rax
cmp qword [rbx + 0x20], rcx
jae 0x14004030b
mov rcx, qword [rbx + 0x18]
call fcn.140017e04
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
mov rsi, rax
call fcn.140018610
mov rcx, qword [rbx + 0x10]
call fcn.1400185f4
mov r11d, dword [rsp + 0x10040]
mov rcx, qword [rbx + 0x18]
pxor xmm0, xmm0
add r11, rcx
cvtsi2sd xmm0, r11
jns 0x1400402ab
addsd xmm0, qword [0x14009e8f8]
mulsd xmm0, qword [0x14009e8f0]
xor eax, eax
comisd xmm0, xmmword [0x14009e8e8]
jbe 0x1400402de
subsd xmm0, qword [0x14009e8e8]
comisd xmm0, xmmword [0x14009e8e8]
jae 0x1400402de
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov qword [rbx + 0x20], rcx
call fcn.140017e04
mov r8, qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call fcn.140018610
mov rcx, rsi
call fcn.1400185f4
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x10040]
lea rdx, [rsp + 0x30]
add rcx, qword [rbx + 0x10]
call fcn.140018610
mov r11d, dword [rsp + 0x10040]
mov rax, qword [rbx + 0x18]
add r11, rax
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x18], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10040]
lea rdx, [rsp + 0x30]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140040234
lea r11, [rsp + 0x10030]
mov eax, 0x1f6
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov ecx, eax
xchg dword [rbx + 0x60], ecx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret

Function at 0x140040400
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x58], 0
mov rbx, rcx
jne 0x140040437
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x140040390]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140041600
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x140041683
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x140041678
cmp ecx, 0xf
jae 0x140041676
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140041676
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x14009e900]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14004162e
jmp 0x14004167e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret

Function at 0x140041840
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, SafeArrayCreateEx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
cmp eax, edi
jne 0x14004186f
xor eax, eax
jmp 0x1400418e3
lea r8, [rsp + 0x34]
lea rdx, [0x140098f20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x14004186b
cmp ebx, 0x20
je 0x1400418d5
cmp ebx, 0x40
je 0x1400418da
mov edx, 0x80000000
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1400418e3
mov edi, 1
xor edx, edx
mov ecx, edi
call sub.KERNEL32.dll_SetSystemPowerState
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400418f0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x1400419c9
lea rcx, [rsp + 0x20]
mov edx, 0x100
call sub.WSOCK32.dll_gethostname
lea rcx, [rsp + 0x20]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x1400419c9
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x140041959
mov rax, r9
add rax, 8
inc ecx
cmp qword [rax], 0
jne 0x14004194d
cmp ebx, ecx
jle 0x14004196e
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140018120
jmp 0x1400419c2
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140018610
mov ecx, dword [rsp + 0x2e0]
call sub.WSOCK32.dll_inet_ntoa
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400194b0
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140015d70
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140018120
mov rcx, rbx
call fcn.1400185f4
call sub.WSOCK32.dll_WSACleanup
jmp 0x1400419d8
lea rdx, [0x140096618]
mov rcx, rdi
call fcn.140018120
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret
Function at 0x140041a50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140041690
lea rcx, [rsp + 0x20]
call fcn.140018b2c
xor esi, esi
mov ebx, 0x5c
cmp rax, rsi
je 0x140041a97
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x140041a97
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140041b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140041ac7
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x140041acc
mov al, 1
jmp 0x140041b25
cmp eax, 3
jne 0x140041b23
lea rcx, [rsp + 0x20]
call fcn.140015940
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.14001ac64
mov rcx, rdi
cmp rax, rsi
jne 0x140041af2
call fcn.1400185f4
jmp 0x140041b23
mov word [rax], si
call fcn.140041a50
mov rcx, rdi
mov bl, al
call fcn.1400185f4
cmp bl, sil
je 0x140041b1b
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
setne bl
mov al, bl
jmp 0x140041b25
test al, 0x10
jne 0x140041ac3
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140041e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140041e57
test al, 0x10
je 0x140041e57
mov al, 1
jmp 0x140041e59
xor al, al
add rsp, 0x28
ret

Function at 0x140041e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140041e9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140041e90
or eax, 0xffffffff
jmp 0x140041e9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x140041ed0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r12, rdx
lea rdx, [rsp + 0x30]
mov rbp, r8
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor edi, edi
mov ebx, eax
cmp eax, edi
jne 0x140041f08
xor al, al
jmp 0x1400420cd
mov rcx, rbx
call fcn.140017e04
mov r8d, ebx
xor edx, edx
mov r9, rax
mov rcx, rsi
mov r13, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rbp
call fcn.140018b2c
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140017e04
lea r15, [0x140096c8c]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140018120
mov rdx, r15
mov rcx, rbp
call fcn.140018ccc
cmp eax, edi
je 0x140042004
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.1400180f4
mov rdx, r15
mov rcx, rbp
call fcn.1400190bc
cmp rax, rdi
jne 0x140041ff9
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x140041fdf
mov rax, qword [rsp + 0x40]
lea rdx, [rsi + 0x20]
mov r8d, 4
mov ebx, dword [rax]
mov ecx, ebx
call fcn.1400411d0
shr ebx, 0x10
lea rdx, [rsi + 0x28]
mov ecx, ebx
mov r8d, 4
call fcn.1400411d0
jmp 0x140041fee
lea rdx, str.04090000
mov rcx, rsi
call fcn.1400180f4
mov rdx, r15
mov rcx, rsi
call fcn.1400180f4
mov rdx, rbp
mov rcx, rsi
call fcn.1400180f4
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140018060
cmp eax, edi
jne 0x140042046
lea rdx, [rsi + 0x20]
mov r8d, 8
mov rcx, r12
call fcn.140018b48
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.1400185f4
mov rcx, rsi
call fcn.1400185f4
mov al, 1
jmp 0x1400420cd
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x1400420ba
mov rdx, r15
mov rcx, rbp
call fcn.140018ccc
cmp eax, edi
jne 0x1400420a4
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r12
shr r8d, 0x10
call fcn.140018e18
jmp 0x1400420b7
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, r12
call fcn.140018b48
mov dil, 1
mov rcx, r13
call fcn.1400185f4
mov rcx, rsi
call fcn.1400185f4
mov al, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140042310
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1290
call fcn.140030df0
sub rsp, rax
mov rdi, r8
mov r14, rcx
mov r13, rdx
lea r8, [rsp + 0x12d8]
lea rcx, [rsp + 0xa90]
mov edx, 0x800
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x140042466
mov esi, dword [rsp + 0x12d8]
mov rcx, r14
mov byte [rdi], 0
shr esi, 2
call fcn.1400422b0
xor ebp, ebp
mov r12d, eax
test esi, esi
je 0x140042464
lea rbx, [rsp + 0xa90]
cmp byte [rdi], 0
jne 0x140042464
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x12d8]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, 8
mov r15, rax
call sub.PSAPI.DLL_EnumProcessModules
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x460]
mov r9d, 0x104
mov rcx, r15
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x14004244d
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0x880]
lea rcx, [rsp + 0x460]
mov qword [rsp + 0x20], rax
call fcn.1400198dc
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.1400180f4
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140018060
test eax, eax
jne 0x14004243a
mov eax, dword [rbx]
mov dword [r13], eax
jmp 0x14004244a
test r12d, r12d
je 0x14004244d
mov ecx, dword [rbx]
cmp r12d, ecx
jne 0x14004244d
mov dword [r13], ecx
mov byte [rdi], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add rbx, 4
cmp ebp, esi
jb 0x14004238a
mov al, 1
lea r11, [rsp + 0x1290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140042490
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0xab0
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, r12
mov byte [rbx], 0
call fcn.1400422b0
mov esi, eax
jmp 0x14004256e
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140042577
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.1400198dc
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.1400180f4
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140018060
test eax, eax
jne 0x14004255c
mov eax, dword [rsp + 0x38]
mov dword [rbp], eax
jmp 0x14004256b
test esi, esi
je 0x14004256e
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x14004256e
mov dword [rbp], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x1400424e9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xab0]
mov al, 1
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400425a0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea r11, [rsp + 0x60]
mov qword [rsp + 0x30], r11
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140042622
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x1400429d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 4
mov rbx, r8
mov rax, rdx
mov rdi, rcx
je 0x140042a23
mov esi, dword [r8]
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
mov r8d, esi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140042a4b
and dword [rbx], eax
mov rcx, qword [rdi + 8]
lea r9d, [rax + 1]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x140042a4d
mov r9, qword [rcx + 8]
movsxd r8, dword [r8]
mov edx, 1
mov rcx, rax
call fcn.14001a6e8
mov dword [rbx], eax
mov rcx, qword [rdi + 8]
call fcn.14001a740
test eax, eax
je 0x140042a4b
and dword [rbx], 0
jmp 0x140042a1f
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140042ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [rcx + 8]
mov rax, rdx
mov rbx, rcx
movsxd r8, r8d
mov edx, 1
mov rcx, rax
call fcn.14001a224
mov rcx, qword [rbx + 8]
call fcn.14001a740
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x140042fd0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140043003
mov eax, 1
jmp 0x140043168
xor ebx, ebx
cmp rax, rbx
jne 0x14004301c
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, ebx
je 0x140043037
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x140043161
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r12d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r12d
mov edx, eax
mov r8d, esi
mov r13d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x14004312f
xor edx, edx
lea esi, [rdx + 0x12]
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
je 0x140043134
lea ebx, [rsi - 0xe]
jmp 0x140043134
mov ebx, 3
xor r8d, r8d
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x140043166
mov ebx, 2
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret