joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400242c0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140188160
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140024630
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x14026cc70]
movaps xmmword [rsi], xmm0
mov rcx, r14
mov rdx, rsi
call fcn.1400249f0
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14002435a
mov ecx, eax
and ecx, 0x7f
jmp 0x14002435f
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140024428
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x68]
lea r14, [rsp + 0x38]
xor r13d, r13d
cmp byte [rsp + 0x68], 0
je 0x14002446d
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x140024477
test dl, 0x10
jne 0x140024466
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x1400243b5
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x140024466
call r12
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebx, ebp
test r13d, r13d
cmovne ebx, r13d
mov rcx, rdi
mov rdx, r14
call fcn.1400249f0
cmp byte [rsp + 0x67], 0
js 0x14002440b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movzx eax, byte [rsp + 0x67]
test al, al
js 0x140024417
mov ecx, eax
and ecx, 0x7f
jmp 0x14002441c
mov rcx, qword [rsp + 0x50]
call fcn.1401833ec
jmp 0x1400243e7
mov rcx, qword [rsp + 0x58]
mov r13d, ebx
test rcx, rcx
jne 0x140024385
test al, al
jns 0x140024436
mov rcx, qword [rsp + 0x50]
call fcn.1401833ec
lea rcx, [rsp + 0x68]
call fcn.1400244a0
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140186020
mov eax, ebx
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400243ce
call fcn.1401c56f0
jmp 0x1400243a6
xor ebx, ebx
test dl, 0x10
jne 0x1400243ce
test al, al
js 0x14002448d
lea rcx, [rsp + 0x50]
jmp 0x140024492
mov rcx, qword [rsp + 0x50]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400243a6
Function at 0x140028ca0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402b8548]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028dca
mov ecx, dword [0x1402ab12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140028cff
mov rcx, qword [0x1402b8538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b8540]
jne 0x140028cff
cmp qword [rax + rcx], 0
jne 0x140028d86
mov ecx, 4
call fcn.1401833f4
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402ab12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140028e21
mov rcx, qword [0x1402b8538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b8540]
jne 0x140028e21
mov rdi, qword [rax + rcx]
mov ecx, dword [0x1402ab12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140028dbe
mov rcx, qword [0x1402b8538]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402b8540]
mov rdx, qword [0x1402b8538]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x140028e28
mov ecx, dword [0x1402ab12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140028e1d
mov rcx, qword [0x1402b8538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b8540]
jne 0x140028e1d
mov rax, qword [rax + rcx]
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x140028d7d
call fcn.1400190e0
jmp 0x140028d59
lea rcx, [0x1402b8548]
call fcn.140183590
cmp dword [0x1402b8548], 0xffffffff
jne 0x140028ccb
mov qword [0x1402b8540], 0
lea rcx, [0x1402b8538]
mov qword [0x1402b8538], 0xffffffffffffffff
lea rdx, [0x14006dd80]
call fcn.14002dee0
lea rcx, [0x1402b8548]
call fcn.1401835f8
jmp 0x140028ccb
xor eax, eax
jmp 0x140028db7
xor edi, edi
jmp 0x140028d47
mov rcx, rdi
call fcn.1401833ec
jmp 0x140028d86
Function at 0x14002b670
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140185fc0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140188160
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b731
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002b735
lea rdi, [rsp + 0x840]
mov rcx, rdi
call fcn.140183fc8
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.14002b790
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140186020
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14002b712
cmp eax, 2
jne 0x14002b780
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140188160
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14002b787
lea rdi, [rsp + 0x40]
jmp 0x14002b6fa
mov edi, 0x3f4
jmp 0x14002b712
mov edi, 0xea
jmp 0x14002b712

Function at 0x14002dee0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402ab12c]
cmp ecx, 0xffffffff
je 0x14002dfba
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14002dfba
mov eax, dword [0x1402b8520]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002dfc4
mov rbx, qword [0x1402b8518]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002e006
mov rax, qword [0x1402b6d08]
inc rax
xor ecx, ecx
lea rdx, [0x1402b6d10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14002e013
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1402b8510]
inc ecx
mov dword [0x1402b8510], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402b6d08], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14002e028
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400190e0
jmp 0x14002df0a
lea rcx, [0x1402b8520]
call fcn.140183590
cmp dword [0x1402b8520], 0xffffffff
jne 0x14002df2f
mov ecx, 8
call fcn.1401833f4
mov qword [rax], 0
mov qword [0x1402b8518], rax
lea rcx, [0x1402b8520]
call fcn.1401835f8
jmp 0x14002df2f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14002df47
inc rcx
cmp rcx, 0x100
jne 0x14002df5a
jmp 0x14002dfa0
int3
Function at 0x14002e230
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x14002e25c
call fcn.1400ea220
mov qword [rsi], 0
test r15, r15
je 0x14002e292
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002e2ea
cmp r12, 2
jb 0x14002e28a
mov qword [rsi], r15
call fcn.1400ea220
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002e2b9
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400ea220
mov rbx, qword [rdi]
cmp qword [0x1402b6720], 0
je 0x14002e31e
mov rcx, qword [0x1402b6720]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x1402c9008]
mov qword [rdi], 0
jmp 0x14002e2a8
call fcn.1400ea220
mov r14, qword [rsi]
cmp qword [0x1402b6720], 0
je 0x14002e362
mov rcx, qword [0x1402b6720]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402c9008]
mov qword [rsi], 0
jmp 0x14002e27c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002e3a6
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14002e35c
call qword [0x1402c9008]
mov rcx, rax
xor edx, edx
call fcn.140014550
jmp 0x14002e2cb
xor ecx, ecx
mov dl, 1
jmp 0x14002e352
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002e3aa
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14002e3a0
call qword [0x1402c9008]
mov rcx, rax
xor edx, edx
call fcn.140014550
jmp 0x14002e2fc
xor ecx, ecx
mov dl, 1
jmp 0x14002e396
xor ecx, ecx
jmp 0x14002e350
xor ecx, ecx
jmp 0x14002e394

Function at 0x140030f50
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140030f7f
test r8d, r8d
jne 0x140030f78
lea rcx, [0x1402b6980]
lea rdx, [0x1400bfbc0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140030f90
Function at 0x140033060
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140033155
cmp qword [rsi], 0
jne 0x140033155
cmp dword [rsi + 0x14], 0
jne 0x140033155
cmp qword [rsi + 8], 0
jne 0x140033155
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400330d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003313c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400330cc
mov qword [rsi], r14
call fcn.1400ea220
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003310e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140033124
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140033106
mov qword [rsi + 8], r14
call fcn.1400ea220
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ea220
mov rcx, qword [rsi + 8]
call fcn.140134ed0
mov qword [rsi + 8], 0
jmp 0x1400330f3
call fcn.1400ea220
mov rcx, qword [rsi]
call fcn.140134ed0
mov qword [rsi], 0
jmp 0x1400330ba
mov rcx, rsi
call fcn.140215ef0
mov rax, qword [rsi]
jmp 0x14003309a
Function at 0x140036960
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov ecx, 0x65c2937b
xor eax, eax
lock cmpxchg dword [rsi], ecx
jne 0x140036b08
mov dword [0x1402aeb00], ebx
lea rbp, [0x1402aeb00]
movabs rax, 0x100000000
mov qword [0x1402aec20], rax
movaps xmm6, xmmword [0x14026cc70]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov r14, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402aec28], rcx
mov r15d, 0x20
mov qword [0x1402aec30], r15
mov r12d, 0x40
mov qword [0x1402aec38], r12
mov dword [0x1402aec40], ebx
mov qword [0x1402aeb08], rbx
lea rax, [0x1402aeb08]
mov r13, 0xffffffffb37cc16a
xor rax, r13
mov qword [0x1402aeb10], rax
mov qword [0x1402aeb18], rbp
mov dword [0x1402aeb28], ebx
lea rcx, [0x1402aeb30]
mov r8d, 0xf0
xor edx, edx
call fcn.140188160
mov dword [0x1402aec48], ebx
lea rbp, [0x1402aec48]
mov qword [0x1402aed68], rbx
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdi, [rsp + 0x20]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402aed70], rcx
mov qword [0x1402aed78], r15
mov qword [0x1402aed80], r12
mov dword [0x1402aed88], ebx
mov qword [0x1402aec50], rbx
lea rax, [0x1402aec50]
xor rax, r13
mov qword [0x1402aec58], rax
mov qword [0x1402aec60], rbp
mov dword [0x1402aec70], ebx
lea rcx, [0x1402aec78]
mov r8d, 0xf0
xor edx, edx
call fcn.140188160
mov eax, 0xdd
xchg dword [rsi], eax
cmp eax, 0x5a308d2
je 0x140036b28
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140186020
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, edx
lea r8, [0x1402748b0]
mov rcx, rsi
mov edx, 3
call fcn.1401c7c60
test eax, eax
jne 0x140036ae5
jmp 0x14003699a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140186020
mov rcx, rsi
mov dl, 1
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401c6e80
Function at 0x140036b60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x140036c39
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x140036c3d
mov r14, qword [rsp + 0x40]
cmp qword [rsi], r14
je 0x140036c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036c23
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140036c00
mov qword [rsi], r14
call fcn.1400ea220
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140186020
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400ea220
mov rcx, qword [rsi]
call fcn.140134ed0
mov qword [rsi], 0
jmp 0x140036bee
mov bl, 1
jmp 0x140036c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140036c00
Function at 0x1400372f0
Capabilities:
Delete file
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x1402b6668]
test rdi, rdi
je 0x140037340
lea rbx, [0x14027c2e3]
mov rcx, rdi
mov rdx, rbx
call fcn.140167240
test al, al
jne 0x140037369
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140167240
test al, al
jne 0x140037369
mov eax, dword [rsi]
mov dword [0x1402aaf58], eax
test al, 1
jne 0x140037422
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140186020
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.vmodule
lea r8, [rsp + 0x48]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r14, [rsp + 0x58]
mov rcx, rdi
mov rdx, r14
call fcn.1401489a0
lea r8, [rsp + 0x20]
mov qword [r8], rbx
mov qword [r8 + 8], 1
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
call fcn.1401489a0
mov ecx, 0x20
call fcn.1401833f4
mov rdi, rax
lea r9, [0x1402b65e0]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.140204830
cmp byte [rbx + 0x17], 0
jns 0x1400373e2
mov rcx, qword [rsp + 0x30]
call fcn.1401833ec
cmp byte [rsp + 0x6f], 0
jns 0x1400373f3
mov rcx, qword [rsp + 0x58]
call fcn.1401833ec
test rdi, rdi
je 0x140037340
xor eax, eax
lock cmpxchg qword [0x1402b65f0], rdi
je 0x140037340
mov rcx, rdi
call fcn.140204900
mov rcx, rdi
call fcn.1401833ec
jmp 0x140037340
mov rcx, qword [0x1402b65e8]
test rcx, rcx
jne 0x14003743c
mov rcx, qword [0x1402b65d8]
test rcx, rcx
je 0x140037460
jmp 0x140037482
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402b65e8], 0
mov rcx, qword [0x1402b65d8]
test rcx, rcx
jne 0x140037482
and byte [0x1402aaf58], 0xfe
mov ecx, 0x18
call fcn.1401833f4
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1402b65d8], rax
mov rdx, qword [rsi + 8]
call fcn.1400715b0
cmp dword [rsi + 0x14], 0
jne 0x1400374a7
mov rcx, qword [0x1402b65d8]
cmp byte [rcx + 0x17], 0
jns 0x1400374a1
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140186020
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1401f93e0
Function at 0x14003d790
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14003d7b5
call fcn.1400ea220
cmp qword [rsi], rbx
je 0x14003d7e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003d7f1
cmp r14, 2
jb 0x14003d7dc
mov qword [rsi], rbx
call fcn.1400ea220
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ea220
mov rcx, qword [rsi]
call fcn.140134ed0
mov qword [rsi], 0
jmp 0x14003d7ce

Function at 0x14003da20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003dac1
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14003dab0
cmp eax, 0xffffffff
je 0x14003dafb
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140186020
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x14003dad5
mov eax, dword [rsp + 0x2c]
jmp 0x14003da90
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14003da92
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14003da83
jmp 0x14003dac1
int3

Function at 0x1400405c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1400405e6
call fcn.1400ea220
cmp qword [rsi], rbx
je 0x140040615
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140040622
cmp r14, 2
jb 0x14004060d
mov qword [rsi], rbx
call fcn.1400ea220
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ea220
mov rcx, qword [rsi]
call fcn.140134ed0
mov qword [rsi], 0
jmp 0x1400405ff
Function at 0x140041430
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x1400415be
mov rbx, r9
mov edi, r8d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r14, rax
cmp qword [rsi], rax
je 0x1400414b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004159b
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400414ab
mov qword [rsi], r14
call fcn.1400ea220
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x1400415e4
xor r15d, r15d
lea rcx, [rsp + 0x30]
mov r8d, 0x90
xor edx, edx
call fcn.140188160
test ebp, ebp
jne 0x140041586
mov ecx, 0x37
mov r15d, 0x408
mov dword [rsp + 0x58], 1
mov eax, r15d
or ecx, 0xc8
mov dword [rsp + 0x2c], ecx
mov r15d, ecx
test rbx, rbx
je 0x140041517
or eax, 0x100
mov qword [rsp + 0xa0], rbx
or eax, 0x2000
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x1400415b4
not edi
and r15d, edi
lea r8, [rsp + 0x2c]
mov dword [r8], r15d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor esi, esi
test eax, eax
je 0x1400415b4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140186020
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebp, 1
jne 0x1400415c5
mov ecx, 0x10
mov r15d, 8
jmp 0x1400414ed
call fcn.1400ea220
mov rcx, qword [rsi]
call fcn.140134ed0
mov qword [rsi], 0
jmp 0x140041497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140041564
mov esi, 0x4df
jmp 0x140041564
cmp ebp, 2
jne 0x1400415d1
xor ecx, ecx
jmp 0x1400414f5
mov eax, 0
cmp ebp, 3
je 0x140041505
jmp 0x140041520
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140186020
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140043840
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x14029b028]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x30]
mov qword [r8], rdx
or r9d, 8
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14004390e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14004390e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14004390a
call fcn.1400ea220
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400438f2
cmp rbx, 0xffffffffffffffff
je 0x140043913
call fcn.1400ea220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi + 8], rbx
call fcn.1400ea220
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140186020
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x1400438b6
mov byte [rsi], 0
jmp 0x1400438f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400438ea