joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400be570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movsxd rbp, edx
xor ebx, ebx
mov rdi, r8
lea edx, [rbx + 1]
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400be722
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x1400be64e
mov edx, dword [rsp + 0x5c]
xor r8d, r8d
mov rcx, rsi
add rdx, 0xffffffffffffff80
call fcn.1400db610
test eax, eax
je case.default.0x1400be64e
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov r8d, 0x80
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x1400be64e
cmp dword [rsp + 0x30], 0x80
jne case.default.0x1400be64e
cmp byte [rsp + 0x70], 0x54
jne case.default.0x1400be64e
cmp byte [rsp + 0x71], 0x41
jne case.default.0x1400be64e
cmp byte [rsp + 0x72], 0x47
jne case.default.0x1400be64e
cmp ebp, 6
ja case.default.0x1400be64e
lea rcx, [0x140000000]
mov eax, dword [rcx + rbp*4 + 0xbe748]
add rax, rcx
jmp rax
lea rdx, [rsp + 0x73]
mov r8d, 0x1e
mov rcx, rdi
call fcn.14017b890
jmp 0x1400be714
lea rdx, [rsp + 0x91]
mov r8d, 0x1e
mov rcx, rdi
call fcn.14017b890
jmp 0x1400be714
lea rdx, [rsp + 0xaf]
mov r8d, 0x1e
mov rcx, rdi
call fcn.14017b890
jmp 0x1400be714
lea rdx, [rsp + 0xcd]
mov r8d, 4
mov rcx, rdi
call fcn.14017b890
jmp 0x1400be714
lea rdx, [rsp + 0xd1]
mov r8d, 0x1e
mov rcx, rdi
call fcn.14017b890
jmp 0x1400be714
cmp byte [rsp + 0xed], bl
jne case.default.0x1400be64e
movzx eax, byte [rsp + 0xee]
test al, al
je case.default.0x1400be64e
lea rdx, [0x1401b0f64]
movzx r8d, al
mov rcx, rdi
call fcn.1401789a0
jmp 0x1400be714
movzx eax, byte [rsp + 0xef]
cmp al, 0x7e
jae case.default.0x1400be64e
movzx edx, al
mov rdx, qword [rcx + rdx*8 + 0x1ffd40]
mov rcx, rdi
call fcn.140177fb0
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x128]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cc1b0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov ebx, edx
mov rdi, rcx
je 0x1400cc277
mov ecx, edx
call fcn.1400cc0b0
test eax, eax
je 0x1400cc277
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 0x1400cc277
add ebx, 0xfffffff0
shl r11d, 0x10
cmp ebx, 0x80
ja case.0x1400cc23d.19
lea rdx, [0x140000000]
movsxd rax, ebx
movzx eax, byte [rdx + rax + 0xcc2a8]
mov ecx, dword [rdx + rax*4 + 0xcc29c]
add rcx, rdx
jmp rcx
bts r11d, 0x19
jmp case.0x1400cc23d.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 0x1400cc277
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140178050
mov eax, 1
jmp 0x1400cc279
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400cc7c0
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x6b0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x140]
mov rsi, r8
mov rdi, rdx
call fcn.140177280
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rcx, [rsp + 0x480]
call fcn.140177280
lea rcx, [rsp + 0x260]
call fcn.140177280
lea rcx, [rsp + 0x140]
xor r12d, r12d
mov r8, rsi
mov rdx, rbx
mov ebp, r12d
call fcn.1401788b0
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
call fcn.1401788b0
mov rcx, qword [rsp + 0x28]
call fcn.1400d5640
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x480]
call fcn.14017e2f0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x260]
call fcn.14017e2f0
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 0x1400cc8cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.copy_failed:__d_n
mov edx, eax
call fcn.1400b3fb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400cc8d5
lea ecx, [rax + 0x44]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x64
jne 0x1400cc880
jmp 0x1400cc8d5
mov r12d, 1
lea rcx, [rsp + 0x260]
call fcn.14017d580
lea rcx, [rsp + 0x480]
call fcn.14017d580
lea rcx, [rsp + 0x20]
call fcn.14017d580
lea rcx, [rsp + 0x140]
call fcn.14017d580
mov eax, r12d
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x6b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400cc930
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.1400d7f70
test rax, rax
mov rbx, rax
je 0x1400cc9df
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400cc9df
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 0x1400cc9d1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400cc9d1
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, 0x1bc
call fcn.1400b4180
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400ce450
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
sub rsp, 0x3e0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rbx, qword [0x14020e1d0]
xor esi, esi
mov r13d, ecx
cmp qword [rbx + 0x10], rsi
je 0x1400ce48d
mov rbx, qword [rbx + 0x10]
cmp byte [rbx], sil
jne 0x1400ce49d
mov rax, qword [0x14020ddc0]
mov rbx, rsi
cmp byte [rax], bl
cmovne rbx, rax
lea rcx, [rsp + 0x70]
call fcn.140177280
lea rdx, str.EVERYTHING_TASKBAR_NOTIFICATION
lea rcx, [rsp + 0x70]
call fcn.1401789a0
test rbx, rbx
je 0x1400ce4ec
lea rdx, [0x1401cea7c]
lea rcx, [rsp + 0x70]
call fcn.140177510
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.140177510
lea rdx, [0x1401b1a60]
lea rcx, [rsp + 0x70]
call fcn.140177510
mov rcx, qword [rsp + 0x78]
call fcn.1400d7f70
lea rcx, [rsp + 0x70]
mov rbp, rax
call fcn.14017d580
test rbp, rbp
je 0x1400ce692
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x400], rdi
mov qword [rsp + 0x408], r12
call fcn.140177280
lea rcx, [rsp + 0x2b0]
call fcn.140177280
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x190]
mov rdx, rax
call fcn.140178050
lea rcx, [rsp + 0x2b0]
call fcn.1400d9ac0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x40]
call qword [fcn.1400d8de0]
mov r11d, dword [rsp + 0x190]
mov eax, dword [rsp + 0x2b0]
lea edi, [rax + r11 + 6]
movsxd rcx, edi
call fcn.1400cf700
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.1401a8fe0
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.1401a8fe0
lea rcx, str.send_cl_n
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], r12
call fcn.1400b3fb0
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 0x1400ce64e
lea rdx, str.send_message_ok_n
mov ecx, 0xff00ff00
mov esi, 1
call fcn.1400b3fe0
jmp 0x1400ce668
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.send_message_failed__u_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3fe0
mov rcx, r12
call fcn.1400cf780
lea rcx, [rsp + 0x2b0]
call fcn.14017d580
lea rcx, [rsp + 0x190]
call fcn.14017d580
mov r12, qword [rsp + 0x408]
mov eax, esi
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop r13
pop rsi
pop rbp
ret
Function at 0x1400ce760
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 [0x14020cc58]
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 0x1400ce8d5
xor ebp, ebp
nop
nop
lea rcx, [rsp + 0x140]
call fcn.140177280
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rdx, str.EVERYTHING_MUTEX
lea rcx, [rsp + 0x20]
call fcn.1401789a0
call fcn.1400ce420
test rax, rax
je 0x1400ce7fb
call fcn.1400ce420
lea rdx, [0x1401ceab0]
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140178bf0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x140]
call fcn.14017d850
lea rcx, [rsp + 0x20]
call fcn.14017d580
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x14020e1c0]
test rcx, rcx
je 0x1400ce838
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14020e1c0], rbp
mov r8, qword [rsp + 0x148]
cmp word [r8], bp
je 0x1400ce865
cmp word [r8], 0x5c
jne 0x1400ce853
mov word [r8], 0x5f
add r8, 2
cmp word [r8], bp
jne 0x1400ce846
mov r8, qword [rsp + 0x148]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14020e1c0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x140]
mov ebx, eax
call fcn.14017d580
cmp ebx, 0xb7
jne 0x1400ce90c
lea rcx, str.mutex_exists_n
call fcn.1400b3fb0
mov r11, qword [0x14020e1d0]
bt dword [r11 + 4], 0x17
jb 0x1400ce900
mov ecx, esi
call fcn.1400ce450
test eax, eax
jne 0x1400ce8d5
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 0x1400ce7b0
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401a8fb0
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 [0x14020e1c8], 1
jmp 0x1400ce8d5
mov rax, qword [0x14020e1d0]
mov eax, dword [rax + 8]
shr eax, 0x17
not eax
and eax, 1
jmp 0x1400ce8d7
Function at 0x1400cfb70
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.1400db610
test eax, eax
je 0x1400cfbf7
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 0x1400cfbdd
mov r8d, dword [rsp + 0x30]
cmp r8d, ebx
je 0x1400cfc21
lea rdx, str.NRFR_read_error__d____d_n
mov r9d, ebx
mov ecx, 0xffff0000
call fcn.1400b3fe0
jmp 0x1400cfbf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NRFR_read_error__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3fe0
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.1400b3fe0
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1401a9330
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d5210
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edi, edx
call fcn.140177280
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017e2f0
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400d525c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400d5262
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.14017d580
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400d52a0
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 0x1400d5306
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 0x1400d5324
mov eax, dword [rsp + 0x58]
cmp eax, esi
jne 0x1400d5324
add rdi, rax
sub rbx, rax
jne 0x1400d52d0
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 0x1400d530b

Function at 0x1400d5330
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x14020cc58]
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.140177280
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.14017e2f0
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.14017d580
cmp rbx, 0xffffffffffffffff
jne 0x1400d53d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d53d0
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.1400b3fb0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x278
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d53f0
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x470
mov rax, qword [0x14020cc58]
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.140177280
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rcx, [rsp + 0x240]
mov rdx, rsi
call fcn.14017e2f0
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.14017e2f0
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 0x1400d54e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x1400d5498
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.1400b3fb0
jmp 0x1400d5510
test r12d, r12d
je 0x1400d54b4
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400d54ae
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400d54b4
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 0x1400d54e7
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.1400b3fb0
jmp 0x1400d5510
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.14017d580
lea rcx, [rsp + 0x240]
call fcn.14017d580
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x470
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d5550
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp byte [0x14020e200], 0
mov rsi, rcx
mov eax, 7
lea rcx, [rsp + 0x40]
mov ebx, 3
mov edi, edx
cmovne ebx, eax
call fcn.140177280
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14017e2f0
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.14017d580
cmp rbx, 0xffffffffffffffff
jne 0x1400d560d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d560d
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.1400b3fb0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400d5640
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140177280
mov rcx, rbx
call fcn.14016e220
test eax, eax
je 0x1400d56f3
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rbx
call fcn.14017e0f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d5698
test al, 0x10
jne 0x1400d56f3
mov rbx, qword [rsp + 0x28]
cmp word [rbx], 0
je 0x1400d56e8
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400d56bc
cmp ax, 0x2f
je 0x1400d56bc
add rbx, 2
cmp word [rbx], 0
jne 0x1400d56a3
cmp word [rbx], 0
je 0x1400d56e3
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 0x1400d56a3
mov rbx, qword [rsp + 0x28]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x250
pop rbx
ret

Function at 0x1400d6d20
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.140178250
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1400d6d66
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140178050
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x50
pop rbx
ret

Function at 0x1400d6d80
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x101
call fcn.140178250
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400d6dcc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140178050
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x250
pop rbx
ret
Function at 0x1400d6df0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x690
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rdi, qword [rsp + 0x6f0]
mov r12, qword [rsp + 0x6f8]
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov rbp, r9
mov rsi, r8
mov r13, rdx
call fcn.140177280
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.14017e4c0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, r12
lea r10, [rsp + 0x260]
neg rcx
mov r14d, eax
mov rcx, r13
sbb r11d, r11d
xor eax, eax
lea rdx, [rsp + 0x470]
and r11d, 0x104
test r12, r12
mov r9, rsi
cmove r10, rax
neg rcx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x38], r11d
sbb r8d, r8d
mov qword [rsp + 0x30], r10
and r8d, 0x104
test r13, r13
mov qword [rsp + 0x28], rdi
cmove rdx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov ebx, eax
jne 0x1400d6ecd
mov word [rsp + 0x470], ax
mov word [rsp + 0x260], ax
lea rcx, [rsp + 0x40]
call fcn.14017d580
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13, r13
je 0x1400d6ef5
lea rdx, [rsp + 0x470]
mov rcx, r13
call fcn.140178050
test r12, r12
je 0x1400d6f0a
lea rdx, [rsp + 0x260]
mov rcx, r12
call fcn.140178050
mov eax, ebx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x690
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d76d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
add rdx, 4
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [rbx], eax
jne 0x1400d76fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400d76fc
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400d78c0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017e2f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ebx, eax
je 0x1400d791d
mov r8, qword [rsp + 0x28]
xor r9d, r9d
mov edx, 0x1005
lea ecx, [r9 + 4]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x250
pop rbx
ret

Function at 0x1400d7950
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017e2f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ebx, eax
je 0x1400d79ad
mov r8, qword [rsp + 0x28]
xor r9d, r9d
mov edx, 0x1005
lea ecx, [r9 + 4]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x250
pop rbx
ret