joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028840
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ebp, r9d
mov rcx, rdx
mov edi, r8d
mov rsi, rdx
call fcn.14002f3c0
test rax, rax
jne 0x140028874
mov eax, 0x80004005
jmp 0x1400288cb
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
mov edx, edi
call fcn.14002b880
test al, al
jne 0x14002888f
mov eax, 0x57
jmp 0x1400288cb
mov rax, qword [rbx]
mov r9d, ebp
mov ecx, dword [rsp + 0x70]
mov r8d, edi
mov dword [rsp + 0x20], ecx
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [0x14003b8b8]
test eax, eax
jne 0x1400288cb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400288e0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov rcx, rdx
mov rbx, r9
mov edi, r8d
call fcn.14002f3c0
test rax, rax
jne 0x140028922
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x28]
mov edx, edi
call fcn.14002b880
test al, al
jne 0x14002894b
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp eax, 0xffffffff
jne 0x140028978
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x68], 0
jne 0x14002899e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor eax, eax
mov dword [rbx], edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x20], 0
jne 0x1400289c1
cmp edx, 0x7fffffff
ja 0x1400289c1
mov dword [rbx], edx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400289e0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14002f3c0
test rax, rax
jne 0x140028a01
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140028a73
lea rcx, [rsp + 0x20]
call fcn.14002f7a0
xor r9d, r9d
lea r8d, [rbx + 1]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400307d0
test al, al
jne 0x140028a47
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140028a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140028a90
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x50
mov rdi, rcx
mov rbp, r9
mov rcx, rdx
mov r15, r8
mov rsi, rdx
call fcn.14002f3c0
test rax, rax
jne 0x140028ac8
mov eax, 0x80004005
jmp 0x140028b8e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
call fcn.14002f7a0
xor r9d, r9d
lea rcx, [rsp + 0x30]
mov rdx, rbp
lea r8d, [r9 + 1]
call fcn.1400307d0
test al, al
je 0x140028b78
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x30]
xor r9d, r9d
lea r8d, [r9 + 1]
call fcn.1400307d0
test al, al
je 0x140028b78
mov rax, qword [rdi]
mov rdx, rsi
mov r8d, dword [r15]
mov rcx, rdi
mov rax, qword [rax + 0x60]
call qword [0x14003b8b8]
mov ebx, eax
test eax, eax
jne 0x140028b7d
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
mov qword [rsp + 0x20], r15
mov r9d, 1
mov ebx, eax
mov rdx, rsi
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x58]
test ebx, ebx
jne 0x140028b6d
mov r8, qword [rsp + 0x80]
call qword [0x14003b8b8]
mov ebx, eax
jmp 0x140028b7d
mov r8, rbp
call qword [0x14003b8b8]
jmp 0x140028b7d
mov ebx, 1
lea rcx, [rsp + 0x30]
call fcn.14002f9a0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret

Function at 0x140028c60
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, rdx
mov rbx, r8
call fcn.14002f3c0
test rax, rax
jne 0x140028c81
mov eax, 0x80004005
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x50], rdi
xor edi, edi
test rbx, rbx
je 0x140028d49
lea rcx, [rsp + 0x20]
call fcn.14002f7a0
lea r9d, [rdi + 1]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400307d0
test al, al
jne 0x140028ccb
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140028cd2
test rax, rax
je 0x140028d2d
movzx ecx, word [rbx + rax*2 - 2]
cmp cx, 0x2e
je 0x140028d2d
cmp rax, 1
jbe 0x140028cff
cmp word [rbx + rax*2 - 4], 0x2e
jne 0x140028cff
cmp cx, 0x5c
je 0x140028d2d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140028d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.14002f9a0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140028d60
Capabilities:
Delete directory

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14002f3c0
test rax, rax
jne 0x140028d81
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140028df2
lea rcx, [rsp + 0x20]
call fcn.14002f7a0
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
call fcn.1400307d0
test al, al
jne 0x140028dc6
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140028ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14002f9a0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140029850
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rbx, r8
lea r8, [rsp + 0x40]
call fcn.14002b8b0
test al, al
jne 0x14002987a
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x1400298c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rsi, r8
lea r8, [rsp + 0x50]
mov rdi, r9
call fcn.14002b8b0
test al, al
je 0x1400299f3
mov ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x1400299f3
test rdi, rdi
je 0x1400299f3
cmp word [rdi], 1
jne 0x1400299de
cmp dword [rdi + 4], 1
jne 0x1400299de
cmp dword [rdi + 0x1c], 0
jne 0x1400299de
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x1400299f8
cmp ebx, 2
jb 0x1400299de
test bl, 1
jne 0x1400299de
cmp dword [rdi + 0x18], ebx
jne 0x1400299de
mov rdx, qword [rsp + 0x40]
lea eax, [rbx - 2]
cmp byte [rax + rdx], 0
jne 0x1400299de
lea eax, [rbx - 1]
cmp byte [rax + rdx], 0
jne 0x1400299de
mov rcx, 0xffffffffffffffff
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140029971
lea rcx, [rcx*2 + 2]
cmp rcx, rbx
jne 0x1400299de
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400299c3
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140029a10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx + 0x10]
mov rdi, r8
lea r8, [rsp + 0x38]
mov rbx, r9
call fcn.14002b8b0
test al, al
jne 0x140029a42
mov eax, 0x57
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029a92
cmp dword [rsp + 0x60], 4
jne 0x140029a92
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140029ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx + 0x10]
mov rsi, r8
lea r8, [rsp + 0x60]
mov rdi, r9
call fcn.14002b8b0
test al, al
je 0x140029bb9
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140029bb9
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov dword [rsp + 0x50], ecx
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029ba4
mov r8d, dword [rsp + 0x50]
mov dword [rbx], r8d
test rdi, rdi
je 0x140029b92
lea ecx, [rax + 0x11]
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rdi], rax
test rax, rax
jne 0x140029b4f
mov eax, 0x80004005
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140029b92
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0x57
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140029bd0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 0x10]
mov rbx, r8
lea r8, [rsp + 0x30]
call fcn.14002b8b0
test al, al
jne 0x140029bf6
mov eax, 0x57
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14002a110
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov rsi, qword [rbp + 0xa10]
mov rcx, rdx
mov rbx, r9
mov rdi, r8
call fcn.14002f3c0
test rax, rax
je 0x14002a281
xor eax, eax
mov dword [rsp + 0x40], 0x70
xorps xmm0, xmm0
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x54], eax
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor edx, edx
mov eax, dword [rbp + 0xa18]
mov rcx, rbx
mov dword [rsp + 0x70], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0x44], 0x100
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x50], rdi
movups xmmword [rbp - 0x6c], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x30], 0x400
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea rax, [rsp + 0x30]
mov edx, 9
mov qword [rsp + 0x28], rax
lea r9, str.open
lea rax, [rbp + 0x1c0]
xor ecx, ecx
lea r8, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jne 0x14002a281
mov r8d, dword [rsp + 0x30]
lea rdx, str.WinWord
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x14002a26e
mov r8d, dword [rsp + 0x30]
lea rdx, str.Excel
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x14002a26e
mov r8d, dword [rsp + 0x30]
lea rdx, str.OUTLOOK
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x14002a26e
mov r8d, dword [rsp + 0x30]
lea rdx, str.POWERPNT
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14002a281
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14002a281
xor eax, eax
jmp 0x14002a286
mov eax, 0x80004005
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.140039070
mov rbx, qword [rsp + 0xaf0]
add rsp, 0xad0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002a2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rcx, rdx
mov rbx, r8
call fcn.14002f3c0
test rax, rax
jne 0x14002a2e2
mov eax, 0x80004005
jmp 0x14002a316
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14002a303
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
jmp 0x14002a314
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140039070
add rsp, 0x280
pop rbx
ret
Function at 0x14002b080
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8b0
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov rbp, rdx
lea r8, [0x14003d310]
mov edx, 0x104
mov rsi, rcx
mov ebx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [0x14003d310]
mov edx, 0x104
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rsi
lea rcx, [rsp + 0x690]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x14003d3c0]
mov edx, 0x104
lea rcx, [rsp + 0x690]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x690]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002b126
xor eax, eax
jmp 0x14002b281
test rdi, rdi
je 0x14002b276
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14002b276
mov r8, rsi
lea rcx, [rsp + 0x480]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbp
lea rcx, [rsp + 0x270]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002b1c8
and eax, 0xfffffffe
lea rcx, [rsp + 0x270]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [rsp + 0x20], 0x10
jne 0x14002b1f7
xor r8d, r8d
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14002b130
xor ebx, ebx
jmp 0x14002b130
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x14002b226
test ax, ax
je 0x14002b130
cmp cx, cx
jne 0x14002b226
cmp ax, cx
jne 0x14002b226
cmp word [rsp + 0x50], 0
je 0x14002b130
xor edx, edx
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test eax, eax
jne 0x14002b252
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002b130
mov ebx, 1
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x480]
call fcn.14002b080
test eax, eax
jne 0x14002b130
xor ebx, ebx
jmp 0x14002b130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140039070
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x8b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b2b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x88
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002b461
mov ecx, 0x1fe
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0xb0], 0xff
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14002b44e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x80], rbp
mov r8, rbx
xor ebp, ebp
xor edx, edx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002b43d
nop
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x58], rbp
xor r9d, r9d
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002b43d
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call fcn.14002b2b0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbp
xor r9d, r9d
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002b43d
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x60], eax
je 0x14002b43d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x30], rbp
mov r8, rbx
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0xb0], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14002b350
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xa0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x14002b990
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov eax, r8d
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x50], r9
mov rax, qword [rsp + 0x60]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x78]
mov qword [rcx + 0x70], rax
mov rax, qword [rsp + 0x80]
mov qword [rcx + 0x78], rax
mov rax, qword [rsp + 0x88]
mov qword [rcx + 0x48], rax
test edx, edx
setne al
mov byte [rcx + 0x3c], al
lea rcx, str.MAPI32.DLL
call fcn.14002efd0
mov qword [rdi + 0x30], rax
test rax, rax
je 0x14002bb0c
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140038c74
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002ba5a
lea rdx, str.MAPIFreeBuffer
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.MAPIAllocateBuffer
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, vtable.MapiAllocator.0
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
jmp 0x14002ba5c
xor esi, esi
mov qword [rdi + 0x28], rsi
lea rdx, str.MAPIInitialize
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 8], rax
lea rdx, str.MAPIUninitialize
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
lea rdx, str.MAPILogonEx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x18], rax
lea rdx, str.HrQueryAllRows
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x20], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002bb0c
cmp qword [rdi + 0x10], 0
je 0x14002bb0c
cmp qword [rdi + 0x18], 0
je 0x14002bb0c
xor ecx, ecx
call qword [0x14003b8b8]
mov dword [rdi + 0x38], eax
test eax, eax
js 0x14002bb13
mov qword [rsp + 0x20], rdi
mov r9d, 0x63
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rax, qword [rdi + 0x18]
call qword [0x14003b8b8]
mov dword [rdi + 0x38], eax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x38], 0x80040102
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002efd0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
cmp dword [0x14004ba44], ebx
jne 0x14002f08b
mov eax, dword [0x14004ba40]
test eax, eax
jne 0x14002f08b
mov edx, dword [0x14004ba4c]
test edx, edx
je 0x14002f02b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14004ba40]
mov edx, dword [0x14004ba4c]
test eax, eax
jne 0x14002f08b
test edx, edx
jne 0x14002f03c
call fcn.140025bb0
test eax, eax
je 0x14002f052
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14002f08b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14002f081
cmp eax, 0x78
je 0x14002f081
cmp eax, 1
je 0x14002f081
cmp eax, 0x32
je 0x14002f081
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x14004ba40], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14004ba44], 0
je 0x14002f0ae
cmp dword [0x14004ba40], 0
jne 0x14002f0dc
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14002f0c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14002f0dc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret