joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ce38
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14002ce7f
test byte [rcx + 0x1c], 4
je 0x14002ce7f
cmp byte [rcx + 0x19], 5
jb 0x14002ce7f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088d70]
mov edx, 0x14
call fcn.140001024
lea rcx, [0x14009f0f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
and qword [rbx], 0
and qword [rbx + 8], 0
mov eax, dword [rbx + 0x18]
test eax, eax
jne 0x14002ceca
cmp dword [rbx + 0x2c], eax
jne case.default.0x14002d07b
lea rcx, [0x14009f008]
call fcn.140036178
jmp case.default.0x14002d07b
cmp eax, 2
jne 0x14002cf45
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
je case.default.0x14002d07b
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne case.default.0x14002d07b
mov rax, qword [0x14009b028]
cmp rax, r14
je case.default.0x14002d07b
test byte [rax + 0x1c], 4
je case.default.0x14002d07b
cmp byte [rax + 0x19], 2
jb case.default.0x14002d07b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088d70]
mov r9d, eax
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp case.default.0x14002d07b
cmp eax, 3
jne case.default.0x14002d07b
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14002cfa5
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14002cfa5
test byte [rax + 0x1c], 4
je 0x14002cfa5
cmp byte [rax + 0x19], 2
jb 0x14002cfa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088d70]
mov r9d, eax
mov edx, 0x16
mov rcx, qword [rcx + 0x10]
call fcn.140001050
cmp dword [rbx + 0x660], 0
je 0x14002d00c
cmp dword [rbx + 0x65c], 0
je 0x14002d015
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002d00c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14002d00c
test byte [rcx + 0x1c], 4
je 0x14002d00c
cmp byte [rcx + 0x19], 2
jb 0x14002d00c
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x40]
mov edx, 0x17
mov dword [rsp + 0x20], eax
lea r8, [0x140088d70]
call fcn.140001328
cmp dword [rbx + 0x65c], 0
jne case.default.0x14002d07b
cmp qword [rbx + 0x668], 0
je case.default.0x14002d07b
lea rcx, [0x14009f180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x668]
mov edx, 1
mov r9d, edx
mov r8d, edx
call fcn.14003e7a0
lea rcx, [0x14009f180]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400671c4
lea rcx, [0x14009f0f0]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
outsd dx, dword [rsi]
invalid
shl dword [rbp + 0x60896625], 0x23
in eax, dx
invalid
invalid
Function at 0x14002f520
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14002f57b
test byte [rcx + 0x1c], 4
je 0x14002f57b
cmp byte [rcx + 0x19], 5
jb 0x14002f57b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x38
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [0x140088dd8]
call fcn.14002f060
test eax, eax
jne 0x14002f5ef
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f5e8
test byte [rax + 0x1c], 4
je 0x14002f5e8
cmp byte [rax + 0x19], 2
jb 0x14002f5e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, eax
mov edx, 0x39
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x14002f6c3
lea rcx, [rsp + 0x30]
call fcn.140067e3c
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14002f6be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002f644
test byte [rcx + 0x1c], 4
je 0x14002f644
cmp byte [rcx + 0x19], 2
jb 0x14002f644
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3a
mov r9d, eax
call fcn.140001050
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f6ab
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f6ab
test byte [rax + 0x1c], 4
je 0x14002f6ab
cmp byte [rax + 0x19], 2
jb 0x14002f6ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, dword [rdi + 0x20]
mov edx, 0x3b
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14002d7ec
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f5e8
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002f6f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14002f74b
test byte [rcx + 0x1c], 4
je 0x14002f74b
cmp byte [rcx + 0x19], 5
jb 0x14002f74b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3c
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
cmp qword [rbx + 0x258], 0
jne 0x14002f89f
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x140088de0]
call fcn.14002f060
test eax, eax
jne 0x14002f7cd
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f7c6
test byte [rax + 0x1c], 4
je 0x14002f7c6
cmp byte [rax + 0x19], 2
jb 0x14002f7c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, eax
mov edx, 0x3d
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x14002f8a4
lea rcx, [rsp + 0x30]
call fcn.140067e3c
mov qword [rbx + 0x258], rax
test rax, rax
jne 0x14002f89f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002f825
test byte [rcx + 0x1c], 4
je 0x14002f825
cmp byte [rcx + 0x19], 2
jb 0x14002f825
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3e
mov r9d, eax
call fcn.140001050
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f88c
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f88c
test byte [rax + 0x1c], 4
je 0x14002f88c
cmp byte [rax + 0x19], 2
jb 0x14002f88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, dword [rbx + 0x20]
mov edx, 0x3f
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14002d7ec
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f7c6
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003e688
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14003e6c5
test byte [rcx + 0x1c], 4
je 0x14003e6c5
cmp byte [rcx + 0x19], 5
jb 0x14003e6c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
mov edx, 0x129
call fcn.140001024
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140039670

