joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a000
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009a018
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009a020
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009a030
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009a07d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009a074
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009a07f
add rax, 0x28
cmp rax, r9
jne 0x14009a060
xor eax, eax
ret

Function at 0x14009a080
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009a110
mov rdx, qword [0x1400c05f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009a0fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009a0fe
cmp word [rax + 0x18], 0x20b
jne 0x14009a0fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009a110
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009a0e9
add rbx, 0x28
cmp rbx, rdi
je 0x14009a110
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009a0e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14009a120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c05f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009a140
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009a148
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009a140
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009a19d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009a194
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009a140
add rax, 0x28
cmp rax, r9
jne 0x14009a180
xor eax, eax
ret

Function at 0x14009a1a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c05f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009a1bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009a1c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009a1bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14009a1e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c05f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009a200
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009a208
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009a200
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009a250
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009a247
test rcx, rcx
je 0x14009a200
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14009a238
xor eax, eax
ret

Function at 0x14009a260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c05f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009a27f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009a288
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14009a2a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c05f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009a2c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009a2c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009a2c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14009a2c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14009a314
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14009a320
add rdx, 0x28
cmp r9, rdx
jne 0x14009a300
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14009a330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c05f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14009a352
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14009a360
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009a352
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14009a352
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14009a352
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14009a3b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14009a3c8
add rdx, 0x28
cmp rdx, r10
jne 0x14009a3a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14009a3d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14009a3e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009a3be
test ecx, ecx
jg 0x14009a3d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400024f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10048
call fcn.140020120
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov dword [r8], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002736
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002720
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov rcx, rsi
xor edx, edx
call rbp
mov r15d, eax
mov rcx, rbx
xor edx, edx
call rbp
cmp r15d, 0xffffffff
je 0x140002720
cmp eax, 0xffffffff
je 0x140002720
mov edi, 1
cmp r15d, eax
jne 0x140002720
mov ebp, r15d
shr ebp, 0xf
je 0x140002694
lea rdi, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r12, rdi
mov rdx, rdi
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
xor edi, edi
test eax, eax
je 0x140002720
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002720
mov qword [rsp + 0x20], 0
mov rcx, rbx
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
test eax, eax
je 0x140002720
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002720
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000fe90
test eax, eax
jne 0x14000271b
add ebp, 0xffffffff
jne 0x140002600
and r15d, 0x7fff
je 0x140002714
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x8040]
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
je 0x140002720
cmp dword [rsp + 0x3c], r15d
jne 0x140002720
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002720
cmp dword [rsp + 0x3c], r15d
jne 0x140002720
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000fe90
mov edi, 1
test eax, eax
jne 0x140002720
mov dword [r14], 1
mov edi, 1
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140002736
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rax, 1
cmp rax, 2
jb 0x14000274c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400193c0
mov eax, edi
add rsp, 0x10048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400042b0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000e39c
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000434e
mov qword [rsp + 0x28], rsi
lea rdx, [0x140031372]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004385
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [rdi], edx
movzx edx, word [rcx + 8]
mov dword [r15], edx
movzx edx, word [rcx + 0xe]
mov dword [r14], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x1400043c8
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400043ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x1400043be
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000442d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.14000ccd0
xor edi, edi
mov rcx, rsi
call fcn.14000e3a4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400193c0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000436f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000436f
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400043aa
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400043aa
Function at 0x140004470
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140004559
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000459e
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000452c
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0x20]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop word cs:[rax + rax]
mov ecx, dword [rsp + 0x38]
call r12
cmp dword [rsp + 0x24], 1
je 0x14000452c
mov eax, dword [rsp + 0x38]
lea esi, [rsi + rax]
add esi, 0xa
cmp esi, 0xea60
ja 0x14000452c
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004500
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x14000454b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400045e1
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004607
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000ccd0
xor ebx, ebx
jmp 0x1400045ea
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004648
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000ccd0
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400193c0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000457e
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000457e
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045c3
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400045c3
Function at 0x140005900
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005a0c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005983
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005983
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005983
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005a27
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000ccd0
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000ff90
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.14000d0b0
test eax, eax
je 0x140005a0c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005a0c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005a68
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000ccd0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400193c0
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000596d
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000596d
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400059f4
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400059f4
Function at 0x14000a0e0
Capabilities:
Check if file exists
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a119
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movzx eax, word [0x14002e750]
mov word [rsp + 0x50], ax
movaps xmm0, xmmword [str._s.bak_u]
movaps xmmword [rsp + 0x40], xmm0
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 3
call fcn.14000b250
test rax, rax
jne 0x14000a1bf
mov rcx, rbx
mov rdx, rdi
call fcn.14000b2e0
mov esi, eax
test r14, r14
je 0x14000a18a
test esi, esi
js 0x14000a18a
mov qword [r14], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x14000a18a
mov word [rax], 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000a1a2
call fcn.14000e3a4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400193c0
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, rax
add rsi, 1
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b2a0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a15f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000a228
xor esi, esi
test r14, r14
je 0x14000a18a
movups xmm0, xmmword [r14]
mov qword [r14 + 8], r15
movaps xmmword [rsp + 0x30], xmm0
mov qword [r14], r12
jmp 0x14000a18a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a368
cmp eax, 5
je 0x14000a247
cmp eax, 0xb7
jne 0x14000a15f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b2a0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a15f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000a208
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a368
cmp eax, 0xb7
je 0x14000a2ac
cmp eax, 5
jne 0x14000a15f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 2
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b2a0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a15f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000a208
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a368
cmp eax, 0xb7
je 0x14000a30d
cmp eax, 5
jne 0x14000a15f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b2a0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a15f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14000a208
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000a15f
xor esi, esi
test r14, r14
jne 0x14000a175
jmp 0x14000a18a
Function at 0x14000ae70
Capabilities:
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rcx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14000af95
mov rax, 0xffffffffffffffff
movq xmm0, rax
movdqu xmmword [rsi + 8], xmm0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14000afa0
mov rdx, qword [rdi + 8]
test ebx, ebx
je 0x14000afaa
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov dword [rsi], 2
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14000afb7
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000af8e
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000af8e
xor eax, eax
cmp dword [rsp + 0x68], 1
seta al
mov dword [rsi], 2
mov ecx, dword [rsi + 4]
cmp ecx, 0xffffffff
je 0x14000afc8
shr ecx, 0xa
and ecx, 1
xor edx, edx
test eax, eax
je 0x14000af60
cmp ecx, 1
jne 0x14000afcf
mov dword [rsi], edx
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000af75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400193c0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14000af41
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000aea4
mov word [rax], 0
jmp 0x14000aec2
mov rcx, rsi
call fcn.14000b940
jmp 0x14000aeda
test byte [rsi + 4], 0x10
jne 0x14000aeee
xor edi, edi
jmp 0x14000af28
mov ecx, 2
jmp 0x14000af55
cmp eax, 1
jne 0x14000af62
mov edx, 1
test ecx, ecx
je 0x14000af60
jmp 0x14000af62
Function at 0x14000b2e0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000b313
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rdi + 4]
test al, 1
je 0x14000b33c
mov ecx, eax
and ecx, 0xfffffffe
cmp eax, 0xffffffff
mov edx, 0x80
cmovne edx, ecx
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov rdx, qword [rsi]
mov r9, qword [rsi + 8]
add rdx, 1
lea r8, [0x14003146a]
lea rcx, [rsp + 0x60]
call fcn.140009520
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 3
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
mov word [rsp + 0x48], 0x654
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ebx, ebx
test eax, 0xfffffffd
je 0x14000b3ca
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000b3ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rsp + 0x68], 0
test rdi, rdi
je 0x14000b3e0
mov rcx, rdi
call fcn.14000e3a4
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400193c0
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000b940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov ebp, 2
cmovne ebp, ecx
cmp ebp, 2
je 0x14000ba8d
cmp ebp, 1
jne 0x14000ba00
mov ecx, 0x20a
call fcn.14000e39c
mov rbx, rax
mov r8d, 0x20a
mov rcx, rax
xor edx, edx
call fcn.14000ff90
lea rdx, str.mozlock.
mov rcx, rdi
mov r8, rbx
call fcn.14000e230
test eax, eax
je 0x14000babf
mov rcx, rbx
call fcn.1400174c8
test rax, rax
je 0x14000babf
mov rcx, rax
nop dword [rax]
add rcx, 0xffffffffffffffff
movzx edx, word [rbx + rcx*2]
cmp dx, 0x5c
je 0x14000b9e8
cmp dx, 0x2f
jne 0x14000ba98
cmp rax, rcx
jb 0x14000b9d0
mov word [rbx + rcx*2], 0
mov rax, rcx
test rcx, rcx
jne 0x14000b9d0
jmp 0x14000babf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x60000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000ba44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
cmp rbx, 0xffffffffffffffff
je 0x14000ba8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov eax, 2
cmovne eax, ecx
cmp ebp, eax
je 0x14000ba8d
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000ba85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rbx
mov dx, 0x2f
call fcn.1400101b4
mov r14, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.1400101b4
cmp r14, rax
cmova rax, r14
test rax, rax
jne 0x14000bad1
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.14000e3a4
add rax, 2
lea rcx, [rsi + 0x10]
mov rdx, rax
call fcn.140009420
test eax, eax
js 0x14000babf
cmp qword [rsi + 0x10], 0
je 0x14000babf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14000bb46
mov qword [rsi + 8], r14
mov rcx, rbx
call fcn.14000e3a4
mov rbx, qword [rsi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14000ba4e
jmp 0x14000ba8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000bb27