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

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, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400a024e
xor eax, eax
jmp 0x1400a0334
cmp qword [rcx + 0x68], 0
je 0x1400a025f
call fcn.1400a0350
jmp 0x1400a0334
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400a0276
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400a0278
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400a02aa
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140033470
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400a032e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400a02e1
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400a030a
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001a11c
add r14, rax
sub rbp, rax
cmp rax, rbx
jne 0x1400a032e
cmp rbp, rbx
ja 0x1400a02e8
test rbp, rbp
je 0x1400a032e
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14001a11c
sub rbp, rax
sub rdi, rbp
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400a8afc
Capabilities:
Get geographical location

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rcx + 8], ebx
lea rax, vtable.std::time_get_char__class_std::istreambuf_iterator_char__struct_std::char_traits_char___.0
mov qword [rcx], rax
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x20], rbx
mov qword [r11 + 0x18], rcx
lea rcx, [r11 - 0x48]
call fcn.1400a21e8
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x2c], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x3c], xmm1
movsd xmm0, qword [rax + 0x20]
movsd qword [rdi + 0x4c], xmm0
mov eax, dword [rax + 0x28]
mov dword [rdi + 0x54], eax
call fcn.14001c430
mov rbp, rax
lea rsi, [r14 + 8]
test rax, rax
je 0x1400a8b88
mov rdx, rax
mov rcx, rsi
call fcn.14008ac18
mov rcx, rbp
call fcn.1400061bc
lea rcx, str.:Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday
cmp qword [rsi], rbx
cmovne rcx, qword [rsi]
call fcn.1400515b8
mov qword [rdi + 0x10], rax
call fcn.14001c57c
mov rbp, rax
lea rsi, [r14 + 0x18]
test rax, rax
je 0x1400a8bc3
mov rdx, rax
mov rcx, rsi
call fcn.14008ac18
mov rcx, rbp
call fcn.1400061bc
lea rcx, str.:Jan:January:Feb:February:Mar:March:Apr:April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:October:Nov:November:Dec:December
cmp qword [rsi], rbx
cmovne rcx, qword [rsi]
call fcn.1400515b8
mov qword [rdi + 0x18], rax
lea rcx, [0x14013a8c0]
call fcn.1400515b8
mov qword [rdi + 0x20], rax
mov dword [rsp + 0x80], ebx
call fcn.14001a768
mov esi, 2
mov r9d, esi
lea r8, [rsp + 0x80]
lea edx, [rsi + 0x20]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x80]
sub ecx, 0x30
je 0x1400a8c36
sub ecx, 1
je 0x1400a8c2f
cmp ecx, 1
jne 0x1400a8c38
lea ebx, [rsi + 1]
jmp 0x1400a8c38
mov ebx, 1
jmp 0x1400a8c38
mov ebx, esi
mov dword [rdi + 0x28], ebx
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c1fcc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rbp + 0x380], rax
and qword [rcx], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x38], 0
xor edi, edi
and dword [rsp + 0x30], edi
xorps xmm0, xmm0
mov r14, rdx
mov rsi, rcx
mov r13d, 0x400
xor ebx, ebx
lea r9d, [rdi + 0x10]
mov ecx, r13d
lea edx, [rdi + 0x58]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c20ad
mov eax, 0x800
test word [rsp + 0x4e], ax
je 0x1400c20ad
lea r9d, [rdi + 2]
mov edx, 0x20001009
lea r8, [rsp + 0x30]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c20ad
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
lea ecx, [r13 - 1]
and ax, cx
cmp ax, 0xd
jne 0x1400c2086
cmp dword [rsp + 0x30], 8
lea eax, [rdi + 0x20]
cmove ebx, eax
jmp 0x1400c20a8
mov eax, dword [rsp + 0x30]
cmp eax, 0x17
ja 0x1400c2099
mov ecx, 0x800c42
bt ecx, eax
jb 0x1400c20a3
mov edi, 1
cmp eax, 0xc
jne 0x1400c20ad
mov ebx, 0x20
mov edi, 1
or ebx, edi
lea rax, [rbp + 0x170]
mov edi, 0x104
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8, r14
mov edx, ebx
mov qword [rsp + 0x20], rax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
jne 0x1400c2118
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2111
test byte [rcx + 0x1c], 1
je 0x1400c2111
mov edx, 0x66
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013af00]
mov r9d, ebx
call fcn.140044450
mov eax, ebx
jmp 0x1400c21a3
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jne 0x1400c2162
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2111
test byte [rcx + 0x1c], 1
je 0x1400c2111
mov edx, 0x67
jmp 0x1400c20fe
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x170]
lea rdx, [0x140124898]
lea rcx, [rsp + 0x38]
call fcn.1400f23a4
mov ebx, eax
test eax, eax
jns 0x1400c2199
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400c2111
call fcn.140030c60
jmp 0x1400c2111
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140030c40
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c21cc
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x20
and qword [rdx], 0
lea r8, [rax + 8]
and dword [rax + 8], 0
mov rsi, rdx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1400c22f2
call fcn.1400f259c
mov ebx, eax
test eax, eax
jns 0x1400c22f2
cmp eax, 0x800700ea
jne 0x1400c22f7
mov eax, dword [rsp + 0x30]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x1400c22cd
mov ecx, eax
call qword [sym.imp.mpclient.dll_MpAllocMemory]
mov rbx, rax
test rax, rax
je 0x1400c22a8
xor edi, edi
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1400c22a3
call fcn.1400f259c
mov edi, eax
test eax, eax
jns 0x1400c22a3
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2293
test byte [rcx + 0x1c], 1
je 0x1400c2293
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013af00]
mov edx, 0x65
mov r9d, eax
call fcn.140044450
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov eax, edi
jmp 0x1400c232a
mov qword [rsi], rbx
jmp 0x1400c229c
mov ebx, 0x8007000e
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2328
test byte [rcx + 0x1c], 1
je 0x1400c2328
mov edx, 0x64
jmp 0x1400c2315
mov ebx, 0x80070216
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2328
test byte [rcx + 0x1c], 1
je 0x1400c2328
mov edx, 0x62
jmp 0x1400c2315
mov ebx, 0x8000ffff
mov rcx, qword [0x140162280]
lea rdx, [0x140162280]
cmp rcx, rdx
je 0x1400c2328
test byte [rcx + 0x1c], 1
je 0x1400c2328
mov edx, 0x61
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013af00]
mov r9d, ebx
call fcn.140044450
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c9b2c
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400c9b88
test byte [rcx + 0x1c], 4
je 0x1400c9b88
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013b288]
mov edx, 0x23
call fcn.140044430
or rbx, 0xffffffffffffffff
mov byte [rsi], 0
xor edi, edi
mov edx, dword [r14 + 8]
mov ecx, 0x18
inc edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400c9bdf
test byte [rcx + 0x1c], 4
je 0x1400c9bdf
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
call fcn.1400c9d74
cmp rbx, 0xffffffffffffffff
jne 0x1400c9c32
cmp ebp, 0x18
jne 0x1400c9bef
cmp edi, 5
jb 0x1400c9b91
call fcn.1400f259c
mov edi, eax
test eax, eax
jns 0x1400c9c32
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400c9c2b
test byte [rcx + 0x1c], 1
je 0x1400c9c2b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013b288]
mov edx, 0x25
mov r9d, edi
call fcn.140044450
mov eax, edi
jmp 0x1400c9d4b
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x434
call fcn.140032ec0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x1400c9c9c
mov r9d, 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, [0x1400c9b20]
mov rdx, r15
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 7]
call fcn.14003f858
test rax, rax
jne 0x1400c9d07
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400c9c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400c9d0c
test eax, eax
jle 0x1400c9cba
movzx edi, ax
or edi, 0x80070000
test edi, edi
jns 0x1400c9d0c
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400c9cef
test byte [rcx + 0x1c], 1
je 0x1400c9cef
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013b288]
mov edx, 0x27
mov r9d, edi
call fcn.140044450
cmp rbx, 0xffffffffffffffff
je 0x1400c9c2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c9c2b
mov byte [rsi], 1
jmp 0x1400c9d3a
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400c9d3a
test byte [rcx + 0x1c], 4
je 0x1400c9d3a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013b288]
mov edx, 0x28
call fcn.140044430
cmp rbx, 0xffffffffffffffff
je 0x1400c9d49
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140030c40
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cb2b4
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x1400cb2c9
and dword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400cb2fd
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400cb2fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400cb2fd
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400cb2fd
test eax, eax
jle 0x1400cb2fb
movzx eax, ax
or eax, 0x80070000
mov dword [rcx], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400d1af0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov rsi, rcx
test rdx, rdx
je 0x1400d1bae
test r8d, r8d
je 0x1400d1bae
test r9, r9
je 0x1400d1bae
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov ebx, eax
or ebx, 0x10000000
jge 0x1400d1b6c
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400d1b68
test byte [rcx + 0x1c], 1
je 0x1400d1b68
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013b9a8]
mov r9d, ebx
call fcn.140044450
mov eax, ebx
jmp 0x1400d1bb3
mov r8d, dword [rsi + 0x1c]
xor r9d, r9d
mov rcx, qword [rsi + 8]
mov rdx, rdi
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov ebx, eax
or ebx, 0x10000000
jge 0x1400d1baa
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400d1b68
test byte [rcx + 0x1c], 1
je 0x1400d1b68
mov edx, 0xb
jmp 0x1400d1b55
xor eax, eax
jmp 0x1400d1bb3
mov eax, 0x80070057
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d3600
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 1
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rax
call fcn.1400feb40
mov rdi, rax
mov eax, dword [rbx + 0x5c]
cmp dword [rdi + 0x5c], eax
je 0x1400d3642
xor al, al
jmp 0x1400d3729
mov rax, qword [rdi + 0x14]
cmp rax, qword [rbx + 0x14]
jne 0x1400d3723
mov rax, qword [rdi + 0x1c]
cmp rax, qword [rbx + 0x1c]
jne 0x1400d3723
mov eax, dword [rbx + 0x58]
cmp dword [rdi + 0x58], eax
je 0x1400d366d
xor al, al
jmp 0x1400d3729
mov eax, dword [rbx + 0x60]
cmp dword [rdi + 0x60], eax
je 0x1400d367c
xor al, al
jmp 0x1400d3729
mov eax, dword [rbx + 0x10]
cmp dword [rdi + 0x10], eax
je 0x1400d368b
xor al, al
jmp 0x1400d3729
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.1400796f0
test al, al
je 0x1400d36a3
xor al, al
jmp 0x1400d3729
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rbx + 0x48]
test rcx, rcx
jne 0x1400d36b7
test rdx, rdx
jne 0x1400d371f
jmp 0x1400d36c8
test rdx, rdx
je 0x1400d371f
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400d36c8
jmp 0x1400d3729
mov rcx, qword [rdi + 0x50]
mov rdx, qword [rbx + 0x50]
test rcx, rcx
jne 0x1400d36dc
test rdx, rdx
jne 0x1400d371b
jmp 0x1400d36ed
test rdx, rdx
je 0x1400d371b
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400d36ed
jmp 0x1400d3729
mov rdx, qword [rdi + 0x68]
mov rcx, qword [rbx + 0x68]
test rdx, rdx
jne 0x1400d3703
test rcx, rcx
jne 0x1400d3717
mov al, 1
jmp 0x1400d3729
test rcx, rcx
je 0x1400d3717
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call fcn.1400fece0
nop
jmp 0x1400d3729
xor al, al
jmp 0x1400d3729
xor al, al
jmp 0x1400d3729
xor al, al
jmp 0x1400d3729
xor al, al
jmp 0x1400d3729
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400de564
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
and qword [rcx], 0
and dword [rcx + 8], 0
lea r14, [rcx + 0x10]
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, r14
call fcn.140032ec0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400de5af
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx], 0
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call fcn.1400f1a54
test eax, eax
js 0x1400de725
lea r8, str.PACKEDBINARY
lea rdx, str.ETWSRC
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400de72d
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400de771
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400de77f
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp eax, 8
ja 0x1400de656
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400de7bb
test byte [rcx + 0x1c], 1
je 0x1400de7bb
mov edx, 0xb
mov r9d, eax
jmp 0x1400de7ab
mov r9d, dword [rdi]
mov eax, 0x1fa2093b
cmp r9d, eax
je 0x1400de6a2
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400de7bb
test byte [rcx + 0x1c], 1
je 0x1400de7bb
mov edx, 0xc
mov dword [rsp + 0x20], eax
lea r8, [0x14013c8d0]
mov rcx, qword [rcx + 0x10]
call fcn.140044484
jmp 0x1400de7bb
mov r9d, dword [rdi + 4]
mov dword [rbx + 8], r9d
add rdi, 8
add esi, 0xfffffff8
cmp r9d, esi
jb 0x1400de78d
mov rcx, r14
call fcn.1400e9470
test eax, eax
jne 0x1400de6e9
mov qword [rbx + 0x50], r14
mov qword [r14], rdi
mov dword [rbx + 0x18], esi
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400de71a
test byte [rcx + 0x1c], 1
je 0x1400de71a
mov edx, 0xe
mov r9d, eax
lea r8, [0x14013c8d0]
mov rcx, qword [rcx + 0x10]
call fcn.140044450
mov ecx, 0x8000ffff
call fcn.1400f10c4
int3
mov ecx, eax
call fcn.1400f10c4
int3
call fcn.1400def00
mov ebx, eax
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400de769
test byte [rcx + 0x1c], 1
je 0x1400de769
mov edx, 0xa
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14013c8d0]
mov rcx, qword [rcx + 0x10]
call fcn.140044764
mov ecx, ebx
call fcn.1400f10c4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f1158
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f1158
int3
lea rdx, [0x140162280]
mov rcx, qword [0x140162280]
cmp rcx, rdx
je 0x1400de7bb
test byte [rcx + 0x1c], 1
je 0x1400de7bb
mov edx, 0xd
lea r8, [0x14013c8d0]
mov rcx, qword [rcx + 0x10]
call fcn.140044450
mov ecx, 0x8007070c
call fcn.1400f10c4
int3
Function at 0x1400dfce4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov rsi, r8
mov dword [rbp - 0x20], r14d
mov ebx, r14d
mov qword [rbp - 0x18], r14
test r8, r8
jne 0x1400dfd2e
mov eax, 0x80070057
jmp 0x1400dfe95
mov dword [r8], r14d
lea r13, [0x140162350]
mov rdi, r14
lea r15, [0x140162280]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400dfd55
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x18], r14
test byte [rdi + r13], 0x20
je 0x1400dfe6e
mov rcx, qword [rdi + r13 + 8]
test rcx, rcx
je 0x1400dfdb3
lea rdx, [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x1400dfe0f
call fcn.1400f259c
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x1400dfdab
test byte [rcx + 0x1c], 1
je 0x1400dfdab
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc80]
mov edx, 0xb
mov r9d, eax
call fcn.140044450
mov ebx, r14d
jmp 0x1400dfe6e
cmp dword [rdi + r13], 1
jne 0x1400dfe6e
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], r14d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], r14d
mov r9d, 0x220
mov dword [rsp + 0x40], r14d
mov r8d, 0x20
mov dword [rsp + 0x38], r14d
mov dl, 2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400dfed7
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
mov dword [rbp - 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400dfe2c
mov ebx, r14d
jmp 0x1400dfe68
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x1400dfe64
test byte [rcx + 0x1c], 1
je 0x1400dfe64
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc80]
mov edx, 0xa
mov r9d, eax
call fcn.140044450
mov rcx, qword [0x140162280]
test ebx, ebx
js 0x1400dfec2
cmp dword [rbp - 0x20], r14d
jne 0x1400dfebd
add rdi, 0x10
cmp rdi, 0x90
jb 0x1400dfd42
mov eax, dword [rbp - 0x20]
mov dword [rsi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400dfe93
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140030c40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ebx, r14d
jmp 0x1400dfe7f
cmp rcx, r15
je 0x1400dfe84
test byte [rcx + 0x1c], 1
je 0x1400dfe84
mov edx, 0xd
mov r9d, ebx
jmp 0x1400dfef8
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x1400dfe84
test byte [rcx + 0x1c], 1
je 0x1400dfe84
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc80]
call fcn.140044450
jmp 0x1400dfe84
Function at 0x1400e04fc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400e055b
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400e05aa
test byte [rcx + 0x1c], 1
je 0x1400e05aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc90]
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140044764
jmp 0x1400e05aa
test dil, 7
je 0x1400e05aa
and edi, 0xffffb1a8
mov rcx, rsi
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400e05aa
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
lea rax, [0x140162280]
cmp rcx, rax
je 0x1400e05aa
test byte [rcx + 0x1c], 1
je 0x1400e05aa
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.1400de4d4
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400e05bc
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
call fcn.1400e04fc
lea rbp, [0x140162280]
test eax, eax
jns 0x1400e0614
mov rcx, qword [0x140162280]
cmp rcx, rbp
je 0x1400e0614
test byte [rcx + 0x1c], 2
je 0x1400e0614
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc90]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140044764
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400e0666
call fcn.1400f259c
mov ebx, eax
mov rcx, qword [0x140162280]
cmp rcx, rbp
je 0x1400e06a2
test byte [rcx + 0x1c], 1
je 0x1400e06a2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc90]
mov dword [rsp + 0x28], eax
mov edx, 0xf
mov r9, rsi
mov qword [rsp + 0x20], rdi
call fcn.14006041c
jmp 0x1400e06a2
mov rcx, rdi
call fcn.1400e04fc
mov ebx, eax
test eax, eax
jns 0x1400e06a2
mov rcx, qword [0x140162280]
cmp rcx, rbp
je 0x1400e06a2
test byte [rcx + 0x1c], 1
je 0x1400e06a2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013cc90]
mov edx, 0x10
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140044764
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400e06bc
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e071b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400e06e1
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070005
jne 0x1400e071d
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400e070e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400e071d
movzx eax, ax
or eax, 0x80070000
jmp 0x1400e071d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400e06fa
xor eax, eax
add rsp, 0x20
pop rbx
ret