joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140143780
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 [0x14038d940]
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 0x1401437dd
lock inc dword [rax]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov r14d, 0x5c
cmp r9, 2
jne 0x1401437ff
cmp word [r8 + 2], 0x3a
jne 0x1401437ff
movzx edx, r14w
lea rcx, [rsp + 0x38]
call fcn.140087d10
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14014e870
nop
lea rcx, [rsp + 0x58]
call fcn.140094620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, 0xffffffff
cmp eax, 0xffffffff
jne 0x14014393a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140143846
cmp eax, 0x20
jne 0x14014393a
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 0x140143869
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.14008bdb0
test al, al
je 0x1401438b7
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14008a6e0
mov r8d, 1
movzx edx, r14w
lea rcx, [rsp + 0x20]
call fcn.14008bdb0
test al, al
jne 0x140143890
mov edx, 0x3a
lea r8d, [rdx - 0x39]
lea rcx, [rsp + 0x20]
call fcn.14008bdb0
test al, al
jne 0x14014391b
lea rcx, [rsp + 0x20]
call fcn.140094620
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14014391b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140143915
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140143915
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
mov ebx, dword [rsp + 0x70]
jmp 0x14014393a
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14014393a
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014393a
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
test rsi, rsi
je 0x140143947
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x140143950
xor bl, bl
jmp 0x140143956
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140143976
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140143976
mov rcx, qword [rsp + 0x58]
call fcn.1402275a0
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140143993
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140143993
mov rcx, qword [rsp + 0x38]
call fcn.1402275a0
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402200b0
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 0x140144680
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 [0x14038d940]
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.1401bb0e0
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x14034d690]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x14034d6f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14014485b
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x14034d6e0]
mov rax, qword [rax]
call qword [case.0x1400f4c10.0]
test eax, eax
js 0x140144848
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x38]
mov rax, rbx
call qword [case.0x1400f4c10.0]
mov esi, eax
lea rbx, [r15 - 1]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140144786
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140144786
mov rcx, qword [rsp + 0x50]
call fcn.1402275a0
test esi, esi
js 0x140144836
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.0x1400f4c10.0]
test eax, eax
jne 0x140144836
mov r8, rbx
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x68]
call fcn.14008d720
nop
mov rsi, qword [rax]
mov qword [rax], r15
mov rbp, qword [rax + 8]
mov qword [rax + 8], r15
mov r14, qword [rax + 0x10]
mov qword [rax + 0x10], r15
mov dword [rsp + 0x30], 9
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140144815
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140144815
mov rcx, qword [rsp + 0x68]
call fcn.1402275a0
mov rcx, qword [rdi]
mov qword [rdi], rsi
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
test rcx, rcx
je 0x140144836
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140144836
call fcn.1402275a0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f4c10.0]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f4c10.0]
nop
lea rcx, [rsp + 0x34]
call fcn.1401bb120
mov rax, rdi
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1402200b0
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140145240
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.14013bc00
test al, al
je 0x1401452a2
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x14014539c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14013bf80
nop
xor edi, edi
lea r9d, [rdi + 1]
xor r8d, r8d
movzx edx, di
mov rcx, rax
call fcn.14008ddd0
mov rbp, rax
lea ebx, [rdi - 1]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1401452e9
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x1401452e9
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
cmp rbp, 0xffffffffffffffff
je 0x14014532d
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x14014539c
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
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 0x140145371
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140145371
mov rcx, qword [rsp + 0x38]
call fcn.1402275a0
test edi, edi
jne 0x140145398
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 0x1401453c0
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.14013bc00
test al, al
je 0x14014542d
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x1401455ac
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.14013bf80
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008ddd0
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x140145471
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145471
mov rcx, qword [rbp - 0x29]
call fcn.1402275a0
cmp r15, 0xffffffffffffffff
je 0x1401454b4
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x1401455ac
mov rcx, rsi
call fcn.14013bc00
test al, al
jne 0x1401453f0
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.14013bf80
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008ddd0
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x140145505
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145505
mov rcx, qword [rbp - 0x11]
call fcn.1402275a0
cmp r15, 0xffffffffffffffff
jne 0x140145477
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
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 0x14014556e
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014556e
mov rcx, qword [rbp + 7]
call fcn.1402275a0
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x140145589
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140145589
mov rcx, qword [rbp + 0x1f]
call fcn.1402275a0
test ebx, ebx
jne 0x1401455a8
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 0x1401455d0
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.14013bc00
test al, al
je 0x14014563d
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x1401457c0
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.14013bf80
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008ddd0
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x140145681
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145681
mov rcx, qword [rbp - 0x29]
call fcn.1402275a0
cmp r15, 0xffffffffffffffff
je 0x1401456c4
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor al, al
jmp 0x1401457c0
mov rcx, rsi
call fcn.14013bc00
test al, al
jne 0x140145600
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.14013bf80
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008ddd0
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x140145715
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145715
mov rcx, qword [rbp - 0x11]
call fcn.1402275a0
cmp r15, 0xffffffffffffffff
jne 0x140145687
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
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 0x140145782
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145782
mov rcx, qword [rbp + 7]
call fcn.1402275a0
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14014579d
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14014579d
mov rcx, qword [rbp + 0x1f]
call fcn.1402275a0
test ebx, ebx
jne 0x1401457bc
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 0x140146040
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.14013bb30
test al, al
je 0x1401460e2
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.14013b6f0
mov rcx, qword [rax + 8]
movzx ecx, word [rcx]
call fcn.140093470
lea ecx, [rax - 0x41]
mov ebx, 1
shl ebx, cl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401460d0
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401460d0
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
and ebx, edi
setne sil
neg ebx
sbb edi, edi
and edi, 0x14
jmp 0x1401461ad
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14013bf80
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.1400928a0
test al, al
je 0x14014618b
mov rdx, qword [rsp + 0x48]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008ddd0
test eax, eax
jle 0x140146175
mov rdx, qword [rsp + 0x48]
inc eax
movsxd r8, eax
mov r9d, ebx
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008ddd0
test eax, eax
jle 0x140146175
mov rcx, qword [rsp + 0x50]
dec rcx
cdqe
cmp rax, rcx
jne 0x14014618b
lea rcx, [rsp + 0x40]
call fcn.1401465f0
test al, al
je 0x14014618b
mov edi, 0x10
movzx esi, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401461ad
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401461ad
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
test sil, sil
je 0x1401461d7
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 0x140146410
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.140094620
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 0x140146493
cmp eax, 0xea
jne 0x1401465aa
mov rsi, qword [rbp - 0x38]
mov r14d, 1
cmp dword [rbp + 0x58], r14d
jb 0x1401465aa
test rbx, rbx
je 0x140146599
cmp dword [rsi + 8], 0
jne 0x140146599
mov r8, 0xffffffffffffffff
mov rdx, qword [rsi]
lea rcx, [rbp - 0x18]
call fcn.14008d720
nop
mov rcx, qword [rax]
mov qword [rax], r13
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rax + 8], r13
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rbp - 0x20], rcx
mov eax, dword [rbp + 0x50]
or eax, 5
mov dword [rbp + 0x50], eax
test al, 2
je 0x14014651d
and dword [rbp + 0x50], 0xfffffffd
test rdi, rdi
je 0x14014651d
mov eax, 0xffffffff
lock xadd dword [rdi], eax
cmp eax, 1
jne 0x14014651d
mov rcx, rdi
call fcn.1402275a0
nop
mov eax, dword [rbp + 0x50]
test al, 1
je 0x140146549
and dword [rbp + 0x50], 0xfffffffe
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140146549
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146549
mov rcx, qword [rbp - 0x18]
call fcn.1402275a0
nop
lea r8, [rbp - 0x30]
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.14003b1b0
mov rax, qword [rbx]
test rax, rax
je 0x140146568
mov eax, dword [rax]
cmp eax, 1
jle 0x140146579
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14003aa60
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140146599
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146599
mov rcx, qword [rbp - 0x30]
call fcn.1402275a0
add rsi, 0x18
inc r14d
cmp r14d, dword [rbp + 0x58]
jbe 0x1401464a7
mov rcx, qword [rbp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r15d, 0xea
je 0x140146447
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 0x14014ac90
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 0x14014ad13
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 0x14014acc0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [r11 + 0x10]
cmp rax, rdx
ja 0x14014ad3c
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 0x14014ad6a
lea rax, [r11 + r8]
cmp r9, 0x10
jae 0x14014ad6a
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 0x14014ad45
mov rax, rdx
add rsp, 8
ret
Function at 0x14014f260
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 0x14013d9f9
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4c10.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 0x14014f260
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 0x14014f36f
cmp dword [rsi + 0xd0], 0xffffffff
jne 0x14014f3ee
mov rcx, qword [rsi + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014f3e5
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 0x14014f332
nop word [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014f32a
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014f32a
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 0x14014f2e0
test rdi, rdi
je 0x14014f332
mov rax, rdi
jmp 0x14014f3fc
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111160
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14013b460
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14014f3e5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jmp 0x14014f3d9
call fcn.140237cc8
mov ecx, eax
call fcn.140237ac4
cmp rax, 0xffffffffffffffff
je 0x14014f3ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14014f3ee
mov rcx, qword [rsi + 0xa8]
call fcn.140235980
test eax, eax
je 0x14014f3ee
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111340
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14013b460
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014f3e5
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014f3e5
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
mov rax, 0xffffffffffffffff
jmp 0x14014f3fc
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14013da20
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
Function at 0x14014f910
Capabilities:
Write 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
and dword [rbx + 0x70], 0xfdffffff
cmp dword [rbx + 0xd4], 2
je 0x14013e580
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4c10.0]
mov dword [rbx + 0xd4], 2
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 0x14014f910
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]
cmp qword [rcx + 0xa8], 0
jne 0x14014fa2b
cmp dword [rcx + 0xd0], 0xffffffff
jne 0x14014fa2b
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014fa22
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_WriteFile]
test eax, eax
je 0x14014f9df
nop dword [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014f9da
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014f9da
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_WriteFile]
test eax, eax
jne 0x14014f990
test rdi, rdi
je 0x14014f9df
mov rax, rdi
jmp 0x14014fa30
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111160
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.14013b460
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014fa22
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014fa22
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
mov rax, 0xffffffffffffffff
jmp 0x14014fa30
call fcn.14013e5a0
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