joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cc040
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov ebx, edx
mov rdi, rcx
je 0x1400cc107
mov ecx, edx
call fcn.1400cbf40
test eax, eax
je 0x1400cc107
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov ecx, ebx
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
test eax, eax
mov r11d, eax
je 0x1400cc107
add ebx, 0xfffffff0
shl r11d, 0x10
cmp ebx, 0x80
ja case.0x1400cc0cd.19
lea rdx, [0x140000000]
movsxd rax, ebx
movzx eax, byte [rdx + rax + 0xcc138]
mov ecx, dword [rdx + rax*4 + 0xcc12c]
add rcx, rdx
jmp rcx
bts r11d, 0x19
jmp case.0x1400cc0cd.19
bts r11d, 0x18
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov ecx, r11d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x1400cc107
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1401782f0
mov eax, 1
jmp 0x1400cc109
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401a8fd0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400cc650
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x6b0
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x140]
mov rsi, r8
mov rdi, rdx
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rcx, [rsp + 0x480]
call fcn.1400012c0
lea rcx, [rsp + 0x260]
call fcn.1400012c0
lea rcx, [rsp + 0x140]
xor r12d, r12d
mov r8, rsi
mov rdx, rbx
mov ebp, r12d
call fcn.140178b50
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
call fcn.140178b50
mov rcx, qword [rsp + 0x28]
call fcn.1400d57c0
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x480]
call fcn.14017e300
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x260]
call fcn.14017e300
nop
nop
nop
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x488]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400cc75f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.copy_failed:__d_n
mov edx, eax
call fcn.1400b3e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400cc765
lea ecx, [rax + 0x44]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x64
jne 0x1400cc710
jmp 0x1400cc765
mov r12d, 1
lea rcx, [rsp + 0x260]
call fcn.140177510
lea rcx, [rsp + 0x480]
call fcn.140177510
lea rcx, [rsp + 0x20]
call fcn.140177510
lea rcx, [rsp + 0x140]
call fcn.140177510
mov eax, r12d
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x6b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400cc7c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.1400d8270
test rax, rax
mov rbx, rax
je 0x1400cc86f
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400cc86f
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100000
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor r9d, r9d
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov edx, 0xea60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400cc861
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400cc861
lea r9, str.Timed_out_while_waiting_for_Everything.exe_to_close
lea r8, str._main_close_existing_process
lea rcx, str.._srcmain.c
mov edx, 0x1bb
call fcn.1400b4060
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400ce2e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
sub rsp, 0x3e0
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rbx, qword [0x14020e198]
xor esi, esi
mov r13d, ecx
cmp qword [rbx + 0x10], rsi
je 0x1400ce31d
mov rbx, qword [rbx + 0x10]
cmp byte [rbx], sil
jne 0x1400ce32d
mov rax, qword [0x14020dd80]
mov rbx, rsi
cmp byte [rax], bl
cmovne rbx, rax
lea rcx, [rsp + 0x70]
call fcn.1400012c0
lea rdx, str.EVERYTHING_TASKBAR_NOTIFICATION
lea rcx, [rsp + 0x70]
call fcn.140178c40
test rbx, rbx
je 0x1400ce37c
lea rdx, [0x1401ce91c]
lea rcx, [rsp + 0x70]
call fcn.1401777b0
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.1401777b0
lea rdx, [0x1401b1a50]
lea rcx, [rsp + 0x70]
call fcn.1401777b0
mov rcx, qword [rsp + 0x78]
call fcn.1400d8270
lea rcx, [rsp + 0x70]
mov rbp, rax
call fcn.140177510
test rbp, rbp
je 0x1400ce522
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x400], rdi
mov qword [rsp + 0x408], r12
call fcn.1400012c0
lea rcx, [rsp + 0x2b0]
call fcn.1400012c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x190]
mov rdx, rax
call fcn.1401782f0
lea rcx, [rsp + 0x2b0]
call fcn.1400d9d60
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x40]
call qword [fcn.1400d9080]
mov r11d, dword [rsp + 0x190]
mov eax, dword [rsp + 0x2b0]
lea edi, [rax + r11 + 6]
movsxd rcx, edi
call fcn.1400cf3f0
mov r12, rax
mov dword [rax], r13d
mov rdx, qword [rsp + 0x198]
lea rbx, [rax + 4]
mov eax, dword [rsp + 0x190]
mov rcx, rbx
add eax, 1
movsxd r8, eax
call fcn.1401a9000
mov eax, dword [rsp + 0x190]
mov r11d, dword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2b8]
add eax, 1
add r11d, 1
movsxd rcx, eax
movsxd r8, r11d
add rcx, rbx
call fcn.1401a9000
lea rcx, str.send_cl_n
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], r12
call fcn.1400b3e90
xor r8d, r8d
lea r11, [rsp + 0x60]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], r11
lea edx, [r8 + 0x4a]
mov rcx, rbp
mov dword [rsp + 0x28], 0x7530
mov dword [rsp + 0x20], 9
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
mov rdi, qword [rsp + 0x400]
je 0x1400ce4de
lea rdx, str.send_message_ok_n
mov ecx, 0xff00ff00
mov esi, 1
call fcn.1400b3ec0
jmp 0x1400ce4f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.send_message_failed__u_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
mov rcx, r12
call fcn.1400cf470
lea rcx, [rsp + 0x2b0]
call fcn.140177510
lea rcx, [rsp + 0x190]
call fcn.140177510
mov r12, qword [rsp + 0x408]
mov eax, esi
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1401a8fd0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop r13
pop rsi
pop rbp
ret
Function at 0x1400ce5f0
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1400ce765
xor ebp, ebp
nop
nop
lea rcx, [rsp + 0x140]
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rdx, str.EVERYTHING_MUTEX
lea rcx, [rsp + 0x20]
call fcn.140178c40
call fcn.1400ce2b0
test rax, rax
je 0x1400ce68b
call fcn.1400ce2b0
lea rdx, [0x1401ce950]
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140178e90
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x140]
call fcn.14017d970
lea rcx, [rsp + 0x20]
call fcn.140177510
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x14020e188]
test rcx, rcx
je 0x1400ce6c8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14020e188], rbp
mov r8, qword [rsp + 0x148]
cmp word [r8], bp
je 0x1400ce6f5
cmp word [r8], 0x5c
jne 0x1400ce6e3
mov word [r8], 0x5f
add r8, 2
cmp word [r8], bp
jne 0x1400ce6d6
mov r8, qword [rsp + 0x148]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14020e188], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x140]
mov ebx, eax
call fcn.140177510
cmp ebx, 0xb7
jne 0x1400ce79c
lea rcx, str.mutex_exists_n
call fcn.1400b3e90
mov r11, qword [0x14020e198]
bt dword [r11 + 4], 0x17
jb 0x1400ce790
mov ecx, esi
call fcn.1400ce2e0
test eax, eax
jne 0x1400ce765
lea ecx, [rbx - 0x53]
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x1400ce640
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401a8fd0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [0x14020e190], 1
jmp 0x1400ce765
mov rax, qword [0x14020e198]
mov eax, dword [rax + 8]
shr eax, 0x17
not eax
and eax, 1
jmp 0x1400ce767
Function at 0x1400cf540
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.1400012c0
mov rdx, qword [rsp + 0x178]
lea r8, [rsp + 0x180]
lea rcx, [rsp + 0x20]
call fcn.140178ba0
mov ebx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
test ebx, ebx
jle 0x1400cf5c6
nop
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400cf5f2
test eax, eax
je 0x1400cf5f2
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x1400cf5a0
mov ebx, 1
lea rcx, [rsp + 0x20]
call fcn.140177510
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
xor ebx, ebx
jmp 0x1400cf5cb
Function at 0x1400cf8c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
xor r13d, r13d
mov r15, rdx
xor r12d, r12d
mov r14, rcx
mov qword [rsp + 0x50], rbx
nop
nop
mov r9d, dword [0x1401fccec]
test r9d, r9d
je 0x1400cf901
cmp r12d, r9d
jg 0x1400cf978
mov ecx, 0x10000
call fcn.1400cf3f0
test rdi, rdi
mov rbx, rax
je 0x1400cf919
mov qword [r13], rax
jmp 0x1400cf91c
mov rdi, rax
lea rsi, [rax + 8]
lea rbp, [rax + 0x10000]
mov r13, rax
cmp rsi, rbp
mov qword [rax], 0
jae 0x1400cf96c
nop
nop
nop
mov r8d, ebp
xor r9d, r9d
mov rdx, rsi
sub r8d, esi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400cfa31
test eax, eax
je 0x1400cf991
cdqe
add rsi, rax
cmp rsi, rbp
jb 0x1400cf940
add r12d, 0xfff8
jmp 0x1400cf8f0
lea rdx, str._d____d_n
mov r8d, r12d
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cfa4b
mov r9d, dword [0x1401fccec]
mov eax, esi
sub eax, ebx
lea r8d, [r12 + rax - 8]
lea edx, [r8 + 1]
cmp edx, r9d
jle 0x1400cf9c0
lea rdx, str.buflen__d1____d_n
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cfa4b
cmp edx, dword [r15 + 4]
jle 0x1400cf9ce
mov rcx, r15
call fcn.140177530
test rdi, rdi
mov rbp, qword [r15 + 8]
je 0x1400cfa26
cmp rdi, r13
mov r12, qword [rdi]
jne 0x1400cf9fd
mov eax, esi
lea rdx, [rdi + 8]
mov rcx, rbp
sub eax, edi
sub eax, 8
movsxd rbx, eax
mov r8, rbx
call fcn.1401a9000
add rbp, rbx
jmp 0x1400cfa16
lea rdx, [rdi + 8]
mov r8d, 0xfff8
mov rcx, rbp
call fcn.1401a9000
add rbp, 0xfff8
mov rcx, rdi
call fcn.1400cf470
test r12, r12
mov rdi, r12
jne 0x1400cf9d7
mov byte [rbp], 0
mov eax, 1
jmp 0x1400cfa65
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.recv__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
test rdi, rdi
je 0x1400cfa63
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.1400cf470
test rbx, rbx
mov rdi, rbx
jne 0x1400cfa50
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cfa90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebp, ebp
cmp r8d, 0x50
mov esi, r8d
mov rdi, rdx
mov r12, rcx
jb 0x1400cfcd2
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400cf4d0
test rax, rax
mov rbx, rax
je 0x1400cfcbd
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1400db900
test eax, eax
je 0x1400cfca1
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cfc8b
mov edx, dword [rsp + 0x60]
cmp edx, esi
jne 0x1400cfc7d
lea r10, [rbx + 3]
lea r9, str.NTFS
lea r8d, [rbp + 8]
mov rdx, r10
sub r9, r10
nop
nop
nop
nop
movzx eax, byte [r9 + rdx]
movzx ecx, byte [rdx]
sub ecx, eax
jne 0x1400cfc66
add rdx, 1
sub r8d, 1
jne 0x1400cfb30
movzx edx, byte [rbx + 0xd]
lea rcx, str.sectors_per_cluster__d_n
call fcn.1400b3e90
movzx r11d, byte [rbx + 0xd]
cmp r11b, 0x80
ja 0x1400cfb75
movzx ecx, word [rbx + 0xb]
movzx eax, r11b
imul ecx, eax
mov dword [rdi + 0x10], ecx
jmp 0x1400cfb90
mov al, r11b
mov ecx, 0x100
mov edx, 1
sub ecx, eax
movzx eax, word [rbx + 0xb]
shl edx, cl
imul edx, eax
mov dword [rdi + 0x10], edx
mov edx, dword [rdi + 0x10]
lea rcx, str.bytes_per_cluster__d_n
call fcn.1400b3e90
mov r11d, dword [rdi + 0x10]
test r11d, r11d
je 0x1400cfc56
movzx eax, word [rbx + 0xb]
test eax, eax
mov dword [rdi + 0x18], eax
je 0x1400cfc46
movzx eax, byte [rbx + 0x40]
test al, al
jle 0x1400cfbcf
movsx eax, al
imul eax, r11d
mov dword [rdi + 0x14], eax
jmp 0x1400cfbde
neg eax
mov edx, 1
movzx ecx, al
shl edx, cl
mov dword [rdi + 0x14], edx
cmp dword [rdi + 0x14], ebp
je 0x1400cfc36
mov rdx, qword [rbx + 0x30]
lea rcx, str.mft_lcn__I64u_n
mov qword [rdi], rdx
mov rax, qword [rbx + 0x48]
mov qword [rdi + 8], rax
call fcn.1400b3e90
mov rdx, qword [rdi + 8]
lea rcx, str.serial_number__I64u_n
call fcn.1400b3e90
mov edx, dword [rdi + 0x10]
lea rcx, str.bytes_per_cluster__u_n
call fcn.1400b3e90
mov edx, dword [rdi + 0x14]
lea rcx, str.bytes_per_file_record__u_n
call fcn.1400b3e90
mov ebp, 1
jmp 0x1400cfcb5
lea rcx, str.invalid_bytes_per_file_record__u_n
xor edx, edx
call fcn.1400b3e90
jmp 0x1400cfcb5
lea rcx, str.invalid_bytes_per_sector__u_n
xor edx, edx
call fcn.1400b3e90
jmp 0x1400cfcb5
lea rcx, str.invalid_bytes_per_cluster__u_n
xor edx, edx
call fcn.1400b3e90
jmp 0x1400cfcb5
lea rcx, str.bad_NTFS_signature:__t_n
mov r8d, 8
mov rdx, r10
call fcn.1400b3e90
jmp 0x1400cfcb5
lea rcx, str.unable_to_read_all_of_NTFS_boot_sector:__u_n
call fcn.1400b3e90
jmp 0x1400cfcb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_NTFS_boot_sector:__u_n
mov edx, eax
call fcn.1400b3e90
jmp 0x1400cfcb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_set_file_pointer_to_boot_sector__u_n
mov edx, eax
call fcn.1400b3e90
mov rcx, rbx
call fcn.1400cf530
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
lea rcx, str.bad_sector_size__u_n
mov edx, esi
call fcn.1400b3e90
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400cfde0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
xor r8d, r8d
movsxd rbx, r9d
mov rbp, rdx
mov rdi, rcx
call fcn.1400db900
test eax, eax
je 0x1400cfe67
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cfe4d
mov r8d, dword [rsp + 0x30]
cmp r8d, ebx
je 0x1400cfe91
lea rdx, str.NRFR_read_error__d____d_n
mov r9d, ebx
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cfe67
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NRFR_read_error__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.read_error__I64x__d_n
mov r8, rbp
mov r9d, eax
mov ecx, 0xffff0000
call fcn.1400b3ec0
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1401a9350
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d5390
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edi, edx
call fcn.1400012c0
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017e300
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400d53dc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400d53e2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140177510
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fd0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400d5420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
test r8, r8
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
je 0x1400d5486
mov r12d, 0xffffffff
xor r13d, r13d
nop
mov esi, r12d
cmp rbx, r12
lea r9, [rsp + 0x58]
cmovbe esi, ebx
mov rdx, rdi
mov rcx, rbp
mov r8d, esi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d54a4
mov eax, dword [rsp + 0x58]
cmp eax, esi
jne 0x1400d54a4
add rdi, rax
sub rbx, rax
jne 0x1400d5450
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x1400d548b

