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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rax, [0x140193080]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14005d25d
cmp esi, 0x104
jbe 0x14005d205
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.14010bf48
mov r15, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005d1fb
mov r8d, esi
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1400090f0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005d1ed
cmp eax, ebx
je 0x14005d1fb
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005d1fb
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rcx, r15
call fcn.14010b6b0
jmp 0x14005d25d
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400090f0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005d24f
cmp eax, 0xffffffff
je 0x14005d25d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005d25d
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x14005d2e0
cmp ecx, 1
jle 0x14005d279
mov rcx, qword [rax + 0x10]
movzx r14d, word [rcx + rax + 2]
cmp r14w, 0x3a
jne 0x14005d2e0
mov rcx, qword [rax + 0x10]
movzx ecx, word [rax + rcx]
call fcn.140021860
mov esi, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x14005d2b8
mov eax, 0x20
mov word [rsp + 0x28], ax
movzx r8d, ax
lea edx, [rax - 0x1f]
lea rcx, [rsp + 0x20]
call fcn.140020640
jmp 0x14005d2d3
cmp dword [rax], 1
ja 0x14005d2c4
cmp qword [rax + 0x10], 0x18
je 0x14005d2d8
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001ec50
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], si
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140058e90
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005d312
cmp eax, 0xffffffff
je 0x14005d320
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005d320
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14010b650
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005efb0
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 [0x14042b130]
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 0x14005eff8
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 4]
cmp r8d, 2
jne 0x14005f06e
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x14005f06e
cmp dword [rax], 1
ja 0x14005f022
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x14005f038
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.14001ec50
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.14007ba80
nop
lea rcx, [rsp + 0x28]
call fcn.140022410
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005f0d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14005f0a8
cmp eax, 0x20
jne 0x14005f0d4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x14005f0be
lock inc dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14005e400
test al, al
cmovne ebx, dword [rsp + 0x40]
test rdi, rdi
je 0x14005f0e1
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x14005f0ea
xor bl, bl
jmp 0x14005f0f0
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x14005f112
cmp eax, edi
je 0x14005f121
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005f121
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005f13f
cmp eax, 0xffffffff
je 0x14005f14d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14005f14d
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14005f6c0
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 [0x14042b130]
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, [0x140193080]
mov qword [rcx], rax
mov dword [rsp + 0x38], 1
xor sil, sil
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1402dd760]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402dd7c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x14005f770
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1402dd760]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402dd7c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14005f88c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1402dd7b0]
call qword [rax]
test eax, eax
js 0x14005f881
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400596c0
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
call fcn.140022410
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 0x14005f7e5
cmp edx, ebx
je 0x14005f7f3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005f7f3
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test ebp, ebp
js 0x14005f876
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 0x14005f876
mov r8d, ebx
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x50]
call fcn.1400090f0
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 0x14005f868
cmp eax, 0xffffffff
je 0x14005f876
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005f876
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
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 0x14005f897
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x510]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060210
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
lea rdx, [rsp + 0x50]
call fcn.1400596c0
nop
mov rcx, rax
call fcn.140022410
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140060269
cmp eax, 0xffffffff
je 0x140060277
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140060277
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test bl, bl
jne 0x140060295
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 2
mov rcx, qword [rsp + 0x50]
mov qword [rdi], rcx
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400602b0
Capabilities:
Move 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.1400596c0
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400596c0
mov rdi, rax
mov rcx, rsi
call fcn.140022410
mov rbx, rax
mov rcx, rdi
call fcn.140022410
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14006033e
cmp eax, ebx
je 0x14006034d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006034d
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14006036b
cmp eax, 0xffffffff
je 0x140060379
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140060379
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test dil, dil
jne 0x140060398
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 0x1400603c0
Capabilities:
Move 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.1400596c0
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400596c0
mov rdi, rax
mov rcx, rsi
call fcn.140022410
mov rbx, rax
mov rcx, rdi
call fcn.140022410
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140060454
cmp eax, ebx
je 0x140060463
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140060463
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140060481
cmp eax, 0xffffffff
je 0x14006048f
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14006048f
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test dil, dil
jne 0x1400604ae
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 0x1400604d0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14007ba80
nop
mov rcx, rax
call fcn.140022410
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 0x140060524
cmp eax, 0xffffffff
je 0x140060532
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140060532
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140060c40
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.140059430
test al, al
je 0x140060d04
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.140059030
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
movzx ecx, word [rdx + rcx]
call fcn.140021860
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 0x140060ce4
cmp eax, 0xffffffff
je 0x140060cf2
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140060cf2
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
and ebx, esi
setne bpl
neg ebx
sbb esi, esi
and esi, 0x14
jmp 0x140060e03
lea rdx, [rsp + 0x88]
mov rcx, r14
call fcn.1400596c0
nop
mov dword [rsp + 0x20], 7
lea rax, str._UNC
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.140020ee0
test al, al
je 0x140060dce
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.14001b850
mov r8d, eax
test eax, eax
jle 0x140060db5
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.14001b850
test eax, eax
jle 0x140060db5
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 4]
dec edx
cmp eax, edx
jne 0x140060dd6
lea rcx, [rsp + 0x88]
call fcn.1400610c0
test al, al
je 0x140060dce
mov esi, 0x10
movzx ebp, bl
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x140060df5
cmp eax, 0xffffffff
je 0x140060e03
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140060e03
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test bpl, bpl
je 0x140060e2c
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 0x140060f90
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.140022410
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 0x14006100f
cmp eax, 0xea
jne 0x140061089
mov rbx, qword [rsp + 0x50]
mov edi, 1
cmp dword [rsp + 0xa0], edi
jb 0x140061089
test rsi, rsi
je 0x14006107a
cmp dword [rbx + 8], 0
jne 0x14006107a
or r8d, 0xffffffff
mov rdx, qword [rbx]
lea rcx, [rsp + 0x48]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000cfb0
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x14006106c
cmp eax, 0xffffffff
je 0x14006107a
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006107a
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
add rbx, 0x18
inc edi
cmp edi, dword [rsp + 0xa0]
jbe 0x140061022
mov rcx, qword [rsp + 0x50]
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebp, 0xea
je 0x140060fc0
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 0x140079c50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
mov ecx, r9d
cmp rdx, 0x20
jb 0x140079cd7
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 0x140079c80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [rcx + 0x10]
cmp rax, rdx
ja 0x140079d01
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 0x140079d33
sub r10, r8
lea rax, [rcx + r8]
neg r8
cmp r9, 0x10
jae 0x140079d33
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 0x140079d10
mov rax, rdx
add rsp, 8
ret
Function at 0x14007c4f0
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 0x14005a972
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 0x14007c4f0
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 0x14007c624
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x14007c61f
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x14007c688
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401fb788]
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 0x14007c5b8
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14007c61a
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x14007c61a
jmp 0x14007c560
test rbx, rbx
jne 0x14007c61a
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140041f90
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140058d30
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14007c603
cmp eax, 0xffffffff
je 0x14007c688
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c688
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
or rax, 0xffffffffffffffff
jmp 0x14007c69c
mov rax, rbx
jmp 0x14007c69c
test rax, rax
je 0x14007c68e
call fcn.14007c240
test al, al
je 0x14007c68e
mov rcx, qword [rsi + 0x78]
call fcn.140137370
test eax, eax
je 0x14007c68e
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140042130
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140058d30
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14007c67a
cmp eax, 0xffffffff
je 0x14007c688
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c688
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
or rax, 0xffffffffffffffff
jmp 0x14007c69c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14005a990
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 0x14007c8b0
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 0x14005b0e9
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 0x14007c8b0
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 0x14007c9d9
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x14007c9d9
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x14007c9ce
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 0x14007c97d
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14007c9d4
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x14007c9d4
jmp 0x14007c920
test rbx, rbx
jne 0x14007c9d4
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140041f90
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140058d30
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14007c9c0
cmp eax, 0xffffffff
je 0x14007c9ce
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c9ce
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
or rax, 0xffffffffffffffff
jmp 0x14007c9de
mov rax, rbx
jmp 0x14007c9de
call fcn.14005b110
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