Function at 0x14003ed3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x60], ebx
mov rsi, rcx
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14003ed89
test byte [rcx + 0x1c], 4
je 0x14003ed89
cmp byte [rcx + 0x19], 5
jb 0x14003ed89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
mov edx, 0x136
call fcn.140001024
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003edf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14003ee26
test byte [rcx + 0x1c], 4
je 0x14003ee26
cmp byte [rcx + 0x19], 2
jb 0x14003ee26
mov edx, 0x137
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
call fcn.140001050
jmp 0x14003ee26
cmp dword [rsp + 0x60], 4
je 0x14003ee20
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14003ee26
test byte [rcx + 0x1c], 4
je 0x14003ee26
cmp byte [rcx + 0x19], 2
jb 0x14003ee26
mov edx, 0x138
jmp 0x14003eddf
mov eax, dword [rsp + 0x68]
mov dword [rdi], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14003f5d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r13
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
mov r14d, r8d
and qword [rbp - 8], 0
mov r15, rdx
mov rdi, rcx
mov dword [rbp - 0xc], 1
mov rcx, qword [0x14009b028]
lea r13, [0x14009b028]
cmp rcx, r13
je 0x14003f638
test byte [rcx + 0x1c], 4
je 0x14003f638
cmp byte [rcx + 0x19], 5
jb 0x14003f638
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
mov edx, 0x14a
call fcn.140001024
lea r9, [rbp + 0x38]
mov edx, r14d
lea r8, [rbp - 8]
mov rcx, r15
call fcn.14003f284
mov ebx, eax
test eax, eax
je 0x14003f692
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x14003f80b
test byte [rcx + 0x1c], 4
je 0x14003f80b
cmp byte [rcx + 0x19], 2
jb 0x14003f80b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
mov edx, 0x14b
mov r9d, eax
call fcn.140001050
jmp 0x14003f80b
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp - 0xc]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003f6f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x14003f80b
test byte [rcx + 0x1c], 4
je 0x14003f80b
cmp byte [rcx + 0x19], 2
jb 0x14003f80b
mov edx, 0x14c
jmp 0x14003f7f8
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003f758
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x14003f80b
test byte [rcx + 0x1c], 4
je 0x14003f80b
cmp byte [rcx + 0x19], 2
jb 0x14003f80b
mov edx, 0x14d
jmp 0x14003f7f8
mov r8d, dword [rbp + 0x38]
lea r9, [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003f7aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x14003f80b
test byte [rcx + 0x1c], 4
je 0x14003f80b
cmp byte [rcx + 0x19], 2
jb 0x14003f80b
mov edx, 0x14e
jmp 0x14003f7f8
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003f80b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x14003f80b
test byte [rcx + 0x1c], 4
je 0x14003f80b
cmp byte [rcx + 0x19], 2
jb 0x14003f80b
mov edx, 0x14f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089898]
mov r9d, eax
call fcn.140001050
cmp qword [rbp - 8], 0
je 0x14003f81b
mov rcx, qword [rbp - 8]
call fcn.1400671c4
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14003fa28
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rdx
xor esi, esi
mov rbp, rcx
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
lea r13, [0x140089898]
cmp rcx, r12
je 0x14003fa7f
test byte [rcx + 0x1c], 4
je 0x14003fa7f
cmp byte [rcx + 0x19], 5
jb 0x14003fa7f
mov rcx, qword [rcx + 0x10]
mov edx, 0x155
mov r8, r13
call fcn.140001024
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14003fae6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fc3f
test byte [rcx + 0x1c], 4
je 0x14003fc3f
cmp byte [rcx + 0x19], 2
jb 0x14003fc3f
mov edx, 0x156
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001050
jmp 0x14003fc3f
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x678
jae 0x14003fb36
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fb2c
test byte [rcx + 0x1c], 4
je 0x14003fb2c
cmp byte [rcx + 0x19], 3
jb 0x14003fb2c
mov rcx, qword [rcx + 0x10]
mov edx, 0x157
mov r9d, edi
mov r8, r13
call fcn.140001050
mov ebx, 0x570
jmp 0x14003fc50
mov rcx, rdi
call fcn.140067108
mov rsi, rax
test rax, rax
jne 0x14003fb7c
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fb72
test byte [rcx + 0x1c], 4
je 0x14003fb72
cmp byte [rcx + 0x19], 2
jb 0x14003fb72
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r9d, edi
mov r8, r13
call fcn.140001050
mov ebx, 8
jmp 0x14003fc50
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003fbd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fc3f
test byte [rcx + 0x1c], 4
je 0x14003fc3f
cmp byte [rcx + 0x19], 2
jb 0x14003fc3f
mov edx, 0x159
jmp 0x14003fad2
mov edx, dword [rsp + 0x70]
cmp edi, edx
je 0x14003fc0e
mov ebx, 0x26
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fc43
test byte [rcx + 0x1c], 4
je 0x14003fc43
cmp byte [rcx + 0x19], 2
jb 0x14003fc43
mov edx, 0x15a
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r13
call fcn.140001050
jmp 0x14003fc43
mov rcx, rsi
call fcn.140036f54
test eax, eax
jne 0x14003fc3c
lea ebx, [rax + 0xd]
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003fc43
test byte [rcx + 0x1c], 4
je 0x14003fc43
cmp byte [rcx + 0x19], 2
jb 0x14003fc43
mov edx, 0x15b
jmp 0x14003fbfd
mov qword [r14], rsi
test ebx, ebx
je 0x14003fc50
test rsi, rsi
je 0x14003fc50
mov rcx, rsi
call fcn.1400671c4
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140046330
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], rdi
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x24]
mov r14, r9
mov edi, r8d
mov ebx, edx
cmp esi, 2
jne 0x140046360
mov rcx, qword [rcx + 0x248]
mov rbp, qword [rcx + 0x198]
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14004639b
test byte [rcx + 0x1c], 4
je 0x14004639b
cmp byte [rcx + 0x19], 5
jb 0x14004639b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089b10]
mov edx, 0x10
call fcn.140001024
cmp esi, 2
jne 0x1400463c7
neg ebx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
test edi, eax
je 0x1400463b3
lea eax, [rsi - 1]
jmp 0x1400463d0
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
jmp 0x1400463d0
mov edx, ebx
mov ecx, edi
call fcn.140051f74
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140048d18
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
lea r14, [0x140089c68]
cmp rcx, rbp
je 0x140048d5c
test byte [rcx + 0x1c], 4
je 0x140048d5c
cmp byte [rcx + 0x19], 5
jb 0x140048d5c
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.140001024
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140002720]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140048ddc
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048ef0
test byte [rax + 0x1c], 4
je 0x140048ef0
cmp byte [rax + 0x19], 2
jb 0x140048ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rbx + 0x35]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140048ef0
mov r8d, 0x4e20
mov ecx, 3
call fcn.1400246c0
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140048e73
cmp eax, 0x102
jne 0x140048e3c
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x140048e34
test byte [rcx + 0x1c], 4
je 0x140048e34
cmp byte [rcx + 0x19], 5
jb 0x140048e34
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r8, r14
call fcn.140001024
mov r8d, 0x7530
jmp 0x140048de2
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048ee1
test byte [rax + 0x1c], 4
je 0x140048ee1
cmp byte [rax + 0x19], 2
jb 0x140048ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x38
jmp 0x140048eb4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
jne 0x140048ecc
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048ee1
test byte [rax + 0x1c], 4
je 0x140048ee1
cmp byte [rax + 0x19], 2
jb 0x140048ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x36
mov rcx, qword [0x14009b028]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140048ee1
mov ecx, dword [rsp + 0x50]
test ecx, ecx
sete bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14004ec9c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, ebx
mov rcx, qword [0x14009b028]
lea rsi, [0x14009b028]
cmp rcx, rsi
je 0x14004ece3
test byte [rcx + 0x1c], 4
je 0x14004ece3
cmp byte [rcx + 0x19], 5
jb 0x14004ece3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089df0]
mov edx, 0x8f
call fcn.140001024
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14004ab70]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x14009f410], rax
test rax, rax
jne 0x14004ed67
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x14004ed55
test byte [rcx + 0x1c], 4
je 0x14004ed55
cmp byte [rcx + 0x19], 2
jb 0x14004ed55
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089df0]
mov edx, 0x90
mov r9d, eax
call fcn.140001050
test edi, edi
je 0x14004ed69
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140050ec0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
mov edx, 0x80000000
and dword [rax + 0x10], 0
mov r8d, 1
mov dword [rax - 0x28], 3
call fcn.140069cbc
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140050ef8
xor eax, eax
jmp 0x140050f2a
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
or eax, 0xffffffff
cmp dword [rsp + 0x58], 0
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400519a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
xor edi, edi
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x1400519ef
test byte [rcx + 0x1c], 4
je 0x1400519ef
cmp byte [rcx + 0x19], 5
jb 0x1400519ef
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x140089e70]
call fcn.140001024
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, rsi
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140051a59
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140051aa5
test byte [rcx + 0x1c], 4
je 0x140051aa5
cmp byte [rcx + 0x19], 2
jb 0x140051aa5
lea edx, [rbx + 0x31]
jmp 0x140051a92
call fcn.140051760
test eax, eax
jne 0x140051aa5
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140051aa5
test byte [rax + 0x1c], 4
je 0x140051aa5
cmp byte [rax + 0x19], 2
jb 0x140051aa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089e70]
mov r9d, eax
call fcn.140001050
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rbx, rbx
jne 0x140051acb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret