joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000355c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x1400035e0
mov eax, dword [0x14002df0c]
test al, 1
jne 0x1400035bf
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service_manager.____d_
lea rcx, [0x14002df50]
call fcn.140007060
jmp 0x1400036c0
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140003642
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140003624
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service.____d_
lea rcx, [0x14002df50]
call fcn.140007060
jmp 0x1400036b7
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov ebp, esi
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x140003689
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x38]
add eax, 0xa
add ebp, eax
cmp dword [rsp + 0x24], 1
je 0x14000368d
cmp ebp, 0xea60
ja 0x14000368d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003659
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test eax, eax
jne 0x1400036ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov ecx, esi
sete cl
mov esi, ecx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140003c1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x80]
mov dword [rdx], edi
mov r8d, 0x20a
xor edx, edx
call fcn.140008760
mov r8d, 0x104
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.1400094a0
lea rdx, str.update.status
lea rcx, [rbp - 0x80]
call fcn.140006928
test eax, eax
jne 0x140003cc5
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140003cab
or eax, 1
mov qword [0x14002df50], rdi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_append_path_for_update.status_file
lea rcx, [0x14002df50]
call fcn.140007060
xor eax, eax
jmp 0x140003e29
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003d24
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140003d1b
or eax, 1
mov qword [0x14002df50], rdi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_open_update.status_file
jmp 0x140003d94
xor eax, eax
mov byte [rsp + 0x58], dil
lea r9, [rsp + 0x40]
mov qword [rsp + 0x59], rax
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x61], rax
mov rcx, rbx
mov qword [rsp + 0x69], rax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x71], eax
mov word [rsp + 0x75], ax
mov byte [rsp + 0x77], al
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [0x14002df0c]
jne 0x140003da2
test al, 1
jne 0x140003d8d
or eax, 1
mov qword [0x14002df50], rdi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_read_from_update.status_file
lea rcx, [0x14002df50]
call fcn.140007060
jmp 0x140003e14
test al, 1
jne 0x140003dc2
or eax, 1
mov qword [0x14002df50], rdi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea r8, [rsp + 0x58]
lea rdx, str.updater.exe_returned_status:__s
lea rcx, [0x14002df50]
call fcn.140007008
movsd xmm0, qword [str.applying]
lea rdx, [rsp + 0x48]
mov al, byte [0x1400276a8]
lea rcx, [rsp + 0x58]
mov r8d, 8
movsd qword [rsp + 0x48], xmm0
mov byte [rsp + 0x50], al
call fcn.14000ce00
test eax, eax
sete dil
mov dword [rsi], edi
mov edi, 1
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140003e27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004cac
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004d14
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140004cf1
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____d_
mov r8d, eax
lea rcx, [0x14002df50]
call fcn.140007060
xor eax, eax
jmp 0x140004dc6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140004d57
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140004d48
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x140004cfe
lea rdx, str.update
mov rcx, rbx
call fcn.140006928
test eax, eax
jne 0x140004da3
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140004d91
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x140004cfe
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.updater.exe
mov rcx, rbx
call fcn.140006928
test eax, eax
je 0x140004d6a
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140004dcc
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
cmp word [rcx], si
je 0x140004eed
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140004e5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140004e5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004e5e
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140004e48
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, rdi
lea rdx, str.Could_not_delete_service_updater_path:__ls.
lea rcx, [0x14002df50]
call fcn.140007060
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140008760
lea r8, str.updater.ini
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006624
test eax, eax
je 0x140004eed
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140004eed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140004eed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004eed
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140004ed5
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea r8, [rsp + 0x20]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea rcx, [0x14002df50]
call fcn.140007060
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005a18
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r9
and qword [rbp - 0x18], 0
mov r14, r8
mov ebx, edx
mov dword [rax - 0x38], 0xf0000000
mov rsi, rcx
mov r9d, 1
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140005a9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x140005a7c
xor eax, eax
jmp 0x140005b5d
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140005a75
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140005a75
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140005a75
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
mov edx, 4
mov r8, rdi
mov dword [rbp - 0x20], edx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140005a75
mov ecx, dword [rdi]
call fcn.14000762c
mov r8d, dword [rdi]
xor edx, edx
mov rcx, rax
mov qword [r14], rax
mov rbx, rax
call fcn.140008760
mov rcx, qword [rbp - 0x18]
mov r9, rdi
and dword [rsp + 0x20], 0
mov r8, rbx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140005a75
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140005b47
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140005b58
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140005bec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
lea rdx, [0x1400284ac]
mov r12, r9
call fcn.14000da74
mov rbx, rax
test rax, rax
je 0x140005e22
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.14000d988
test eax, eax
jne 0x140005e22
mov rcx, rbx
call fcn.14000d61c
test eax, eax
jle 0x140005e22
movsxd rsi, eax
lea rcx, [rsi + 1]
call fcn.14000762c
mov rdi, rax
test rax, rax
jne 0x140005c64
lea esi, [rax + 0xa]
jmp 0x140005e18
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000d988
test eax, eax
jne 0x140005c8b
mov r9, rbx
lea edx, [rax + 1]
mov r8, rsi
mov rcx, rdi
call fcn.14000dd10
cmp rax, rsi
je 0x140005c95
mov esi, 6
jmp 0x140005e18
xor r15b, r15b
mov byte [rdi + rsi], 0
xor ebp, ebp
mov qword [rsp + 0x70], rdi
jmp 0x140005df2
cmp byte [rsi], 0x23
je 0x140005df2
cmp byte [rsi], 0x3b
je 0x140005df2
lea rax, [0x1400284c4]
mov cl, 0x20
cmp byte [rsi], cl
je 0x140005cd2
inc rax
mov cl, byte [rax]
test cl, cl
jne 0x140005cc3
jmp 0x140005cd5
inc rsi
cmp byte [rax], 0
jne 0x140005cba
mov al, byte [rsi]
mov qword [rsp + 0x58], rsi
test al, al
je 0x140005df2
cmp al, 0x5b
jne 0x140005d43
inc rsi
lea rdx, [rsp + 0x58]
lea rcx, [0x1400284c0]
mov qword [rsp + 0x58], rsi
call fcn.140005b78
test rax, rax
je 0x140005d3b
lea rdx, [rsp + 0x58]
lea rcx, [0x1400284c4]
call fcn.140005b78
test rax, rax
jne 0x140005d3b
lea rdx, str.Strings
mov rcx, rsi
call fcn.14001d870
test eax, eax
sete r15b
jmp 0x140005df2
xor r15b, r15b
jmp 0x140005df2
test r15b, r15b
je 0x140005df2
lea rdx, [rsp + 0x58]
lea rcx, [0x1400284cc]
call fcn.140005b78
test rax, rax
je 0x140005df2
xor eax, eax
lea r9, str.MozillaMaintenanceDescription
xor r14d, r14d
mov r10, r9
mov rcx, rsi
sub r10, rsi
movzx edx, byte [rcx]
movzx r8d, byte [rcx + r10]
sub edx, r8d
jne 0x140005d90
inc rcx
test r8d, r8d
jne 0x140005d7b
test edx, edx
je 0x140005dbb
or rdx, 0xffffffffffffffff
mov rcx, rdx
inc rcx
cmp byte [r9 + rcx], 0
jne 0x140005d9b
inc r9
inc eax
add r9, rcx
inc r14
cmp byte [r9], 0
jne 0x140005d72
mov eax, edx
mov r14, rdx
test eax, eax
js 0x140005df2
cmp eax, 1
jae 0x140005df2
mov rdx, qword [rsp + 0x58]
mov r8d, 0x257
cdqe
imul rcx, rax, 0x258
add rcx, r12
call fcn.14000c8f0
imul rax, r14, 0x258
inc ebp
mov byte [rax + r12 + 0x257], 0
lea rdx, [rsp + 0x70]
lea rcx, [0x1400284c8]
call fcn.140005b78
mov rsi, rax
test rax, rax
jne 0x140005ca8
dec ebp
neg ebp
sbb esi, esi
and esi, 5
mov rcx, rdi
call fcn.140007668
jmp 0x140005e27
mov esi, 6
test rbx, rbx
je 0x140005e34
mov rcx, rbx
call fcn.14000d6a8
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000695c
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov ebx, edx
mov r15, rcx
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x20a
call fcn.140008760
lea r9, [rbp + 0x180]
xor r8d, r8d
lea rdx, [0x140028be8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edi, edi
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rsi, 0xffffffffffffffff
mov r14, rax
cmp rax, rsi
je 0x140006aa4
mov r8d, ebx
lea rdx, str.failed:__d
lea rcx, [rsp + 0x48]
call fcn.1400065cc
lea rax, [rsp + 0x48]
inc rsi
cmp byte [rax + rsi], dil
jne 0x140006a0f
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, esi
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140006aa4
cmp dword [rsp + 0x40], esi
jne 0x140006aa4
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.140008760
mov r8d, 0x104
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.1400094a0
lea rdx, str.update.status
lea rcx, [rsp + 0x70]
call fcn.140006928
test eax, eax
je 0x140006aa4
mov r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov eax, edi
jmp 0x140006aa6
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006cc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140006d66
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140006d31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006d66
lea rdx, [rsp + 0x4c]
lea rcx, [0x140026ae0]
call fcn.14000f69c
mov rcx, rbx
test eax, eax
je 0x140006d72
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006d31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x490
cmp edi, 0x490
jne 0x140006d78
xor eax, eax
jmp 0x140006d93
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x140006ce6
mov eax, 0x102
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006db8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140008760
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rdi + rax*2], bx
jne 0x140006dfa
mov r8d, 0x104
cmp rax, r8
jbe 0x140006e12
xor eax, eax
jmp 0x140006e42
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400094a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, 1
sete bl
mov dword [rsi], ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140006f10
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp qword [rcx], 0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
jne 0x140006f97
lea r9, [rcx + 8]
xor r8d, r8d
mov rcx, rdi
lea rdx, [0x140028c00]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rbp, [rbx + 0x210]
mov qword [rsp + 0x20], r14
mov rcx, rbp
lea r8, str._s__s
mov r9, rdi
mov edx, 0x104
call fcn.140006eac
dec eax
cmp eax, 0x102
ja 0x140006f97
lea rdx, [0x140028c14]
lea rcx, [rbx + 8]
call fcn.14000da74
mov rcx, rbp
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140006fb4
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140006ffc
call fcn.14000d6a8
and qword [rbx], 0
lea rdi, [rbx + 0x210]
mov rcx, rdi
xor edx, edx
call fcn.14000ddd8
lea rcx, [rbx + 8]
test eax, eax
jne 0x140006ff3
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140006ffc
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007569
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140007569
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007569
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000754d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140007547
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000754f
add rdx, 0x28
jmp 0x14000752c
xor edx, edx
test rdx, rdx
jne 0x140007558
xor al, al
jmp 0x14000756f
test dword [rdx + 0x24], 0x80000000
je 0x140007565
xor al, al
jmp 0x14000756f
mov al, 1
jmp 0x14000756f
xor al, al
jmp 0x14000756f
add rsp, 0x18
ret
Function at 0x140009494
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140009268
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009268
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009268
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009268
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009268
cmp dword [rcx + 0x84], 0xe
jbe 0x140009268
cmp dword [rcx + 0xf8], esi
je 0x140009268
mov ecx, r14d
call fcn.1400093b0
mov ecx, 2
call fcn.140010440
nop
cmp byte [0x14002d3e0], 0
jne 0x140009332
mov r15d, 1
mov eax, r15d
xchg dword [0x14002d3d0], eax
test ebx, ebx
jne 0x1400092db
mov rdi, qword [0x14002c008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14002d3d8]
cmp rcx, rax
je 0x1400092d2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007efc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002d680]
jmp 0x1400092e7
cmp ebx, r15d
jne 0x1400092ed
lea rcx, [0x14002d698]
call fcn.14000f37c
nop
test ebx, ebx
jne 0x140009304
lea rdx, [0x14001e5b8]
lea rcx, [0x14001e598]
call fcn.14000ec10
lea rdx, [0x14001e5c8]
lea rcx, [0x14001e5c0]
call fcn.14000ec10
movzx eax, byte [0x14002d3e0]
test esi, esi
cmove eax, r15d
mov byte [0x14002d3e0], al
jmp 0x140009332
mov ecx, 2
call fcn.140010494
test esi, esi
jne 0x140009349
mov ecx, r14d
call fcn.140009364
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400091f8
Function at 0x140014cac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140014b4c
call fcn.1400110e0
mov dword [rax], 0x16
call fcn.140010d90
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140014b34
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140014b34
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140014b7e
lock or dword [rax + 0x14], 0x10
jmp 0x140014b34
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140014b9b
mov rcx, qword [rbp + 0x10]
call fcn.14001aff0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140012a0c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140013ec4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140014bf2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140014b34
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140014c5e
mov rcx, qword [rbp + 0x10]
call fcn.140012a0c
cmp eax, 0xffffffff
je 0x140014c45
mov rcx, qword [rbp + 0x10]
call fcn.140012a0c
cmp eax, 0xfffffffe
je 0x140014c45
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140012a0c
movsxd rdi, eax
lea rsi, [0x14002daa0]
mov rcx, rbx
sar rdi, 6
call fcn.140012a0c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140014c4c
lea rax, [0x14002c320]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140014c5e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140014c94
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140014c90
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140014c90
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140014b37
jmp 0x140014b04