joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013a6a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140087220
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14013a6db
mov eax, dword [rax]
cmp eax, 1
jle 0x14013a6f0
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090910
mov rdx, qword [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x14013a74a
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140092810
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a726
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x14013a73b
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090910
mov rdx, qword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 2
jb 0x14013a793
mov rax, qword [rsp + 0x30]
cmp word [rax + 2], 0x3a
jne 0x14013a793
movzx ecx, word [rax]
call fcn.140093da0
mov esi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a776
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x14013a78b
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090910
mov rax, qword [rsp + 0x30]
mov word [rax], si
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140092810
movzx r8d, byte [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140134cf0
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a7d5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013a7d5
mov rcx, qword [rsp + 0x28]
call fcn.14021b7f0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14013cb60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov r8, qword [rcx + 8]
mov qword [rsp + 0x40], r8
mov r9, qword [rcx + 0x10]
mov qword [rsp + 0x48], r9
test rax, rax
je 0x14013cbbd
lock inc dword [rax]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov r14d, 0x5c
cmp r9, 2
jne 0x14013cbdf
cmp word [r8 + 2], 0x3a
jne 0x14013cbdf
movzx edx, r14w
lea rcx, [rsp + 0x38]
call fcn.140088480
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140149a60
nop
lea rcx, [rsp + 0x58]
call fcn.140094f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, 0xffffffff
cmp eax, 0xffffffff
jne 0x14013cd1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14013cc26
cmp eax, 0x20
jne 0x14013cd1a
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x20], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rsp + 0x30], xmm0
movq rax, xmm1
test rax, rax
je 0x14013cc49
lock inc dword [rax]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov r8d, 1
movzx edx, r14w
lea rcx, [rsp + 0x20]
call fcn.14008cae0
test al, al
je 0x14013cc97
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14008b1b0
mov r8d, 1
movzx edx, r14w
lea rcx, [rsp + 0x20]
call fcn.14008cae0
test al, al
jne 0x14013cc70
mov edx, 0x3a
lea r8d, [rdx - 0x39]
lea rcx, [rsp + 0x20]
call fcn.14008cae0
test al, al
jne 0x14013ccfb
lea rcx, [rsp + 0x20]
call fcn.140094f20
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14013ccfb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14013ccf5
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013ccf5
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
mov ebx, dword [rsp + 0x70]
jmp 0x14013cd1a
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14013cd1a
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013cd1a
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
test rsi, rsi
je 0x14013cd27
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x14013cd30
xor bl, bl
jmp 0x14013cd36
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14013cd56
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013cd56
mov rcx, qword [rsp + 0x58]
call fcn.14021b7f0
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14013cd73
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013cd73
mov rcx, qword [rsp + 0x38]
call fcn.14021b7f0
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140214310
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14013db60
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x4f0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x30], 1
lea edx, [r15 + 2]
lea rcx, [rsp + 0x34]
call fcn.1401ae050
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x14033eec0]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x14033ef20]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14013dd3b
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x14033ef10]
mov rax, qword [rax]
call qword [case.0x1400f4a30.0]
test eax, eax
js 0x14013dd28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x38]
mov rax, rbx
call qword [case.0x1400f4a30.0]
mov esi, eax
lea rbx, [r15 - 1]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14013dc66
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013dc66
mov rcx, qword [rsp + 0x50]
call fcn.14021b7f0
test esi, esi
js 0x14013dd16
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x80]
mov r8d, 0x104
lea rdx, [rsp + 0x2d0]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.0]
test eax, eax
jne 0x14013dd16
mov r8, rbx
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x68]
call fcn.14008e200
nop
mov rsi, qword [rax]
mov rbp, qword [rax + 8]
mov r14, qword [rax + 0x10]
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov dword [rsp + 0x30], 9
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14013dcf5
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013dcf5
mov rcx, qword [rsp + 0x68]
call fcn.14021b7f0
mov rcx, qword [rdi]
mov qword [rdi], rsi
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
test rcx, rcx
je 0x14013dd16
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14013dd16
call fcn.14021b7f0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f4a30.0]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f4a30.0]
nop
lea rcx, [rsp + 0x34]
call fcn.1401ae090
mov rax, rdi
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140214310
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013e6c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov r14, rdx
mov rsi, rcx
call fcn.1401353f0
test al, al
je 0x14013e722
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, str.default
mov qword [rsp + 0x68], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rsp + 0x50]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013e81c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140135770
nop
xor edi, edi
lea r9d, [rdi + 1]
xor r8d, r8d
movzx edx, di
mov rcx, rax
call fcn.14008e8f0
mov rbp, rax
lea ebx, [rdi - 1]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14013e769
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e769
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
cmp rbp, 0xffffffffffffffff
je 0x14013e7ad
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, str.default
mov qword [rsp + 0x68], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rsp + 0x50]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013e81c
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test eax, eax
setne sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14013e7f1
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14013e7f1
mov rcx, qword [rsp + 0x38]
call fcn.14021b7f0
test edi, edi
jne 0x14013e818
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 2
mov rcx, qword [rsp + 0xa0]
mov qword [r14], rcx
movzx eax, sil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14013e840
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r12, r8
mov rsi, rdx
mov r14, rcx
call fcn.1401353f0
test al, al
je 0x14013e8ad
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ea2c
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.140135770
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e8f0
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x14013e8f1
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e8f1
mov rcx, qword [rbp - 0x29]
call fcn.14021b7f0
cmp r15, 0xffffffffffffffff
je 0x14013e934
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ea2c
mov rcx, rsi
call fcn.1401353f0
test al, al
jne 0x14013e870
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.140135770
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e8f0
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x14013e985
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e985
mov rcx, qword [rbp - 0x11]
call fcn.14021b7f0
cmp r15, 0xffffffffffffffff
jne 0x14013e8f7
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
test eax, eax
setne sil
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x14013e9ee
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e9ee
mov rcx, qword [rbp + 7]
call fcn.14021b7f0
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14013ea09
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013ea09
mov rcx, qword [rbp + 0x1f]
call fcn.14021b7f0
test ebx, ebx
jne 0x14013ea28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f], eax
mov dword [rbp + 0x83], 2
mov rcx, qword [rbp + 0x7f]
mov qword [r12], rcx
movzx eax, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14013ea50
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r12, r8
mov rsi, rdx
mov r14, rcx
call fcn.1401353f0
test al, al
je 0x14013eabd
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ec40
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.140135770
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e8f0
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x14013eb01
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013eb01
mov rcx, qword [rbp - 0x29]
call fcn.14021b7f0
cmp r15, 0xffffffffffffffff
je 0x14013eb44
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ec40
mov rcx, rsi
call fcn.1401353f0
test al, al
jne 0x14013ea80
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.140135770
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e8f0
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x14013eb95
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013eb95
mov rcx, qword [rbp - 0x11]
call fcn.14021b7f0
cmp r15, 0xffffffffffffffff
jne 0x14013eb07
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
lea r8d, [r15 + 2]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
test eax, eax
setne sil
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x14013ec02
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013ec02
mov rcx, qword [rbp + 7]
call fcn.14021b7f0
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14013ec1d
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013ec1d
mov rcx, qword [rbp + 0x1f]
call fcn.14021b7f0
test ebx, ebx
jne 0x14013ec3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f], eax
mov dword [rbp + 0x83], 2
mov rcx, qword [rbp + 0x7f]
mov qword [r12], rcx
movzx eax, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14013f4c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rbp, rdx
mov r14, rcx
xor sil, sil
xor edi, edi
call fcn.140135320
test al, al
je 0x14013f562
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140134ee0
mov rcx, qword [rax + 8]
movzx ecx, word [rcx]
call fcn.140093da0
lea ecx, [rax - 0x41]
mov ebx, 1
shl ebx, cl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013f550
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013f550
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
and ebx, edi
setne sil
neg ebx
sbb edi, edi
and edi, 0x14
jmp 0x14013f62d
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140135770
nop
mov qword [rsp + 0x20], 7
lea rax, str._UNC
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140093300
test al, al
je 0x14013f60b
mov rdx, qword [rsp + 0x48]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008e8f0
test eax, eax
jle 0x14013f5f5
mov rdx, qword [rsp + 0x48]
inc eax
movsxd r8, eax
mov r9d, ebx
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008e8f0
test eax, eax
jle 0x14013f5f5
mov rcx, qword [rsp + 0x50]
dec rcx
cdqe
cmp rax, rcx
jne 0x14013f60b
lea rcx, [rsp + 0x40]
call fcn.14013fa70
test al, al
je 0x14013f60b
mov edi, 0x10
movzx esi, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013f62d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013f62d
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
test sil, sil
je 0x14013f657
mov dword [rbp + 0x10], edi
test dil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or ecx, dword [rbp + 4]
bts ecx, 0x16
mov dword [rbp + 4], ecx
or dword [rbp], 0x560000
movzx eax, sil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14013f890
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x58], r13d
mov dword [rbp - 0x3c], r13d
mov dword [rbp - 0x40], r13d
mov rdi, qword [rbp + 0x50]
mov rcx, r12
call fcn.140094f20
mov rcx, rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x38]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov r15d, eax
test eax, eax
je 0x14013f913
cmp eax, 0xea
jne 0x14013fa2a
mov rsi, qword [rbp - 0x38]
mov r14d, 1
cmp dword [rbp + 0x58], r14d
jb 0x14013fa2a
test rbx, rbx
je 0x14013fa19
cmp dword [rsi + 8], 0
jne 0x14013fa19
mov r8, 0xffffffffffffffff
mov rdx, qword [rsi]
lea rcx, [rbp - 0x18]
call fcn.14008e200
nop
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x20], rcx
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov eax, dword [rbp + 0x50]
or eax, 5
mov dword [rbp + 0x50], eax
test al, 2
je 0x14013f99d
and dword [rbp + 0x50], 0xfffffffd
test rdi, rdi
je 0x14013f99d
mov eax, 0xffffffff
lock xadd dword [rdi], eax
cmp eax, 1
jne 0x14013f99d
mov rcx, rdi
call fcn.14021b7f0
nop
mov eax, dword [rbp + 0x50]
test al, 1
je 0x14013f9c9
and dword [rbp + 0x50], 0xfffffffe
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14013f9c9
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013f9c9
mov rcx, qword [rbp - 0x18]
call fcn.14021b7f0
nop
lea r8, [rbp - 0x30]
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.14003b030
mov rax, qword [rbx]
test rax, rax
je 0x14013f9e8
mov eax, dword [rax]
cmp eax, 1
jle 0x14013f9f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14003a8c0
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14013fa19
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013fa19
mov rcx, qword [rbp - 0x30]
call fcn.14021b7f0
add rsi, 0x18
inc r14d
cmp r14d, dword [rbp + 0x58]
jbe 0x14013f927
mov rcx, qword [rbp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r15d, 0xea
je 0x14013f8c7
test r15d, r15d
sete al
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140144140
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
sub r10, r8
mov r11d, r9d
cmp rdx, 0x20
jb 0x1401441c3
mov qword [rsp + 0x10], rbx
lea rbx, [r8 + 0x10]
mov qword [rsp], rdi
mov edi, 0x10
sub rdi, r8
nop dword [rax + rax]
movdqu xmm0, xmmword [rbx + r10 - 0x10]
add r11, 0x20
movdqu xmm2, xmmword [rbx + r10]
lea rbx, [rbx + 0x20]
movdqa xmm1, xmm0
lea rax, [rdi + rbx]
psrlw xmm0, 8
psllw xmm1, 8
xorps xmm1, xmm0
movdqa xmm0, xmm2
psllw xmm0, 8
psrlw xmm2, 8
xorps xmm0, xmm2
movdqu xmmword [rbx - 0x20], xmm0
movdqu xmmword [rbx - 0x30], xmm1
cmp rax, rdx
jbe 0x140144170
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [r11 + 0x10]
cmp rax, rdx
ja 0x1401441ec
movdqu xmm0, xmmword [r11 + rcx]
movdqa xmm1, xmm0
psrlw xmm0, 8
psllw xmm1, 8
xorps xmm1, xmm0
movdqu xmmword [r11 + r8], xmm1
mov r11, rax
cmp r11, rdx
jae 0x14014421a
lea rax, [r11 + r8]
cmp r9, 0x10
jae 0x14014421a
movzx ecx, word [r10 + rax]
add r9, 2
ror cx, 8
mov word [rax], cx
add rax, 2
mov rcx, rax
sub rcx, r8
cmp rcx, rdx
jb 0x1401441f5
mov rax, rdx
add rsp, 8
ret
Function at 0x14014a3d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xd4], 1
je 0x1401371a9
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.0]
mov dword [rbx + 0xd4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14014a3d0
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x28]
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
jne 0x14014a4df
cmp dword [rsi + 0xd0], 0xffffffff
jne 0x14014a55e
mov rcx, qword [rsi + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014a555
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x58], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14014a4a2
nop word [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014a49a
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014a49a
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14014a450
test rdi, rdi
je 0x14014a4a2
mov rax, rdi
jmp 0x14014a56c
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401100d0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140134c50
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14014a555
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jmp 0x14014a549
call fcn.14022bbe8
mov ecx, eax
call fcn.14022b9e4
cmp rax, 0xffffffffffffffff
je 0x14014a55e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14014a55e
mov rcx, qword [rsi + 0xa8]
call fcn.1402298a0
test eax, eax
je 0x14014a55e
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401102b0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140134c50
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014a555
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014a555
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
mov rax, 0xffffffffffffffff
jmp 0x14014a56c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1401371d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret