joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009904
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
xor edi, edi
lea rcx, [rbp + 0x71]
xor edx, edx
mov r8d, 0x103
mov ebx, edi
mov byte [rbp + 0x70], dil
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x140009b1b
cmp byte [rsi], dil
je 0x140009b1b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140009b1b
lea rax, [rbp + 0x70]
mov r9d, 0x104
mov r8, rsi
sub r8, rax
mov edx, r9d
lea rcx, [rbp + 0x70]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400099a7
mov al, byte [r8 + rcx]
test al, al
je 0x1400099a7
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140009989
test rdx, rdx
jne 0x1400099b4
dec rcx
mov ebx, 0x8007007a
mov byte [rcx], dil
test ebx, ebx
js 0x140009b1b
lea rcx, [rbp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x1400099c7
sub r9, rax
lea r8, [0x140003964]
lea rcx, [rbp + 0x70]
mov rdx, r9
call fcn.140008d54
mov ebx, eax
test eax, eax
js 0x140009b1b
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140009b1b
lea rdx, [0x140003968]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140009abd
lea rdx, [0x14000396c]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140009abd
lea rax, [rsp + 0x5c]
lea r8, [0x140003970]
lea rcx, [rbp + 0x70]
mov r9, rsi
mov edx, 0x103
mov qword [rsp + 0x20], rax
call fcn.140008e0c
mov ebx, eax
test eax, eax
js 0x140009b0c
test byte [rsp + 0x30], 0x10
lea rcx, [rbp + 0x70]
je 0x140009aa4
mov edx, 0x90
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rbp + 0x70]
call fcn.140009904
mov ebx, eax
test eax, eax
js 0x140009b0c
jmp 0x140009abd
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140009af8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140009a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140009af8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140009b1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140009b1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000faa0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009c94
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
and dword [rax - 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x20000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009d51
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
lea rcx, [0x140003978]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x140009d32
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14000ce14
mov ebx, eax
test eax, eax
js 0x140009d25
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009d46
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a2a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rbp + 0xf0], rax
cmp dword [0x140011650], 0
mov rsi, rdx
mov r14, rcx
mov edi, 1
mov ebx, 0x80004005
je 0x14000a2f4
lea rcx, [0x140011658]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, 0x1f4
jg 0x14000a33d
lea rax, [0x14000398c]
lea r8, [0x140003990]
mov r9, r14
mov edx, 0x104
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140008e0c
inc edi
mov ebx, eax
test eax, eax
js 0x14000a447
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a2f4
test ebx, ebx
js 0x14000a447
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r9, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
lea r8, [rbp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000a004
mov ebx, eax
test eax, eax
js 0x14000a447
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
mov r14d, 0x80070000
test eax, eax
jne 0x14000a3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a427
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f0000
mov rcx, rsi
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a416
mov edx, 0x1240
mov r8d, 0x1200a9
mov rcx, rax
call qword [sym.imp.iertutil.dll_Ordinal_134]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a427
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000a437
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000a447
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x140011650], 0
je 0x14000a45d
lea rcx, [0x140011658]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000faa0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a48c
Capabilities:
Create directory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
lea rax, [r11 - 0x28]
mov r14, rdx
mov rbp, rcx
mov edi, 0x80004005
mov qword [r11 - 0x28], rsi
test rax, rax
je 0x14000a4c9
lea rcx, [r11 - 0x28]
call fcn.140009070
mov rsi, qword [rsp + 0x30]
jmp 0x14000a4ce
mov eax, 0x80070057
test eax, eax
js 0x14000a549
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, rsi
call fcn.140008e88
test eax, eax
js 0x14000a540
mov rbx, qword [rsp + 0x30]
lea r8, [0x14000399c]
mov r9, rbp
mov edx, 0x104
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.140008e0c
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
js 0x14000a540
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
test eax, eax
jne 0x14000a540
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a564
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov byte [rcx], 0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000a5aa
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14000a2a0
mov ecx, eax
jmp 0x14000a5be
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14000faa0
add rsp, 0x140
pop rbx
ret
Function at 0x14000a5e0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x690
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rdx
xor r15d, r15d
mov r14, r8
mov rbp, rcx
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], Ordinal_134
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.ole32.dll_CoRevertToSelf]
cmp rdi, 0xffffffffffffffff
jne 0x14000a654
mov eax, 0x80004005
jmp 0x14000a78a
mov rcx, rbx
call fcn.14000910c
mov rsi, rax
cmp rax, rbx
je 0x14000a64a
or r9d, 0xffffffff
lea rax, [rsp + 0x250]
mov ebx, 0x104
lea edx, [r9 + 9]
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000a69b
call fcn.14000eea8
jmp 0x14000a78a
lea r9, [rsp + 0x250]
lea r8, [0x1400039a8]
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call fcn.140004c20
test eax, eax
js 0x14000a78a
lea rcx, [rsp + 0x40]
call fcn.14000ad9c
mov ebx, eax
test eax, eax
js 0x14000a77f
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], r15w
je 0x14000a6fd
cmp word [rax], 0x2f
jne 0x14000a6f3
mov ecx, 0x5c
mov word [rax], cx
add rax, 2
cmp word [rax], r15w
jne 0x14000a6e5
lea rdx, [rsp + 0x460]
xor r9d, r9d
mov r8d, 0x10c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
cmp eax, 3
je 0x14000a77a
cmp eax, 8
je 0x14000a77a
cmp eax, 0x57
je 0x14000a77a
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x460]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000a751
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a691
lea rcx, [rsp + 0x40]
call fcn.140009b4c
mov ebx, eax
test eax, eax
js 0x14000a77f
mov rcx, qword [r14]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r14], rax
jmp 0x14000a77f
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14000faa0
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x690
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a7b8
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, rcx
mov rcx, qword [rdx]
mov rdi, rdx
mov ebx, 1
call fcn.14000910c
mov rsi, rax
cmp rax, qword [rdi]
je 0x14000a8e2
lea rax, [rsp + 0x240]
lea edx, [rbx + 7]
or r9d, 0xffffffff
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000a82d
call fcn.14000eea8
jmp 0x14000a8e7
cmp ebx, 0x1f4
jg 0x14000a8e2
lea r9, [rsp + 0x240]
lea r8, [0x1400039c0]
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ebx
call fcn.140004c20
inc ebx
test eax, eax
js 0x14000a876
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a82d
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14000f4dc
mov ebx, eax
test eax, eax
js 0x14000a8de
lea rcx, [rsp + 0x30]
call fcn.14000ad9c
mov ebx, eax
test eax, eax
js 0x14000a8de
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000a823
lea rcx, [rsp + 0x30]
call fcn.140009b4c
mov ebx, eax
test eax, eax
js 0x14000a8de
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
mov eax, ebx
jmp 0x14000a8e7
mov eax, 0x80004005
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000faa0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b480
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
and qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x2000000
mov edx, 0x20000
mov dword [rax - 0x28], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000b54a
and qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
lea rcx, [0x140003afc]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x14000b541
and qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14000af20
test eax, eax
js 0x14000b50d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete bl
jmp 0x14000b526
cmp eax, 0x8007053c
jne 0x14000b526
mov rcx, rsi
call fcn.14000f090
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000b536
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000bca8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and dword [rsp + 0x60], 0
xor eax, eax
mov qword [r11 - 0x28], rcx
and qword [r11 - 0x30], rax
and dword [rsp + 0x20], eax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x18], r8
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x20], rdx
lea r8, [0x14000bbc0]
lea r9, [r11 - 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14000bd35
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x14000bd26
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x60]
jmp 0x14000bd49
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
add rsp, 0x50
pop rbx
ret
Function at 0x14000cce0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x20
and qword [rax + 0x20], 0
lea rdx, [rax + 0x20]
mov rdi, r8
mov rbp, rcx
call fcn.14000ce14
test eax, eax
js 0x14000cd36
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x14000cd36
xor ebx, ebx
jmp 0x14000cdf7
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.14000cbec
mov ebx, eax
test eax, eax
js 0x14000cdf7
mov rsi, qword [rsp + 0x48]
mov ecx, 0x40
movzx edx, word [rsi + 2]
add rdx, 0x28
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000cde9
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000cdca
movzx edx, word [rsi + 2]
lea rcx, [rdi + 0x28]
mov r8, rsi
mov r9d, edx
call qword [sym.imp.msvcrt.dll_memcpy_s]
xor r9d, r9d
lea r8, [rdi + 0x28]
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
test eax, eax
je 0x14000cdca
mov r8, rdi
mov edx, 0x10
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x14000cdca
xor ebx, ebx
jmp 0x14000cdde
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000cdee
mov ebx, 0x8007000e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000d490
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14000d4be
xor al, al
jmp 0x14000d4fc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14000d4cf
xor al, al
jmp 0x14000d4fc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14000d4f6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14000d4f6
mov al, 1
jmp 0x14000d4fc
xor al, al
jmp 0x14000d4fc
add rsp, 0x50
pop rbx
ret
Function at 0x14000d56c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14000f678
mov rdx, qword [rsp + 0x48]
xor edi, edi
test al, al
mov r8d, 0x2000
cmovne rdx, rdi
lea r9d, [rdi + 0x40]
mov rcx, rbx
mov qword [rsp + 0x48], rdx
add rdx, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000d61d
mov rcx, qword [rsp + 0x48]
mov edx, 0x1000
lea r9d, [rdi + 0x40]
add rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000d608
cmp qword [rsp + 0x48], rdi
jbe 0x14000d620
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov r9d, 0x8000
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x14000d620
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000d620
mov rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d9e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400116c8], 0
je 0x14000d9fe
mov eax, 0x10dd
jmp 0x14000da65
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1400116c8], ecx
jne 0x14000d9f7
and dword [0x1400116d0], 0
and qword [0x1400116b8], 0
and qword [0x1400116a8], 0
and dword [0x1400116cc], 0
mov rbx, qword [0x1400116c0]
and qword [0x1400116a0], 0
jmp 0x14000da5e
lea r9, [rsp + 0x30]
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000da41
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000da74
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1400116c8], eax
je 0x14000da9b
mov eax, 0x10dd
jmp 0x14000db54
mov rdi, qword [0x1400116b8]
test rdi, rdi
je 0x14000db0d
mov rax, qword [rdi + 0x20]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x1f]
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rdi + 8], 0
jne 0x14000dafa
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x14000dafa
xor edx, edx
mov rbx, rsi
mov rcx, rsi
lea r8d, [rdx + 0x38]
and rbx, 0xffffffffffff0000
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x20], rax
mov qword [rbx + 0x10], rsi
and qword [rdi + 0x20], 0
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000423c
mov rdi, rbx
test rbx, rbx
jne 0x14000daa7
and qword [0x1400116b8], 0
call fcn.14000d508
mov rdi, qword [0x1400116a8]
test rdi, rdi
je 0x14000db43
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000423c
mov rdi, rbx
test rbx, rbx
jne 0x14000db26
and qword [0x1400116a8], 0
and dword [0x1400116c8], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dea0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x1400116cc]
mov rdi, rcx
test eax, eax
jne 0x14000df20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x14000df1e
mov ecx, 0x10
call fcn.140004210
mov rbx, rax
test rax, rax
jne 0x14000ded9
lea edi, [rax + 8]
jmp 0x14000def7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x14000df09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call fcn.14000423c
and qword [0x1400116a0], 0
mov dword [0x1400116cc], edi
mov eax, edi
jmp 0x14000df20
mov rax, qword [0x1400116a8]
mov qword [rbx + 8], rdi
mov qword [0x1400116a8], rbx
mov qword [rbx], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e1f8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1400116cc]
mov rbp, rdx
mov rsi, rcx
test eax, eax
jne 0x14000e30d
test rcx, rcx
jne 0x14000e22d
lea eax, [rcx + 6]
jmp 0x14000e30d
cmp qword [rcx], 0
jne 0x14000e24a
mov eax, 6
mov qword [0x1400116a0], rcx
mov dword [0x1400116cc], eax
jmp 0x14000e30d
mov ecx, 0x30
call fcn.140004210
mov rbx, rax
test rax, rax
jne 0x14000e264
lea edi, [rax + 8]
jmp 0x14000e2f1
mov rdi, qword [rsi]
mov rcx, rbp
call fcn.14000d96c
movzx ecx, byte [rdi + 0x1f]
mov rbp, qword [rdi + 0x20]
sub rbp, rcx
test ecx, ecx
je 0x14000e2e3
movsxd rdx, ecx
cmp rdx, 0x1f
ja 0x14000e2e3
cmp qword [rdi + 0x28], rax
jne 0x14000e2e3
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e2b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000e2f1
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1400116b8]
mov qword [0x1400116b8], rbx
mov qword [rbx], rax
xor eax, eax
jmp 0x14000e30d
cmp dword [0x1400116d0], 0
mov edi, 9
jne 0x14000e2f7
mov dword [0x1400116cc], edi
test rbx, rbx
je 0x14000e304
mov rcx, rbx
call fcn.14000423c
mov qword [0x1400116a0], rsi
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret