joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012cf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140012d23
mov al, 1
jmp 0x140012eb9
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140012d3b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012d96
xor ebx, ebx
test rsi, rsi
je 0x140012dbf
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012db6
add rbx, r13
cmp rbx, rsi
jb 0x140012d56
jmp 0x140012db6
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012eb2
cmp byte [rdi + 0x22], 0
je 0x140012eb2
cmp dword [rdi + 0x14], 0
jne 0x140012eb2
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x1400609e0]
call fcn.14000b508
test al, al
je 0x140012e2e
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140012d41
test ecx, ecx
je 0x140012d41
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048518]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048518]
jmp 0x140012d41
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x1400489d4]
call fcn.1400378bc
mov r8, rax
lea rdx, [0x1400489d4]
lea rcx, [rsp + 0x38]
call fcn.14000129c
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400609e0]
call fcn.14000bcb8
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140012eb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012ed5
call fcn.14003214c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140032260
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140037844
int3
Function at 0x1400130e0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001310b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400131a5
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016a1c
test al, al
je 0x140013167
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400131a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131c5
call fcn.14003214c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032260
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140037844
int3

Function at 0x1400131cc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400131f7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140013291
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016a1c
test al, al
je 0x140013253
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013291
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001328c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400132b1
call fcn.14003214c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032260
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140037844
int3
Function at 0x1400132cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400132f7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14001338a
xor esi, esi
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016a1c
test al, al
je 0x14001334c
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001338a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013385
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a9
call fcn.14003214c
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032260
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140037844
int3

Function at 0x140013694
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.140016448
cmp ax, 0x2e
je 0x1400136f2
cmp ax, 0x20
je 0x1400136f2
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400136dc
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14001378d
jmp 0x1400136f6
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400132cc
cmp eax, 0xffffffff
jne 0x1400137a1
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140016a1c
test al, al
je 0x14001374b
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013789
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013784
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137de
call fcn.14003214c
test esi, esi
je 0x1400137a1
test bpl, bpl
je 0x14001379d
mov edx, r14d
mov rcx, rdi
call fcn.140013d44
xor eax, eax
jmp 0x1400137bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400137b7
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x1400137bc
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032260
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140037844
int3
Function at 0x140013990
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400139c3
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400139cd
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x140013ad7
mov qword [rbp - 0x30], r14
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140016a1c
test al, al
je 0x140013a50
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140016a1c
test al, al
je 0x140013a50
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
mov ebx, 0x1000
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140013a8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x140013a88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013b01
call fcn.14003214c
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140013ad7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x140013ad2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013afb
call fcn.14003214c
mov al, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140032260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140037844
nop
call fcn.140037844
nop
int3
Function at 0x140013d44
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140013d6e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x140013e0a
mov qword [rsp + 0x20], rbp
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016a1c
test al, al
je 0x140013dcc
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013e0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013e05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013e2a
call fcn.14003214c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032260
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.140037844
int3
Function at 0x1400140cc
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
cmp rcx, 0xffffffffffffffff
jne 0x1400141e2
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140014116
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140014203
mov qword [rsp + 0x20], r14
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140016a1c
test al, al
je 0x140014177
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400141b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400141b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014325
call fcn.14003214c
cmp rsi, 0xffffffffffffffff
jne 0x140014203
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x1400141d8
cmp eax, 0x13
mov al, r14b
jne 0x1400141da
mov al, 1
mov byte [rbx + 0x64], al
jmp 0x1400142fb
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140014203
or rsi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x1400141da
cmp rbx, rdi
je 0x140014221
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140014215
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400020b0
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x6c]
call fcn.1400378bc
mov r8, rax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.14000129c
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400180a0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001429c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001431f
call fcn.14003214c
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbx + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14001f138
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001f138
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001f138
mov dword [rbx + 0x60], r14d
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140032260
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140037844
int3
call fcn.140037844
int3
Function at 0x140014b0c
Capabilities:
Hash data using crc32b

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 2
mov ebx, edx
mov rsi, rcx
lea ebp, [rdi - 1]
cmp edx, ebp
jbe 0x140014b5b
test bl, 1
je 0x140014b45
mov r8d, edi
mov edx, ebp
mov rcx, rsi
call fcn.140014b7c
mov ebp, eax
mov r8d, edi
mov edx, edi
mov rcx, rsi
call fcn.140014b7c
shr ebx, 1
mov edi, eax
cmp ebx, 1
ja 0x140014b31
mov r8d, edi
mov edx, ebp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140014b7c

Function at 0x140014ec0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x1400609f8], bl
jne 0x140014f25
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140014f14
jne 0x140014f16
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140014f16
call fcn.140014f48
test al, al
jne 0x140014f16
mov bl, 1
mov byte [0x1400609f9], bl
mov byte [0x1400609f8], 1
jmp 0x140014f2b
mov bl, byte [0x1400609f9]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140032260
add rsp, 0x150
pop rbx
ret
Function at 0x1400162ec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400163a4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013a4
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400378bc
mov r8, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1400020b0
test edi, edi
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400163a2
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001639d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400163b4
call fcn.14003214c
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.140037844
int3

Function at 0x140017fd4
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140017fe2
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001abd8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, str.cw
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x64a20], cl
inc ecx
cmp ecx, 0x100
jl 0x14001ac01
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65721], r9b
mov byte [rsi + rdi*4 + 0x65720], r9b
mov byte [rsi + rdi*4 + 0x65323], r9b
mov byte [rsi + rdi*4 + 0x65320], r9b
mov byte [rsi + rdi*4 + 0x64f23], r9b
mov byte [rsi + rdi*4 + 0x64f22], r9b
mov byte [rsi + rdi*4 + 0x64b22], r9b
mov byte [rsi + rdi*4 + 0x64b21], r9b
call fcn.14001b3dc
mov dl, 3
mov byte [rsi + rdi*4 + 0x65723], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65322], al
mov byte [rsi + rdi*4 + 0x64f21], al
mov byte [rsi + rdi*4 + 0x64b20], al
call fcn.14001b3dc
movzx r9d, byte [rdi + rsi + 0x64a20]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65722], al
mov byte [rsi + rdi*4 + 0x65321], al
mov byte [rsi + rdi*4 + 0x64f20], al
mov byte [rsi + rdi*4 + 0x64b23], al
call fcn.14001b3dc
mov dl, 9
mov byte [rsi + rdi*4 + 0x66722], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66321], al
mov byte [rsi + rdi*4 + 0x65f20], al
mov byte [rsi + rdi*4 + 0x65b23], al
mov byte [rsi + r9*4 + 0x67722], al
mov byte [rsi + r9*4 + 0x67321], al
mov byte [rsi + r9*4 + 0x66f20], al
mov byte [rsi + r9*4 + 0x66b23], al
call fcn.14001b3dc
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x66720], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66323], al
mov byte [rsi + rdi*4 + 0x65f22], al
mov byte [rsi + rdi*4 + 0x65b21], al
mov byte [rsi + r9*4 + 0x67720], al
mov byte [rsi + r9*4 + 0x67323], al
mov byte [rsi + r9*4 + 0x66f22], al
mov byte [rsi + r9*4 + 0x66b21], al
call fcn.14001b3dc
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x66721], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66320], al
mov byte [rsi + rdi*4 + 0x65f23], al
mov byte [rsi + rdi*4 + 0x65b22], al
mov byte [rsi + r9*4 + 0x67721], al
mov byte [rsi + r9*4 + 0x67320], al
mov byte [rsi + r9*4 + 0x66f23], al
mov byte [rsi + r9*4 + 0x66b22], al
call fcn.14001b3dc
mov byte [rsi + rdi*4 + 0x66723], al
mov byte [rsi + rdi*4 + 0x66322], al
mov byte [rsi + rdi*4 + 0x65f21], al
mov byte [rsi + rdi*4 + 0x65b20], al
inc rdi
mov byte [rsi + r9*4 + 0x67723], al
mov byte [rsi + r9*4 + 0x67322], al
mov byte [rsi + r9*4 + 0x66f21], al
mov byte [rsi + r9*4 + 0x66b20], al
cmp rdi, 0x100
jl 0x14001ac18
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b350
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
lea r11, [rcx + 0x18]
mov r10, rcx
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x14001b3d3
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
movdqu xmm1, xmmword [r11 + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
pxor xmm1, xmm3
test eax, eax
jle 0x14001b3a9
mov rax, rcx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec rcx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test rcx, rcx
jg 0x14001b394
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001b3be
pxor xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001b361
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001b3dc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14001b424
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x14001b3ed
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14001b430
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14001b517
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x67720]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x66f20]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x66b20]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x67320]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14001b48e
inc r9
cmp r9, 4
jl 0x14001b481
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140033580
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001b47e
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140032260
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001b9c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r10, qword [0x140067b30]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x14001ba5f
cmp byte [0x140067b28], bl
jne 0x14001ba5f
lea rcx, str.Crypt32.dll
call fcn.14001dd54
mov qword [0x140067b20], rax
test rax, rax
je 0x14001ba48
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140067b20]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140067b30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067b38], rax
jmp 0x14001ba4f
mov rax, qword [0x140067b38]
mov r10, qword [0x140067b30]
mov byte [0x140067b28], 1
jmp 0x14001ba66
mov rax, qword [0x140067b38]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x14001bab9
test r10, r10
je 0x14001bad6
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x140048518]
test eax, eax
jne 0x14001baf1
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x1400609e0]
mov rcx, rbx
call fcn.14000b67c
mov rcx, rbx
call fcn.14000ba60
mov edx, 2
mov rcx, rbx
call fcn.14000b674
jmp 0x14001baf1
test rax, rax
je 0x14001bad6
mov edx, ecx
mov rcx, rsi
call qword [0x140048518]
test eax, eax
jne 0x14001baf1
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001ba93
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x14001baf1
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x14001bae1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret