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

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rcx
xor ebx, ebx
mov edi, ebx
lea r15, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140026560
test byte [rcx + 0x1c], 4
je 0x140026560
cmp byte [rcx + 0x19], 5
jb 0x140026560
lea edx, [rbx + 0x10]
lea r8, [0x140082b70]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp dword [0x140098298], ebx
jne 0x140026580
jmp 0x140026709
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140027a94
test eax, eax
jne 0x1400265c6
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400265bc
test byte [rcx + 0x1c], 4
je 0x1400265bc
cmp byte [rcx + 0x19], 2
jb 0x1400265bc
lea edx, [rax + 0x11]
lea r8, [0x140082b70]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov edi, 0xe
jmp 0x1400266d8
mov ecx, 1
call fcn.140029e00
test eax, eax
je 0x140026662
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140026605
test byte [rcx + 0x1c], 4
je 0x140026605
cmp byte [rcx + 0x19], 5
jb 0x140026605
mov edx, 0x13
lea r8, [0x140082b70]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov ecx, 1
call fcn.140029fe0
mov edi, eax
test eax, eax
je 0x140026662
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140026645
test byte [rcx + 0x1c], 4
je 0x140026645
cmp byte [rcx + 0x19], 2
jb 0x140026645
mov edx, 0x14
mov r9d, eax
lea r8, [0x140082b70]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
cmp dword [0x140098298], ebx
je 0x1400266d4
mov rcx, qword [0x1400980b0]
cmp rcx, 0xffffffffffffffff
je 0x1400266d4
mov edi, ebx
jmp 0x140026669
mov rcx, qword [0x1400980b0]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
add r8d, r8d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400266d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400266d4
test byte [rcx + 0x1c], 4
je 0x1400266d4
cmp byte [rcx + 0x19], 2
jb 0x1400266d4
mov edx, 0x15
mov r9d, eax
lea r8, [0x140082b70]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x1400266d4
test edi, edi
je 0x1400266f7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rsp + 0x68], 8
jb 0x1400266f3
mov rcx, qword [rsp + 0x50]
call fcn.1400786fc
xor eax, eax
jmp 0x14002670e
cmp qword [rsp + 0x68], 8
jb 0x140026709
mov rcx, qword [rsp + 0x50]
call fcn.1400786fc
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140029e00
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, ecx
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x140029e56
test byte [rcx + 0x1c], 4
je 0x140029e56
cmp byte [rcx + 0x19], 5
jb 0x140029e56
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082b70]
mov edx, 0x5c
call fcn.140001024
mov eax, dword [0x1400982a8]
test eax, eax
je 0x140029ecb
mov rcx, qword [0x1400980b0]
test ebx, ebx
cmove rcx, qword [0x140098080]
cmp eax, 1
jne 0x140029efe
xor eax, eax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140029ee9
mov rax, qword [str.___t_]
cmp rax, rsi
je 0x140029ecb
test byte [rax + 0x1c], 4
je 0x140029ecb
cmp byte [rax + 0x19], 2
jb 0x140029ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5d
mov rcx, qword [str.___t_]
lea r8, [0x140082b70]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001048
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140078ba0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
mov eax, dword [0x1400982ac]
shl rax, 0x14
cmp qword [rbp - 0x30], rax
jl 0x140029ecb
jmp 0x140029fd0
cmp eax, 2
jne 0x140029ecb
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x140029f3f
mov rax, qword [str.___t_]
cmp rax, rsi
je 0x140029ecb
test byte [rax + 0x1c], 4
je 0x140029ecb
cmp byte [rax + 0x19], 2
jb 0x140029ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5e
jmp 0x140029eb1
xor eax, eax
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140029f8f
mov rax, qword [str.___t_]
cmp rax, rsi
je 0x140029ecb
test byte [rax + 0x1c], 4
je 0x140029ecb
cmp byte [rax + 0x19], 2
jb 0x140029ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5f
jmp 0x140029eb1
xor eax, eax
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rbp - 0x28]
movzx edx, word [rbp - 0x18]
sub edx, ecx
movzx ecx, word [rbp - 0x26]
lea r8d, [rdx + rdx*2]
shl r8d, 2
sub r8d, ecx
movzx ecx, word [rbp - 0x16]
add r8d, ecx
cmp r8d, dword [0x1400982b0]
jb 0x140029ecb
mov eax, 1
jmp 0x140029ecd
Function at 0x14002a0b8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [str.___t_]
lea r14, str.___t_
lea r15, [0x140082b70]
cmp rcx, r14
je 0x14002a10a
test byte [rcx + 0x1c], 4
je 0x14002a10a
cmp byte [rcx + 0x19], 5
jb 0x14002a10a
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, r15
call fcn.140001024
mov rcx, qword [0x1400982a0]
lea rax, str.InboxLOG.txt
test ebx, ebx
lea rdx, str.OutboxLOG.txt
cmove rdx, rax
call fcn.14002a728
mov rsi, rax
test rax, rax
jne 0x14002a161
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a2a2
test byte [rcx + 0x1c], 4
je 0x14002a2a2
cmp byte [rcx + 0x19], 2
jb 0x14002a2a2
lea edx, [rax + 0x64]
jmp 0x14002a296
lea rax, [0x140098080]
test ebx, ebx
lea rdi, [0x1400980b0]
cmove rdi, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14002a1c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a2a2
test byte [rcx + 0x1c], 4
je 0x14002a2a2
cmp byte [rcx + 0x19], 2
jb 0x14002a2a2
mov edx, 0x65
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.140001048
jmp 0x14002a2a2
or qword [rdi], 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002a20a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a20a
test byte [rcx + 0x1c], 4
je 0x14002a20a
cmp byte [rcx + 0x19], 2
jb 0x14002a20a
mov rcx, qword [rcx + 0x10]
mov edx, 0x66
mov r9d, eax
mov r8, r15
call fcn.140001048
mov rdx, qword [0x1400982a0]
mov r8, rdi
mov ecx, ebx
call fcn.14002993c
mov ebx, eax
test eax, eax
je 0x14002a243
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a2a2
test byte [rcx + 0x1c], 4
je 0x14002a2a2
cmp byte [rcx + 0x19], 2
jb 0x14002a2a2
mov edx, 0x67
jmp 0x14002a1b3
mov rcx, qword [rdi]
call fcn.14002a85c
test eax, eax
jne 0x14002a279
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a2a2
test byte [rcx + 0x1c], 4
je 0x14002a280
cmp byte [rcx + 0x19], 2
jb 0x14002a280
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x68]
xor r9d, r9d
mov r8, r15
call fcn.140001048
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002a2a2
test byte [rcx + 0x1c], 4
je 0x14002a2a2
cmp byte [rcx + 0x19], 5
jb 0x14002a2a2
mov edx, 0x69
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.140001024
mov rcx, rsi
call fcn.1400634d4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14002a85c
Capabilities:
Timestomp file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rdi
sub rsp, 0x40
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [r11 - 0x28], 0
mov rdi, rcx
xor eax, eax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov rcx, qword [str.___t_]
lea rbp, str.___t_
cmp rcx, rbp
je 0x14002a8bf
test byte [rcx + 0x1c], 4
je 0x14002a8bf
cmp byte [rcx + 0x19], 5
jb 0x14002a8bf
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x79]
lea r8, [0x140082b70]
call fcn.140001024
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ebx, eax
test eax, eax
jne 0x14002a903
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x14002a951
test byte [rcx + 0x1c], 4
je 0x14002a951
cmp byte [rcx + 0x19], 2
jb 0x14002a951
lea edx, [rbx + 0x7a]
jmp 0x14002a93e
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
test eax, eax
jne 0x14002a951
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x14002a951
test byte [rcx + 0x1c], 4
je 0x14002a951
cmp byte [rcx + 0x19], 2
jb 0x14002a951
lea edx, [rbx + 0x7b]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082b70]
mov r9d, eax
call fcn.140001048
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140078ba0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002daa8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov rcx, qword [str.___t_]
lea rbp, str.___t_
cmp rcx, rbp
je 0x14002db03
test byte [rcx + 0x1c], 4
je 0x14002db03
cmp byte [rcx + 0x19], 5
jb 0x14002db03
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082c50]
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, [0x140082be8]
call fcn.14002d638
test eax, eax
jne 0x14002db71
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x14002db6a
test byte [rax + 0x1c], 4
je 0x14002db6a
cmp byte [rax + 0x19], 2
jb 0x14002db6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082c50]
mov r9d, eax
mov edx, 0x39
mov rcx, qword [rcx + 0x10]
call fcn.140001048
xor eax, eax
jmp 0x14002dc2d
lea rcx, [rsp + 0x30]
call fcn.14006409c
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14002dc28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x14002dbc0
test byte [rcx + 0x1c], 4
je 0x14002dbc0
cmp byte [rcx + 0x19], 2
jb 0x14002dbc0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082c50]
mov edx, 0x3a
mov r9d, eax
call fcn.140001048
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002dc1b
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x14002dc1b
test byte [rax + 0x1c], 4
je 0x14002dc1b
cmp byte [rax + 0x19], 2
jb 0x14002dc1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082c50]
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.14002bf08
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002db6a
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002dc58
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rcx, qword [str.___t_]
lea rbp, str.___t_
cmp rcx, rbp
je 0x14002dcb3
test byte [rcx + 0x1c], 4
je 0x14002dcb3
cmp byte [rcx + 0x19], 5
jb 0x14002dcb3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082c50]
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 0x14002dde9
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x140082bf0]
call fcn.14002d638
test eax, eax
jne 0x14002dd2f
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x14002dd28
test byte [rax + 0x1c], 4
je 0x14002dd28
cmp byte [rax + 0x19], 2
jb 0x14002dd28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082c50]
mov r9d, eax
mov edx, 0x3d
mov rcx, qword [rcx + 0x10]
call fcn.140001048
xor eax, eax
jmp 0x14002ddee
lea rcx, [rsp + 0x30]
call fcn.14006409c
mov qword [rbx + 0x258], rax
test rax, rax
jne 0x14002dde9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x14002dd81
test byte [rcx + 0x1c], 4
je 0x14002dd81
cmp byte [rcx + 0x19], 2
jb 0x14002dd81
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082c50]
mov edx, 0x3e
mov r9d, eax
call fcn.140001048
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002dddc
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x14002dddc
test byte [rax + 0x1c], 4
je 0x14002dddc
cmp byte [rax + 0x19], 2
jb 0x14002dddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082c50]
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.14002bf08
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002dd28
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003bfa0
Capabilities:
Delete file

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

Function at 0x14003c640
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 [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14003c68d
test byte [rcx + 0x1c], 4
je 0x14003c68d
cmp byte [rcx + 0x19], 5
jb 0x14003c68d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
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]
test eax, eax
jne 0x14003c6e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14003c71e
test byte [rcx + 0x1c], 4
je 0x14003c71e
cmp byte [rcx + 0x19], 2
jb 0x14003c71e
mov edx, 0x137
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
call fcn.140001048
jmp 0x14003c71e
cmp dword [rsp + 0x60], 4
je 0x14003c718
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14003c71e
test byte [rcx + 0x1c], 4
je 0x14003c71e
cmp byte [rcx + 0x19], 2
jb 0x14003c71e
mov edx, 0x138
jmp 0x14003c6d7
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 0x14003ce68
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 [str.___t_]
lea r13, str.___t_
cmp rcx, r13
je 0x14003ced0
test byte [rcx + 0x1c], 4
je 0x14003ced0
cmp byte [rcx + 0x19], 5
jb 0x14003ced0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov edx, 0x14a
call fcn.140001024
lea r9, [rbp + 0x38]
mov edx, r14d
lea r8, [rbp - 8]
mov rcx, r15
call fcn.14003cb3c
mov ebx, eax
test eax, eax
je 0x14003cf2a
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003d073
test byte [rcx + 0x1c], 4
je 0x14003d073
cmp byte [rcx + 0x19], 2
jb 0x14003d073
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov edx, 0x14b
mov r9d, eax
call fcn.140001048
jmp 0x14003d073
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]
test eax, eax
jne 0x14003cf81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003d073
test byte [rcx + 0x1c], 4
je 0x14003d073
cmp byte [rcx + 0x19], 2
jb 0x14003d073
mov edx, 0x14c
jmp 0x14003d060
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]
test eax, eax
jne 0x14003cfd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003d073
test byte [rcx + 0x1c], 4
je 0x14003d073
cmp byte [rcx + 0x19], 2
jb 0x14003d073
mov edx, 0x14d
jmp 0x14003d060
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]
test eax, eax
jne 0x14003d01e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003d073
test byte [rcx + 0x1c], 4
je 0x14003d073
cmp byte [rcx + 0x19], 2
jb 0x14003d073
mov edx, 0x14e
jmp 0x14003d060
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]
test eax, eax
jne 0x14003d073
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003d073
test byte [rcx + 0x1c], 4
je 0x14003d073
cmp byte [rcx + 0x19], 2
jb 0x14003d073
mov edx, 0x14f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov r9d, eax
call fcn.140001048
cmp qword [rbp - 8], 0
je 0x14003d083
mov rcx, qword [rbp - 8]
call fcn.1400634d4
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 0x14003d28c
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 [str.___t_]
lea r12, str.___t_
lea r13, [0x1400836a8]
cmp rcx, r12
je 0x14003d2e3
test byte [rcx + 0x1c], 4
je 0x14003d2e3
cmp byte [rcx + 0x19], 5
jb 0x14003d2e3
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]
cmp eax, 0xffffffff
jne 0x14003d33e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d485
test byte [rcx + 0x1c], 4
je 0x14003d485
cmp byte [rcx + 0x19], 2
jb 0x14003d485
mov edx, 0x156
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001048
jmp 0x14003d485
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x678
jae 0x14003d388
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d37e
test byte [rcx + 0x1c], 4
je 0x14003d37e
cmp byte [rcx + 0x19], 3
jb 0x14003d37e
mov rcx, qword [rcx + 0x10]
mov edx, 0x157
mov r9d, edi
mov r8, r13
call fcn.140001048
mov ebx, 0x570
jmp 0x14003d496
mov rcx, rdi
call fcn.140063430
mov rsi, rax
test rax, rax
jne 0x14003d3ce
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d3c4
test byte [rcx + 0x1c], 4
je 0x14003d3c4
cmp byte [rcx + 0x19], 2
jb 0x14003d3c4
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r9d, edi
mov r8, r13
call fcn.140001048
mov ebx, 8
jmp 0x14003d496
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]
test eax, eax
jne 0x14003d419
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d485
test byte [rcx + 0x1c], 4
je 0x14003d485
cmp byte [rcx + 0x19], 2
jb 0x14003d485
mov edx, 0x159
jmp 0x14003d32a
mov edx, dword [rsp + 0x70]
cmp edi, edx
je 0x14003d454
mov ebx, 0x26
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d489
test byte [rcx + 0x1c], 4
je 0x14003d489
cmp byte [rcx + 0x19], 2
jb 0x14003d489
mov edx, 0x15a
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r13
call fcn.140001048
jmp 0x14003d489
mov rcx, rsi
call fcn.140034e68
test eax, eax
jne 0x14003d482
lea ebx, [rax + 0xd]
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003d489
test byte [rcx + 0x1c], 4
je 0x14003d489
cmp byte [rcx + 0x19], 2
jb 0x14003d489
mov edx, 0x15b
jmp 0x14003d443
mov qword [r14], rsi
test ebx, ebx
je 0x14003d496
test rsi, rsi
je 0x14003d496
mov rcx, rsi
call fcn.1400634d4
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 0x140043584
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 0x1400435b4
mov rcx, qword [rcx + 0x248]
mov rbp, qword [rcx + 0x198]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400435ef
test byte [rcx + 0x1c], 4
je 0x1400435ef
cmp byte [rcx + 0x19], 5
jb 0x1400435ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083920]
mov edx, 0x10
call fcn.140001024
cmp esi, 2
jne 0x140043615
neg ebx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
test edi, eax
je 0x140043607
lea eax, [rsi - 1]
jmp 0x14004361e
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x14004361e
mov edx, ebx
mov ecx, edi
call fcn.14004ea94
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