joyce8/EMBER2024-capa huggingface dataset:
Function at 0x164f91050
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, qword [rbp + 0x67]
mov dword [rbp - 0x21], 0
mov word [rbp - 0x1d], 0x500
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
lea rax, vtable.std::_Func_impl_no_alloc_void____ptr64____cdecl___void____ptr64___void____ptr64__void____ptr64_.0
mov qword [rbp - 1], rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 7], rax
lea rax, [rbp - 1]
mov qword [rbp + 0x37], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x50], rax
xor edi, edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x164f911e6
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x11]
lea edx, [rdi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x164f9120f
mov dword [rbp - 0x19], edi
lea r8, [rbp - 0x19]
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x164f911bc
cmp dword [rbp - 0x19], edi
setne bl
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x164f9114b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x11], rdi
mov r8, qword [rbp + 0x37]
test r8, r8
je 0x164f91198
mov rax, qword [rbp - 9]
mov qword [rbp - 0x29], rax
mov rax, qword [r8]
lea rdx, [rbp - 0x29]
mov rcx, r8
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
mov r8, qword [rbp + 0x37]
test r8, r8
je 0x164f91198
mov rcx, qword [r8]
mov rax, qword [rcx + 0x20]
lea rcx, [rbp - 1]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [case.0x164e9d7b8.0]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_check_token_membership_
lea rcx, [rbp - 0x49]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rbp - 0x49]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x1650cfab8]
lea rcx, [rbp - 0x49]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rbp - 0x49]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_duplicate_the_access_token_
lea rcx, [rbp - 0x49]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rbp - 0x49]
call fcn.165003be0
int3
Function at 0x164f919e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, qword [rbp + 0x67]
mov qword [rbp + 7], rdi
xor r15d, r15d
lea rsi, [rdi + 8]
mov qword [rsi], r15
mov qword [rdi], r15
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x164f91b38
mov qword [rbp + 0x37], r15
lea rcx, [rbp + 0x37]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x164f91b5b
mov qword [rbp + 0x2f], r15
lea r8, [rbp + 0x2f]
lea edx, [r15 + 0xa]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x164f91b7e
mov rbx, qword [rbp + 0x37]
test rbx, rbx
je 0x164f91b2d
mov rax, qword [rbx]
mov r14, qword [rax + 0x28]
mov rcx, qword [rsi]
test rcx, rcx
je 0x164f91a95
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
nop
mov qword [rsi], r15
mov qword [rsp + 0x20], rsi
lea r9, [0x1650a9dd0]
xor r8d, r8d
mov rdx, qword [rbp + 0x2f]
mov rcx, rbx
mov rax, r14
call qword [case.0x164e9d7b8.0]
mov ebx, eax
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x164f91b0a
mov rcx, qword [rbp + 0x37]
test rcx, rcx
je 0x164f91ade
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x164e9d7b8.0]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, str.RecycleBin_BindToObject
mov edx, ebx
lea rcx, [rbp + 0xf]
call fcn.164e47d40
lea rdx, [0x165147178]
lea rcx, [rbp + 0xf]
call fcn.165003be0
int3
mov ecx, 0x80004003
call fcn.165000ee0
nop
lea r8, str.RecycleBin_SHGetMalloc
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.164e47d40
lea rdx, [0x165147178]
lea rcx, [rbp - 0x19]
call fcn.165003be0
nop
lea r8, str.RecycleBin_SHGetDesktopFolder
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.164e47d40
lea rdx, [0x165147178]
lea rcx, [rbp - 0x19]
call fcn.165003be0
int3
mov dword [rbp - 0x29], 0xa
lea rcx, str.RecycleBin_SHGetSpecialFolderLocation_of_
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], 0x2b
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 0xf]
call fcn.164ee6680
lea rdx, [0x165147178]
lea rcx, [rbp + 0xf]
call fcn.165003be0
int3
Function at 0x164f97380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x164f97404
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x164f97404
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [rsp + 0x40]
mov edx, eax
add rdx, rbx
and ecx, 0xf
jbe 0x164f973ed
cmp rbx, rdx
jae 0x164f97404
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add ecx, 0xffffffff
jne 0x164f973d8
cmp rbx, rdx
jae 0x164f97404
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x164f97e00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rdi, qword [rbp + 0xd0]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::log::detail::LogModule.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.asw::log::detail::LogModule.2.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.asw::log::detail::LogModule.1.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0x40]
mov dword [rcx + rdi - 4], edx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x45313339
mov dword [rsp + 0x34], 0x31413935
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x1f
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
lea rcx, [rsp + 0x60]
call fcn.164f98900
lea rcx, [rsp + 0x60]
call fcn.164e47630
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x45313339
mov dword [rsp + 0x34], 0x31413935
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x20
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
lea rcx, [rsp + 0x60]
call fcn.164f98950
lea rcx, [rsp + 0x60]
call fcn.164e47630
lea rcx, [rdi + 8]
call fcn.164e51d90
nop
lea rax, vtable.asw::mi::IModule.1.0
mov qword [rdi + 0x28], rax
mov rax, qword [rdi + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::mi::IModule.0
mov qword [rcx + rdi + 0x30], rax
mov dword [rsp + 0x30], 0xffffffff
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rdx, qword [rsp + 0x30]
call fcn.164ea5260
lea r11, vtable.asw::mi::IExportable.0
mov qword [rdi + 0x20], r11
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0xffffffff
mov rdx, qword [rsp + 0x30]
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
jmp fcn.164ea5260
Function at 0x164f99a50
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
mov rbp, rdx
mov eax, dword [rcx + 0xe0]
cmp dword [rdx], eax
jl 0x164f99bef
call fcn.164f9a260
lea rax, [0x1650cfddc]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.164f9e160
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0xb0]
test rax, rax
je 0x164f99af4
lock inc dword [rax + 8]
mov r14, qword [rsi + 0xa8]
mov qword [rsp + 0x78], r14
mov rax, qword [rsi + 0xb0]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rdx, qword [rsp + 0x88]
lea rdi, [rax - 1]
test r14, r14
je 0x164f99b4b
mov rcx, qword [r14]
jmp 0x164f99b4e
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x164f99c17
mov eax, dword [rsi + 0xe4]
cmp dword [rbp], eax
jl 0x164f99b92
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x164f99b88
mov rcx, qword [rax]
jmp 0x164f99b8b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x164f99be2
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x164f99be2
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x164e9d7b8.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x164f99be2
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x164e9d7b8.0]
nop
lea rcx, [rsp + 0x88]
call fcn.164e48400
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.164ea52e0
lea rdx, [0x165147178]
lea rcx, [rsp + 0x50]
call fcn.165003be0
int3
Function at 0x164f9a260
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rbx, [rcx + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r14, [rsi + 0xa8]
mov rax, qword [r14 + 8]
test rax, rax
je 0x164f9a2b9
lock inc dword [rax + 8]
mov r15, qword [r14]
mov qword [rsp + 0x58], r15
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdi, 0xffffffffffffffff
test r15, r15
je 0x164f9a2e5
mov rcx, qword [r15]
jmp 0x164f9a2e8
mov rcx, rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x164f9a443
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x68], rax
jl 0x164f9a3ab
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x164f9a329
mov rcx, qword [rcx]
jmp 0x164f9a32c
mov rcx, rdi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x164f9a417
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x70], rax
jl 0x164f9a39f
mov rax, qword [r14]
test rax, rax
je 0x164f9a35a
mov rcx, qword [rax]
jmp 0x164f9a35d
mov rcx, rdi
lea rbx, [rsi + 0xb8]
mov rdx, rbx
call fcn.164f99390
cmp qword [rbx + 0x18], 7
jbe 0x164f9a376
mov rbx, qword [rbx]
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.164f99c40
mov rdx, rax
mov rcx, r14
call fcn.164e52a80
lea rcx, [rsp + 0x28]
call fcn.164e51d90
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x164f9a3f1
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x164f9a3f1
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x164e9d7b8.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x164f9a3f1
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x164e9d7b8.0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x38]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x38]
call fcn.165003be0
int3
Function at 0x164f9bcf0
Capabilities:
Create thread

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x164f9bcf0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov ecx, 0xb0
call fcn.165001480
mov rbx, rax
mov qword [rsp + 0x40], rax
mov word [rax], bp
lea rcx, [rax + 8]
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbp
lea edx, [rbp + 2]
call fcn.164fff790
lea rcx, [rbx + 0x58]
call fcn.165000158
xorps xmm0, xmm0
movups xmmword [rbx + 0xa0], xmm0
mov rdi, qword [rsi - 0x20]
mov qword [rsi - 0x20], rbx
test rdi, rdi
je 0x164f9bda8
cmp dword [rdi + 0xa8], ebp
jne 0x164f9be46
lea rcx, [rdi + 0x58]
call fcn.164e6ffb0
lea rcx, [rdi + 8]
call fcn.164e6ffb0
mov edx, 0xb0
mov rcx, rdi
call fcn.1650010a0
lea rbx, [rsi - 0x108]
mov ecx, 8
call fcn.165001480
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x164f9cd60]
xor edx, edx
xor ecx, ecx
call fcn.165027518
mov qword [rsp + 0x30], rax
test rax, rax
je 0x164f9be37
mov rax, qword [rsi - 0x20]
cmp dword [rax + 0xa8], 0
jne 0x164f9be4c
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax + 0xa0], xmm1
cmp dword [rsp + 0x38], 0
jne 0x164f9be4c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.164fffe00
nop
call fcn.165021a48
int3
call fcn.165021a48
int3
Function at 0x164f9d980
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x28], ebx
mov rsi, r8
mov rdi, rdx
sub rsi, rdx
xorps xmm0, xmm0
mov r14, rcx
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bl
mov dword [rax - 0x28], 1
lea rcx, [rsi + 2]
movabs rax, 0x5555555555555556
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call fcn.164e53bd0
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x164f9da10
mov r9, qword [r14]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rsi, 3
jl 0x164f9daae
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
shr rdx, 1
imul rax, rdx, 0xfffffffffffffffd
add rsi, rax
nop dword [rax + rax]
movzx r8d, byte [rdi]
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
add rdi, 3
shl r8, 8
or r8, rax
shl r8, 8
or r8, rcx
mov rax, r8
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rax, r8
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 1], al
mov rax, r8
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 2], al
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [r9 + rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x164f9da40
cmp rsi, 2
jne 0x164f9db12
movzx edx, byte [rdi]
shl rdx, 8
movzx eax, byte [rdi + 1]
or rdx, rax
shl rdx, 8
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [r9 + rbx + 1], cl
shr rdx, 6
and edx, 0x3f
movzx ecx, byte [rdx + r10]
mov byte [r9 + rbx + 2], cl
mov byte [r9 + rbx + 3], 0x3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
cmp rsi, 1
jne 0x164f9db48
movzx ecx, byte [rdi]
shl rcx, 0x10
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
shr rcx, 0xc
and ecx, 0x3f
movzx eax, byte [rcx + r10]
mov byte [r9 + rbx + 1], al
mov word [r9 + rbx + 2], 0x3d3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x164f9f0c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push r14
sub rsp, 0x68
mov rbx, qword [rsp + 0x80]
xor r14d, r14d
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x164f9f0e9
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x164f9f257
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x164f9f145
cmp qword [rbx + 0x18], 7
jbe 0x164f9f115
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164f9f12b
test al, 0x10
jne 0x164f9f257
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
cmp eax, 3
jne 0x164f9f136
mov qword [rsp + 0x90], rbp
mov rbp, r14
mov qword [rsp + 0x98], rsi
nop dword [rax]
mov rdi, qword [rbx + 0x18]
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
cmp rdi, 7
jbe 0x164f9f174
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x1650d0814]
mov rdx, rsi
call fcn.164e72470
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x164f9f1f4
lea r8, [rax + 1]
mov qword [rsp + 0x48], r14
cmp rsi, r8
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
mov rdx, rbx
cmovb r8, rsi
movups xmmword [rsp + 0x38], xmm0
cmp rdi, 7
jbe 0x164f9f1c2
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.164e485e0
cmp qword [rsp + 0x50], 7
lea rcx, [rsp + 0x38]
cmova rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
call fcn.164e54bf0
jmp 0x164f9f160
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x164f9f210
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x164f9f257
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x164f9f22e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164f9f240
test al, 0x10
jne 0x164f9f257
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x68
pop r14
pop rbx
ret

Function at 0x164f9f610
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x164f9f635
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164f9f66d
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp qword [rbx + 0x18], 7
jbe 0x164f9f657
mov rbx, qword [rbx]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x164f9f960
Capabilities:
Move file

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rbx, qword [rsp + 0x58]
mov bpl, 1
mov rsi, qword [rsp + 0x50]
movzx edi, bpl
nop dword [rax]
test dil, dil
je 0x164f9f9a4
mov rcx, rbx
call fcn.164f9f610
movzx edi, al
xor dil, 1
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x164f9f9b1
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x164f9f9be
mov rcx, qword [rsi]
mov r8d, DosDateTimeToVariantTime
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x164f9fa01
add bpl, 0xff
je 0x164f9f9f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x164f9f9e9
mov ecx, 0x14
cmp eax, 0x20
jne 0x164f9f9ee
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x164f9f990
xor al, al
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.164f9f610
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x164f9fa20
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
mov dil, 1
nop dword [rax + rax]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x164f9fa4d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164f9faad
test al, 0x10
jne 0x164f9faad
test dil, dil
je 0x164f9faad
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x164f9fa6e
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x164f9fa83
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x164f9faa0
add dil, 0xff
je 0x164f9fa40
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x164f9fa40
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x20
pop rdi
ret