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

Disassembly:
test r8, r8
je 0x14003b1cd
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [rcx + 0x14]
mov rbp, r8
mov r14, rdx
test ecx, ecx
je 0x14003b067
sub ecx, 1
je 0x14003b058
cmp ecx, 1
jne 0x14003b067
mov ecx, 0xfffffff4
jmp 0x14003b05d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
and dword [rsp + 0x70], 0
cmp dword [rsi + 0x14], 0
je 0x14003b0c1
xor ebx, ebx
test rbp, rbp
je 0x14003b0ea
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r14]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x14003b0ea
add rbx, 0x4000
cmp rbx, rbp
jb 0x14003b079
jmp 0x14003b0e2
mov rcx, qword [rsi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x14003b1b3
cmp byte [rsi + 0x1c], 0
je 0x14003b1b3
cmp dword [rsi + 0x14], 0
jne 0x14003b1b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x18]
lea rcx, [rsi + 0x26]
mov r12, rax
call fcn.14003bb44
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14003b154
mov rcx, r12
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14003b154
lea rax, [r12 + rbp]
cmp rax, rbx
jbe 0x14003b154
lea rdx, [rsi + 0x26]
lea rcx, [0x140134b90]
call fcn.1400332fc
lea rdx, [rsi + 0x26]
lea rcx, [0x140134b90]
xor r8d, r8d
call fcn.14003334c
test al, al
je 0x14003b1a1
mov ecx, dword [rsp + 0x70]
cmp rcx, rbp
jae 0x14003b067
test ecx, ecx
je 0x14003b067
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x18]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x10]
jmp 0x14003b067
lea r8, [rsi + 0x26]
lea rcx, [0x140134b90]
xor edx, edx
call fcn.140033628
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov byte [rsi + 0x10], 1
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14003b2a0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x14003b39c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x14003b3da
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b44f
mov rcx, rbx
call fcn.14003b2f0
test al, al
je 0x14003b41a
cmp rdi, rbp
jbe 0x14003b41a
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14003b39c
jmp 0x14003b453
cmp dword [rbx + 0x14], 1
jne 0x14003b42f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14003b42f
xor eax, eax
jmp 0x14003b453
cmp dword [rbx + 0x14], 0
jne 0x14003b44a
mov ebp, 0x8000
cmp rdi, rbp
jbe 0x14003b44a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x14003b40a
or eax, 0xffffffff
jmp 0x14003b453
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14003b768
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14003b6ec
test al, al
je 0x14003b796
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [r11 + 0x10]
add rsp, 0x20
pop rbx
ret

Function at 0x14003bacc
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140061f68
movzx r11d, word [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11w
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14003bb24
cmp eax, 5
je 0x14003bb24
xor eax, eax
jmp 0x14003bb29
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
add rsp, 0x1038
ret

Function at 0x14003bb44
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140061890
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14003bbc0
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14003bbc0
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14003bbc2
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c6350
add rsp, 0x1058
ret
Function at 0x14003bbdc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1260
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1250], rax
lea rdx, [rsp + 0x250]
mov r8d, 0x800
call fcn.140061f68
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea rcx, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
je 0x14003bc82
lea rsi, [rsp + 0x40]
lea rdi, [0x1400e3478]
lea ecx, [rbx + 4]
repe cmpsw word [rsi], word [rdi]
je 0x14003bc79
lea rsi, [rsp + 0x40]
lea rdi, str.FAT32
lea ecx, [rbx + 6]
repe cmpsw word [rsi], word [rdi]
jne 0x14003bc7e
mov ebx, 1
mov al, bl
jmp 0x14003bc84
xor al, al
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400c6350
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14003bd31
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400627f0
test al, al
je 0x14003bd31
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14003bd54
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x14003bdbb
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.1400627f0
test al, al
je 0x14003bdbb
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003bde4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14003be6c
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400627f0
test al, al
je 0x14003be6c
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.1400627f0
test al, al
je 0x14003be6c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1400c6350
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003be94
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14003bef2
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400627f0
test al, al
je 0x14003bef2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14003bf18
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14003bf76
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400627f0
test al, al
je 0x14003bf76
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14003c60c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
jbe 0x14003c65f
mov qword [rcx + 0x20], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400c7170
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x14003c661
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003ca1c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov dil, dl
xor edx, edx
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003caae
mov rcx, rbx
call fcn.14003bcd8
cmp eax, 0xffffffff
jne 0x14003ca90
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.1400627f0
test al, al
je 0x14003ca90
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003caae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003caa7
cmp eax, 3
je 0x14003caa7
mov eax, 1
jmp 0x14003cabf
mov eax, 2
jmp 0x14003cabf
test dil, dil
je 0x14003cabd
mov edx, esi
mov rcx, rbx
call fcn.14003bd54
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c6350
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003ce04
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2540
call fcn.1400d8110
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x2530], rax
mov ebx, r9d
mov r14, r8
mov r13, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, rdi
call fcn.14003b54c
mov qword [rsp + 0x40], rax
xor esi, esi
cmp qword [0x140148968], rsi
je 0x14003ce99
mov edx, 0x200
lea rcx, [rsp + 0x1d30]
call fcn.1400a35cc
mov r8d, 0x200
lea rdx, [rsp + 0x1930]
mov rcx, qword [0x140148968]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test byte [rsp + 0x25a8], 4
jne 0x14003ceb1
mov rax, qword [rdi]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov r12d, 0x100000
mov rdx, r12
lea rcx, [rsp + 0x20]
call fcn.14000bf10
nop
lea rcx, [rsp + 0x90]
call fcn.1400416e0
nop
lea rcx, [rsp + 0xce0]
call fcn.1400416e0
nop
mov r8d, ebx
mov edx, 2
lea rcx, [rsp + 0x90]
call fcn.140041490
mov r8d, ebx
mov edx, 3
lea rcx, [rsp + 0xce0]
call fcn.140041490
xor r15d, r15d
movabs rbx, 0x7fffffff7fffffff
mov rsi, qword [rsp + 0x25a0]
jmp 0x14003cf3c
mov r12d, 0x100000
cmp rsi, rbx
jne 0x14003cf46
mov r8, r12
jmp 0x14003cf50
mov r8, rsi
cmp rsi, r12
cmovg r8, r12
mov rax, qword [rdi]
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.COMCTL32.dll_CreateMappedBitmap]
movsxd r12, eax
test eax, eax
je 0x14003d01d
inc r15
test r15b, 0xf
jne 0x14003cfd2
cmp qword [0x140148968], 0
je 0x14003cfcd
mov rcx, r15
shl rcx, 0x14
mov rdx, qword [rsp + 0x40]
call fcn.14007fc0c
mov ebx, eax
mov ecx, 0x51e
call fcn.140076080
mov r8, rax
mov r9d, ebx
mov edx, 0x200
lea rcx, [rsp + 0x2130]
call fcn.140022b7c
lea rcx, [rsp + 0x2130]
call fcn.1400a35dc
call fcn.1400a3d64
movabs rbx, 0x7fffffff7fffffff
call fcn.1400811c0
test r13, r13
je 0x14003cfec
mov r8, r12
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x90]
call fcn.1400414e0
test r14, r14
je 0x14003d006
mov r8, r12
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0xce0]
call fcn.1400414e0
cmp rsi, rbx
je 0x14003cf36
sub rsi, r12
mov r12d, 0x100000
jmp 0x14003cf3c
cmp qword [0x140148968], 0
je 0x14003d046
lea rcx, [rsp + 0x1d30]
call fcn.1400a35dc
lea rcx, [rsp + 0x1930]
call fcn.1400a358c
call fcn.1400a3d64
test r13, r13
je 0x14003d05c
lea rcx, [rsp + 0x90]
call fcn.140041584
mov dword [r13], eax
test r14, r14
je 0x14003d087
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xce0]
call fcn.140041710
mov rcx, r14
lea rdx, [rsp + 0x64]
mov r8d, 0x20
call fcn.1400c6bb0
nop
lea rcx, [rsp + 0xce0]
call fcn.140041458
nop
lea rcx, [rsp + 0x90]
call fcn.140041458
nop
cmp qword [rsp + 0x20], 0
je 0x14003d0b6
mov rcx, qword [rsp + 0x20]
call fcn.1400c7040
nop
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x2530]
xor rcx, rsp
call fcn.1400c6350
add rsp, 0x2540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003e298
Capabilities:
Read file on windows
Write file on windows

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 r12
push r13
push r14
sub rsp, 0x20
mov r12, rcx
mov r14d, 0x4000
mov rsi, r8
mov rcx, r14
mov r13, rdx
call fcn.1400c799c
mov rbx, rax
test rax, rax
jne 0x14003e2dc
lea eax, [rbx + 4]
jmp 0x14003e3a6
xor edi, edi
cmp rsi, 0xffffffffffffffff
je 0x14003e2ed
cmp rdi, rsi
jae 0x14003e39c
call fcn.140053a58
cmp byte [0x140134b98], 0
je 0x14003e304
cmp byte [0x14014aa58], 0
jne 0x14003e351
mov rax, rsi
mov r8, r14
mov r9, r12
sub rax, rdi
mov edx, 1
mov rcx, rbx
cmp rax, r14
cmovb r8, rax
cmp rsi, 0xffffffffffffffff
cmove r8, r14
call fcn.1400c9ab0
mov rbp, rax
test rax, rax
je 0x14003e381
mov r9, r13
mov r8, rax
mov edx, 1
mov rcx, rbx
call fcn.1400c8f54
cmp rax, rbp
jne 0x14003e358
add rdi, rbp
jmp 0x14003e2de
mov eax, 9
jmp 0x14003e3a6
mov rcx, rbx
call fcn.1400c7040
mov r8, qword [0x1401360c0]
test r8, r8
je 0x14003e37a
lea rcx, [0x140134b90]
xor edx, edx
call fcn.1400335e0
mov eax, 0xa
jmp 0x14003e3a6
mov rcx, r12
call fcn.1400c975c
test eax, eax
je 0x14003e39c
mov rcx, rbx
call fcn.1400c7040
mov eax, 0xb
jmp 0x14003e3a6
mov rcx, rbx
call fcn.1400c7040
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14003ea2c
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x2070
call fcn.1400d8110
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x20b0], rbx
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x2060], rax
mov rsi, rdx
mov rdi, rcx
mov rax, rcx
mov r8, rdx
sub r8, rcx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14003ea87
add rax, 2
test edx, edx
jne 0x14003ea73
test ecx, ecx
jne 0x14003ea92
xor eax, eax
jmp 0x14003ec5d
xor bpl, bpl
lea rdx, [rsp + 0x1060]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rsp + 0x1060]
call fcn.1400c92a4
mov r12d, eax
mov r13d, 1
cmp word [rsp + 0x1060], 0x5c
je 0x14003eb03
cmp word [rsi], 0x5c
je 0x14003eb03
cmp word [rdi], 0x5c
je 0x14003eb03
movzx ecx, word [rsi]
call fcn.1400c92a4
mov ebx, eax
movzx ecx, word [rdi]
call fcn.1400c92a4
cmp word [rsi + 2], 0x3a
cmovne ebx, r12d
cmp word [rdi + 2], 0x3a
cmovne eax, r12d
movzx ebp, bpl
cmp ebx, eax
cmovne ebp, r13d
mov rcx, rdi
call fcn.14003c3d4
test al, al
je 0x14003eb7c
lea rcx, [rsp + 0x30]
call fcn.14003abdc
nop
mov r8d, r13d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14003ac20
test al, al
je 0x14003eb68
lea rcx, [rsp + 0x30]
call fcn.14003af08
test al, al
je 0x14003eb68
mov rcx, rdi
call fcn.14003be94
test al, al
jne 0x14003eb5c
lea rcx, [rsp + 0x30]
call fcn.14003b320
mov eax, 0xf
jmp 0x14003ec5d
lea rcx, [rsp + 0x30]
call fcn.14003b320
jmp 0x14003eb7c
lea rcx, [rsp + 0x30]
call fcn.14003b320
mov eax, 0xf
jmp 0x14003ec5d
test bpl, bpl
jne 0x14003eb99
mov rdx, rdi
mov rcx, rsi
call fcn.14003bde4
test al, al
sete al
test al, al
je 0x14003ec3f
lea rdx, [0x1400e3698]
mov rcx, rsi
call fcn.1400c9638
mov rbp, rax
test rax, rax
jne 0x14003ebc9
mov r8, rsi
xor edx, edx
lea rcx, [0x140134b90]
call fcn.1400334fc
lea eax, [rbp + 0xa]
jmp 0x14003ec5d
lea rdx, [0x1400e3668]
mov rcx, rdi
call fcn.1400c9638
mov r12, rax
test rax, rax
jne 0x14003ebef
mov rcx, rbp
call fcn.1400c8d40
lea eax, [r12 + 0xf]
jmp 0x14003ec5d
xor edx, edx
lea rcx, [0x140134b90]
call fcn.140033058
mov r8d, 0xffffffff
mov rdx, r12
mov rcx, rbp
call fcn.14003e298
mov ebx, eax
mov rcx, rbp
call fcn.1400c8d40
mov dl, r13b
lea rcx, [0x140134b90]
call fcn.140033058
mov rcx, r12
call fcn.1400c8d40
test eax, eax
jne 0x14003ec43
test ebx, ebx
jne 0x14003ec43
mov rcx, rsi
call fcn.14003be94
xor eax, eax
jmp 0x14003ec5d
mov rcx, rdi
call fcn.14003be94
mov ecx, ebx
mov eax, 0xe
cmp ebx, 0xa
cmove ecx, eax
test ebx, ebx
cmovne eax, ecx
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x20b0]
add rsp, 0x2070
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f8b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140147640], 0
je 0x14003f8cb
or eax, 0xffffffff
jmp 0x14003f9d9
mov rax, qword [0x1401362f0]
test rax, rax
jg 0x14003f8eb
dec rax
mov qword [0x1401362f0], rax
and qword [0x140147540], 0
jmp 0x14003f8c3
mov rbx, qword [0x140147540]
test rbx, rbx
jg 0x14003f93f
mov rcx, qword [0x140147530]
mov ebx, 0x2000
mov edx, ebx
call fcn.14003f61c
movsxd rcx, eax
mov qword [0x140147540], rcx
test eax, eax
je 0x14003f971
cmp rcx, 0xffffffffffffffff
je 0x14003f97b
mov rax, qword [0x140147530]
add qword [0x140147580], rbx
mov qword [0x140147538], rax
call fcn.14003f5bc
mov rbx, qword [0x140147540]
mov rax, qword [0x140137518]
test byte [rax + 0x40], 1
je 0x14003f9be
cmp byte [0x140148781], 0
je 0x14003f993
test rbx, rbx
je 0x14003f9be
mov rcx, qword [0x140147538]
lea r8, [0x140148788]
mov edx, ebx
call fcn.14003ba6c
jmp 0x14003f9b7
cmp rcx, 0xffffffffffffffff
jne 0x14003f8e1
lea rdx, [0x140166802]
lea rcx, [0x140134b90]
call fcn.140033674
jmp 0x14003f8e1
mov rdi, qword [0x140147538]
test rbx, rbx
je 0x14003f9be
call fcn.140087908
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.140087928
inc rdi
sub rbx, 1
jne 0x14003f99f
mov rbx, qword [0x140147540]
mov rax, qword [0x140147538]
dec rbx
mov qword [0x140147540], rbx
movzx eax, byte [rax]
inc qword [0x140147538]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400406bc
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.1400d8110
sub rsp, rax
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140040770
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004079a
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.1400627f0
test al, al
je 0x140040747
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004079a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140040763
cmp eax, 3
je 0x140040763
cmp eax, 0x12
je 0x140040763
mov eax, 1
jmp 0x140040765
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140040851
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140040790
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140040851
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.1400805a0
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.1400617d0
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.1400839f8
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.1400839f8
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.1400839f8
bt dword [rsp + 0x20], 0xa
jae 0x140040849
cmp dword [rsp + 0x44], 0xa0000003
jne 0x140040849
mov eax, 1
jmp 0x14004084b
xor eax, eax
mov byte [rdi + 0x100e], al
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret

Function at 0x14004364c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [r8 + 0x9c]
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp eax, 0xffffffff
je 0x1400436e2
cmp eax, 0x40
jbe 0x14004368f
lea rdx, [r8 + 0x40]
mov rcx, r8
call fcn.14007f610
mov dword [rdi + 0x9c], 0x14
mov ecx, dword [rdi + 0x9c]
mov r8d, 0x40
xor edx, edx
sub r8d, ecx
add rcx, rdi
call fcn.1400c7170
mov r11, rdi
mov eax, 0x10
xor dword [r11], 0x36363636
add r11, 4
sub rax, 1
jne 0x1400436b0
lea rcx, [rdi + 0x40]
call fcn.14007f54c
lea r8, [rdi + 0x40]
mov edx, 0x40
mov rcx, rdi
call fcn.14007f578
or dword [rdi + 0x9c], 0xffffffff
test esi, esi
je 0x1400436f4
lea r8, [rdi + 0x40]
mov edx, esi
mov rcx, rbp
call fcn.14007f578
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret