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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3f50]
mov eax, 0x4050
call fcn.180043900
sub rsp, rax
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp + 0x3f40], rax
and dword [rsp + 0x30], 0
xor edi, edi
movsxd rbx, edx
mov rdx, rcx
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.180045f30
mov rcx, qword [0x1800d4838]
lea r9, [rsp + 0x38]
and qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1800d4838]
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], 0
lea rdx, [rbp + 0x1f40]
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x18001b94a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x18001b984
test edi, edi
jne 0x18001b97a
cmp dword [rsp + 0x34], 4
jb 0x18001b97a
lea r8d, [rdi + 4]
lea rdx, [rbp + 0x1f40]
lea rcx, [rsp + 0x30]
call fcn.180045f30
mov edx, dword [rsp + 0x30]
lea rcx, str.Error_code:__lu_n
call fcn.18001b9c0
add edi, dword [rsp + 0x34]
test ebx, ebx
jne 0x18001b998
jmp 0x18001b912
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed_w_err_0x_08lx_n
call fcn.18001ba14
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x3f40]
xor rcx, rsp
call fcn.180043830
lea r11, [rsp + 0x4050]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x18001bd28
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
and qword [rsp + 0x28], 0
lea r8, [0x18001bee8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [0x1800d8a58], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x1800d8a58]
or edx, 0xffffffff
mov qword [0x1800d8a60], rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]

Function at 0x18001bf04
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
and qword [rsp + 0x28], 0
lea r8, [0x18001c140]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [0x1800d8a90], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x1800d8a90]
or edx, 0xffffffff
mov qword [0x1800d8a98], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800d8a90]
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x180023d20
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov r12d, edx
mov r15d, r8d
xor edx, edx
mov rdi, rcx
lea rcx, [rbp - 0x39]
mov rbx, r9
lea r8d, [rdx + 0x68]
call fcn.180046390
xor r13d, r13d
mov dword [rbp + 0x77], r13d
mov r14d, r13d
mov esi, r13d
test rbx, rbx
je 0x180023d73
mov qword [rbx], r13
xor edx, edx
lea rcx, [rbp - 0x59]
lea r8d, [rdx + 0x18]
call fcn.180046390
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x68]
call fcn.180046390
mov dword [rbp - 0x39], 0x68
mov dword [rbp + 3], 1
test r15d, r15d
je 0x180023dab
mov word [rbp + 7], r13w
jmp 0x180023db4
mov eax, 5
mov word [rbp + 7], ax
cmp word [rdi], 0x22
jne 0x180023de3
lea rdx, [0x1800aeecc]
mov rcx, rdi
call fcn.180046838
test rax, rax
je 0x180023de3
lea rdx, [rbp + 0x77]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
mov eax, dword [rbp + 0x77]
jmp 0x180023deb
mov eax, 1
mov dword [rbp + 0x77], eax
xor r9d, r9d
xor r8d, r8d
cmp eax, 1
lea rax, [rbp - 0x59]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
jle 0x180023e2a
mov rcx, qword [rsi]
mov rdx, rdi
jmp 0x180023e2f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test al, al
je 0x180023e6e
mov rcx, qword [rbp - 0x59]
test rbx, rbx
je 0x180023e45
mov qword [rbx], rcx
test r12d, r12d
je 0x180023e57
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x59]
test rbx, rbx
jne 0x180023e62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180023e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rsi, rsi
je 0x180023e85
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xe0]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800243a8
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov r13d, r9d
mov r12, rdx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rsp + 0x70]
call fcn.180046390
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov r15d, ecx
mov r14, qword [rsp + 0x148]
test r14, r14
je 0x18002440d
mov qword [r14], rcx
mov rax, qword [rsp + 0x150]
test rax, rax
je 0x180024424
mov qword [rax], rcx
mov edi, 0x8000000
jmp 0x180024434
mov eax, r13d
neg eax
sbb edi, edi
and edi, 0x7fffff0
add edi, 0x10
mov rsi, qword [rsp + 0x140]
test rsi, rsi
je 0x180024443
mov dword [rsi], ecx
mov rcx, rbx
call fcn.18005380c
mov rbx, rax
mov rcx, r12
call fcn.18005380c
add rbx, rax
lea r12, [rbx*2 + 8]
mov rcx, r12
call fcn.180053730
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x18002447f
lea r15d, [rax + 8]
jmp 0x1800245b0
shr r12, 1
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x120]
lea r8, [0x1800af110]
mov rdx, r12
mov rcx, rbx
call fcn.180012aa8
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rsp + 0x50]
call fcn.180046390
mov r12d, 0x68
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180046390
mov dword [rsp + 0x70], r12d
lea ecx, [r12 - 0x67]
mov dword [rsp + 0xac], ecx
xor r12d, r12d
test r13d, r13d
je 0x1800244f2
mov word [rsp + 0xb0], r12w
jmp 0x1800244ff
mov eax, 5
mov word [rsp + 0xb0], ax
mov dword [rsp + 0xac], 0x100
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18002455e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
jmp 0x1800245b0
test r14, r14
je 0x18002456b
mov rax, qword [rsp + 0x50]
mov qword [r14], rax
mov rcx, qword [rsp + 0x160]
test rcx, rcx
je 0x18002457f
mov rax, qword [rsp + 0x60]
mov dword [rcx], eax
cmp dword [rsp + 0x130], r12d
jne 0x18002458e
test rsi, rsi
je 0x1800245b0
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rsi, rsi
je 0x1800245b0
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
test r14, r14
jne 0x1800245c5
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800245c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800245d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1800245e2
mov rcx, rbx
call fcn.180053728
mov eax, r15d
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800251d8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r8d, 0x209
lea rdx, [0x1800daca0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [0x1800daca0]
add rsp, 0x28
ret

Function at 0x180025b74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov rdi, r8
mov r15, rdx
xor r9d, r9d
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
xor esi, esi
xor ebx, ebx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp rbx, rdi
jae 0x180025bfe
mov rax, rdi
sub rax, rbx
cmp rax, 0x100000
jbe 0x180025bc8
mov r8d, 0x100000
jmp 0x180025bce
mov r8d, edi
sub r8d, ebx
and qword [rsp + 0x20], rsi
lea rdx, [rbx + r15]
lea r9, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
je 0x180025bf6
mov ecx, dword [rsp + 0x70]
add rbx, rcx
test ecx, ecx
je 0x180025bfe
jmp 0x180025bad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test r14, r14
je 0x180025c06
mov qword [r14], rbx
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180026c40
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x10070
call fcn.180043900
sub rsp, rax
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x10060], rax
mov r12, rdx
mov r14, rcx
or qword [rsp + 0x48], 0xffffffffffffffff
xor esi, esi
xor ebx, ebx
lea r15d, [rsi + 1]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r15d
mov edx, 0x80000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180026ccd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0x20
jne 0x180026d74
cmp rdi, 0xffffffffffffffff
je 0x180026c80
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
je 0x180026d74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0xfffc
test r15d, r15d
je 0x180026d74
cmp esi, r14d
jae 0x180026d74
mov r8d, r14d
sub r8d, esi
cmp r8d, eax
cmova r8d, eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r15d, eax
test eax, eax
je 0x180026d5e
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x180026d6a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180026d6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov ebx, eax
add esi, dword [rsp + 0x44]
mov dword [rsp + 0x54], esi
jmp 0x180026cfb
cmp rdi, 0xffffffffffffffff
je 0x180026d83
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x100b0]
add rsp, 0x10070
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180026def
mov ebx, eax
shr ebx, 4
and bl, 1
mov al, bl
add rsp, 0x20
pop rbx
ret
Function at 0x18002747c
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180046390
xor ebx, ebx
mov dword [rsp + 0x20], 0x5c
and qword [rsp + 0x28], rbx
lea rcx, [rbp + 0x140]
mov esi, 0x104
mov r8, rdi
mov edx, esi
call fcn.1800537a4
lea rcx, [rbp + 0x140]
jmp 0x18002753c
mov r8, rax
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.18006bcb8
lea rcx, [rsp + 0x30]
call fcn.18005380c
cmp rax, 2
jbe 0x180027528
lea rcx, [rsp + 0x30]
call fcn.18002630c
test al, al
jne 0x180027528
lea rcx, [rsp + 0x30]
call fcn.1800815c0
mov ebx, eax
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18006bcb8
xor ecx, ecx
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.180081388
test rax, rax
jne 0x1800274ee
mov rcx, rdi
call fcn.1800815c0
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.180043830
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180027d84
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov sil, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x170]
call fcn.180046390
xor r14d, r14d
test rbx, rbx
je 0x180027ddd
test sil, sil
je 0x180027ddd
mov byte [rbx], r14b
mov rcx, rdi
call fcn.18005380c
movsxd r15, eax
lea r8, [0x1800af1d8]
lea rax, str._s.
mov r9, rdi
mov edx, 0x209
lea rcx, [rbp + 0x170]
cmp word [rdi + r15*2 - 2], 0x5c
cmove r8, rax
call fcn.180012aa8
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180027efa
jmp 0x180027edb
cmp word [rdi + r15*2 - 2], 0x5c
lea rax, [0x1800abe60]
lea rdx, [0x1800abc00]
mov r8, rdi
cmove rdx, rax
lea r9, [rsp + 0x4c]
lea rcx, [rbp + 0x170]
call fcn.1800174e8
test byte [rsp + 0x20], 0x10
je 0x180027eab
lea rdx, [0x1800aedf4]
lea rcx, [rsp + 0x4c]
call fcn.18006bbf8
test eax, eax
je 0x180027edb
lea rdx, [0x1800aedf0]
lea rcx, [rsp + 0x4c]
call fcn.18006bbf8
test eax, eax
je 0x180027edb
xor r8d, r8d
lea rcx, [rbp + 0x170]
mov rdx, rbx
call fcn.180027d84
jmp 0x180027edb
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180027edb
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180027edb
test rbx, rbx
je 0x180027edb
mov byte [rbx], 1
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180027e39
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180027f2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, rdi
mov r14d, eax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180027f2b
test rbx, rbx
je 0x180027f2b
mov byte [rbx], 1
mov eax, r14d
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180027f54
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rsi, r8
and qword [rax - 0x28], rbx
mov r14, rdx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax - 0x38], 2
lea edi, [rbx + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x180027fa2
xor eax, eax
jmp 0x180028007
cmp rbx, rsi
jae 0x180027fe8
mov rax, rsi
sub rax, rbx
cmp rax, 0xfffc
jbe 0x180027fbd
mov r8d, 0xfffc
jmp 0x180027fc3
mov r8d, esi
sub r8d, ebx
and qword [rsp + 0x20], 0
lea rdx, [rbx + r14]
lea r9, [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x68]
mov edi, eax
add rbx, rcx
test eax, eax
jne 0x180027fa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x180028005
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x18002825c
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
xor esi, esi
call fcn.18005380c
cmp rax, 0x104
jb 0x180028291
mov rcx, rbx
call fcn.1800280bc
test rax, rax
mov rdi, rax
cmovne rbx, rax
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000100
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800282ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x180028306
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea r9, [rsp + 0x50]
mov rcx, rbx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1800282fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180028313
mov rcx, rdi
call fcn.180053728
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180028500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, r9
mov rdx, qword [rsp + 0x60]
mov edi, r8d
xor r9d, r9d
xor r8d, r8d
mov rbp, rcx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18002a9c8
Capabilities:
Get common file path
Get session user name
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.180046390
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.180046390
lea rsi, [0x1800dc470]
mov rcx, rsi
lea rdx, [0x1800abcc4]
call fcn.18006bbf8
test eax, eax
jne 0x18002aa80
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [0x1800af888]
lea rcx, [rsp + 0x40]
call fcn.18007f9bc
test eax, eax
je 0x18002aa68
call fcn.18002aef8
mov edx, 0x1a
test al, al
je 0x18002aa6d
mov edx, 0x23
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rbx, [0x1800dc260]
mov rcx, rbx
lea rdx, [0x1800abcc4]
call fcn.18006bbf8
mov edi, 0x104
test eax, eax
jne 0x18002aabd
mov r8, rsi
mov edx, edi
mov rcx, rbx
call fcn.1800537a4
lea r8, str.SecureAge_TechnologySecureAgelog
mov edx, edi
mov rcx, rbx
call fcn.18006bcb8
lea rdx, [0x1800abcc4]
mov rcx, rbx
call fcn.18006bbf8
test eax, eax
je 0x18002ab0e
mov r8d, 0x208
lea rdx, [rsp + 0x240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rsp + 0x240]
mov rdx, rdi
mov rcx, rbx
call fcn.1800537a4
mov rcx, rbx
call fcn.18002630c
test al, al
jne 0x18002ab0e
mov rcx, rbx
call fcn.18002747c
mov rcx, rbx
call fcn.18005380c
cmp word [rbx + rax*2 - 2], 0x5c
je 0x18002ab30
lea r8, [0x1800aedec]
mov rdx, rdi
mov rcx, rbx
call fcn.18006bcb8
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180043830
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18002aef8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x18002af83
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x18002b0e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
xor edi, edi
call fcn.18002a944
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], edi
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002b13b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18002b13d
mov ebx, edi
cmp ebx, 0x20
jne 0x18002b14b
lea ecx, [rbx + 0x44]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rsi, 0xffffffffffffffff
jne 0x18002b15b
cmp ebx, 0x20
je 0x18002b0fd
jmp 0x18002b207
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18002b19b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180022454
test eax, eax
je 0x18002b1fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Unable_to_move_file_pointer_to_the_end_of_the_file.
call fcn.180022938
jmp 0x18002b1fe
mov rcx, rbp
call fcn.180053980
mov r8, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002b1f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
add eax, 0xffffffe0
cmp eax, 1
ja 0x18002b1db
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x20
je 0x18002b19b
cmp ebx, 0x21
je 0x18002b19b
call fcn.180022454
test eax, eax
je 0x18002b1fe
lea rdx, str.Write_to_log_file_failed.
mov ecx, ebx
jmp 0x18002b194
mov ebx, edi
mov dil, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov al, dil
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x18002c50c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov eax, r8d
movabs rbx, 0xc6a4a7935bd1e995
movsxd r10, edx
mov r11, rcx
mov r9, r10
imul r9, rbx
xor r9, rax
mov eax, r10d
cdq
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
movsxd r8, eax
shl r8, 3
lea rax, [r8 + rcx]
shr r8, 3
cmp rcx, rax
cmova r8, rdx
test r8, r8
je 0x18002c57f
mov rax, qword [r11]
inc rdx
imul rax, rbx
add r11, 8
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rcx, rbx
xor r9, rcx
imul r9, rbx
cmp rdx, r8
jne 0x18002c557
and r10d, 7
sub r10d, 1
je 0x18002c5f5
sub r10d, 1
je 0x18002c5e9
sub r10d, 1
je 0x18002c5dd
sub r10d, 1
je 0x18002c5d1
sub r10d, 1
je 0x18002c5c5
sub r10d, 1
je 0x18002c5b9
cmp r10d, 1
jne 0x18002c600
movzx eax, byte [r11 + 6]
shl rax, 0x30
xor r9, rax
movzx eax, byte [r11 + 5]
shl rax, 0x28
xor r9, rax
movzx eax, byte [r11 + 4]
shl rax, 0x20
xor r9, rax
movzx eax, byte [r11 + 3]
shl rax, 0x18
xor r9, rax
movzx eax, byte [r11 + 2]
shl rax, 0x10
xor r9, rax
movzx eax, byte [r11 + 1]
shl rax, 8
xor r9, rax
movzx eax, byte [r11]
xor r9, rax
imul r9, rbx
mov rcx, r9
shr rcx, 0x2f
xor rcx, r9
imul rcx, rbx
mov rbx, qword [rsp + 8]
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
ret