joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ff80
Capabilities:
Copy file

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r14, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005c210
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14005c210
mov rdi, rax
mov rcx, rsi
call fcn.140022180
mov rbx, rax
mov rcx, rdi
call fcn.140022180
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140060014
cmp eax, ebx
je 0x140060023
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140060023
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140060041
cmp eax, 0xffffffff
je 0x14006004f
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14006004f
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test dil, dil
jne 0x14006006e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140060090
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
movzx esi, dl
lea rdx, [rbp + 0x7f]
call fcn.14005bb80
nop
or edi, 0xffffffff
mov rax, qword [rbp + 0x7f]
xor ebx, ebx
cmp dword [rax + 4], ebx
jne 0x1400600f3
mov qword [rbp - 0x11], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
lea rax, [0x140347c70]
mov qword [rbp + 7], rax
lea rdx, [0x1401fc968]
lea rcx, [rbp - 0x11]
jmp 0x140060133
mov r9d, 1
xor r8d, r8d
movzx edx, bx
lea rcx, [rbp + 0x7f]
call fcn.14001cad0
cmp eax, 0xffffffff
je 0x14006014a
mov qword [rbp + 0xf], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
lea rax, [0x140347c70]
mov qword [rbp + 0x27], rax
lea rdx, [0x1401fc990]
lea rcx, [rbp + 0xf]
call fcn.140013380
call fcn.14017f798
mov dword [rax], 0x16
xor bl, bl
jmp 0x14006025c
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.1400266a0
nop
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.1400288a0
mov rdx, qword [rbp + 0x7f]
mov qword [rbp + 0x37], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x7f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
test eax, eax
je 0x140060194
cmp eax, 0xffffffff
je 0x1400601a3
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400601a3
mov rcx, qword [rbp - 0x21]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x19]
mov eax, dword [rcx]
test eax, eax
je 0x1400601c1
cmp eax, 0xffffffff
je 0x1400601cf
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400601cf
mov rcx, qword [rbp - 0x19]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x29]
call fcn.140082710
nop
lea rcx, [rbp - 0x29]
call fcn.140022180
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x77], eax
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x14006021d
cmp eax, 0xffffffff
je 0x14006022b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006022b
mov rcx, qword [rbp - 0x29]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test bl, bl
je 0x140060233
mov bl, 1
jmp 0x14006025c
test sil, sil
jne 0x14006023c
xor bl, bl
jmp 0x14006025c
lea rcx, [rbp + 0x7f]
cmp dword [rbp + 0x77], 0xb7
jne 0x140060252
xor edx, edx
call fcn.1400627c0
jmp 0x140060259
xor edx, edx
call fcn.1400602a0
movzx ebx, al
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x140060278
cmp eax, 0xffffffff
je 0x140060286
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140060286
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
movzx eax, bl
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400602a0
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
movzx esi, dl
mov rdi, rcx
mov dword [rsp + 0x40], 2
lea rax, [0x1401fb948]
mov qword [r11 - 0x30], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, 1
lea rdx, [r11 - 0x18]
call fcn.140020b30
test al, al
je 0x140060316
lea rcx, [rsp + 0x98]
call fcn.1400282f0
mov r8d, 1
movzx edx, word [rax]
mov rcx, rdi
call fcn.14001b7e0
cmp eax, 3
jle 0x1400603bc
mov rcx, qword [rdi]
cmp dword [rcx + 4], 2
jne 0x14006032f
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
je 0x1400603bc
or ebx, 0xffffffff
test sil, sil
je 0x140060399
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140082710
nop
lea rcx, [rsp + 0x28]
call fcn.140022180
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14006037f
cmp eax, ebx
je 0x14006038d
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jne 0x14006038d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test sil, sil
je 0x140060399
mov al, 1
jmp 0x1400604a7
lea rcx, [rsp + 0x20]
call fcn.1400282f0
mov r9d, 1
mov r8d, ebx
movzx edx, word [rax]
mov rcx, rdi
call fcn.14001d0c0
cmp eax, 1
jge 0x1400603c3
xor al, al
jmp 0x1400604a7
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001d210
nop
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400602a0
test al, al
je 0x140060474
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140082710
nop
lea rcx, [rsp + 0x30]
call fcn.140022180
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140060431
cmp eax, 0xffffffff
je 0x14006043f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006043f
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test sil, sil
je 0x140060449
mov dil, 1
jmp 0x140060477
mov byte [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.1400627c0
test al, al
je 0x140060474
cmp byte [rsp + 0x90], 0
je 0x140060474
mov dil, 1
jmp 0x140060477
xor dil, dil
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x140060495
cmp eax, 0xffffffff
je 0x1400604a3
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400604a3
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
movzx eax, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400627c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x140062808
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 4]
cmp r8d, 2
jne 0x14006287e
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x14006287e
cmp dword [rax], 1
ja 0x140062832
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x140062848
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.14001f090
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
mov ecx, 0x5c
mov word [r8 + rax], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
xor ecx, ecx
mov word [r8 + rax], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140082710
nop
lea rcx, [rsp + 0x28]
call fcn.140022180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400628e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400628b8
cmp eax, 0x20
jne 0x1400628e4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1400628ce
lock inc dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140061910
test al, al
cmovne ebx, dword [rsp + 0x40]
test rdi, rdi
je 0x1400628f1
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x1400628fa
xor bl, bl
jmp 0x140062900
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x140062922
cmp eax, edi
je 0x140062931
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140062931
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14006294f
cmp eax, 0xffffffff
je 0x14006295d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14006295d
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14015c110
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x140062fb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x4e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], 0
lea rax, [0x1401e6610]
mov qword [rcx], rax
mov dword [rsp + 0x38], 1
xor sil, sil
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140347bf0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140347c60]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x140063060
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140347bf0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140347c60]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14006317c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140347c50]
call qword [rax]
test eax, eax
js 0x140063171
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14005c210
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
call fcn.140022180
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [rbx + 0x28]
mov ebp, eax
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx]
or ebx, 0xffffffff
test edx, edx
je 0x1400630d5
cmp edx, ebx
je 0x1400630e3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400630e3
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test ebp, ebp
js 0x140063166
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x70]
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
call qword [rax + 0x18]
test eax, eax
jne 0x140063166
mov r8d, ebx
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x50]
call fcn.1400091b0
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x68], rcx
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140063158
cmp eax, 0xffffffff
je 0x140063166
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140063166
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test sil, sil
je 0x140063187
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14015c110
mov rbx, qword [rsp + 0x510]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140063c00
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r14, rdx
mov rsi, rcx
call fcn.140062990
test al, al
je 0x140063c6b
mov qword [rsp + 0x28], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rax, [0x140347c70]
mov qword [rsp + 0x40], rax
lea rdx, [0x1401fc968]
lea rcx, [rsp + 0x28]
call fcn.140013380
call fcn.14017f798
mov dword [rax], 0x16
xor al, al
jmp 0x140063d87
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14005c210
nop
xor edi, edi
lea r9d, [rdi + 1]
xor r8d, r8d
movzx edx, di
mov rcx, rax
call fcn.14001cad0
cmp eax, 0xffffffff
setne bpl
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140063cbf
cmp eax, ebx
je 0x140063ccd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140063ccd
mov rcx, qword [rsp + 0xa0]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test bpl, bpl
je 0x140063d01
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea rax, [0x140347c70]
mov qword [rsp + 0x60], rax
lea rdx, [0x1401fc990]
lea rcx, [rsp + 0x48]
jmp 0x140063c54
lea rdx, [rsp + 0xa8]
mov rcx, rsi
call fcn.14005c210
nop
mov rcx, rax
call fcn.140022180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x140063d4d
cmp eax, 0xffffffff
je 0x140063d5b
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140063d5b
mov rcx, qword [rsp + 0xa8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test dil, dil
jne 0x140063d83
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, dil
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 0x1400642c0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140082710
nop
mov rcx, rax
call fcn.140022180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x140064314
cmp eax, 0xffffffff
je 0x140064322
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140064322
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140064b60
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rdi, rdx
mov r14, rcx
xor bpl, bpl
xor esi, esi
call fcn.14005bf80
test al, al
je 0x140064c24
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14005bb80
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
movzx ecx, word [rdx + rcx]
call fcn.140021610
mov word [rsp + 0x80], ax
movzx ecx, ax
sub ecx, 0x41
mov ebx, 1
shl ebx, cl
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140064c04
cmp eax, 0xffffffff
je 0x140064c12
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140064c12
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
and ebx, esi
setne bpl
neg ebx
sbb esi, esi
and esi, 0x14
jmp 0x140064d23
lea rdx, [rsp + 0x88]
mov rcx, r14
call fcn.14005c210
nop
mov dword [rsp + 0x20], 7
lea rax, [0x1401fc9f0]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.140020b30
test al, al
je 0x140064cee
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x10]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x88]
call fcn.14001cad0
mov r8d, eax
test eax, eax
jle 0x140064cd5
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x10]
inc r8d
mov r9d, ebx
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x88]
call fcn.14001cad0
test eax, eax
jle 0x140064cd5
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 4]
dec edx
cmp eax, edx
jne 0x140064cf6
lea rcx, [rsp + 0x88]
call fcn.140064ff0
test al, al
je 0x140064cee
mov esi, 0x10
movzx ebp, bl
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x140064d15
cmp eax, 0xffffffff
je 0x140064d23
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140064d23
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
test bpl, bpl
je 0x140064d4c
mov dword [rdi + 0x10], esi
test sil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or dword [rdi + 4], ecx
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
movzx eax, bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140064ec0
Capabilities:
Enumerate network shares

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov r15, rcx
xor r14d, r14d
mov dword [rax + 0x18], r14d
mov dword [rax - 0x48], r14d
mov dword [rax + 0x20], r14d
nop
mov rcx, r15
call fcn.140022180
mov rcx, rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x50]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov ebp, eax
test eax, eax
je 0x140064f3f
cmp eax, 0xea
jne 0x140064fb9
mov rbx, qword [rsp + 0x50]
mov edi, 1
cmp dword [rsp + 0xa0], edi
jb 0x140064fb9
test rsi, rsi
je 0x140064faa
cmp dword [rbx + 8], 0
jne 0x140064faa
or r8d, 0xffffffff
mov rdx, qword [rbx]
lea rcx, [rsp + 0x48]
call fcn.1400091b0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000d510
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x140064f9c
cmp eax, 0xffffffff
je 0x140064faa
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140064faa
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
add rbx, 0x18
inc edi
cmp edi, dword [rsp + 0xa0]
jbe 0x140064f52
mov rcx, qword [rsp + 0x50]
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebp, 0xea
je 0x140064ef0
test ebp, ebp
sete al
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400808c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
mov ecx, r9d
cmp rdx, 0x20
jb 0x140080947
mov qword [rsp + 0x10], rbx
lea r11, [r8 + 0x10]
mov qword [rsp], rdi
mov rbx, r10
sub rbx, r8
mov edi, 0x10
sub rdi, r8
nop
movdqu xmm1, xmmword [rbx + r11 - 0x10]
add rcx, 0x20
movdqu xmm2, xmmword [rbx + r11]
lea r11, [r11 + 0x20]
movdqa xmm0, xmm1
lea rax, [rdi + r11]
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movdqa xmm1, xmm2
psllw xmm1, 8
psrlw xmm2, 8
pxor xmm1, xmm2
movdqu xmmword [r11 - 0x30], xmm0
movdqu xmmword [r11 - 0x20], xmm1
cmp rax, rdx
jbe 0x1400808f0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [rcx + 0x10]
cmp rax, rdx
ja 0x140080971
movdqu xmm1, xmmword [rcx + r10]
movdqa xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movdqu xmmword [rcx + r8], xmm0
mov rcx, rax
cmp rcx, rdx
jae 0x1400809a3
sub r10, r8
lea rax, [rcx + r8]
neg r8
cmp r9, 0x10
jae 0x1400809a3
movzx ecx, word [rax + r10]
add r9, 2
rol cx, 8
mov word [rax], cx
add rax, 2
lea rcx, [r8 + rax]
cmp rcx, rdx
jb 0x140080980
mov rax, rdx
add rsp, 8
ret
Function at 0x1400830d0
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 + 0xa4], 1
je 0x14005d712
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 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 0x1400830d0
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x78]
test rax, rax
jne 0x140083204
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400831ff
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x140083268
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x140239ec8]
nop word [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140083198
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400831fa
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x1400831fa
jmp 0x140083140
test rbx, rbx
jne 0x1400831fa
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140043190
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400831e3
cmp eax, 0xffffffff
je 0x140083268
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083268
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x14008327c
mov rax, rbx
jmp 0x14008327c
test rax, rax
je 0x14008326e
call fcn.140082e20
test al, al
je 0x14008326e
mov rcx, qword [rsi + 0x78]
call fcn.140187e18
test eax, eax
je 0x14008326e
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140043330
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008325a
cmp eax, 0xffffffff
je 0x140083268
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083268
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x14008327c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14005d730
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140083490
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 + 0x40], 0xfdffffff
cmp dword [rbx + 0xa4], 2
je 0x14005e209
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 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 0x140083490
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x78], 0
jne 0x1400835b9
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400835b9
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x1400835ae
mov rdi, r8
mov qword [rax + 0x20], r8
xor r12d, r12d
mov ebx, r12d
mov qword [rax - 0x40], 0x2000000
nop word [rax + rax]
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x38]
cmp rdi, 0x2000000
cmovge rax, rcx
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008355d
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400835b4
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x1400835b4
jmp 0x140083500
test rbx, rbx
jne 0x1400835b4
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140043190
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400835a0
cmp eax, 0xffffffff
je 0x1400835ae
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400835ae
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x1400835be
mov rax, rbx
jmp 0x1400835be
call fcn.14005e230
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