joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400234e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xb8
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp - 1], rax
mov qword [rbp - 0x29], r9
mov r13, r8
mov qword [rbp - 0x79], rdx
mov rdi, rcx
mov qword [rbp - 0x71], rcx
mov rax, qword [rbp + 0x77]
mov r14, qword [rbp + 0x7f]
xor ebx, ebx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x11], rbx
mov qword [rbp - 9], 7
mov word [rbp - 0x21], bx
test rax, rax
je 0x140023593
lea r8, str..saving
cmp word [rax], bx
cmovne r8, rax
mov rdx, rcx
lea rcx, [rbp - 0x49]
call fcn.140024180
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140023f80
nop
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rdx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.140009050
nop
lea rcx, [rbp - 0x69]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x49]
call fcn.140008fe0
lea r12, [rbp - 0x21]
cmp qword [rbp - 0x11], 0
cmove r12, rdi
test r14, r14
je 0x1400235af
test r13, r13
js 0x1400235af
xor r15b, r15b
jmp 0x1400235b7
mov r15b, 1
test r14, r14
je 0x1400235bf
mov rsi, qword [r14]
test rsi, rsi
jne 0x14002362c
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.140024a70
nop
mov rcx, rax
call fcn.140024ba0
nop
lea rcx, [rbp - 0x49]
call fcn.140008fe0
lea rdx, [0x14015c074]
mov rcx, r12
call fcn.1400266e0
mov rsi, rax
test r14, r14
je 0x1400235f8
mov qword [r14], rax
test rsi, rsi
je 0x1400236a4
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x29], rbx
lea r8, [rbp - 0x29]
mov rcx, rsi
test rax, rax
jns 0x140023620
mov r9d, 2
mov rdx, rbx
jmp 0x140023626
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor dil, dil
test r13, r13
js 0x140023669
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x14002365f
mov dword [rbp - 0x29], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [rbp - 0x29]
jne 0x140023662
mov rax, rbx
test rax, rax
setne dil
test r15b, r15b
je 0x1400236cb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
movzx edx, al
movzx eax, dil
test dil, dil
cmovne edx, eax
movzx edi, dl
mov edx, dword [0x140189cc0]
mov rcx, r12
call fcn.140025da0
test r14, r14
je 0x1400236ac
mov qword [r14], rbx
jmp 0x1400236ac
xor dil, dil
test r15b, r15b
je 0x1400236cb
test dil, dil
je 0x1400236cb
cmp qword [rbp - 0x11], 0
je 0x1400236cb
mov r8b, 1
mov rdx, qword [rbp - 0x71]
lea rcx, [rbp - 0x21]
call fcn.140026490
movzx edi, al
lea rcx, [rbp - 0x21]
call fcn.140008fe0
movzx eax, dil
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140024ba0
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 0x140024bb3
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x140024bed
cmp rcx, 8
jb 0x140024bcb
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024be5
test al, 0x10
je 0x140024be5
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 0x140024bfe
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 0x140024c21
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x1400252e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140189090]
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], rdi
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 0x1400253d4
mov rax, qword [rsp + 0x50]
lea rdx, [0x14015b7e0]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140025380
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x1400253bf
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140009050
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
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.1400f89b0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140025c90
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140025ca7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x140025cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140025cfe
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140025da0
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
cmp qword [rbx + 0x18], 8
jb 0x140025ce4
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 0x140025da0
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xa0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor dil, dil
mov ebp, edx
mov rbx, rcx
cmp edx, 0xffffffff
je 0x140025f4c
test edx, 0xffff0000
jne 0x140025df4
cmp qword [rcx + 0x18], 8
jb 0x140025de0
mov rbx, qword [rcx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
jmp 0x140025f50
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 0x140025e20
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 0x140025f09
call fcn.140025d10
mov r14, rax
test rax, rax
je 0x140025f14
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 0x140025efc
cmp qword [rbx + 0x18], 8
jb 0x140025ed1
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 0x140025f14
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 0x140025f3c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140025f4c
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0xa0
pop rdi
pop rbp
pop rbx
ret
Function at 0x140026490
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx edi, r8b
mov rbx, rdx
mov rsi, rcx
call fcn.140022810
test eax, eax
jne 0x1400264c4
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test dil, dil
je 0x1400264ec
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400264d6
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400264ec
movzx edx, al
mov rcx, rbx
call fcn.140022280
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140024a70
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140026509
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rdi + 0x18]
cmp eax, 1
jne 0x14002652c
cmp rcx, 8
jb 0x140026521
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140026556
mov rdx, rdi
cmp rcx, 8
jb 0x140026538
mov rdx, qword [rdi]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140026556
mov edx, dword [0x140189cc0]
mov rcx, rdi
call fcn.140025da0
nop
lea rcx, [rsp + 0x20]
call fcn.140008fe0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002656d
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x140026577
mov rsi, qword [rsi]
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
test eax, eax
je 0x14002659e
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
movzx eax, dil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400265c0
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.140022810
test eax, eax
jne 0x1400265f0
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400265fd
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14002661a
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140024a70
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140026637
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14002665a
cmp rcx, 8
jb 0x14002664f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140026684
mov rdx, rbx
cmp rcx, 8
jb 0x140026666
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140026684
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
nop
lea rcx, [rsp + 0x20]
call fcn.140008fe0
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14002669b
mov rdx, qword [rsi]
cmp qword [rdi + 0x18], 8
jb 0x1400266a5
mov rdi, qword [rdi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
test eax, eax
je 0x1400266c8
mov edx, dword [0x140189cc0]
mov rcx, rsi
call fcn.140025da0
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140026890
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rsi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x28], edi
jb 0x1400268bb
mov rcx, qword [rcx]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x80], rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x1400269f2
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
cmp r14, 0x1000
jb 0x14002691c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140026a19
call fcn.1400f89d8
mov rcx, rax
test rax, rax
je 0x140026a13
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140026924
mov rcx, r14
call fcn.1400f89d8
mov qword [rsp + 0x78], rbx
mov r8, r14
lea rbx, [rax + r14]
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov rcx, rax
call fcn.1400fb5b0
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x78]
jb 0x140026958
mov rsi, qword [rsi]
mov r9, qword [rsp + 0x30]
mov r8d, r14d
mov edx, dword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400269ba
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
lea rdx, str..1
mov dword [rsp + 0x2c], edi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400269ba
cmp dword [rsp + 0x2c], edi
je 0x1400269ba
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x1400269ba
mov edi, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rdi, 0x20
or rdi, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400269f2
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400269ed
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026a13
call fcn.1400f89d0
mov rbp, qword [rsp + 0x80]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.14010347c
int3
call fcn.1400012e0
int3
Function at 0x14002a710
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test rcx, rcx
jg 0x14002a720
xor al, al
add rsp, 0x28
ret
xor edx, edx
mov qword [rsp + 0x20], rdi
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14002a753
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
mov edx, 1
mov qword [rsp + 0x30], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov rcx, rdi
setne bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14002a9f0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1400fb5b0
mov word [rsp + 0x60], r14w
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14002aaca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002ab35
mov r8d, esi
xor edx, edx
mov ecx, 0x1010
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14002aaca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002ab35
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14002ab35
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14002ab2c
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14002ab2c
mov dword [rsp + 0x50], 0x104
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea rcx, [rsp + 0x60]
call fcn.140028df0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002ab60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea rax, [rsp + 0x28]
cmp rdi, rax
je 0x14002aba4
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002bec0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x6c], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x70], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6c]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
test eax, eax
je 0x14002bf5f
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
test eax, eax
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x80
pop rbx
ret

Function at 0x14002bf80
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x6c], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x70], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6c]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x12]
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
test eax, eax
je 0x14002c01c
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
test eax, eax
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x80
pop rbx
ret
Function at 0x14002d2c0
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 0x14002d2f2
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x14002d2f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov rax, rbx
mov qword [rbx + 0x28], rcx
cmp qword [rbx + 0x18], 8
jb 0x14002d305
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax], cx
cmp rbx, rdi
je 0x14002d32a
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14002d31e
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.140009050
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14002d337
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 0x14002d3c1
cmp eax, 5
je 0x14002d371
cmp eax, 0xb7
je 0x14002d38f
cmp qword [rbx + 0x28], 0
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 8
jb 0x14002d37b
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 0x14002d3cc
cmp byte [rbx + 0x20], 0
jne 0x14002d3cc
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 0x14002d3d1
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 0x14002dab0
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 [0x140189090]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x30], rdx
mov rsi, qword [rdx]
mov rbp, qword [rcx + 8]
test rsi, rsi
jne 0x14002daff
xor ebx, ebx
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov dword [rdx + 0x10], ebx
jmp 0x14002dc59
test rbp, rbp
je 0x14002db15
xor ebx, ebx
cmp dword [rdx + 0x10], 3
jne 0x14002dc4f
jmp 0x14002dc28
mov qword [rcx + 8], 0xffffffffffffffff
mov ecx, 0x30
call fcn.1400f89d8
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov qword [rax], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x28], rbx
mov qword [r14 + 0x10], rax
mov qword [rax + 0x20], r14
mov rdx, rdi
mov rcx, qword [r14 + 0x10]
call fcn.14002e480
mov rax, qword [r14 + 0x10]
mov qword [rax + 0x18], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], rbx
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 [r14 + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x40], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, qword [r14 + 0x10]
lea r8, [0x14002dc90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x18], rax
mov ebp, dword [rsp + 0x40]
mov qword [r14 + 8], rbp
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002dc12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], rbx
cmp dword [rdi + 0x10], 3
jne 0x14002dc4f
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002dc4f
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14002dc42
cmp rcx, rsi
mov r8, qword [rcx]
setne dl
call qword [r8 + 0x20]
mov qword [rsi + 0x38], rbx
mov edx, 0x40
mov rcx, rsi
call fcn.1400f89d0
mov dword [rdi + 0x10], ebx
mov qword [rdi + 8], rbx
mov qword [rdi], rbx
mov rax, rbp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret