joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019e870
Capabilities:
Check for time delay via queryperformancecounter
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rcx
mov r15d, edx
lea rcx, [rsp + 0x30]
call fcn.1401abd34
xor ebp, ebp
test r15d, r15d
je 0x14019e963
cmp qword [r12], rbp
jne 0x14019e8cc
mov ebp, 0xc004d104
jmp 0x14019e963
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov ecx, dword [rsp + 0x24]
lea rdx, [rsp + 0x20]
mov r14d, dword [rsp + 0x20]
xor ecx, eax
mov dword [rsp + 0x24], ecx
xor r14d, ecx
lea rcx, [rsp + 0x30]
mov r8d, 8
call fcn.14019e6e8
mov r13d, ebp
test r15d, r15d
je 0x14019e963
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rsp + 0x20]
mov ecx, r14d
mov edi, dword [r12 + 8]
xor eax, r14d
mov rsi, qword [r12]
mov r14d, eax
rol r14d, cl
add edi, r13d
lea rcx, [rsp + 0x30]
call fcn.1401ac014
mov bl, al
mov edx, edi
mov rcx, rsi
xor bl, r14b
call fcn.14019c1d4
xor al, bl
mov edx, edi
mov r8b, al
mov rcx, rsi
call fcn.14019c2c4
inc r13d
cmp r13d, r15d
jb 0x14019e90c
lea rcx, [rsp + 0x30]
call fcn.14001ab40
mov eax, ebp
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401a3f4c
Capabilities:
Hash data using sha256

Disassembly:
mov r9d, 8
lea r8, [0x14036ac30]
jmp 0x1401a4ae4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, r8
mov esi, r9d
mov r8d, r9d
xor ebx, ebx
shl r8, 2
mov rdi, rcx
cmp r8, 0x40
jbe 0x1401a4b19
mov ecx, 0x80070057
mov ebx, ecx
call fcn.14003e510
jmp 0x1401a4b3f
mov qword [rcx + 8], rbx
mov rdx, rax
mov dword [rcx + 0x50], ebx
mov byte [rcx + 4], 1
add rcx, 0x54
call sub.msvcrt.dll_memcpy
mov dword [rdi + 0x94], esi
mov word [rdi + 0x98], pe_nt_image_headers64
mov ecx, ebx
call fcn.14006a5bc
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ac074
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 1
jb 0x1401ac0ab
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r11, rdx
mov ebx, r8d
mov rdi, rcx
mov rcx, rdi
call fcn.1401ac014
xor byte [r11], al
inc r11
sub rbx, 1
jne 0x1401ac08d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401ac0b4
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1401ac12c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor esi, esi
mov edx, dword [r14 + 8]
mov rcx, qword [r14]
add edx, esi
call fcn.14019c1d4
mov ebx, dword [r14 + 8]
mov rcx, r15
mov rdi, qword [r14]
add ebx, esi
mov r11b, al
call fcn.1401ac014
xor al, r11b
mov edx, ebx
mov r8b, al
mov rcx, rdi
call fcn.14019c2c4
inc esi
cmp esi, ebp
jb 0x1401ac0dc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401ac2cc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
and qword [rbp - 0x28], 0
mov r14, rcx
cmp byte [rcx + 8], 0
jne 0x1401ac308
mov edi, 0xc004d101
mov ecx, edi
jmp 0x1401ac4e0
mov rax, qword [rcx]
mov r13d, dword [rbp + 0x68]
mov esi, r13d
mov edi, dword [rax + 0x10]
sub esi, edi
mov dword [rbp + 0x78], edi
dec esi
mov dword [rbp + 0x48], edi
mov dword [rbp + 0x70], esi
lea eax, [rdi + rdi]
cmp eax, edi
jb 0x1401ac4d9
lea eax, [rsi + rdi*2]
cmp esi, eax
ja 0x1401ac4d9
mov ecx, eax
call fcn.1400b74d4
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14003be24
mov rbx, qword [rbp - 0x28]
test rbx, rbx
jne 0x1401ac35b
mov edi, 0x8007000e
jmp 0x1401ac301
lea rcx, [rdi + rbx]
mov r9, rbx
mov qword [rbp - 0x20], rcx
lea r8, [rbp + 0x78]
mov rcx, qword [r14]
lea r12, [rbx + rdi*2]
mov rdx, rbx
call fcn.1401ac93c
mov edi, eax
test eax, eax
jns 0x1401ac386
mov ecx, eax
jmp 0x1401ac4e0
mov r15d, dword [rbp + 0x78]
lea eax, [r15*2 + 2]
cmp r15d, eax
ja 0x1401ac4d9
cmp r13d, eax
jb 0x1401ac4d9
mov rdx, qword [rbp - 0x20]
lea eax, [r15 + 1]
add rax, qword [rbp + 0x60]
lea r8, [rbp + 0x48]
mov rcx, qword [r14]
sub r13d, r15d
dec r13d
mov dword [rsp + 0x28], r15d
mov r9, rax
mov dword [rsp + 0x20], r13d
mov qword [rbp - 0x18], rax
call fcn.1401ac778
mov edi, eax
test eax, eax
js 0x1401ac37f
mov edx, dword [rbp + 0x48]
cmp edx, r15d
ja 0x1401ac4d9
test edx, edx
je 0x1401ac40c
mov rbx, qword [rbp + 0x60]
mov r8d, edx
mov rcx, qword [rbp - 0x20]
inc rbx
sub rbx, rcx
mov al, byte [rbx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1401ac3fa
mov rbx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov rcx, qword [r14]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edx
mov rdx, r12
call fcn.1401ac778
mov edi, eax
test eax, eax
js 0x1401ac37f
mov r14d, dword [rbp + 0x70]
cmp r14d, r13d
ja 0x1401ac4d9
test r13d, r13d
je 0x1401ac45f
mov r8, qword [rbp - 0x18]
mov rcx, r12
sub r8, r12
mov edx, r13d
mov al, byte [r8 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1401ac450
mov esi, r15d
cmp r15d, r14d
jae 0x1401ac477
mov eax, esi
cmp byte [rax + r12], 0
jne 0x1401ac477
inc esi
cmp esi, r14d
jb 0x1401ac467
cmp esi, r14d
je 0x1401ac4cf
mov eax, esi
cmp byte [rax + r12], 1
jne 0x1401ac4cf
mov r8, r15
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1401ac4cf
mov rax, qword [rbp + 0x60]
cmp byte [rax], 0
jne 0x1401ac4cf
mov rax, qword [rbp + 0x58]
sub esi, r15d
sub r14d, esi
sub r14d, r15d
dec r14d
cmp dword [rax], r14d
mov dword [rax], r14d
jb 0x1401ac4d9
mov rcx, qword [rbp + 0x50]
lea edx, [r15 + 1]
add edx, esi
mov r8d, r14d
add rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x1401ac4e5
mov edi, 0xc004d210
jmp 0x1401ac301
mov ecx, 0x8007006f
mov edi, ecx
call fcn.14003e510
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rbp - 0x28]
call fcn.14003b77c
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401b0e7c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x20], 0
mov r14, r8
and dword [rbp - 0x18], 0
mov r15, rdx
mov rdi, rcx
call fcn.1401b1510
mov ebx, eax
test eax, eax
jns 0x1401b0ec0
mov ecx, eax
call fcn.14003e510
jmp 0x1401b1046
lea rdx, [rdi + 0x60]
lea rcx, [rbp - 0x20]
call fcn.14006a004
mov rax, qword [rdi]
mov ecx, dword [rax + 4]
call fcn.1401a3780
mov esi, eax
mov eax, dword [rdi + 8]
test eax, eax
je 0x1401b1037
cmp eax, 1
jne 0x1401b1046
cmp dword [r14], esi
jb 0x1401b1022
cmp qword [r15], 0
je 0x1401b1022
cmp dword [rdi + 0x38], esi
jae 0x1401b0f2e
mov r9d, dword [rdi + 0x38]
lea rcx, [rdi + 0x10]
mov r10d, esi
sub r10d, dword [rdi + 0x38]
mov r8b, sil
sub r8b, byte [rdi + 0x38]
call fcn.1401b16f0
mov byte [rax + r9], r8b
inc r9
sub r10, 1
jne 0x1401b0f15
test esi, esi
je 0x1401b0f5e
xor r9d, r9d
mov r10, rsi
lea rcx, [rdi + 0x10]
call fcn.1401b16f0
lea rcx, [rdi + 0x40]
mov r8, rax
call fcn.1401b16d0
mov cl, byte [rax + r9]
xor byte [r8 + r9], cl
inc r9
sub r10, 1
jne 0x1401b0f38
and dword [rbp - 0x38], 0
lea rcx, [rdi + 0x10]
call fcn.1401b16f0
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.14019bdac
mov r10, qword [rdi]
and dword [rbp - 0x28], 0
mov qword [rbp - 0x30], rax
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x1401b0fcc
cmp ecx, 1
je 0x1401b0f9b
mov ebx, 0xc004d203
jmp 0x1401b1030
movaps xmm0, xmmword [r15]
lea rax, [rbp - 0x10]
movaps xmm1, xmmword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], r14
mov r9d, esi
mov rcx, r10
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x20], rax
call fcn.1401abd94
jmp 0x1401b1000
movaps xmm0, xmmword [r15]
lea rax, [rbp - 0x10]
movaps xmm1, xmmword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], r14
mov r9d, esi
mov edx, 0x80
movdqa xmmword [rbp - 0x10], xmm0
mov rcx, r10
movdqa xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x20], rax
call fcn.1401a0fb0
mov ebx, eax
test eax, eax
js 0x1401b1030
and dword [rdi + 0x38], 0
lea rcx, [rdi + 0x40]
mov r8, rsi
call fcn.1401b16d0
mov rcx, rax
xor edx, edx
call fcn.14001bade
jmp 0x1401b1046
mov dword [r14], esi
cmp qword [r15], 0
je 0x1401b1044
mov ebx, 0xc004d107
mov ecx, ebx
jmp 0x1401b0eb6
cmp dword [rdi + 0x38], 0
je 0x1401b1044
mov ebx, 0x80004005
jmp 0x1401b1030
xor ebx, ebx
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rbp - 0x20]
call fcn.14003b1c4
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401b7640
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
and qword [rbp - 8], 0
xor ebx, ebx
mov rsi, r9
mov qword [rbp + 0x40], rbx
lea r9, [rbp - 0x10]
mov rcx, 0xffffffff80000002
lea r8d, [rbx + 1]
call fcn.14003a1c8
mov dword [rbp + 0x28], eax
mov edi, eax
test eax, eax
jns 0x1401b769b
mov ecx, eax
jmp 0x1401b7744
and dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.OSProductPfn
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x28]
call fcn.14003dffc
test eax, eax
je 0x1401b773f
test rbx, rbx
jne 0x1401b7709
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1401b7702
mov ecx, eax
call fcn.1400b74d4
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.14003be24
mov rbx, qword [rbp + 0x40]
test rbx, rbx
jne 0x1401b769e
mov edi, 0x8007000e
jmp 0x1401b7742
mov edi, 0x8000ffff
jmp 0x1401b7742
cmp dword [rbp + 0x20], 1
je 0x1401b7716
mov edi, 0x8007000d
jmp 0x1401b7742
mov edx, dword [rbp + 0x30]
lea r9, [rbp + 0x28]
mov r8, rsi
mov rcx, rbx
call fcn.14003f380
mov edi, eax
test eax, eax
js 0x1401b7694
cmp dword [rbp + 0x28], 0
je 0x1401b7749
and qword [rbp + 0x40], 0
jmp 0x1401b7749
mov edi, dword [rbp + 0x28]
mov ecx, edi
call fcn.14003e510
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rbp + 0x40]
call fcn.14003b77c
lea rcx, [rbp - 8]
call fcn.14003bae4
lea rcx, [rbp - 0x10]
call fcn.14003bae4
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b7780
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor r14d, r14d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion_
mov rsi, r9
mov qword [rbp - 0x18], r14
mov ebx, r14d
mov qword [rbp - 0x10], r14
lea r9, [rbp - 0x18]
mov qword [rbp - 0x20], rbx
lea r8d, [r14 + 1]
mov rcx, 0xffffffff80000002
call fcn.14003a1c8
mov dword [rbp + 0x38], eax
mov edi, eax
test eax, eax
jns 0x1401b77dc
mov ecx, eax
jmp 0x1401b7892
mov dword [rbp + 0x40], r14d
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.DigitalProductId4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x38]
call fcn.14003dffc
test eax, eax
je 0x1401b788d
test rbx, rbx
jne 0x1401b784b
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1401b7844
mov ecx, eax
call fcn.1400b74d4
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14003be24
mov rbx, qword [rbp - 0x20]
test rbx, rbx
jne 0x1401b77e0
mov edi, 0x8007000e
jmp 0x1401b7890
mov edi, 0x8000ffff
jmp 0x1401b7890
cmp dword [rbp + 0x30], 3
je 0x1401b7858
mov edi, 0x8007000d
jmp 0x1401b7890
lea r9, [rbp + 0x38]
mov r8, rsi
mov rcx, rbx
call fcn.1400834d0
mov edi, eax
test eax, eax
js 0x1401b77d5
cmp dword [rbp + 0x38], r14d
mov rcx, qword [rbp + 0x50]
cmovne rbx, r14
mov qword [rbp - 0x20], rbx
test rcx, rcx
je 0x1401b7897
mov eax, dword [rbp + 0x40]
mov dword [rcx], eax
jmp 0x1401b7897
mov edi, dword [rbp + 0x38]
mov ecx, edi
call fcn.14003e510
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rbp - 0x20]
call fcn.14003b77c
lea rcx, [rbp - 0x10]
call fcn.14003bae4
lea rcx, [rbp - 0x18]
call fcn.14003bae4
mov eax, edi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1401b7be0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov dword [rcx + 0x24], eax
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov qword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x1401c46c8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c46ee
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401c68c9
cmp dword [rcx + 0x20], 0
jne 0x1401c68c9
add rcx, 8
call fcn.14019de60
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c6918
mov rdx, qword [rbx + 0x10]
jmp 0x1401c6913
lea rdi, [rcx + 8]
mov rcx, rdi
call fcn.140039858
test rax, rax
je 0x1401c6918
cmp dword [rbx], 0
jne 0x1401c68fc
cmp dword [rbx + 0x20], 0
jne 0x1401c68fc
call fcn.140039858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edx, edx
test eax, eax
sete dl
mov dword [rbx], edx
mov rcx, rdi
call fcn.14019de60
cmp dword [rbx + 0x20], 0
jne 0x1401c6918
cmp dword [rbx], 0
jne 0x1401c68c3
mov rdx, qword [rbx + 0x18]
call fcn.1401c72ec
mov dword [rbx + 0x20], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401c72ec
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 0x1401c7339
mov rdx, rdi
call fcn.1401c63e4
mov ebx, eax
test eax, eax
js 0x1401c7332
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401c7339
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401c9244
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
add rcx, 8
mov rdi, rdx
xor ebx, ebx
call fcn.140039858
test rax, rax
jne 0x1401c926a
mov ecx, 0x80004005
mov ebx, ecx
jmp 0x1401c9290
call fcn.140039858
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401c9297
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
call fcn.14003e510
jmp 0x1401c9299
mov dword [rdi], eax
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c99b4
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14, r9
and qword [rax + 8], r15
mov r12d, r8d
and dword [rcx], r15d
mov rsi, rdx
mov qword [rax + 0x10], r15
mov rdi, rcx
test rdx, rdx
je 0x1401c9a4e
lea rdx, [rax + 0x10]
mov rcx, rsi
call fcn.14003f2d8
mov ebx, eax
test eax, eax
jns 0x1401c9a08
mov ecx, eax
call fcn.14003e510
jmp 0x1401c9b60
mov r15, qword [rsp + 0x68]
lea r8, str..bak
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1401c3518
mov ebx, eax
test eax, eax
js 0x1401c99fc
mov rbp, qword [rsp + 0x60]
test r14, r14
je 0x1401c9a42
mov rax, qword [r14]
mov qword [rdi + 0x28], rax
mov rax, qword [r14 + 8]
mov qword [rdi + 0x30], rax
jmp 0x1401c9a56
and qword [rdi + 0x28], 0
and qword [rdi + 0x30], 0
jmp 0x1401c9a56
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
test r12d, r12d
je 0x1401c9a6b
mov rdx, rsi
call fcn.1401c72ec
mov rdx, rbp
call fcn.1401c72ec
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401c9a9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401c9ac9
mov ecx, eax
call fcn.14003de94
mov ebx, eax
test eax, eax
jns 0x1401c9b87
jmp 0x1401c99fc
mov rdx, rsi
call fcn.1401c72ec
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401c9ac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
jmp 0x1401c99fc
mov rdx, rsi
mov rcx, rdi
call fcn.1401ca5a0
mov ebx, eax
cmp eax, 0x80070002
jne 0x1401c9b26
test r12d, r12d
jne 0x1401c9af1
lea ecx, [r12 + 4]
mov edx, 0x4000200e
call fcn.1401cb938
mov rdx, rbp
call fcn.1401c6dd8
mov ebx, eax
test eax, eax
js 0x1401c99fc
mov rdx, rsi
mov rcx, rdi
call fcn.1401ca73c
mov ebx, eax
test eax, eax
js 0x1401c99fc
mov rdx, rsi
call fcn.1401c46c8
and dword [rdi + 0x20], 0
jmp 0x1401c9b35
test eax, eax
js 0x1401c99fc
mov dword [rdi + 0x20], 1
test r15, r15
je 0x1401c9b60
and qword [rsp + 0x68], 0
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.14003bf84
mov rdx, qword [rsp + 0x60]
lea rcx, [rdi + 0x18]
and qword [rsp + 0x60], 0
call fcn.14003bf84
test ebx, ebx
jns 0x1401c9b87
cmp dword [0x140603870], 0
jne 0x1401c9b87
mov r8d, ebx
mov edx, 3
mov rcx, rdi
call fcn.1401cb5c4
mov dword [0x140603870], 1
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x60]
call fcn.14003ba98
lea rcx, [rsp + 0x68]
call fcn.14003ba98
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401cbda8
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x1401cbdc2
xor ebx, ebx
jmp 0x1401cbe73
lea rdx, [rsp + 0x30]
call fcn.1401c91a4
mov ebx, eax
test eax, eax
js 0x1401cbe58
xor edx, edx
mov rcx, rdi
call fcn.1401c6894
mov rdx, qword [rdi + 0x18]
call fcn.1401c72ec
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401cbe0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
jmp 0x1401cbe58
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401cbdfe
mov rdx, qword [rdi + 0x10]
call fcn.1401c46c8
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.1401ca73c
mov ebx, eax
test eax, eax
js 0x1401cbe58
mov edx, dword [rsp + 0x30]
xor r8d, r8d
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1401cd440
mov ebx, eax
test eax, eax
jns 0x1401cbe73
mov ecx, eax
call fcn.14003e510
test ebx, ebx
jns 0x1401cbe73
mov r8d, ebx
mov edx, 3
mov rcx, rdi
call fcn.1401cb5c4
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401cc0dc
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
add rcx, 8
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rax
mov edi, r8d
mov qword [r11 - 0x18], rax
mov r10, rdx
mov qword [r11 - 0x10], rax
call fcn.140039858
test rax, rax
jne 0x1401cc117
mov ecx, 0x80004005
jmp 0x1401cc170
mov eax, dword [rsp + 0x80]
neg r9d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x30]
sbb r8, r8
and r8, rax
call fcn.140039858
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, r10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401cc165
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
jmp 0x1401cc172
cmp dword [rsp + 0x60], edi
je 0x1401cc177
mov ecx, 0x8004e109
mov ebx, ecx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1401ce6d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
add rcx, 8
mov edi, r8d
mov r10, rdx
xor ebx, ebx
call fcn.140039858
test rax, rax
jne 0x1401ce6f7
mov ecx, 0x80004005
jmp 0x1401ce734
call fcn.140039858
mov rdx, r10
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401ce729
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
jmp 0x1401ce736
cmp dword [rsp + 0x40], edi
je 0x1401ce73b
mov ecx, 0x8004e10a
mov ebx, ecx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14033293c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15d, r8d
mov dword [rax + 0x10], ebx
mov r12, r9
mov rbp, rdx
mov rsi, rcx
mov edi, ebx
test rdx, rdx
je 0x140332aa3
test r9, r9
je 0x140332aa3
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x140332aa3
cmp qword [rcx + 0x30], rbx
jne 0x14033299e
mov ebx, 0x80049e51
jmp 0x140332aa8
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [r14], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403329bd
cmp dword [rsi + 0xc], 1
jmp 0x1403329f1
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403329d6
cmp dword [rsi + 0xc], 2
jmp 0x1403329f1
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332a9c
cmp dword [rsi + 0xc], 3
je 0x1403329fd
mov ebx, 0x80049e2e
jmp 0x140332aa8
mov rcx, r15
mov dword [rsp + 0x68], r15d
call fcn.1400b74d4
mov rdi, rax
test rax, rax
jne 0x140332a1c
mov ebx, 0x8007000e
jmp 0x140332aa8
mov r8d, dword [rsp + 0x68]
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140332a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140332a60
mov ebx, eax
jmp 0x140332aa8
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140332aa8
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add eax, 0xfffffff0
mov dword [r14], eax
test rcx, rcx
je 0x140332aa8
cmp r13d, eax
jae 0x140332a8e
mov ebx, 0x80049e19
jmp 0x140332aa8
mov r8d, eax
lea rdx, [rdi + 0x10]
call sub.msvcrt.dll_memcpy
jmp 0x140332aa8
mov ebx, 0x80049e5b
jmp 0x140332aa8
mov ebx, 0x80070057
mov rcx, rdi
call fcn.14010bc98
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret