joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c21c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, dx
mov rbx, rcx
mov qword [rcx], 0xff
mov byte [rcx + 0xa], 0
mov word [rcx + 8], dx
call fcn.14004aae0
test al, al
jne 0x14004c248
xor al, al
jmp 0x14004c28a
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanW]
cmp ax, 0xffff
je 0x14004c244
movzx edi, ax
movzx ecx, al
xor edx, edx
sar di, 8
mov byte [rbx], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
test al, dil
je 0x14004c278
mov byte [rbx + 1], al
test dil, 2
je 0x14004c281
mov byte [rbx + 3], al
test dil, 4
je 0x14004c28a
mov byte [rbx + 4], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004c298
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov dil, dl
mov rbx, rcx
mov dword [rcx + 6], esi
mov dword [rcx + 1], esi
mov byte [rcx + 5], sil
mov byte [rcx + 0xa], sil
mov byte [rcx], dl
call fcn.14004ab40
test al, al
je 0x14004c2d9
movzx ecx, dil
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004e6a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14004e380
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004e8c4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004e8f6
call fcn.1400501d8
test al, al
jne 0x14004e913
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004e909
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14004e91c
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1ff60]
mov eax, 0x20060
call fcn.1400357e0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
lea r8, [rbp + 0xff60]
mov edx, 0x7fff
call fcn.14004fc08
lea r8, [rsp + 0x60]
mov edx, 0x7fff
mov rcx, rbx
call fcn.14004fc08
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x14004e9b7
test dil, dil
je 0x14004e9b0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call fcn.140025918
test eax, eax
je 0x14004e9a9
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x14004ea5f
xor al, al
jmp 0x14004ea5f
lea rcx, [rbp + 0xff60]
call fcn.14005017c
test al, al
je 0x14004e9b0
lea rcx, [rsp + 0x60]
call fcn.14005017c
test al, al
je 0x14004ea74
test dil, dil
je 0x14004e9b0
lea rdx, str..
lea rcx, [rbp + 0xff60]
call fcn.140024e54
lea rcx, [rbp + 0xff60]
call fcn.140024e38
lea rcx, [rsp + 0x60]
mov word [rbp + rax*2 + 0xff62], bx
call fcn.140024e38
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
lea rax, [rbp + 0xff60]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 2
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20060]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14004ed18
test al, al
je 0x14004e9b0
lea rcx, [rsp + 0x60]
call fcn.14005017c
test al, al
jmp 0x14004e9dc
Function at 0x14004ea98
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x407b8]
mov eax, 0x40890
call fcn.1400357e0
sub rsp, rax
mov r12b, r8b
mov rbx, rdx
mov r14d, 0x7fff
lea r8, [rbp + 0x10790]
xor edi, edi
mov edx, r14d
mov r15b, r9b
mov sil, dil
call fcn.14004fc08
lea r8, [rbp + 0x30790]
mov edx, r14d
mov rcx, rbx
call fcn.14004fc08
lea rdx, [rbp + 0x30790]
lea rcx, [rbp + 0x10790]
call fcn.1400500e4
lea rcx, [rbp + 0x10790]
mov r13b, al
call fcn.14005017c
test al, al
je 0x14004eb32
lea rdx, str..
lea rcx, [rbp + 0x10790]
call fcn.140024e54
lea rcx, [rbp + 0x30790]
call fcn.14005017c
test al, al
je 0x14004eb55
lea rdx, str..
lea rcx, [rbp + 0x30790]
call fcn.140024e54
lea rax, [rbp + 0x590]
lea r9, [rbp + 0x390]
lea r8, [rbp + 0x190]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x10790]
mov qword [rsp + 0x20], rax
call fcn.140026104
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10790]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14b, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ece7
cmp r14b, 1
jne 0x14004ece7
test byte [rsp + 0x40], 0x10
jne 0x14004ecbc
lea rax, [rbp + 0x20790]
lea r9, [rbp + 0x30790]
lea r8, [rbp + 0x590]
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
call fcn.14004f4d8
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x790]
call fcn.140024e80
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x790]
call fcn.140024e54
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x790]
call fcn.140024e54
lea rcx, [rbp + 0x20790]
call fcn.14004ef58
test al, al
je 0x14004ec55
test r12b, r12b
je 0x14004ecda
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004ec76
lea rcx, [rbp + 0x20790]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
cmp r15b, 1
jne 0x14004ecac
test r13b, r13b
jne 0x14004ec90
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14004ecb5
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14004ecea
jmp 0x14004ecb9
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004ecda
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14004ecb5
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004ecda
mov sil, 1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004eba2
mov r14b, dil
jmp 0x14004eba2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004ecf6
mov dil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, dil
lea r11, [rsp + 0x40890]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14004ed18
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10020
call fcn.1400357e0
sub rsp, rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x7fff
call fcn.1400051e4
lea rcx, [rsp + 0x20]
call fcn.140024e38
xor esi, esi
mov edi, 0x5c
test rax, rax
je 0x14004ed65
cmp word [rsp + rax*2 + 0x1e], di
jne 0x14004ed65
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004edf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14004ed95
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14004ed9a
mov al, 1
jmp 0x14004edf6
cmp eax, 3
jne 0x14004edf4
lea rcx, [rsp + 0x20]
call fcn.140007bb0
mov edx, edi
mov rcx, rax
mov rbx, rax
call fcn.140026960
mov rcx, rbx
test rax, rax
jne 0x14004edc0
call fcn.140024d50
jmp 0x14004edf4
mov word [rax], si
call fcn.14004ed18
mov rcx, rbx
mov dil, al
call fcn.140024d50
test dil, dil
je 0x14004edeb
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne dil
mov al, dil
jmp 0x14004edf6
test al, 0x10
jne 0x14004ed91
xor al, al
lea r11, [rsp + 0x10020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14004ee0c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10380]
mov eax, 0x10480
call fcn.1400357e0
sub rsp, rax
lea r8, [rbp + 0x380]
xor ebx, ebx
mov edx, 0x7fff
mov r14b, bl
call fcn.14004fc08
lea rcx, [rbp + 0x380]
call fcn.14005017c
test al, al
je 0x14004ee68
lea rdx, str..
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x103a8]
lea rcx, [rbp + 0x380]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call fcn.140026104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004ef18
cmp sil, 1
jne 0x14004ef18
test byte [rsp + 0x30], 0x10
jne 0x14004ef01
lea rdx, [rbp + 0x103a8]
lea rcx, [rbp + 0x380]
mov r14b, sil
call fcn.140024e80
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14004ef1b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004eea8
mov sil, bl
jmp 0x14004eea8
mov bl, r14b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x10480]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004ef6c
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 r14
sub rsp, 0x690
mov r14, rdx
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbp
mov byte [rbx], 0
call fcn.14004fdd4
mov esi, eax
jmp 0x14004f03f
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14004f044
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea rcx, [rsp + 0x5c]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140026104
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140024e54
lea rcx, [rsp + 0x270]
mov rdx, rbp
call fcn.1400251d4
test eax, eax
jne 0x14004f02d
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
jmp 0x14004f03c
test esi, esi
je 0x14004f03f
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x14004f03f
mov dword [r14], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x14004efc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x690]
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 r14
ret

Function at 0x14004f070
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
and qword [rax - 0x58], 0
and dword [rdx], 0
mov rdi, rdx
mov edx, 0x80
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x60], edx
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004f0b4
xor al, al
jmp 0x14004f12d
and dword [rsp + 0x40], 0
and dword [rsp + 0x44], 0
xor eax, eax
lea ebx, [rax + 0x28]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x48], eax
call fcn.140024eb0
and qword [rsp + 0x38], 0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
lea r9d, [rbx - 0x1c]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004f0b0
mov eax, dword [rsp + 0x6c]
mov dword [rdi], eax
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004f144
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400dce40]
xor edi, edi
cmp byte [rax + 0x39], dil
jne 0x14004f16c
mov eax, 0x80004005
jmp 0x14004f206
mov edx, 0x80
mov qword [rsp + 0x30], rdi
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f162
xor eax, eax
mov qword [rsp + 0x38], rdi
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov rcx, rsi
mov qword [rsp + 0x50], 7
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004f162
cmp byte [rsp + 0x48], dil
setne dil
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14004f9a8
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 0x14004f9e5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14004f9d8
or eax, 0xffffffff
jmp 0x14004f9e5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x14004f9f0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbp, rdx
lea rdx, [rax - 0x38]
mov rsi, r8
mov r15, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x14004fbee
mov rcx, rdi
call fcn.140024ca8
mov r8d, edi
xor edx, edx
mov r9, rax
mov rcx, r15
mov r14, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rsi
call fcn.140024e38
lea rcx, [rax + 0x1a]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024ca8
lea r15, [0x1400b0b70]
mov rdx, r15
mov rcx, rax
mov rdi, rax
call fcn.140024e80
mov rdx, r15
mov rcx, rsi
call fcn.140025918
test eax, eax
je 0x14004fb23
lea rdx, str.StringFileInfo_
mov rcx, rdi
call fcn.140024e54
mov rdx, r15
mov rcx, rsi
call fcn.140025da0
test rax, rax
jne 0x14004fb18
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004fafe
mov rax, qword [rsp + 0x40]
lea rdx, [rdi + 0x20]
mov r8d, 4
mov r11d, dword [rax]
mov ecx, r11d
call fcn.140008e60
shr r11, 0x10
lea rdx, [rdi + 0x28]
mov rcx, r11
call fcn.140008e60
jmp 0x14004fb0d
lea rdx, str.04090000
mov rcx, rdi
call fcn.140024e54
mov rdx, r15
mov rcx, rdi
call fcn.140024e54
mov rdx, rsi
mov rcx, rdi
call fcn.140024e54
lea rdx, str.DefaultLangCodepage
mov rcx, rsi
call fcn.1400251d4
test eax, eax
jne 0x14004fb61
lea rdx, [rdi + 0x20]
lea r8d, [rax + 8]
mov rcx, rbp
call fcn.140026854
mov rcx, r14
mov word [rbp + 0x10], bx
call fcn.140024d50
mov rcx, rdi
call fcn.140024d50
mov al, 1
jmp 0x14004fbee
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004fbdc
mov rdx, r15
mov rcx, rsi
call fcn.140025918
test eax, eax
jne 0x14004fbc0
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, rbp
shr r8d, 0x10
call fcn.140025a64
jmp 0x14004fbda
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, rbp
call fcn.140026854
mov word [rbp + 0x400], bx
mov bl, 1
mov rcx, r14
call fcn.140024d50
mov rcx, rdi
call fcn.140024d50
mov al, bl
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004fc6c
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 qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14004fd4a
lea rcx, [rsp + 0x20]
mov edx, 0x100
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14004fd4a
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x14004fcd8
mov rax, r9
lea rax, [rax + 8]
inc ecx
cmp qword [rax], 0
jne 0x14004fccc
cmp ebx, ecx
jle 0x14004fced
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140024e80
jmp 0x14004fd42
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140024790
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140026ac0
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140050d50
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140024e80
mov rcx, rbx
call fcn.140024d50
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14004fd59
lea rdx, [0x1400b0af8]
mov rcx, rdi
call fcn.140024e80
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x14004fe28
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
lea rax, [rsp + 0x30]
mov rbx, rdx
mov edx, ecx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140012d0c
add rsp, 0x240
pop rbx
ret

Function at 0x140050054
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x1400500ce
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140050193
test al, 0x10
je 0x140050193
mov al, 1
jmp 0x140050195
xor al, al
add rsp, 0x28
ret
Function at 0x140050210
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
mov byte [0x1400de0a1], dil
test ebx, ebx
je 0x140050286
mov byte [0x1400de0a2], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x140050758]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400265a4
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x1400502bb
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400de0a2], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400de0a1], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400504f4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20390]
mov eax, 0x20490
call fcn.1400357e0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
lea r8, [rbp + 0x10390]
mov edx, 0x7fff
call fcn.14004fc08
lea r8, [rbp + 0x390]
mov edx, 0x7fff
mov rcx, rbx
call fcn.14004fc08
lea rcx, [rbp + 0x10390]
call fcn.14005017c
xor ebx, ebx
test al, al
jne 0x140050558
xor al, al
jmp 0x1400506ea
lea rcx, [rbp + 0x390]
call fcn.14005017c
test al, al
je 0x14005061e
test dil, dil
je 0x140050551
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x10390]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, [rbp + 0x10390]
test eax, eax
jne 0x1400505c5
lea rdx, [rbp + 0x390]
call fcn.140025918
test eax, eax
je 0x1400505be
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x10390]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x1400506ea
mov al, 1
jmp 0x1400506ea
lea rax, [rsp + 0x70]
lea r9, [rbp + 0x180]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140026104
lea rdx, [0x1400b0b70]
lea rcx, [rbp + 0x390]
call fcn.140024e54
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x390]
call fcn.140024e54
cmp word [rsp + 0x70], bx
je 0x14005061e
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x390]
call fcn.140024e54
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x10390]
call fcn.1400500e4
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x10390]
test al, al
je 0x140050668
mov r8b, 1
call fcn.14004e91c
test al, al
je 0x140050551
lea rcx, [rbp + 0x10390]
mov dl, 1
call fcn.14005093c
test al, al
jmp 0x1400505b6
call fcn.140025918
test eax, eax
je 0x140050551
lea rcx, [rbp + 0x10390]
call fcn.140024e38
lea rcx, [rbp + 0x390]
mov word [rbp + rax*2 + 0x10392], bx
call fcn.140024e38
lea rcx, [rsp + 0x30]
mov word [rbp + rax*2 + 0x392], bx
lea rax, [rbp + 0x10390]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x390]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rax
mov eax, 0x614
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 1
mov word [rsp + 0x50], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret