joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019a258
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 [0x140448b38]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xf0], 8
mov r10, r9
mov r11, rdx
je 0x14019a29b
mov eax, 0xc004d104
jmp 0x14019a436
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.1401a3b44
lea rax, [0x1403ecc30]
xor edi, edi
mov qword [rsp + 0x28], rax
mov r9, rdi
and r9d, 0xf
cmp ebx, 0x10
jb 0x14019a345
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 0x14019a2ec
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 0x14019a2cb
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140389660
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 0x14019b1bc
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.14019b16c
test eax, eax
js 0x14019b24a
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.14019b500
test eax, eax
js 0x14019b24a
mov qword [rsp + 0x20], 3
lea rax, [0x14005515c]
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 0x14019b24a
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401a2538
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rdx]
xor ebx, ebx
mov qword [rsp + 0x30], rdx
mov r12d, r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401a264d
test r8d, r8d
je 0x1401a264d
lea r15, [rcx + 0x18]
mov word [rcx + 0x118], bx
mov qword [rsp + 0x40], r15
mov rcx, r15
mov eax, ebx
mov esi, 0x100
mov byte [rcx], al
inc eax
inc rcx
cmp eax, esi
jb 0x1401a25a4
mov edi, ebx
mov ebp, r12d
cmp r12d, esi
ja 0x1401a25c2
mov eax, esi
sub eax, r12d
cmp edi, eax
jbe 0x1401a25c6
mov ebp, esi
sub ebp, edi
test ebp, ebp
je 0x1401a260a
mov r13d, dword [rdx + 8]
mov r15d, edi
mov rbx, qword [rsp + 0x28]
sub r13d, edi
mov r14d, ebp
lea edx, [r15 + r13]
mov rcx, rbx
lea r8, [rsp + 0x20]
call fcn.14018f20c
mov cl, byte [rax]
xor cl, byte [rsp + 0x20]
mov eax, r15d
inc r15d
mov byte [rsp + rax + 0x50], cl
sub r14, 1
jne 0x1401a25dc
mov rdx, qword [rsp + 0x30]
xor ebx, ebx
add edi, ebp
cmp edi, esi
jb 0x1401a25b1
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov r15, qword [rsp + 0x40]
sub r8, r14
movzx edx, byte [r15]
movzx ecx, byte [r8 + r15 - 0x18]
add ecx, ebx
add ecx, edx
movzx ebx, cl
mov al, byte [rbx + r14 + 0x18]
mov byte [r15], al
inc r15
mov byte [rbx + r14 + 0x18], dl
sub rsi, 1
jne 0x1401a2622
xor eax, eax
jmp 0x1401a2652
mov eax, 0xc004d104
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140389660
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov r10, rdx
mov r9, rcx
cmp r8d, 1
jb 0x1401a285c
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 0x1401a27f7
ret
Function at 0x1401a2864
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1401a2927
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rdx]
mov rdi, rcx
mov esi, dword [rdx + 8]
mov r14d, r8d
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rbp
call fcn.14018f20c
mov r9b, byte [rsp + 0x50]
xor r9b, byte [rax]
inc byte [rdi + 0x118]
movzx r8d, byte [rdi + 0x118]
mov al, byte [r8 + rdi + 0x18]
add byte [rdi + 0x119], al
movzx edx, byte [rdi + 0x119]
mov cl, byte [r8 + rdi + 0x18]
mov al, byte [rdx + rdi + 0x18]
mov byte [r8 + rdi + 0x18], al
lea r8, [rsp + 0x58]
mov byte [rdx + rdi + 0x18], cl
mov edx, esi
movzx ecx, byte [rdi + 0x118]
movzx eax, byte [rdi + 0x119]
mov cl, byte [rcx + rdi + 0x18]
add cl, byte [rax + rdi + 0x18]
movzx eax, cl
mov rcx, rbp
mov bl, byte [rax + rdi + 0x18]
xor bl, r9b
call fcn.14018f20c
xor bl, byte [rsp + 0x58]
inc esi
mov byte [rax], bl
sub r14, 1
jne 0x1401a288b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401a3e54
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
test r9d, r9d
je 0x1401a4050
mov r14d, dword [r8 + 8]
mov rax, qword [r8]
mov r12d, dword [rcx + 8]
mov r15d, dword [rdx + 8]
mov rdi, qword [rdx]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx]
mov qword [rbp - 0x10], rax
lea esi, [r15 + 2]
lea eax, [r12 + 2]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x2c], eax
sub r15d, r14d
lea eax, [r14 + 2]
mov dword [rbp - 0x30], esi
mov dword [rbp - 0x34], eax
sub r12d, r14d
mov eax, r9d
mov qword [rbp - 0x18], rax
lea edx, [r15 + r14]
mov rcx, rdi
lea r8, [rbp + 0x48]
call fcn.14018f20c
lea edx, [rsi - 1]
mov rcx, rdi
lea r8, [rbp - 0x40]
movzx ebx, byte [rax]
movzx eax, byte [rbp + 0x48]
xor ebx, eax
ror ebx, 8
call fcn.14018f20c
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x3f]
mov edx, esi
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x40]
xor edi, eax
add edi, ebx
ror edi, 8
call fcn.14018f20c
movzx ebx, byte [rbp - 0x3f]
lea edx, [rsi + 1]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x3e]
movzx eax, byte [rax]
xor ebx, eax
add ebx, edi
ror ebx, 8
call fcn.14018f20c
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x3d]
mov edx, r14d
movzx esi, byte [rax]
movzx eax, byte [rbp - 0x3e]
xor esi, eax
add esi, ebx
ror esi, 8
call fcn.14018f20c
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3c]
mov rcx, qword [rbp - 0x28]
movzx ebx, byte [rax]
movzx eax, byte [rbp - 0x3d]
xor ebx, eax
ror ebx, 8
dec edx
call fcn.14018f20c
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3b]
mov rcx, qword [rbp - 0x28]
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x3c]
xor edi, eax
add edi, ebx
ror edi, 8
call fcn.14018f20c
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3a]
mov rcx, qword [rbp - 0x28]
inc edx
movzx ebx, byte [rax]
movzx eax, byte [rbp - 0x3b]
xor ebx, eax
add ebx, edi
ror ebx, 8
call fcn.14018f20c
lea edx, [r12 + r14]
lea r8, [rbp - 0x39]
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x3a]
xor edi, eax
mov eax, esi
add edi, ebx
ror edi, 8
add rdi, rax
mov eax, r13d
mov r13, qword [rbp - 0x10]
add rdi, rax
mov ebx, edi
mov rcx, r13
call fcn.14018f20c
mov esi, dword [rbp - 0x2c]
lea r8, [rbp - 0x38]
mov cl, dil
shr ebx, 8
xor cl, byte [rbp - 0x39]
mov byte [rax], cl
mov rcx, r13
lea edx, [rsi - 1]
call fcn.14018f20c
mov cl, bl
lea r8, [rbp - 0x37]
xor cl, byte [rbp - 0x38]
mov edx, esi
shr ebx, 8
mov byte [rax], cl
mov rcx, r13
call fcn.14018f20c
mov cl, bl
lea edx, [rsi + 1]
xor cl, byte [rbp - 0x37]
lea r8, [rbp - 0x36]
mov byte [rax], cl
mov rcx, r13
call fcn.14018f20c
add dword [rbp - 0x30], 4
add esi, 4
add dword [rbp - 0x34], 4
mov r13, rdi
mov rdi, qword [rbp - 0x20]
add r14d, 4
shr ebx, 8
xor bl, byte [rbp - 0x36]
shr r13, 0x20
sub qword [rbp - 0x18], 1
mov dword [rbp - 0x2c], esi
mov esi, dword [rbp - 0x30]
mov byte [rax], bl
jne 0x1401a3ec3
lea r11, [rsp + 0x60]
mov eax, r13d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401bdcac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test edx, edx
je 0x1401bdcf2
cmp dword [rcx + 0x20], edi
jne 0x1401bdcf2
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bdcdd
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 0x1401bdd46
mov rdx, qword [rbx + 0x10]
jmp 0x1401bdd41
mov rdx, qword [rcx + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bdd46
cmp dword [rcx], edi
jne 0x1401bdd1b
cmp dword [rcx + 0x20], edi
jne 0x1401bdd1b
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, edi
test eax, eax
sete cl
mov dword [rbx], ecx
mov rcx, qword [rbx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bdd34
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
cmp dword [rbx + 0x20], edi
jne 0x1401bdd46
cmp dword [rbx], edi
jne 0x1401bdcec
mov rdx, qword [rbx + 0x18]
call fcn.1401bdf1c
mov dword [rbx + 0x20], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401bdd60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov esi, r8d
mov r14, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r9d, dword [0x140452ce0]
xor r15d, r15d
cmp dword [rdi + 0x78], r15d
mov ebp, eax
mov dword [rdi + 0x78], 1
mov ebx, r15d
mov r8, qword [rdi + 8]
cmove r9d, eax
mov dword [0x140452ce0], r9d
lea rcx, [r8 + 1]
test rcx, 0xfffffffffffffffe
jne 0x1401bddc4
mov ebx, 0x80004005
jmp 0x1401bde06
mov rcx, r8
mov qword [rsp + 0x20], r15
mov r8d, esi
lea r9, [rsp + 0x50]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401bddfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401bddbd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401bde06
cmp dword [rsp + 0x50], esi
je 0x1401bde0d
mov ebx, 0x8004e10a
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
jns 0x1401bde21
mov ecx, ebx
call fcn.140082a8c
jmp 0x1401bde69
mov rdx, qword [rdi + 0x70]
test rdx, rdx
je 0x1401bde69
sub ebp, dword [0x140452ce0]
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 [0x140451568]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.140082b34
mov ebx, r15d
mov ecx, ebx
call fcn.140082b34
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1401bdf1c
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 0x1401bdf7d
mov rdx, rdi
call fcn.1401be24c
mov ebx, eax
test eax, eax
jns 0x1401bdf4a
mov ecx, eax
jmp 0x1401bdf78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401bdf7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401bdf68
mov ebx, 0x80004005
jmp 0x1401bdf76
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401be01c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov r10d, dword [rsp + 0x80]
xorps xmm0, xmm0
mov edi, r8d
xor ebx, ebx
mov r8, qword [rcx + 8]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401be0a9
neg r9d
mov dword [r11 - 0x18], r10d
lea rcx, [r11 - 0x28]
sbb rax, rax
lea r9, [r11 + 8]
and rax, rcx
mov rcx, r8
mov r8d, edi
mov qword [r11 - 0x38], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401be09c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401be08a
mov ebx, 0x80004005
jmp 0x1401be098
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401be0b0
cmp dword [rsp + 0x60], edi
je 0x1401be0b5
mov ecx, 0x8004e109
jmp 0x1401be0ae
mov ecx, 0x80004005
mov ebx, ecx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1401be1cc
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
mov rdx, qword [rcx + 8]
lea rax, [rdx + 1]
test rax, 0xfffffffffffffffe
jne 0x1401be1f9
mov ecx, 0x80004005
mov ebx, ecx
call fcn.140082a8c
jmp 0x1401be22e
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401be22c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401be21a
mov ebx, 0x80004005
jmp 0x1401be228
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401be1f2
mov dword [rdi], eax
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401be24c
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 0x1401be2c7
xor ebx, ebx
test rdi, rdi
je 0x1401be2b2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401be29a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401be28a
mov ebx, 0x80004005
jmp 0x1401be2b7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401be2b7
test al, 1
je 0x1401be2be
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401be2be
jmp 0x1401be279
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
jmp 0x1401be2e0
test eax, eax
jne 0x1401be2d2
mov ebx, 0x80004005
jmp 0x1401be2e4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401be2eb
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c1070
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 [0x140452d38], eax
jg 0x1401c11ca
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140452f70], 1
cmove rdi, qword [0x140452570]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rax
mov ebx, eax
test eax, eax
js 0x1401c1162
mov rax, qword [rsp + 0x90]
lea r9, [0x140452d40]
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.1401c2ac0
mov ebx, eax
test eax, eax
js 0x1401c1162
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x90]
mov rax, rbx
xor r8d, r8d
mov rcx, r14
call rax
mov ebx, eax
test eax, eax
jns 0x1401c1169
mov ecx, eax
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
and qword [rsp + 0x50], 0
lea rax, [0x140028cdc]
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, [0x140452d38]
call fcn.140389a9c
cmp dword [0x140452d38], 0xffffffff
jne 0x1401c10b9
and qword [0x140452d48], 0
lea rax, str.metaInfoType
and dword [0x140452d50], 0
lea rcx, [0x140452d38]
or dword [0x140452d54], 0xffffffff
mov qword [0x140452d40], rax
call fcn.140389a2c
jmp 0x1401c10b9
Function at 0x1401c1220
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 [0x140452d58], eax
jg 0x1401c137a
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140452f70], 1
cmove rdi, qword [0x140452558]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rax
mov ebx, eax
test eax, eax
js 0x1401c1312
mov rax, qword [rsp + 0x90]
lea r9, [0x140452d60]
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.1401c2ac0
mov ebx, eax
test eax, eax
js 0x1401c1312
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x90]
mov rax, rbx
xor r8d, r8d
mov rcx, r14
call rax
mov ebx, eax
test eax, eax
jns 0x1401c1319
mov ecx, eax
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
and qword [rsp + 0x50], 0
lea rax, [0x140028cdc]
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, [0x140452d58]
call fcn.140389a9c
cmp dword [0x140452d58], 0xffffffff
jne 0x1401c1269
and qword [0x140452d68], 0
lea rax, str.metaInfoType
and dword [0x140452d70], 0
lea rcx, [0x140452d58]
or dword [0x140452d74], 0xffffffff
xorps xmm0, xmm0
mov qword [0x140452d60], rax
xor eax, eax
mov qword [0x140452d88], rax
lea rax, str.windowsComponentLicenseFileName
and dword [0x140452d88], 0
movups xmmword [0x140452d78], xmm0
mov qword [0x140452d78], rax
lea rax, str.path
mov qword [0x140452d80], rax
mov dword [0x140452d8c], 1
call fcn.140389a2c
jmp 0x1401c1269
Function at 0x1401c3fa4
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], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rdi, rcx
cmp dword [rcx + 0x20], ebp
jne 0x1401c3fc9
mov ebx, ebp
jmp 0x1401c4123
lea rdx, [rsp + 0x30]
call fcn.1401be308
mov ebx, eax
test eax, eax
jns 0x1401c3fe0
mov esi, eax
jmp 0x1401c4106
mov rdx, qword [rdi + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401c403a
cmp dword [rdi], ebp
jne 0x1401c4009
cmp dword [rdi + 0x20], ebp
jne 0x1401c4009
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, ebp
test eax, eax
sete cl
mov dword [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401c4022
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rdi + 0x20], ebp
jne 0x1401c403a
cmp dword [rdi], ebp
je 0x1401c4031
mov rdx, qword [rdi + 0x10]
jmp 0x1401c4035
mov rdx, qword [rdi + 0x18]
call fcn.1401bdf1c
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x18]
call fcn.1401bdf1c
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401c4085
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401c4070
mov ebx, 0x80004005
jmp 0x1401c407e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, ebx
jmp 0x1401c4106
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401c405f
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c40bb
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.1401c5148
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401c40e1
mov ecx, eax
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
js 0x1401c4106
mov edx, dword [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
mov dword [rdi + 0x20], ebp
call fcn.1401be0d0
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401c4123
mov ecx, esi
call fcn.140082a8c
test ebx, ebx
jns 0x1401c4123
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.1401bdf98
mov ecx, ebx
call fcn.140082b34
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140301bd4
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov rax, qword [rcx + 0x148]
xor r9d, r9d
shr rcx, 4
mov r8d, r9d
mov qword [rsp], rcx
mov ecx, r9d
mov rdx, qword [rax + 8]
movups xmm0, xmmword [rdx - 0x10]
movdqu xmmword [rsp + 8], xmm0
movzx eax, byte [rsp + rcx + 8]
inc rcx
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp rcx, 0x10
jb 0x140301c0d
movzx eax, byte [rsp + r9]
inc r9
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp r9, 8
jb 0x140301c2e
lea eax, [r8 + r8*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, 0x6fd91d85
imul r8d, ecx, 0x8001
mul r8d
shr edx, 0x12
imul ecx, edx, 0x927c0
sub r8d, ecx
lea eax, [r8 + 0x927c0]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.140389660
add rsp, 0x28
ret