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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400230af
mov rdx, qword [rcx]
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400230d0
mov rcx, rdi
call fcn.1400088b0
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400230f7
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x14002319e
mov word [rsp + 0x70], bp
lea rdx, [rsp + 0x70]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bp
lea rax, [rsp + 0x70]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140023133
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.1400088b0
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140025150
nop
cmp rdi, rax
je 0x140023189
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14002317d
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x50]
call fcn.140008840
nop
lea rcx, [rsp + 0x28]
call fcn.140008840
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140025fa0
nop
cmp rdi, rax
je 0x1400231cb
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400231bf
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x50]
call fcn.140008840
mov rax, rdi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400250c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400250d3
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14002510d
cmp rcx, 8
jb 0x1400250eb
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025105
test al, 0x10
je 0x140025105
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
mov rdx, rbx
cmp rcx, 8
jb 0x14002511e
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete dil
test eax, eax
jne 0x140025141
mov edx, dword [0x140177b90]
mov rcx, rbx
call fcn.1400262d0
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140025830
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140025914
mov rax, qword [rsp + 0x50]
lea rdx, [0x14014ce5c]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400258c0
lea rcx, [rsp + 0x28]
call fcn.1400088b0
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x1400258ff
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400088b0
nop
lea rcx, [rsp + 0x28]
call fcn.140008840
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400261d0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400261e7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x140026230
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140026230
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.1400262d0
cmp qword [rbx + 0x18], 8
jb 0x140026216
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
Function at 0x1400262d0
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xa0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor dil, dil
mov ebp, edx
mov rbx, rcx
cmp edx, 0xffffffff
je 0x14002647c
test edx, 0xffff0000
jne 0x140026324
cmp qword [rcx + 0x18], 8
jb 0x140026310
mov rbx, qword [rcx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
jmp 0x140026480
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x90], r15
xor r15d, r15d
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
jb 0x140026350
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x98], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140026439
call fcn.140026240
mov r14, rax
test rax, rax
je 0x140026444
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x78], 5
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
lea ecx, [rsi + 1]
mov dword [rsp + 0x5c], 1
movdqu xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x74], r15d
mov qword [rsp + 0x80], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14002642c
cmp qword [rbx + 0x18], 8
jb 0x140026401
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov qword [rsp + 0x20], r15
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
mov esi, eax
sete dil
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x140026444
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
test rcx, rcx
je 0x14002646c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002647c
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0xa0
pop rdi
pop rbp
pop rbx
ret
Function at 0x140026790
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov rsi, 0xffffffffffffffff
mov qword [rbp + 7], rsi
cmp qword [rcx + 0x18], 8
jb 0x1400267d0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002695c
test al, 0x10
je 0x14002695c
xor r14d, r14d
mov qword [rbp + 7], r14
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.140025730
nop
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.140022bf0
test eax, eax
jne 0x14002683b
xor eax, eax
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rcx, qword [rbp + 0x17]
xor r9d, r9d
lea r8, [rbp + 0xf]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rbp + 0xf]
mov qword [rbp + 7], rax
jmp 0x14002692b
lea rax, [rbp + 7]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x39], 1
lea rax, [0x140026770]
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x21], 0
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400241d0
mov byte [rbp - 0x21], 1
cmp qword [rdi + 0x18], 8
jb 0x140026893
mov rdi, qword [rdi]
lea rdx, [0x14014ce5c]
test rdi, rdi
cmovne rdx, rdi
mov qword [rbp - 9], r14
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r14w
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400268b2
mov r8, rsi
lea rcx, [rbp - 0x19]
call fcn.1400088b0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.140026ef0
nop
lea rcx, [rbp - 0x19]
call fcn.140008840
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400268ff
cmp byte [rbp - 0x21], 0
je 0x1400268fb
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002691d
cmp byte [rbp - 0x21], 0
je 0x140026919
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x29], r14
mov byte [rbp - 0x21], 0
lea rcx, [rbp - 0x49]
call fcn.14001b870
nop
lea rcx, [rbp + 0x17]
call fcn.140008840
mov rax, qword [rbp + 7]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rdi + 0x18], 8
jb 0x140026966
mov rdi, qword [rdi]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rsi
je 0x140026934
xor eax, eax
mov qword [rbp + 0xf], rax
lea rdx, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0xf]
jmp 0x140026938
Function at 0x140026d90
Capabilities:
Get file version info

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
mov r14, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x28], edi
jb 0x140026dbb
mov rcx, qword [rcx]
mov qword [rsp + 0x68], rbx
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x70], rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
je 0x140026ebf
mov esi, ebp
cmp rbp, 0x1000
jb 0x140026e0e
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x140026ee2
call fcn.1400e9d8c
test rax, rax
je 0x140026ee8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140026e19
mov rcx, rsi
call fcn.1400e9d8c
mov rbx, rax
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400ec680
cmp qword [r14 + 0x18], 8
jb 0x140026e30
mov r14, qword [r14]
mov edx, dword [rsp + 0x28]
mov r9, rbx
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140026e8e
lea r9, [rsp + 0x2c]
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], edi
lea rdx, [0x14014ce60]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140026e8e
cmp dword [rsp + 0x2c], edi
je 0x140026e8e
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x140026e8e
mov edi, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rdi, 0x20
or rdi, rax
test rbx, rbx
je 0x140026ebf
cmp rsi, 0x1000
jb 0x140026eb4
mov rcx, qword [rbx - 8]
add rsi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140026ee8
mov rbx, rcx
mov rdx, rsi
mov rcx, rbx
call fcn.1400e9d84
mov rsi, qword [rsp + 0x70]
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
call fcn.1400012d0
int3
call fcn.1400f35b0
int3
Function at 0x140027840
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14017b638]
test ecx, ecx
je 0x140027915
cmp ecx, 2
jne 0x140027a07
test rax, rax
je 0x140027a07
lea rax, [0x14017b668]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
mov rcx, qword [0x14017b668]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
test eax, eax
jne 0x1400278a3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [0x14017b670], rax
mov byte [rsp + 0x28], bl
xor esi, esi
mov rcx, qword [0x14017b638]
test rcx, rcx
je 0x1400278d9
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [0x14017b638]
test rcx, rcx
je 0x1400278cf
mov rax, qword [rcx]
lea edx, [rsi + 1]
call qword [rax]
mov rcx, rsi
mov qword [0x14017b638], rcx
test bl, bl
je 0x140027905
mov qword [0x14017b670], rsi
mov rcx, qword [0x14017b668]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [0x14017b638]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
test rax, rax
jne 0x140027a07
lea rax, [0x14017b668]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
mov rcx, qword [0x14017b668]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bpl
test eax, eax
jne 0x140027955
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [0x14017b670], rax
mov byte [rsp + 0x28], bpl
xor esi, esi
mov rdi, qword [0x14017b638]
test rdi, rdi
jne 0x1400279fb
lea ecx, [rsi + 0x50]
call fcn.1400e9d8c
mov rdi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rax + 8], sil
mov dword [rax + 0x28], esi
lea rax, vtable.SingletonManager.0
mov qword [rdi], rax
lea rbx, [rdi + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea ecx, [rsi + 0x48]
call fcn.1400e9d8c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rdi + 0x40], rsi
mov qword [rdi + 0x48], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x40], rax
mov qword [0x14017b638], rdi
test bpl, bpl
jne 0x1400278dd
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140029590
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
mov esi, r9d
mov rdi, rcx
test rcx, rcx
je 0x1400295be
mov word [rcx], ax
mov r8d, esi
mov dword [rsp + 0x20], eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140029624
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140029687
mov r8d, esi
xor edx, edx
mov ecx, 0x1010
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140029624
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140029687
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140029687
mov r9d, 0x104
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x14002967e
mov r8d, 0x104
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x14002967e
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
mov r8, rdi
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov rcx, rdi
call fcn.140029040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002bd00
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14002bd32
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x14002bd32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov rax, rbx
mov qword [rbx + 0x28], rcx
cmp qword [rbx + 0x18], 8
jb 0x14002bd45
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax], cx
cmp rbx, rdi
je 0x14002bd6a
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14002bd5e
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400088b0
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14002bd77
mov r8, qword [rdi]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002be01
cmp eax, 5
je 0x14002bdb1
cmp eax, 0xb7
je 0x14002bdcf
cmp qword [rbx + 0x28], 0
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 8
jb 0x14002bdbb
mov rdi, qword [rdi]
mov r8, rdi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002be0c
cmp byte [rbx + 0x20], 0
jne 0x14002be0c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
cmp qword [rbx + 0x28], 0
mov byte [rbx + 0x20], al
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x28], 0
je 0x14002be11
mov byte [rbx + 0x20], 1
cmp qword [rbx + 0x28], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x14002c420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rdx
mov rsi, qword [rdx]
test rsi, rsi
jne 0x14002c46f
mov rax, qword [rcx + 8]
xor edi, edi
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
mov dword [rdx + 0x10], edi
jmp 0x14002c5c9
mov r14, qword [rcx + 8]
test r14, r14
je 0x14002c489
xor edi, edi
cmp dword [rdx + 0x10], 3
jne 0x14002c5bc
jmp 0x14002c595
mov qword [rcx + 8], 0xffffffffffffffff
mov ecx, 0x30
call fcn.1400e9d8c
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov qword [rax], rdi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rbp + 0x10], rax
mov qword [rax + 0x20], rbp
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14002cb80
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x18], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rsp + 0x88], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rbp + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, qword [rbp + 0x10]
lea r8, [0x14002c600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x18], rax
mov r14d, dword [rsp + 0x40]
mov qword [rbp + 8], r14
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002c57f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], rdi
cmp dword [rbx + 0x10], 3
jne 0x14002c5bc
mov rsi, qword [rbx]
test rsi, rsi
je 0x14002c5bc
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14002c5af
cmp rcx, rsi
mov r8, qword [rcx]
setne dl
call qword [r8 + 0x20]
mov qword [rsi + 0x38], rdi
mov edx, 0x40
mov rcx, rsi
call fcn.1400e9d84
mov rax, r14
mov dword [rbx + 0x10], edi
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14002f3c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x14002f404
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002f3f0
ret
Function at 0x140050bd0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140050bfc
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140050c26
mov edx, 0x80
mov rcx, rbx
call fcn.1400262d0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050c20
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete dil
je 0x140050d12
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050c40
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140050c52
mov al, 1
jmp 0x140050dd2
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050c5f
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140050cc7
test al, 0x10
je 0x140050cc7
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050c7b
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x140050dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140050dce
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.1400262d0
cmp qword [rbx + 0x18], 8
jb 0x140050cb2
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
jmp 0x140050dce
mov edx, 0x1f01ff
mov rcx, rbx
call fcn.1400262d0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050ce1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140050d0b
mov edx, 0x80
mov rcx, rbx
call fcn.1400262d0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140050d05
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete dil
test dil, dil
jne 0x140050dce
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov rbp, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.14002aa00
mov rsi, rax
cmp qword [rax + 0x18], 0x10
jb 0x140050d62
mov rsi, qword [rax]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001a4c0
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r9, qword [rsp + 0x38]
mov qword [rsp + 0x20], rsi
lea r8, str.Failed_to_delete_file:__s_r_n_s
mov edx, 2
mov rcx, rbp
call fcn.14001de90
nop
lea rcx, [rsp + 0x38]
call fcn.140008a50
nop
lea rcx, [rsp + 0x58]
call fcn.140008a50
movzx eax, dil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret