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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1800593ae
xor al, al
jmp 0x18005953a
mov dword [rbx + 0xdc], 1
mov r10, qword [rbx + 0xe8]
mov edx, dword [rbx + 0xe0]
mov rax, qword [rbx + 0xf0]
sub rax, r10
cmp rax, rdx
jae 0x1800593f1
lea rcx, [rbx + 0xe8]
call fcn.180059c30
mov r10, qword [rbx + 0xe8]
mov edx, dword [rbx + 0xe0]
mov rcx, qword [rbx + 0x18]
lea rax, [rbx + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, edx
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x180059426
cmp eax, 0x3e5
sete dil
test dil, dil
jne 0x180059536
cmp qword [0x180213e70], 0
je 0x180059536
lea rcx, [0x180213e70]
call fcn.1800b5f10
mov rax, qword [0x180213e70]
cmp byte [rax + 0x78], dil
je 0x180059536
cmp dword [rax + 0x80], 2
jb 0x180059536
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm1
xor ebp, ebp
mov word [rsp + 0x38], bp
mov r8d, esi
lea rdx, str.request_data_failed___d
lea rcx, [rsp + 0x38]
call fcn.1800b7080
mov dword [rsp + 0x28], 0x161
lea rax, str.RC::RCNamePipeClient::RequestData
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea r8, [rsp + 0x38]
lea edx, [rbp + 2]
lea rcx, [0x180213e70]
call fcn.1800b6ba0
test bl, bl
je 0x1800594e5
lea rdx, [rsp + 0x38]
lea rcx, [0x180213e70]
call fcn.1800b6f40
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x180059523
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005951e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005955d
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011e4c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180146ad4
int3
Function at 0x18007fad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
mov rax, rcx
mov qword [rcx + 0x10], rdi
jb 0x18007fb05
mov rax, qword [rcx]
xor edx, edx
mov word [rax], di
mov r8d, 0x412
lea rcx, [rsp + 0x20]
call fcn.18013d3d0
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18007fb32
xor al, al
jmp 0x18007fb69
cmp eax, 0x208
jae 0x18007fb2e
mov word [rsp + 0x430], di
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x18007fb50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180003960
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
Function at 0x180083960
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.18011e4e4
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.18013d3d0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1800839c7
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x150
pop rbx
ret
Function at 0x180086320
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x68
ret

Function at 0x180086370
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.18013d3d0
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800864d2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1800863d4
jne 0x180086475
cmp dword [rbx + 8], 2
jb 0x180086475
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180086475
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180086475
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180086475
movups xmm0, xmmword [0x1801ad528]
mov rcx, rax
movups xmm1, xmmword [0x1801ad538]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180086475
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180086475
cmp word [rdi + 2], ax
jbe 0x180086475
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800864c6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.18013d3d0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x1800864c6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1800864d4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x170
pop rbx
ret
Function at 0x18008dde0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov ebx, r12d
mov qword [rsp + 0x48], rbx
lea r13, [r12 - 1]
cmp r8d, 0x3fe
jbe 0x18008deb3
lea ecx, [rbp + 2]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.18011e958
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18008de7f
cmp eax, ebp
ja 0x18008de7f
mov ecx, eax
mov word [rbx + rcx*2], r12w
lea ecx, [rax + 1]
mov word [rbx + rcx*2], r12w
mov ebp, eax
jmp 0x18008dee2
test r14, r14
je 0x18008de8c
mov rcx, r14
call fcn.18011e904
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbp
add rax, rax
cmp rax, 0x800
jae 0x18008e00f
mov word [rax + rdx], r12w
lea ecx, [rbp + 1]
add rcx, rcx
cmp rcx, 0x800
jae 0x18008e009
mov word [rcx + rdx], r12w
mov eax, r12d
mov edi, r12d
test ebp, ebp
je 0x18008dff5
mov rsi, r14
cmp word [rsi], 0
jne 0x18008dfe7
cmp eax, edi
je 0x18008dfe7
lea rdx, [r14 + rax*2]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18008df30
lea rcx, [rsp + 0x20]
call fcn.180003960
nop
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x18008df84
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
add qword [r15 + 8], 0x20
jmp 0x18008df92
lea r8, [rsp + 0x20]
mov rcx, r15
call fcn.180035640
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x18008dfd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008dfcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008e015
call fcn.18011e904
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea eax, [rdi + 1]
inc edi
add rsi, 2
cmp edi, ebp
jb 0x18008def3
test rbx, rbx
je 0x18008e002
mov rcx, rbx
call fcn.18011e904
mov al, 1
jmp 0x18008de8e
call fcn.18011edd8
int3
call fcn.18011edd8
int3
call fcn.180146ad4
int3
Function at 0x18008ed60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x18008eda4
mov rax, qword [rdx]
mov word [rax], si
call fcn.18008ee80
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x18008edc9
test dil, dil
jne 0x18008ee49
cmp r14d, 0x1a
jne 0x18008ee49
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x18008ede5
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.18013d3d0
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18008ee20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180003960
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret
Function at 0x1800991f0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x18009922b
mov rcx, qword [rcx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18009932b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], si
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1800a6650
test al, al
je 0x1800992c9
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18009930b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180099306
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800993f6
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
cmp rbx, 0xffffffffffffffff
jne 0x18009932b
xor al, al
jmp 0x1800993d1
xor dil, dil
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x40
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x48], 0x40
jne 0x1800993c4
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x1800993c4
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xac]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800993c4
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x108
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x48], 0x108
jne 0x1800993c4
mov eax, dword [rsp + 0xb0]
cmp eax, 0x4550
je 0x1800993c1
mov ecx, 0x454e
cmp ax, cx
jne 0x1800993c4
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18011e4c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.180146ad4
int3
Function at 0x18009ac50
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
jne 0x18009ac86
xor al, al
jmp 0x18009ad3b
mov qword [rsp + 0x38], 0
add rdi, 0x38
mov qword [rsp + 0x38], rdi
je 0x18009aca9
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009aca9
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x18009ad1a
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rcx, qword [rbx + 0x10]
add rcx, 0x14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x18009a8c0]
xor edx, edx
xor ecx, ecx
call fcn.18014b660
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
cmp qword [rax + 0x18], 0
jne 0x18009ad53
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x18009ad11
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbx + 0x10]
call fcn.18009aa70
xor bl, bl
test rdi, rdi
je 0x18009ad38
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009ad2f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], 0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rax + 0x10], 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x18009ad71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x18009acf9
mov bl, 1
jmp 0x18009ad1c
Function at 0x1800a40d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800a4115
mov ebx, 1
jmp 0x1800a4166
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800a415c
test ecx, ecx
je 0x1800a4161
add rsi, rcx
sub edi, ecx
jne 0x1800a4120
jmp 0x1800a4161
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800a417f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800a4af0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800a4b2b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800a4b2b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800b3540
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1800a5230
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x1800a526d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800a5280
mov al, 1
jmp 0x1800a5327
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1800a6650
test al, al
je 0x1800a52d1
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800a52d1
mov bl, 1
jmp 0x1800a52d3
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1800a5311
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a530c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a5344
call fcn.18011e904
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.180146ad4
int3
Function at 0x1800a5350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1800a5385
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800a542f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1800a6650
test al, al
je 0x1800a53de
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1800a541c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a5417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a544e
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180146ad4
int3
Function at 0x1800a5460
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x1800a549c
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1800a54a6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1800a54b7
mov al, 1
jmp 0x1800a5688
xor sil, sil
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rbp - 0x18], xmm1
xor r14d, r14d
mov word [rbp - 0x28], r14w
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.1800a6650
movzx ebx, sil
mov ecx, 1
test al, al
cmovne ebx, ecx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rbp - 0x38], xmm1
mov word [rbp - 0x48], r14w
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.1800a6650
test al, al
jne 0x1800a5523
test bl, bl
je 0x1800a55e6
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1800a55e6
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1800a558d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a5588
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a56af
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800a55df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a55da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a56b5
call fcn.18011e904
mov al, 1
jmp 0x1800a5676
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1800a5626
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a5621
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a56bb
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800a5674
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a566f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a56a9
call fcn.18011e904
xor al, al
movdqa xmm0, xmmword [0x1801b2820]
mov word [rbp - 0x28], r14w
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18011e4c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180146ad4
nop
call fcn.180146ad4
nop
call fcn.180146ad4
nop
call fcn.180146ad4
int3