joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b0d08
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401b0d38
xor eax, eax
jmp 0x1401b0dfb
mov rbp, rbx
cmp word [rax], si
je 0x1401b0d5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401b0d44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401b0d40
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401b0c58
movsxd r14, eax
test eax, eax
jne 0x1401b0d9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401b0d31
mov rcx, r14
call fcn.1401abb64
mov rdi, rax
test rax, rax
jne 0x1401b0db4
xor ecx, ecx
call fcn.1401a8d18
jmp 0x1401b0d90
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401b0c58
test eax, eax
jne 0x1401b0de5
mov rcx, rdi
call fcn.1401a8d18
jmp 0x1401b0def
xor ecx, ecx
call fcn.1401a8d18
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401b0e18
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b0e9f
mov rsi, rbx
cmp word [rax], bp
je 0x1401b0e5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b0e48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b0e44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401abb64
mov rdi, rax
test rax, rax
je 0x1401b0e8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140180220
mov rbp, rdi
xor ecx, ecx
call fcn.1401a8d18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b34c4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14018a7bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401b354e
cmp byte [rbp - 0x21], r15b
je 0x1401b3549
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401b3584
call fcn.1401a9e44
test eax, eax
jne 0x1401b3570
cmp byte [rbp - 0x21], r15b
je 0x1401b3568
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401b3584
cmp byte [rbp - 0x21], r15b
je 0x1401b3581
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14018fc78
test eax, eax
jne 0x1401b3624
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14018a7bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401b35c3
cmp byte [rbp - 0x21], r15b
je 0x1401b35f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401b35f8
call fcn.1401a9e44
test eax, eax
jne 0x1401b35e4
cmp byte [rbp - 0x21], r15b
je 0x1401b35dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401b35f8
cmp byte [rbp - 0x21], r15b
je 0x1401b35f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14018fc78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401b3624
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401b3627
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401b3635
mov rcx, rdi
call fcn.1401a8d18
cmp byte [rbp + 0x3f], r15b
je 0x1401b3644
mov rcx, qword [rbp + 0x27]
call fcn.1401a8d18
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401b5040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401b5072
call fcn.14017b234
mov dword [rax], 0x16
call fcn.1401946c4
jmp 0x1401b5191
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401b5191
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401b5191
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401b50a1
lock or dword [rcx + 0x14], 0x10
jmp 0x1401b5191
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401b50b5
call fcn.1401b6eac
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14017c660
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401951f8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401b517f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401b514a
mov rcx, rsi
call fcn.14017c660
cmp eax, edi
je 0x1401b5135
mov rcx, rsi
call fcn.14017c660
cmp eax, 0xfffffffe
je 0x1401b5135
mov rcx, rsi
call fcn.14017c660
movsxd rbx, eax
lea r14, [0x14029eef0]
mov rcx, rsi
sar rbx, 6
call fcn.14017c660
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401b513c
lea rdx, [0x14029a520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401b514a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401b516e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401b516e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401b516e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401b5194
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401baa30
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14029bf80]
cmp ecx, 0xffffffff
je 0x1401baa66
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
jae 0x1401baa66
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsi + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401bab15
lea rcx, [rsi + 0x30]
call fcn.1401dd3c0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x1401baa57
mov rcx, qword [rsi]
mov r9d, 0xe0
mov edx, ebx
mov r8d, 0x5d7381b3
call fcn.140142ea0
mov r14, rax
mov ecx, 0x30
call fcn.14017b1d8
mov rdi, rax
mov r8, qword [rsi + 8]
mov rcx, rax
mov rdx, r14
call fcn.1400c49a0
lea rax, [0x14026d958]
mov qword [rdi], rax
mov dword [rdi + 0x20], ebx
mov qword [rdi + 0x28], r14
lea r14, [rsi + 0x18]
mov rcx, r14
call fcn.140179940
mov rbx, rax
mov rcx, r14
mov rdx, rdi
call fcn.1400fca60
test rbx, rbx
je 0x1401bab0c
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
mov edx, 1
call qword [case.0x1401e7f70.0]
lock inc dword [rsi + 0x28]
jmp 0x1401baa59
mov rcx, rdi
call fcn.1400fdfc0
jmp 0x1401baa7b

Function at 0x1401bb300
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14029bf80]
cmp ecx, 0xffffffff
je 0x1401bb323
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
jb 0x1401bb337
lea rcx, [rsi + 0x18]
call fcn.140179940
test rax, rax
je 0x1401bb337
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1401baa30
Function at 0x1401c27c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1401c27ff
test r15, r15
je 0x1401c28f5
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1401c2849
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140180220
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1401c27dd
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x1401c28ed
lea rcx, [r12*8]
call fcn.14017b1d8
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x1401c28bd
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1401c28f2
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x1401c28a5
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1401c27dd
mov rcx, r14
call fcn.14017b254
mov r15, qword [rsi + 0x10]
jmp 0x1401c27dd
call fcn.1401be9c0
int3
int3

Function at 0x1401c2900
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1401c2942
mov r14, rbx
add r14, 0xfffffffffffffff8
je 0x1401c2a41
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1401c2994
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r14, [r15 + r12*8]
sub r15, rbx
je 0x1401c2986
sub r14, r15
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140180220
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x1401c291f
mov rcx, rax
sub rcx, rbx
sar rcx, 2
cmp rax, rbx
mov r12d, 1
cmovne r12, rcx
mov rax, r12
shr rax, 0x3d
jne 0x1401c2a39
lea rcx, [r12*8]
call fcn.14017b1d8
lea r14, [r12 + r12]
add r14, 6
and r14, 0xfffffffffffffff8
add r14, rax
mov rcx, r14
sub r15, rbx
je 0x1401c2a0c
mov rdx, r15
sar rdx, 3
and r15, 0xfffffffffffffff8
mov rcx, r15
add rcx, r14
shl rdx, 3
xor r8d, r8d
mov r9, r14
add r9, r8
je 0x1401c2a3e
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1401c29f4
lea rdx, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
test rbx, rbx
je 0x1401c291f
mov rcx, rbx
call fcn.14017b254
mov r14, qword [rsi + 8]
jmp 0x1401c291f
call fcn.1401be9c0
int3
int3
Function at 0x1401e72e0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x50], r12
movaps xmm6, xmmword [0x140270690]
movaps xmmword [r14 + 0x40], xmm6
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x7e
call fcn.140120f60
xor ebp, ebp
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140121610
mov rcx, rdi
call fcn.14014abf0
test al, al
je 0x1401e73b9
lea rcx, [rsp + 0x60]
call fcn.140120f80
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rsi
call fcn.14014abf0
test al, al
je 0x1401e73c9
xor ebp, ebp
jmp 0x1401e7383
cmp byte [rdi + 0x17], 0
jns 0x1401e73d9
cmp qword [rdi + 8], 0x103
ja 0x1401e73c5
cmp byte [rsi + 0x17], 0
jns 0x1401e73e9
cmp qword [rsi + 8], 0x103
ja 0x1401e73c5
lea r14, [rsp + 0x40]
mov qword [r14 + 0x10], r12
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x8b
call fcn.140120f60
lea r8, [0x1402a2694]
mov rcx, r14
mov rdx, r15
call fcn.140051390
cmp byte [rsi + 0x17], 0
jns 0x1401e7432
mov rsi, qword [rsi]
movzx r8d, bl
cmp byte [rdi + 0x17], 0
jns 0x1401e743f
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401e748a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1401e7474
mov eax, edi
and eax, 1
je 0x1401e7474
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1400514e0
jmp 0x1401e7383
xor ebp, ebp
jmp 0x1401e747b
Function at 0x1401e7e00
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401e7e7f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401e7e84
test bl, bl
je 0x1401e7e5b
cmp byte [rdi + 8], 0
je 0x1401e7ee0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400c7fc0
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1401e7e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1401e7eac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401e7eb1
xor esi, esi
jmp 0x1401e7e68
mov rcx, qword [rdi]
jmp 0x1401e7e99
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1401e7ee8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1401e7e5b
mov esi, dword [rsp + 0x24]
jmp 0x1401e7e5b
mov rcx, qword [rdi]
jmp 0x1401e7e50
mov rcx, qword [rdi]
jmp 0x1401e7ec8
Function at 0x1401ea260
Capabilities:
Encrypt data using dpapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b8
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x198]
mov qword [rsi], rax
movzx r8d, byte [rcx + 0x17]
mov r9d, r8d
and r9d, 0x7f
test r8b, r8b
mov r8, qword [rcx]
cmovns r8, rcx
mov qword [rsi + 8], r8
cmovs r9d, dword [rcx + 8]
mov rdi, rdx
mov dword [rsi], r9d
movaps xmm0, xmmword [0x140270690]
lea r14, [rsp + 0x180]
movaps xmmword [r14], xmm0
lea rbx, [rsp + 0x178]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140170ca0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.CRYPT32.dll_CryptUnprotectData
mov esi, eax
lea r14, [rsp + 0x1a8]
mov rcx, r14
call fcn.140170ca0
mov rax, qword [r14]
mov rcx, qword [rbx]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1402a3428]
test rcx, rcx
jne 0x1401ea378
mov dword [rsp + 0x20], 1
lea rcx, str.OSCrypt.Win.Decrypt.Time
mov edx, 0x3e8
mov r8d, 0x989680
mov r9d, 0x32
call fcn.14013c310
mov rcx, rax
mov qword [0x1402a3428], rax
lea rdx, [rsp + 0x38]
call fcn.14013bf90
test esi, esi
setne dl
lea rcx, str.OSCrypt.Win.Decrypt.Result
call fcn.140150250
test esi, esi
je 0x1401ea3e1
mov r8d, dword [rsp + 0x180]
mov rdx, qword [rsp + 0x188]
mov rcx, rdi
call fcn.14014dfb0
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
setne bl
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebx
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 2
call fcn.140109210
test al, al
je 0x1401ea3bd
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....componentsos_cryptos_crypt_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x53
mov r9d, 2
call fcn.1401dfc50
lea rcx, [rsp + 0x48]
lea rdx, str.Failed_to_decrypt
mov r8d, 0x11
call fcn.1401b98e0
mov rcx, rdi
call fcn.1401dfcd0
jmp 0x1401ea3bd

Function at 0x1401f1890
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.1401808d0
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x1401f18d2
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1401f18c6
Function at 0x1401f4ab0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
cmp edx, 0x80
je 0x1401f4ac8
cmp edx, 0x100
je 0x1401f4ac8
cmp edx, 0xc0
jne 0x1401f4ae7
mov eax, dword [0x1402a4604]
bt eax, 0x19
jb fcn.14007c920
bt eax, 9
jb fcn.14007db10
jmp fcn.1401f4af0
mov eax, 0xfffffffe
ret
Function at 0x1401f6550
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401f6637
mov rdi, r9
mov r15, r8
mov r12, rdx
mov r14, rcx
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
cmp r8, 0x10
jb 0x1401f65f1
xor ebp, ebp
mov rax, rsi
mov rsi, r12
mov r13, r15
lea rcx, [r12 + rbp]
mov rdx, qword [rax]
xor rdx, qword [r14 + rbp]
mov qword [r12 + rbp], rdx
mov rax, qword [rax + 8]
xor rax, qword [r14 + rbp + 8]
mov qword [r12 + rbp + 8], rax
mov rdx, rcx
mov r8, rdi
mov rax, rbx
call qword [case.0x1401e7f70.0]
add r13, 0xfffffffffffffff0
mov rax, rsi
add rsi, 0x10
add rbp, 0x10
cmp r13, 0xf
ja 0x1401f6596
lea rax, [r12 + rbp]
add rax, 0xfffffffffffffff0
cmp r15, rbp
mov rsi, qword [rsp + 0x90]
jne 0x1401f6648
mov r12, rax
jmp 0x1401f662f
mov rax, rsi
mov r13, r15
xor ecx, ecx
mov dl, byte [rax + rcx]
xor dl, byte [r14 + rcx]
mov byte [r12 + rcx], dl
inc rcx
cmp r13, rcx
jne 0x1401f65f9
mov cl, byte [rax + r13]
mov byte [r12 + r13], cl
inc r13
cmp r13, 0x10
jne 0x1401f660c
mov rcx, r12
mov rdx, r12
mov r8, rdi
mov rax, rbx
call qword [case.0x1401e7f70.0]
movups xmm0, xmmword [r12]
movups xmmword [rsi], xmm0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add r14, rbp
add r12, rbp
jmp 0x1401f65f7
Function at 0x1401f6650
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r8, r8
je 0x1401f67b2
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
cmp rcx, 0x20
setae al
add rcx, 0xffffffffffffffe0
cmp rcx, rdx
setae cl
movaps xmm0, xmmword [0x140270690]
movaps xmmword [rsp + 0x20], xmm0
cmp rbx, rdx
jb 0x1401f6717
and al, cl
jne 0x1401f6717
cmp rsi, 0x10
jb 0x1401f676f
lea r12, [rsp + 0x20]
mov rcx, rbx
mov rdx, r12
mov r8, r14
mov rax, r15
call qword [case.0x1401e7f70.0]
mov rax, qword [rbx]
mov rcx, qword [r13]
xor rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [r13], rax
mov rax, qword [rbx + 8]
mov rcx, qword [r13 + 8]
xor rcx, qword [rsp + 0x28]
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rax
add rsi, 0xfffffffffffffff0
add rbx, 0x10
add rdi, 0x10
cmp rsi, 0xf
ja 0x1401f66c9
jmp 0x1401f676a
cmp rsi, 0x10
jb 0x1401f675f
mov rbp, r13
mov r12, rbx
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov rax, r15
call qword [case.0x1401e7f70.0]
mov rax, qword [rbp]
xor qword [rdi], rax
mov rax, qword [rbp + 8]
xor qword [rdi + 8], rax
add rsi, 0xfffffffffffffff0
add rbx, 0x10
add rdi, 0x10
mov rbp, r12
cmp rsi, 0xf
ja 0x1401f6720
lea rax, [rbx - 0x10]
jmp 0x1401f6762
mov rax, r13
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
test rsi, rsi
je 0x1401f67b2
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, r14
mov rax, r15
call qword [case.0x1401e7f70.0]
xor eax, eax
mov cl, byte [rbx + rax]
mov dl, byte [r13 + rax]
xor dl, byte [rsp + rax + 0x20]
mov byte [rdi + rax], dl
mov byte [r13 + rax], cl
inc rax
cmp rsi, rax
jne 0x1401f6785
mov al, byte [rbx + rsi]
mov byte [r13 + rsi], al
inc rsi
cmp rsi, 0x10
jne 0x1401f67a1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402085e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov rbx, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov edi, 1
cmp rbx, rax
je 0x140208634
mov rsi, r8
movdqu xmm0, xmmword [rbx]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x14020864b
add rbx, 0x70
cmp rbx, rax
jne 0x140208615
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
cmp rbx, rax
je 0x140208634
cmp byte [rbx + 0x27], 0
jns 0x14020865c
mov rcx, qword [rbx + 0x10]
jmp 0x140208660
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov edi, 1
cmovne edi, ecx
test edi, edi
jne 0x140208634
mov qword [rsi], rbx
xor edi, edi
jmp 0x140208634

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov esi, 1
cmp r14, rax
je 0x14020884a
mov rdi, r9
mov rbx, rcx
movdqu xmm0, xmmword [r14]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x140208863
add r14, 0x70
cmp r14, rax
jne 0x14020882a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp r14, rax
je 0x14020884a
mov eax, dword [r14 + 0x68]
cmp eax, r8d
jne 0x14020887e
cmp byte [r14 + 0x27], 0
jns 0x14020888d
mov rcx, qword [r14 + 0x10]
jmp 0x140208891
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
jmp 0x14020884a
lea rcx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14020884a
shr eax, 3
and eax, 2
mov esi, eax
jne 0x14020884a
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x14020884a