Function at 0x1400d54b0
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rcx
lea rcx, [rsp + 0x40]
mov ebx, r9d
mov esi, r8d
mov edi, edx
call fcn.1400012c0
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.14017e300
mov eax, dword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov r8d, esi
mov edx, edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140177510
cmp rbx, 0xffffffffffffffff
jne 0x1400d5550
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d5550
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFileW__:__d:_Failed_to_open_file__s_n
mov r8, rbp
mov edx, eax
call fcn.1400b3e90
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x278
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d5570
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x470
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rcx
lea rcx, [rsp + 0x240]
mov edi, r9d
mov r12d, r8d
mov rbp, rdx
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rcx, [rsp + 0x240]
mov rdx, rsi
call fcn.14017e300
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.14017e300
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x248]
xor ebx, ebx
test r12d, r12d
mov r8d, ebx
setne r8b
or r8d, 2
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400d5667
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x1400d5618
lea rcx, str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
mov r9, rbp
mov r8, rsi
mov edx, eax
call fcn.1400b3e90
jmp 0x1400d5690
test r12d, r12d
je 0x1400d5634
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400d562e
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400d5634
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400d5667
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MoveFileW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
mov r9, rbp
mov edx, eax
mov r8, rsi
call fcn.1400b3e90
jmp 0x1400d5690
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x248]
mov ecx, 1
mov eax, 0x20000
test edi, edi
mov ebx, ecx
cmovne ecx, eax
mov edx, 5
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea rcx, [rsp + 0x20]
call fcn.140177510
lea rcx, [rsp + 0x240]
call fcn.140177510
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x470
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d56d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp byte [0x14020e1c8], 0
mov rsi, rcx
mov eax, 7
lea rcx, [rsp + 0x40]
mov ebx, 3
mov edi, edx
cmovne ebx, eax
call fcn.1400012c0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14017e300
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0
neg edi
mov r8d, ebx
mov edx, 0x80000000
sbb eax, eax
xor r9d, r9d
and eax, 0x8000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140177510
cmp rbx, 0xffffffffffffffff
jne 0x1400d578d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d578d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFileW__:__d:_Failed_to_open_file__s_n
mov r8, rsi
mov edx, eax
call fcn.1400b3e90
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401a8fd0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400d57c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400012c0
mov rcx, rbx
call fcn.14016e550
test eax, eax
je 0x1400d5873
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rbx
call fcn.14017e100
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d5818
test al, 0x10
jne 0x1400d5873
mov rbx, qword [rsp + 0x28]
cmp word [rbx], 0
je 0x1400d5868
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400d583c
cmp ax, 0x2f
je 0x1400d583c
add rbx, 2
cmp word [rbx], 0
jne 0x1400d5823
cmp word [rbx], 0
je 0x1400d5863
mov word [rbx], 0
mov rcx, qword [rsp + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rbx], 0x5c
add rbx, 2
cmp word [rbx], 0
jne 0x1400d5823
mov rbx, qword [rsp + 0x28]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
call fcn.140177510
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x250
pop rbx
ret

Function at 0x1400d6ea0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.1401784f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1400d6ee6
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1401782f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x50
pop rbx
ret

Function at 0x1400d6f00
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x101
call fcn.1401784f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400d6f4c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401782f0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x250
pop rbx
ret