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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov qword [rcx], 0xff
mov byte [rcx + 0xa], al
mov rbx, rcx
mov word [rcx + 8], dx
test dx, dx
je 0x1400794ef
movzx ecx, dx
call qword [sym.imp.USER32.dll_VkKeyScanW]
movzx edi, ax
cmp ax, 0xffff
je 0x1400794ef
movzx ecx, dil
xor edx, edx
mov byte [rbx], cl
sar di, 8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
test al, dil
je 0x1400794db
mov byte [rbx + 1], al
test dil, 2
je 0x1400794e4
mov byte [rbx + 3], al
test dil, 4
je 0x1400794f1
mov byte [rbx + 4], al
jmp 0x1400794f1
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400794fc
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx + 6], eax
mov dword [rcx + 1], eax
mov byte [rcx + 5], al
mov byte [rcx + 0xa], al
mov byte [rcx], dl
cmp dl, 0xff
je 0x14007952a
movzx ecx, dl
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14007b334
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.14007b188
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14007b5d4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14007b606
call fcn.14007cf30
test al, al
jne 0x14007b623
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 0x14007b619
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 0x14007b62c
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.140048f90
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.14007ca34
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.14007ca34
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x14007b6c1
test dil, dil
je 0x14007b6e3
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.1400295bc
test eax, eax
je 0x14007b7b7
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14007b7b7
lea rcx, [rbp + 0xff80]
call fcn.14007ced4
test al, al
je 0x14007b6e3
lea rcx, [rbp - 0x80]
call fcn.14007ced4
test al, al
je 0x14007b6fe
test dil, dil
jne 0x14007b736
xor al, al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000ec00
lea rcx, [rsp + 0x58]
call fcn.14007bab8
test al, al
lea rcx, [rsp + 0x58]
sete bl
call fcn.14000a07c
test bl, bl
jne 0x14007b6e3
lea rcx, [rbp - 0x80]
call fcn.14007ced4
test al, al
je 0x14007b6e3
lea rdx, str..
lea rcx, [rbp + 0xff80]
call fcn.14002dd98
lea rcx, [rbp + 0xff80]
call fcn.140028d58
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140028d58
xorps xmm0, xmm0
mov dword [rsp + 0x44], esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
movdqu xmmword [rsp + 0x48], xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007b6e3
mov al, 1
jmp 0x14007b6e5
Function at 0x14007ba80
Capabilities:
Copy file

Disassembly:
sub rsp, 0x38
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov rcx, qword [rcx]
xor r9d, r9d
and dword [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp eax, 1
sete al
add rsp, 0x38
ret

Function at 0x14007bab8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rcx + 0x10]
lea r12, [0x1400b62a4]
mov r8, qword [rcx + 8]
xor ebx, ebx
mov rsi, qword [rcx]
mov edi, 1
mov qword [rbp - 0x30], rax
or r14, 0xffffffffffffffff
mov rax, qword [rcx + 0x18]
mov edx, ebx
mov qword [rbp - 0x40], rsi
lea rcx, [r8 - 1]
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x28], rax
add dword [rax], edi
test r8, r8
je 0x14007bb4b
mov r10, rbx
mov r9, rbx
mov r11d, 0x5c
cmp word [rsi + rcx*2], r11w
lea rax, [r9 + 1]
cmovne rax, r9
add r10, rdi
mov r9, rax
movzx r11d, word [r12 + r10*2]
test r11w, r11w
jne 0x14007bb1d
test rax, rax
je 0x14007bb4e
sub rcx, rdi
add rdx, rdi
cmp rdx, r8
jb 0x14007bb11
mov rcx, r14
cmp rcx, r14
lea rax, [rcx + 1]
mov rdx, rbx
lea rcx, [rbp - 0x40]
cmovne rdx, rax
mov r8, r14
call fcn.14000dda4
mov rsi, qword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007bc3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14007bb9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14007bba6
jmp 0x14007bc49
cmp eax, 3
jne 0x14007bc46
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
mov qword [rbp - 0x20], rsi
add dword [rax], edi
mov rax, rbx
mov rcx, qword [rbp - 0x18]
lea rdx, [rcx - 1]
test rcx, rcx
je 0x14007bc01
mov r10, qword [rbp - 0x20]
mov r9, rbx
mov r8d, 0x5c
cmp word [r10 + rdx*2], r8w
je 0x14007bc04
add r9, rdi
movzx r8d, word [r12 + r9*2]
test r8w, r8w
jne 0x14007bbe1
sub rdx, rdi
add rax, rdi
cmp rax, rcx
jb 0x14007bbd8
mov rdx, r14
cmp rdx, r14
je 0x14007bc34
mov r8, r14
lea rcx, [rbp - 0x20]
call fcn.14000dda4
lea rcx, [rbp - 0x20]
call fcn.14007bab8
test al, al
je 0x14007bc32
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea rcx, [rbp - 0x20]
call fcn.14000a07c
jmp 0x14007bc46
test al, 0x10
je 0x14007bc46
mov bl, dil
mov dil, bl
lea rcx, [rbp - 0x40]
call fcn.14000a07c
lea r11, [rsp + 0x60]
mov al, dil
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14007bc70
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x30]
mov r14b, dil
call fcn.140009640
lea rcx, [rsp + 0x70]
call fcn.140009640
lea rcx, [rsp + 0x50]
call fcn.140009640
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400056d4
mov rcx, qword [rsp + 0x30]
call fcn.14007ced4
test al, al
je 0x14007bce4
lea rdx, str..
lea rcx, [rsp + 0x30]
call fcn.1400071f8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400074ac
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov sil, 1
cmp rax, 0xffffffffffffffff
je 0x14007bd87
cmp sil, 1
jne 0x14007bd87
test byte [rbp - 0x70], 0x10
jne 0x14007bd66
lea rdx, [rsp + 0x70]
mov r14b, sil
lea rcx, [rsp + 0x30]
call fcn.14000e0a8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140007c24
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.1400071f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14007bd7c
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007bd1b
mov sil, dil
jmp 0x14007bd1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007bd93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14000a07c
lea rcx, [rsp + 0x70]
call fcn.14000a07c
lea rcx, [rsp + 0x30]
call fcn.14000a07c
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007be00
Capabilities:
Enumerate processes

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 - 0x1f8]
sub rsp, 0x2d0
mov r15, rdx
mov dword [rbp - 0x70], 0x238
xor edx, edx
mov r12, rcx
mov rdi, r8
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x70]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rsi, qword [r12]
xor r13d, r13d
mov byte [rdi], r13b
mov ebx, r13d
movzx ecx, word [rsi]
jmp 0x14007be72
call fcn.14002a8ec
test eax, eax
je 0x14007be87
inc ebx
movzx ecx, word [rsi + rbx*2]
test cx, cx
jne 0x14007be63
mov rcx, rsi
call fcn.14002a838
mov rbx, rax
jmp 0x14007bf49
mov ebx, r13d
jmp 0x14007bf49
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14007bf52
lea rcx, [rsp + 0x30]
call fcn.140009640
lea rcx, [rsp + 0x50]
call fcn.140009640
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.14000ec00
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400074ac
lea rcx, [rsp + 0x70]
call fcn.14000a07c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140007c24
mov rax, qword [r12 + 8]
mov r9, qword [r12]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.140021ad0
mov ecx, dword [rbp - 0x68]
test eax, eax
je 0x14007bf2f
test ebx, ebx
je 0x14007bf35
cmp ebx, ecx
jne 0x14007bf35
mov byte [rdi], 1
mov dword [r15], ecx
lea rcx, [rsp + 0x50]
call fcn.14000a07c
lea rcx, [rsp + 0x30]
call fcn.14000a07c
cmp byte [rdi], r13b
je 0x14007be8f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2d0]
mov al, 1
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 0x14007bf80
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
mov rdi, rdx
and dword [rdx], 0
xor r9d, r9d
mov edx, 0x80
mov dword [rax - 0x60], edx
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007c03b
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
and dword [rsp + 0x44], 0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x48], eax
lea ebx, [rax + 0x28]
mov r8d, ebx
call fcn.140026240
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x98]
and dword [rsp + 0x98], 0
lea r9d, [rbx - 0x1c]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007c03b
mov eax, dword [rsp + 0x6c]
mov dword [rdi], eax
mov al, 1
jmp 0x14007c03d
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007c054
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
xor edi, edi
mov edx, 0x80
mov qword [rax - 0x38], rdi
xor r9d, r9d
mov dword [rax - 0x40], edx
lea r8d, [rdi + 3]
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007c0f9
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x54], rax
lea r9d, [rdi + 0xc]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov edx, 0x2d1400
lea rax, [rsp + 0x78]
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007c0f9
cmp byte [rsp + 0x48], dil
setne dil
mov eax, edi
jmp 0x14007c0fe
mov eax, 0x80004005
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp word [rbx + rdx*2 - 2], 0x22
je 0x14007c80e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007c811
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14007c80e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
jmp 0x14007c811
or eax, 0xffffffff
add rsp, 0x270
pop rbx
ret
Function at 0x14007c81c
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
mov rsi, r8
lea rdx, [rax - 0x38]
mov r15, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x14007ca1a
mov rcx, rdi
call fcn.140024c68
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, r15
mov r14, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rsi
call fcn.140028d58
lea rcx, [rax + 0x1a]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024c68
lea r15, [0x1400b62a4]
mov rcx, rax
mov rdx, r15
mov rdi, rax
call fcn.140028d7c
mov rdx, r15
mov rcx, rsi
call fcn.1400295bc
test eax, eax
je 0x14007c94f
lea rdx, str.StringFileInfo_
mov rcx, rdi
call fcn.14002dd98
mov rdx, r15
mov rcx, rsi
call fcn.1400263d0
test rax, rax
jne 0x14007c944
lea r9, [rsp + 0x88]
mov rcx, r14
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14007c92a
mov rax, qword [rsp + 0x40]
lea rdx, [rdi + 0x20]
mov r8d, 4
mov r11d, dword [rax]
mov ecx, r11d
call fcn.14000ec90
shr r11, 0x10
lea rdx, [rdi + 0x28]
mov rcx, r11
call fcn.14000ec90
jmp 0x14007c939
lea rdx, str.04090000
mov rcx, rdi
call fcn.14002dd98
mov rdx, r15
mov rcx, rdi
call fcn.14002dd98
mov rdx, rsi
mov rcx, rdi
call fcn.14002dd98
lea rdx, str.DefaultLangCodepage
mov rcx, rsi
call fcn.140028e28
test eax, eax
jne 0x14007c98d
lea rdx, [rdi + 0x20]
mov rcx, rbp
lea r8d, [rax + 8]
call fcn.140032024
mov rcx, r14
mov word [rbp + 0x10], bx
call fcn.140024c24
mov rcx, rdi
call fcn.140024c24
mov al, 1
jmp 0x14007ca1a
lea r9, [rsp + 0x88]
mov rdx, rdi
lea r8, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14007ca08
mov rdx, r15
mov rcx, rsi
call fcn.1400295bc
test eax, eax
jne 0x14007c9ec
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov r8d, dword [rax + 8]
mov ecx, dword [rax + 0xc]
movzx eax, cx
shr ecx, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, rbp
movzx r9d, r8w
shr r8d, 0x10
call fcn.140024834
jmp 0x14007ca06
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, rbp
call fcn.140032024
mov word [rbp + 0x400], bx
mov bl, 1
mov rcx, r14
call fcn.140024c24
mov rcx, rdi
call fcn.140024c24
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 0x14007ca98
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
mov ecx, 0x101
lea rdx, [rsp + 0x120]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14007cb76
mov edx, 0x100
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14007cb76
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x14007cb04
mov rax, r9
inc ecx
lea rax, [rax + 8]
cmp qword [rax], 0
jne 0x14007caf8
cmp ebx, ecx
jle 0x14007cb19
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140028d7c
jmp 0x14007cb6e
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140025d00
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140032460
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.14007daa4
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140028d7c
mov rcx, rbx
call fcn.140024c24
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14007cb85
lea rdx, [0x1400b64d8]
mov rcx, rdi
call fcn.140028d7c
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x14007cb98
Capabilities:
Get common file path

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

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

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

Function at 0x14007cf68
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 byte [0x1400f0419], dil
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
test ebx, ebx
je 0x14007cfde
mov byte [0x1400f041a], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], eax
lea r8, [0x14007d4ac]
lea rax, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], edi
call fcn.140031f44
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 0x14007d013
or edx, 0xffffffff
mov byte [0x1400f041a], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
or eax, 0xffffffff
cmp byte [0x1400f0419], 1
mov rsi, qword [rsp + 0x70]
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14007d1f0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x203d8]
mov eax, 0x204d0
call fcn.140048f90
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0x103d0]
mov edx, esi
call fcn.14007ca34
lea r8, [rbp + 0x3d0]
mov edx, esi
mov rcx, rbx
call fcn.14007ca34
lea rcx, [rbp + 0x103d0]
call fcn.14007ced4
xor esi, esi
test al, al
je 0x14007d2b8
lea rcx, [rbp + 0x3d0]
call fcn.14007ced4
test al, al
je 0x14007d329
test dil, dil
je 0x14007d2b8
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, [rbp + 0x103d0]
test eax, eax
jne 0x14007d2d3
lea rdx, [rbp + 0x3d0]
call fcn.1400295bc
test eax, eax
je 0x14007d44c
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14007d44c
xor al, al
lea r11, [rsp + 0x204d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rax, [rbp - 0x50]
xor r8d, r8d
lea r9, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14003233c
lea rdx, [0x1400b62a4]
lea rcx, [rbp + 0x3d0]
call fcn.14002dd98
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call fcn.14002dd98
cmp word [rbp - 0x50], si
je 0x14007d329
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3d0]
call fcn.14002dd98
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call fcn.14000ec00
lea rdx, [rbp + 0x103d0]
lea rcx, [rbp - 0x78]
call fcn.14000ec00
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.14007ce30
lea rcx, [rbp - 0x78]
mov bl, al
call fcn.14000a07c
lea rcx, [rsp + 0x30]
call fcn.14000a07c
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
test bl, bl
je 0x14007d3c8
mov r8b, 1
call fcn.14007b62c
test al, al
je 0x14007d2b8
lea rdx, [rbp + 0x103d0]
lea rcx, [rsp + 0x30]
call fcn.14000ec00
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.14007d690
test al, al
lea rcx, [rsp + 0x30]
sete bl
call fcn.14000a07c
test bl, bl
je 0x14007d44c
jmp 0x14007d2b8
call fcn.1400295bc
test eax, eax
je 0x14007d2b8
lea rcx, [rbp + 0x103d0]
call fcn.140028d58
lea rcx, [rbp + 0x3d0]
mov word [rbp + rax*2 + 0x103d2], si
call fcn.140028d58
mov ecx, 0x614
mov dword [rsp + 0x74], esi
xorps xmm0, xmm0
mov word [rsp + 0x70], cx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov word [rbp + rax*2 + 0x3d2], si
lea rax, [rbp + 0x103d0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x68], rax
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x58], 1
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007d2b8
mov al, 1
jmp 0x14007d2ba