joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018879c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [rbp + 0x77]
mov r10d, r9d
movaps xmm1, xmmword [r8]
mov r9, rcx
mov rcx, qword [rcx + 0x10]
movaps xmm0, xmmword [rax]
test rcx, rcx
je 0x140188834
mov rax, qword [rbp + 0x7f]
test dl, dl
je 0x140188800
lea r9, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, r10d
movdqa xmmword [rbp - 9], xmm1
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.140195434
mov ebx, eax
test eax, eax
jns 0x1401888a6
mov ecx, eax
jmp 0x1401888a1
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x19], xmm1
test rax, rax
jne 0x140188819
mov ebx, 0x80070057
jmp 0x14018889f
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r8d, r10d
lea rdx, [rbp - 0x19]
call fcn.140195b3c
mov ebx, eax
test eax, eax
jmp 0x14018889d
lea rax, [0x140040438]
mov qword [rbp + 0x1f], r9
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea rax, [rbp + 0x57]
movdqa xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x17], rax
movzx eax, dl
lea rdx, [rbp + 7]
inc eax
movdqa xmmword [rbp - 9], xmm1
shl eax, 6
lea r8d, [r9 + 0x40]
mov dword [rbp + 0x27], eax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 9]
mov qword [rbp + 7], 3
mov qword [rbp + 0x2b], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x37], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x33], r10d
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x57]
test ebx, ebx
jns 0x1401888a6
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x140188f3c
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x1c0], 5
mov r10, r9
mov rbp, rdx
je 0x140188f81
mov eax, 0xc004d104
jmp 0x140189114
mov esi, dword [r9]
lea r15, [rdx + 0x40]
mov edi, dword [r9 + 4]
mov r12d, SafeArrayUnaccessData
mov r11d, dword [r9 + 8]
mov ebx, dword [r9 + 0xc]
mov r14d, dword [r9 + 0x10]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140192730
lea rdx, [rsp + 0x60]
mov r8d, 0x40
lea rcx, [rsp + 0x28]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rdx], eax
lea rdx, [rdx + 4]
sub r8, 1
jne 0x140188fc1
lea rdx, [rsp + 0x20]
mov r8, r12
mov eax, ebx
mov ecx, esi
xor eax, r11d
rol ecx, 5
and eax, edi
xor eax, ebx
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r14d
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
lea esi, [rax + 0x5a827999]
sub r8, 1
jne 0x140188fe6
lea rdx, [rsp + 0x70]
mov r8, r12
mov eax, ebx
mov ecx, esi
xor eax, r11d
rol ecx, 5
xor eax, edi
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r14d
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
lea esi, [rax + 0x6ed9eba1]
sub r8, 1
jne 0x140189022
lea r8, [rsp + 0xc0]
mov r9, r12
mov edx, esi
mov ecx, r11d
xor ecx, edi
rol edx, 5
and ecx, ebx
mov eax, r11d
and eax, edi
xor ecx, eax
add ecx, dword [r8]
lea eax, [r14 + rdx]
add eax, 0x8f1bbcdc
lea r8, [r8 + 4]
add eax, ecx
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
mov esi, eax
sub r9, 1
jne 0x14018905f
lea rdx, [rsp + 0x110]
mov r8, r12
add r14d, 0xca62c1d6
mov r9d, esi
rol r9d, 5
mov eax, ebx
xor eax, r11d
add r9d, r14d
xor eax, edi
mov r14d, ebx
add eax, dword [rdx]
mov ebx, r11d
mov r11d, edi
lea rdx, [rdx + 4]
add r9d, eax
rol r11d, 0x1e
mov edi, esi
mov esi, r9d
sub r8, 1
jne 0x1401890a6
add dword [r10 + 0x10], r14d
add rbp, 0x40
add dword [r10 + 0xc], ebx
add dword [r10 + 8], r11d
add dword [r10 + 4], edi
add dword [r10], r9d
mov r14d, dword [r10 + 0x10]
mov ebx, dword [r10 + 0xc]
mov r11d, dword [r10 + 8]
mov edi, dword [r10 + 4]
mov esi, dword [r10]
cmp rbp, r15
jb 0x140188f9e
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140368700
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140189148
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xf0], 8
mov r10, r9
mov r11, rdx
je 0x14018918b
mov eax, 0xc004d104
jmp 0x140189326
mov esi, dword [r9]
lea rax, [rdx + 0x40]
mov r14d, dword [r9 + 4]
mov r15d, dword [r9 + 8]
mov ebp, dword [r9 + 0x10]
mov r12d, dword [r9 + 0x14]
mov r13d, dword [r9 + 0x18]
mov qword [rsp + 0x30], rax
mov eax, dword [r9 + 0xc]
mov dword [rsp + 0x24], eax
mov eax, dword [r9 + 0x1c]
mov dword [rsp + 0x20], eax
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov rdx, r11
lea r8d, [rbx + 0x10]
call fcn.140192730
lea rax, [0x1403cadf0]
xor edi, edi
mov qword [rsp + 0x28], rax
mov r9, rdi
and r9d, 0xf
cmp ebx, 0x10
jb 0x140189235
lea eax, [rbx - 2]
and eax, 0xf
mov r8d, dword [rsp + rax*4 + 0x40]
lea rax, [rdi + 1]
and eax, 0xf
mov ecx, dword [rsp + rax*4 + 0x40]
mov eax, ecx
rol eax, 0xe
mov edx, ecx
shr ecx, 3
rol edx, 0x19
xor edx, eax
mov eax, r8d
xor edx, ecx
rol eax, 0xd
mov ecx, r8d
shr r8d, 0xa
rol ecx, 0xf
xor ecx, eax
lea eax, [rbx - 7]
and eax, 0xf
xor ecx, r8d
add edx, ecx
add edx, dword [rsp + rax*4 + 0x40]
add dword [rsp + r9*4 + 0x40], edx
mov r8d, ebp
mov eax, ebp
rol eax, 0x15
mov ecx, ebp
rol r8d, 0x1a
not ecx
xor r8d, eax
and ecx, r13d
mov eax, ebp
mov edx, esi
rol eax, 7
inc ebx
xor r8d, eax
rol edx, 0x1e
mov eax, r12d
inc rdi
and eax, ebp
xor ecx, eax
mov eax, esi
add r8d, ecx
rol eax, 0x13
add r8d, dword [rsp + r9*4 + 0x40]
xor edx, eax
mov r9, qword [rsp + 0x28]
mov eax, esi
add r8d, dword [rsp + 0x20]
mov ecx, r14d
rol eax, 0xa
xor ecx, esi
xor edx, eax
and ecx, r15d
add r8d, dword [r9]
mov eax, r14d
and eax, esi
add r9, 4
xor ecx, eax
mov qword [rsp + 0x28], r9
add edx, ecx
mov eax, r15d
mov ecx, r13d
mov r15d, r14d
mov r13d, r12d
mov dword [rsp + 0x20], ecx
mov r12d, ebp
mov r14d, esi
mov ebp, dword [rsp + 0x24]
lea esi, [rdx + r8]
add ebp, r8d
mov dword [rsp + 0x24], eax
cmp ebx, 0x40
jb 0x1401891dc
add dword [r10 + 0x1c], ecx
add r11, 0x40
add dword [r10 + 0x18], r13d
add dword [r10 + 0x14], r12d
add dword [r10 + 0x10], ebp
add dword [r10 + 0xc], eax
add dword [r10 + 8], r15d
add dword [r10 + 4], r14d
add dword [r10], esi
mov ecx, dword [r10 + 0x1c]
mov eax, dword [r10 + 0xc]
mov r13d, dword [r10 + 0x18]
mov r12d, dword [r10 + 0x14]
mov ebp, dword [r10 + 0x10]
mov r15d, dword [r10 + 8]
mov r14d, dword [r10 + 4]
mov esi, dword [r10]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x24], eax
cmp r11, qword [rsp + 0x30]
jb 0x1401891bb
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140368700
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018a048
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.140189ff8
test eax, eax
js 0x14018a0d6
movzx eax, word [rdi + 6]
mov word [rbx], ax
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
mov r9d, esi
mov r8, rdi
xor edx, edx
call fcn.14018a384
test eax, eax
js 0x14018a0d6
mov qword [rsp + 0x20], 3
lea rax, [0x1400388b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, dword [rsp + 0x78]
jmp 0x14018a0d6
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401914fc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x14019156f
mov r11d, r8d
inc byte [r9 + 0x118]
movzx r8d, byte [r9 + 0x118]
mov al, byte [r8 + r9 + 0x18]
add byte [r9 + 0x119], al
movzx edx, byte [r9 + 0x119]
mov cl, byte [r8 + r9 + 0x18]
mov al, byte [rdx + r9 + 0x18]
mov byte [r8 + r9 + 0x18], al
mov byte [rdx + r9 + 0x18], cl
movzx eax, byte [r9 + 0x119]
movzx ecx, byte [r9 + 0x118]
mov cl, byte [rcx + r9 + 0x18]
add cl, byte [rax + r9 + 0x18]
movzx eax, cl
mov cl, byte [rax + r9 + 0x18]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x14019150a
ret

Function at 0x140191578
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
je 0x14019162a
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rdx]
mov rbx, rcx
mov edi, dword [rdx + 8]
mov ebp, r8d
mov edx, edi
mov rcx, rsi
call fcn.14017f294
inc byte [rbx + 0x118]
mov r10b, al
movzx r9d, byte [rbx + 0x118]
mov cl, byte [r9 + rbx + 0x18]
add byte [rbx + 0x119], cl
movzx r8d, byte [rbx + 0x119]
mov dl, byte [r9 + rbx + 0x18]
mov cl, byte [r8 + rbx + 0x18]
mov byte [r9 + rbx + 0x18], cl
mov byte [r8 + rbx + 0x18], dl
mov edx, edi
movzx ecx, byte [rbx + 0x118]
movzx eax, byte [rbx + 0x119]
mov cl, byte [rcx + rbx + 0x18]
add cl, byte [rax + rbx + 0x18]
movzx eax, cl
mov rcx, rsi
mov r8b, byte [rax + rbx + 0x18]
xor r8b, r10b
call fcn.14017f2dc
inc edi
sub rbp, 1
jne 0x1401915a1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ab598
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401ab5d9
cmp dword [rcx + 0x20], 0
jne 0x1401ab5d9
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401ab5c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401ab64f
mov rdx, qword [rbx + 0x10]
jmp 0x1401ab64a
mov rdx, qword [rcx + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
test rcx, rcx
je 0x1401ab64f
cmp dword [rbx], 0
jne 0x1401ab622
cmp dword [rbx + 0x20], 0
jne 0x1401ab622
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rbx], ecx
mov rcx, qword [rbx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401ab63b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
cmp dword [rbx + 0x20], 0
jne 0x1401ab64f
cmp dword [rbx], 0
jne 0x1401ab5d3
mov rdx, qword [rbx + 0x18]
call fcn.1401ab82c
mov dword [rbx + 0x20], 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401ab6f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov edi, r8d
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
cmp dword [rsi + 0x78], 0
mov ebp, eax
mov r9d, dword [0x1404300a0]
cmove r9d, eax
mov dword [rsi + 0x78], 1
mov r8, qword [rsi + 8]
xor ebx, ebx
mov dword [0x1404300a0], r9d
lea rcx, [r8 - 1]
cmp rcx, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401ab755
mov ebx, 0x80004005
jmp 0x1401ab7a7
lea rax, [r8 - 1]
mov rdx, r14
cmp rax, 0xfffffffffffffffd
lea r9, [rsp + 0x50]
seta al
xor ecx, ecx
test al, al
cmove rcx, r8
and qword [rsp + 0x20], rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401ab79c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401ab74e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401ab7a7
cmp dword [rsp + 0x50], edi
je 0x1401ab7ae
mov ebx, 0x8004e10a
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x1401ab7c2
mov ecx, ebx
call fcn.1400790f8
jmp 0x1401ab809
mov rdx, qword [rsi + 0x70]
test rdx, rdx
je 0x1401ab809
sub ebp, dword [0x1404300a0]
mov ecx, 0x1d4c0
mov eax, ecx
mov r8d, 0x4e20
sub eax, ebp
mov r9d, 0xfffffffe
cmp ebp, ecx
sbb ecx, ecx
and ecx, eax
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [0x14042e8f8]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.140079118
xor ebx, ebx
mov ecx, ebx
call fcn.140079118
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1401ab82c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401ab88d
mov rdx, rdi
call fcn.1401abbbc
mov ebx, eax
test eax, eax
jns 0x1401ab85a
mov ecx, eax
jmp 0x1401ab888
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401ab88d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401ab878
mov ebx, 0x80004005
jmp 0x1401ab886
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401ab924
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov esi, r8d
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov ebp, r9d
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov r8, qword [rbx + 8]
xor edi, edi
mov ecx, edi
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401ab977
mov ecx, 0x80004005
jmp 0x1401ab9eb
mov eax, dword [rsp + 0x90]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x70]
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta dl
neg ebp
sbb rax, rax
and rax, rcx
mov rcx, rdi
test dl, dl
mov qword [rsp + 0x20], rax
mov rdx, r14
cmove rcx, r8
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401ab9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401ab9ce
mov edi, 0x80004005
jmp 0x1401ab9dc
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1401ab9ed
cmp dword [rsp + 0x70], esi
je 0x1401ab9f2
mov ecx, 0x8004e109
mov edi, ecx
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401abb20
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 8]
xor ebx, ebx
mov ecx, ebx
mov rdi, rdx
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401abb59
mov ecx, 0x80004005
mov ebx, ecx
call fcn.1400790f8
jmp 0x1401abb9f
lea rax, [r8 - 1]
mov rcx, rbx
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401abb9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401abb8b
mov ebx, 0x80004005
jmp 0x1401abb99
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401abb52
mov dword [rdi], eax
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401abbbc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401abc37
xor ebx, ebx
test rdi, rdi
je 0x1401abc22
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401abc0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401abbfa
mov ebx, 0x80004005
jmp 0x1401abc27
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401abc27
test al, 1
je 0x1401abc2e
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401abc2e
jmp 0x1401abbe9
mov ebx, 0x80070057
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
jmp 0x1401abc50
test eax, eax
jne 0x1401abc42
mov ebx, 0x80004005
jmp 0x1401abc54
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401abc5b
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ae8f0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x1404300f8], eax
jg 0x1401aea3d
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140430330], 1
cmove rdi, qword [0x14042f820]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401ae9d6
mov rax, qword [rsp + 0x90]
lea r9, [0x140430100]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.1401affe8
mov ebx, eax
test eax, eax
js 0x1401ae9d6
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401ae9dd
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rsp + 0x50], 0
lea rax, [0x14001a7b8]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1404300f8]
call fcn.140368b2c
cmp dword [0x1404300f8], 0xffffffff
jne 0x1401ae939
and qword [0x140430108], 0
lea rax, str.metaInfoType
and dword [0x140430110], 0
lea rcx, [0x1404300f8]
or dword [0x140430114], 0xffffffff
mov qword [0x140430100], rax
call fcn.140368abc
jmp 0x1401ae939
Function at 0x1401aea94
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x140430118], eax
jg 0x1401aebe1
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140430330], 1
cmove rdi, qword [0x14042f808]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401aeb7a
mov rax, qword [rsp + 0x90]
lea r9, [0x140430120]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 2
call fcn.1401affe8
mov ebx, eax
test eax, eax
js 0x1401aeb7a
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401aeb81
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rsp + 0x50], 0
lea rax, [0x14001a7b8]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x140430118]
call fcn.140368b2c
cmp dword [0x140430118], 0xffffffff
jne 0x1401aeadd
and qword [0x140430128], 0
lea rax, str.metaInfoType
and dword [0x140430130], 0
lea rcx, [0x140430118]
or dword [0x140430134], 0xffffffff
mov qword [0x140430120], rax
xor eax, eax
mov qword [0x140430148], rax
lea rax, str.windowsComponentLicenseFileName
and dword [0x140430148], 0
mov qword [0x140430138], rax
lea rax, str.path
mov qword [0x140430140], rax
mov dword [0x14043014c], 1
call fcn.140368abc
jmp 0x1401aeadd
Function at 0x1401b12a0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x1401b12bf
xor ebx, ebx
jmp 0x1401b143c
lea rdx, [rsp + 0x30]
call fcn.1401abc78
mov ebx, eax
test eax, eax
jns 0x1401b12d6
mov esi, eax
jmp 0x1401b141f
mov rdx, qword [rdi + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
test rcx, rcx
je 0x1401b1352
cmp dword [rdi], 0
jne 0x1401b131f
cmp dword [rdi + 0x20], 0
jne 0x1401b131f
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b1338
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rdi + 0x20], 0
jne 0x1401b1352
cmp dword [rdi], 0
je 0x1401b1349
mov rdx, qword [rdi + 0x10]
jmp 0x1401b134d
mov rdx, qword [rdi + 0x18]
call fcn.1401ab82c
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x18]
call fcn.1401ab82c
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401b139d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b1388
mov ebx, 0x80004005
jmp 0x1401b1396
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, ebx
jmp 0x1401b141f
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401b1377
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b13d3
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, qword [rdi + 0x10]
mov edx, 0xc0000000
mov r8d, 4
mov rcx, rdi
call fcn.1401b26a8
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401b13f9
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
test ebx, ebx
js 0x1401b141f
mov edx, dword [rsp + 0x30]
xor r8d, r8d
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1401aba18
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401b143c
mov ecx, esi
call fcn.1400790f8
test ebx, ebx
jns 0x1401b143c
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.1401ab8a8
mov ecx, ebx
call fcn.140079118
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret