joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2190
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
lea rcx, [0x1401f36f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401e58a0], 0xffffffffffffffff
jne 0x1400b225c
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, str.Everything_Service_Debug_Log.txt
lea r8, str.Everything_Debug_Log.txt
test ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
cmovne r8, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ebx, ebx
lea rcx, [rsp + 0x250]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x1401e58a0], rax
je 0x1400b225c
cmp dword [0x1401f3718], ebx
jne 0x1400b2252
test rax, rax
jne 0x1400b2252
mov dword [0x1401f371c], ebx
jmp 0x1400b225c
mov dword [0x1401f371c], 1
lea rcx, [0x1401f36f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x470
pop rbx
ret

Function at 0x1400b4420
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rbx
cmp dword [rdi + 0x128], esi
jne 0x1400b4455
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x1400b44ef
mov eax, dword [rax + 8]
mov dword [rdi + 0x128], eax
mov rdx, qword [rdi + 0x118]
movsxd r8, dword [rdi + 0x128]
xor r9d, r9d
movsxd rcx, dword [rdx + 8]
sub rcx, r8
lea rdx, [rcx + rdx + 0x10]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b44e2
test eax, eax
je 0x1400b44b3
sub dword [rdi + 0x128], eax
jne 0x1400b4434
mov rax, qword [rdi + 0x118]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400be6d0
test rbx, rbx
mov qword [rdi + 0x118], rbx
jne 0x1400b4434
mov qword [rdi + 0x120], rsi
jmp 0x1400b4434
mov rdx, qword [0x1401e5d78]
mov rcx, rdi
mov r8, qword [rdx + 0x22f0]
mov rdx, qword [rdx + 0x2278]
call fcn.1400b3470
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b4504
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1401e5d78]
mov rcx, rdi
mov r8, qword [rdx + 0x2318]
mov rdx, qword [rdx + 0x2278]
mov r9d, eax
call fcn.1400b3470
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400b6570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rdx
xor edi, edi
mov r12d, r9d
lea edx, [rdi + 1]
mov r13, r8
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x1400b6637
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x68], rsi
call fcn.1400c6610
test eax, eax
je 0x1400b6629
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x38]
test ebx, ebx
jle 0x1400b6615
movsxd rcx, ebx
call fcn.1400be6a0
test rax, rax
mov rsi, rax
je 0x1400b6624
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b660b
cmp dword [rsp + 0x30], ebx
jne 0x1400b660b
mov r9d, r12d
mov r8, r13
mov edx, ebx
mov rcx, rsi
call r14
mov edi, eax
mov rcx, rsi
call fcn.1400be6d0
jmp 0x1400b6624
mov r9d, r12d
mov r8, r13
xor edx, edx
xor ecx, ecx
call r14
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x1400b6650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
lea edx, [rdi + 1]
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400b6713
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x1a]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b670a
cmp dword [rsp + 0x30], 0x1a
jne 0x1400b670a
mov eax, dword [rsp + 0x38]
and eax, 0xffffff00
cmp eax, 0x474e5000
jne 0x1400b670a
cmp dword [rsp + 0x44], 0x52444849
jne 0x1400b670a
mov eax, dword [rsp + 0x48]
movzx ecx, byte [rsp + 0x51]
cmp cl, 2
bswap eax
mov dword [rbx], eax
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rbx + 4], eax
movzx eax, byte [rsp + 0x50]
mov dword [rbx + 8], eax
je 0x1400b66ff
cmp cl, 4
je 0x1400b66fb
cmp cl, 6
jne 0x1400b6705
shl eax, 2
jmp 0x1400b6702
add eax, eax
jmp 0x1400b6702
lea eax, [rax + rax*2]
mov dword [rbx + 8], eax
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400b6740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400b67b8
lea r9, [rsp + 0x70]
lea r8d, [rbx + 0x1e]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b67af
cmp dword [rsp + 0x70], 0x1e
jne 0x1400b67af
cmp word [rsp + 0x30], 0x4d42
jne 0x1400b67af
mov eax, dword [rsp + 0x42]
mov ebx, 1
mov dword [rdi], eax
mov eax, dword [rsp + 0x46]
mov dword [rdi + 4], eax
movzx eax, word [rsp + 0x4c]
mov dword [rdi + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400b6a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400b6abb
lea r9, [rsp + 0x60]
lea r8d, [rbx + 0xa]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b6ab2
cmp dword [rsp + 0x60], 0xa
jne 0x1400b6ab2
cmp dword [rsp + 0x30], 0x38464947
jne 0x1400b6ab2
movzx eax, word [rsp + 0x34]
cmp ax, 0x6139
je 0x1400b6a97
cmp ax, 0x6137
jne 0x1400b6ab2
movzx eax, word [rsp + 0x36]
mov dword [rdi + 8], 8
mov ebx, 1
mov dword [rdi], eax
movzx eax, word [rsp + 0x38]
mov dword [rdi + 4], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400b6ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movsxd rbp, edx
xor ebx, ebx
mov rdi, r8
lea edx, [rbx + 1]
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400b6c82
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x1400b6bae
mov edx, dword [rsp + 0x5c]
xor r8d, r8d
mov rcx, rsi
add rdx, 0xffffffffffffff80
call fcn.1400ca3d0
test eax, eax
je case.default.0x1400b6bae
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.0x1400b6bae
cmp dword [rsp + 0x30], 0x80
jne case.default.0x1400b6bae
cmp byte [rsp + 0x70], 0x54
jne case.default.0x1400b6bae
cmp byte [rsp + 0x71], 0x41
jne case.default.0x1400b6bae
cmp byte [rsp + 0x72], 0x47
jne case.default.0x1400b6bae
cmp ebp, 6
ja case.default.0x1400b6bae
lea rcx, [0x140000000]
mov eax, dword [rcx + rbp*4 + 0xb6ca8]
add rax, rcx
jmp rax
lea rdx, [rsp + 0x73]
mov r8d, 0x1e
mov rcx, rdi
call fcn.140165c10
jmp 0x1400b6c74
lea rdx, [rsp + 0x91]
mov r8d, 0x1e
mov rcx, rdi
call fcn.140165c10
jmp 0x1400b6c74
lea rdx, [rsp + 0xaf]
mov r8d, 0x1e
mov rcx, rdi
call fcn.140165c10
jmp 0x1400b6c74
lea rdx, [rsp + 0xcd]
mov r8d, 4
mov rcx, rdi
call fcn.140165c10
jmp 0x1400b6c74
lea rdx, [rsp + 0xd1]
mov r8d, 0x1e
mov rcx, rdi
call fcn.140165c10
jmp 0x1400b6c74
cmp byte [rsp + 0xed], bl
jne case.default.0x1400b6bae
movzx eax, byte [rsp + 0xee]
test al, al
je case.default.0x1400b6bae
lea rdx, [0x14019aef4]
movzx r8d, al
mov rcx, rdi
call fcn.140162e20
jmp 0x1400b6c74
movzx eax, byte [rsp + 0xef]
cmp al, 0x7e
jae case.default.0x1400b6bae
movzx edx, al
mov rdx, qword [rcx + rdx*8 + 0x1e58b0]
mov rcx, rdi
call fcn.1401624e0
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.1401931f0
mov rbx, qword [rsp + 0x128]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bb110
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [0x1401e2ccd], 0
mov ebx, edx
mov rdi, rcx
je 0x1400bb1d7
mov ecx, edx
call fcn.1400bb010
test eax, eax
je 0x1400bb1d7
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 0x1400bb1d7
add ebx, 0xfffffff0
shl r11d, 0x10
cmp ebx, 0x80
ja case.0x1400bb19d.19
lea rdx, [0x140000000]
movsxd rax, ebx
movzx eax, byte [rdx + rax + 0xbb208]
mov ecx, dword [rdx + rax*4 + 0xbb1fc]
add rcx, rdx
jmp rcx
bts r11d, 0x19
jmp case.0x1400bb19d.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 0x1400bb1d7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140162580
mov eax, 1
jmp 0x1400bb1d9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400bb720
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x6b0
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x140]
mov rsi, r8
mov rdi, rdx
call fcn.1401617b0
lea rcx, [rsp + 0x20]
call fcn.1401617b0
lea rcx, [rsp + 0x480]
call fcn.1401617b0
lea rcx, [rsp + 0x260]
call fcn.1401617b0
lea rcx, [rsp + 0x140]
xor r12d, r12d
mov r8, rsi
mov rdx, rbx
mov ebp, r12d
call fcn.140162d30
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
call fcn.140162d30
mov rcx, qword [rsp + 0x28]
call fcn.1400c4580
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x480]
call fcn.140168520
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x260]
call fcn.140168520
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 0x1400bb82f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.copy_failed:__d_n
mov edx, eax
call fcn.1400b1c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400bb835
lea ecx, [rax + 0x44]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x64
jne 0x1400bb7e0
jmp 0x1400bb835
mov r12d, 1
lea rcx, [rsp + 0x260]
call fcn.140001150
lea rcx, [rsp + 0x480]
call fcn.140001150
lea rcx, [rsp + 0x20]
call fcn.140001150
lea rcx, [rsp + 0x140]
call fcn.140001150
mov eax, r12d
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x6b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400bb890
Capabilities:
Terminate process

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
sub rsp, 0x3e0
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rbx, qword [0x1401f37a0]
xor esi, esi
mov r13d, ecx
cmp qword [rbx + 0x10], rsi
je 0x1400bd3ed
mov rbx, qword [rbx + 0x10]
cmp byte [rbx], sil
jne 0x1400bd3fd
mov rax, qword [0x1401f3440]
mov rbx, rsi
cmp byte [rax], bl
cmovne rbx, rax
lea rcx, [rsp + 0x70]
call fcn.1401617b0
lea rdx, str.EVERYTHING_TASKBAR_NOTIFICATION
lea rcx, [rsp + 0x70]
call fcn.140162e20
test rbx, rbx
je 0x1400bd44c
lea rdx, [0x1401b5bb4]
lea rcx, [rsp + 0x70]
call fcn.140161a40
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.140161a40
lea rdx, [0x14019b9f0]
lea rcx, [rsp + 0x70]
call fcn.140161a40
mov rcx, qword [rsp + 0x78]
call fcn.1400c6f20
lea rcx, [rsp + 0x70]
mov rbp, rax
call fcn.140001150
test rbp, rbp
je 0x1400bd5f2
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x400], rdi
mov qword [rsp + 0x408], r12
call fcn.1401617b0
lea rcx, [rsp + 0x2b0]
call fcn.1401617b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x190]
mov rdx, rax
call fcn.140162580
lea rcx, [rsp + 0x2b0]
call fcn.1400c8a10
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x40]
call qword [fcn.1400c7c70]
mov r11d, dword [rsp + 0x190]
mov eax, dword [rsp + 0x2b0]
lea edi, [rax + r11 + 6]
movsxd rcx, edi
call fcn.1400be650
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.140193220
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.140193220
lea rcx, str.send_cl_n
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], r12
call fcn.1400b1c70
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 0x1400bd5ae
lea rdx, str.send_message_ok_n
mov ecx, 0xff00ff00
mov esi, 1
call fcn.1400b1ca0
jmp 0x1400bd5c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.send_message_failed__u_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b1ca0
mov rcx, r12
call fcn.1400be6d0
lea rcx, [rsp + 0x2b0]
call fcn.140001150
lea rcx, [rsp + 0x190]
call fcn.140001150
mov r12, qword [rsp + 0x408]
mov eax, esi
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop r13
pop rsi
pop rbp
ret
Function at 0x1400bd6c0
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 [0x1401f22c8]
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 0x1400bd835
xor ebp, ebp
nop
nop
lea rcx, [rsp + 0x140]
call fcn.1401617b0
lea rcx, [rsp + 0x20]
call fcn.1401617b0
lea rdx, str.EVERYTHING_MUTEX
lea rcx, [rsp + 0x20]
call fcn.140162e20
call fcn.1400bd380
test rax, rax
je 0x1400bd75b
call fcn.1400bd380
lea rdx, [0x1401b5be8]
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140163070
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x140]
call fcn.140167a80
lea rcx, [rsp + 0x20]
call fcn.140001150
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x1401f3790]
test rcx, rcx
je 0x1400bd798
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401f3790], rbp
mov r8, qword [rsp + 0x148]
cmp word [r8], bp
je 0x1400bd7c5
cmp word [r8], 0x5c
jne 0x1400bd7b3
mov word [r8], 0x5f
add r8, 2
cmp word [r8], bp
jne 0x1400bd7a6
mov r8, qword [rsp + 0x148]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401f3790], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x140]
mov ebx, eax
call fcn.140001150
cmp ebx, 0xb7
jne 0x1400bd86c
lea rcx, str.mutex_exists_n
call fcn.1400b1c70
mov r11, qword [0x1401f37a0]
bt dword [r11 + 4], 0x17
jb 0x1400bd860
mov ecx, esi
call fcn.1400bd3b0
test eax, eax
jne 0x1400bd835
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 0x1400bd710
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401931f0
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 [0x1401f3798], 1
jmp 0x1400bd835
mov rax, qword [0x1401f37a0]
mov eax, dword [rax + 8]
shr eax, 0x17
not eax
and eax, 1
jmp 0x1400bd837
Function at 0x1400beac0
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.1400ca3d0
test eax, eax
je 0x1400beb47
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 0x1400beb2d
mov r8d, dword [rsp + 0x30]
cmp r8d, ebx
je 0x1400beb71
lea rdx, str.NRFR_read_error__d____d_n
mov r9d, ebx
mov ecx, 0xffff0000
call fcn.1400b1ca0
jmp 0x1400beb47
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NRFR_read_error__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b1ca0
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.1400b1ca0
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.140193570
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c4150
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edi, edx
call fcn.1401617b0
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140168520
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400c419c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400c41a2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140001150
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400c41e0
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 0x1400c4246
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 0x1400c4264
mov eax, dword [rsp + 0x58]
cmp eax, esi
jne 0x1400c4264
add rdi, rax
sub rbx, rax
jne 0x1400c4210
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 0x1400c424b

Function at 0x1400c4270
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x1401f22c8]
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.1401617b0
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.140168520
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.140001150
cmp rbx, 0xffffffffffffffff
jne 0x1400c4310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400c4310
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.1400b1c70
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x278
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c4330
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x470
mov rax, qword [0x1401f22c8]
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.1401617b0
lea rcx, [rsp + 0x20]
call fcn.1401617b0
lea rcx, [rsp + 0x240]
mov rdx, rsi
call fcn.140168520
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140168520
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 0x1400c4427
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x1400c43d8
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.1400b1c70
jmp 0x1400c4450
test r12d, r12d
je 0x1400c43f4
test edi, edi
mov rcx, qword [rsp + 0x28]
je 0x1400c43ee
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400c43f4
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 0x1400c4427
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.1400b1c70
jmp 0x1400c4450
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.140001150
lea rcx, [rsp + 0x240]
call fcn.140001150
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x470
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400c4490
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp byte [0x1401f37d0], 0
mov rsi, rcx
mov eax, 7
lea rcx, [rsp + 0x40]
mov ebx, 3
mov edi, edx
cmovne ebx, eax
call fcn.1401617b0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140168520
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.140001150
cmp rbx, 0xffffffffffffffff
jne 0x1400c454d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400c454d
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.1400b1c70
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret