joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400612a4
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 0x50]
mov dword [r14], 7
lea r15, [rcx + 0x58]
mov rcx, r15
call fcn.1400611c8
lea r12, [rbx + 0x60]
mov rcx, r12
call fcn.1400611c8
lea rax, [rbx + 0x68]
mov rcx, rax
call fcn.1400611c8
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.1400611c8
mov byte [rbx + 0x4c], 0
test rsi, rsi
jne 0x14006133f
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008388c
jmp 0x1400614b9
and qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004b7c
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400613fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140061477
cmp dword [rsp + 0x44], 0x44
ja 0x1400614e2
cmp dword [rsp + 0x40], 0x80
jbe 0x1400613cf
mov edx, dword [rsp + 0x40]
add rdx, rdx
lea rcx, [rsp + 0x50]
call fcn.140060dc4
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140061477
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x140061422
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008388c
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x140061477
mov rdx, rdi
mov rcx, r12
call fcn.140061094
mov rdx, rsi
mov rcx, r15
call fcn.140061094
xor edx, edx
mov rcx, r13
call fcn.140061094
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x140061473
lea rcx, [rsp + 0x50]
call fcn.140004a70
mov al, 1
jmp 0x1400614bb
mov dword [r14], 7
mov rcx, r15
call fcn.1400611c8
mov rcx, r12
call fcn.1400611c8
lea rcx, [rbx + 0x68]
call fcn.1400611c8
mov rcx, r13
call fcn.1400611c8
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x1400614b9
lea rcx, [rsp + 0x50]
call fcn.140004a70
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001c2c
int3
Function at 0x140087ea4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
lea r12, [0x14014ee70]
mov ebp, 1
cmp rcx, r14
je 0x140087f08
test byte [rcx + 0x1c], bpl
je 0x140087f08
cmp byte [rcx + 0x19], 4
jb 0x140087f08
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.140004c54
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, edi
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140087f75
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x140088018
test byte [rcx + 0x1c], 8
je 0x140087ff6
cmp byte [rcx + 0x19], 2
jb 0x140087ff6
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 7]
mov r9d, eax
mov r8, r12
call fcn.140004c78
jmp 0x140087fef
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x140087faa
test byte [rcx + 0x1c], bpl
je 0x140087faa
cmp byte [rcx + 0x19], 4
jb 0x140087faa
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x140087fec
test byte [rcx + 0x1c], bpl
je 0x140087fec
cmp byte [rcx + 0x19], 4
jb 0x140087fec
mov rcx, qword [rcx + 0x10]
lea rax, [0x140149c00]
test dil, dil
lea r9, [0x140149c08]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.140005bdc
mov byte [rsi], dil
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x140088018
test byte [rcx + 0x1c], bpl
je 0x140088018
cmp byte [rcx + 0x19], 4
jb 0x140088018
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14008ab80
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008abc7
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008388c
test rsi, rsi
jne 0x14008abe4
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008388c
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14008ac47
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008acd8
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14008acb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008acda
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008acae
test byte [rcx + 0x1c], 1
je 0x14008acae
cmp byte [rcx + 0x19], 2
jb 0x14008acae
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14014f088]
call fcn.140004c54
mov ebx, 0x8000ffff
jmp 0x14008acd8
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.14008468c
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x14008acdc
mov qword [rsi], rdi
test ebx, ebx
jns 0x14008ace5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14008ad98
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14008adc4
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008388c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008ae47
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.140088518
test eax, eax
js 0x14008ae49
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008ae47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008ae38
test byte [rcx + 0x1c], 2
je 0x14008ae38
cmp byte [rcx + 0x19], 2
jb 0x14008ae38
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f088]
mov edx, 0x40
mov r9d, ebx
call fcn.140004c78
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008ae49
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b69c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
cmp rcx, rbp
je 0x14008b6ff
test dword [rcx + 0x1c], 0x200
je 0x14008b6ff
cmp byte [rcx + 0x19], 4
jb 0x14008b6ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0xf
call fcn.140004c54
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x14008b721
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea r9, [rsp + 0x20]
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, 0xc0000023
test eax, eax
jns 0x14008b7af
cmp eax, ebx
je 0x14008b7af
cmp eax, 0x80000005
je 0x14008b7af
cmp eax, 0xc0000004
je 0x14008b7af
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8f3
test byte [rcx + 0x1c], 8
je 0x14008b8ca
cmp byte [rcx + 0x19], 2
jb 0x14008b8ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x10
mov r9d, eax
call fcn.140004c78
jmp 0x14008b8c3
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008b7cb
mov ebx, 0x8007000e
jmp 0x14008b8c3
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14008b83d
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8ba
test byte [rcx + 0x1c], 8
je 0x14008b8ba
cmp byte [rcx + 0x19], 2
jb 0x14008b8ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x11
mov r9d, eax
call fcn.140004c78
jmp 0x14008b8ba
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008b855
mov ecx, ebx
call fcn.14003a444
jmp 0x14008b8b8
test dl, 1
je 0x14008b875
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, pe_nt_image_headers64
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
movzx edx, word [rdi]
movzx eax, dx
add eax, 8
cmp eax, dword [rsp + 0x20]
jbe 0x14008b888
mov ebx, 0x8000ffff
jmp 0x14008b8ba
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x30]
movzx r9d, dx
mov edx, 0x104
shr r9, 1
call fcn.140083960
mov ebx, eax
test eax, eax
js 0x14008b8ba
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14008468c
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8f3
test dword [rcx + 0x1c], 0x200
je 0x14008b8f3
cmp byte [rcx + 0x19], 4
jb 0x14008b8f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x12
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008c074
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14008c0ca
test byte [rcx + 0x1c], 1
je 0x14008c0ca
cmp byte [rcx + 0x19], 4
jb 0x14008c0ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x1f
call fcn.140004c54
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
lea r9d, [rbx + 0xc]
mov dword [rsp + 0x34], ebx
lea edx, [rbx + 5]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x14008c12e
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c195
cmp byte [rcx + 0x19], 2
jb 0x14008c195
mov edx, 0x20
jmp 0x14008c17b
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov r9d, 4
or eax, 0xe
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
test eax, eax
jns 0x14008c18e
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c195
cmp byte [rcx + 0x19], 2
jb 0x14008c195
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov r9d, eax
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c1bb
cmp byte [rcx + 0x19], 4
jb 0x14008c1bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x22
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1400924c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x140092504
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.14008388c
and qword [rdi], 0
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14009253c
test byte [rcx + 0x1c], 1
je 0x14009253c
cmp byte [rcx + 0x19], 4
jb 0x14009253c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fc58]
mov edx, 0x23
call fcn.140004c54
mov ebx, 0x208
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, str._SystemRoot_Logs
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14003a4d0
mov ebx, eax
test eax, eax
js 0x1400925c6
mov r8d, 0x104
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400925b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400925c6
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.14008468c
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x1400925f3
test byte [rcx + 0x1c], 1
je 0x1400925f3
cmp byte [rcx + 0x19], 4
jb 0x1400925f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fc58]
mov edx, 0x24
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a2790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x78], rax
and dword [rsp + 0x30], 0
mov edi, edx
mov rsi, rcx
mov ebx, 0x20
mov r8d, ebx
lea rcx, [rsp + 0x58]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x58]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a2840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400a282d
test byte [rcx + 0x1c], 2
je 0x1400a282d
cmp byte [rcx + 0x19], 2
jb 0x1400a282d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x43]
mov r9d, edi
lea r8, [0x140150b88]
call fcn.140004c78
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a28de
mov r9d, dword [rsp + 0x30]
cmp r9d, ebx
je 0x1400a2884
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400a28d4
test byte [rcx + 0x1c], 2
je 0x1400a28d4
cmp byte [rcx + 0x19], 2
jb 0x1400a28d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150b88]
mov edx, 0x64
mov dword [rsp + 0x20], ebx
call fcn.14000fe18
jmp 0x1400a28d4
mov rsi, qword [rsi + 0x10]
lea rcx, [rsp + 0x38]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14008ded8
mov ebx, eax
test eax, eax
js 0x1400a28c3
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
call fcn.14008e598
test al, al
mov ecx, 0x80004005
cmove ebx, ecx
lea r8, [rsi + 0x10]
lea rdx, [rsi + 8]
call fcn.14008e6ec
test ebx, ebx
jns 0x1400a28de
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400a2908
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x38]
call fcn.14008ded8
mov ebx, eax
test eax, eax
js 0x1400a29e3
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a29c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400a29b4
test byte [rcx + 0x1c], 2
je 0x1400a29b4
cmp byte [rcx + 0x19], 2
jb 0x1400a29b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150b88]
mov edx, 0x65
mov r9d, edi
call fcn.140004c78
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a29e3
cmp dword [rsp + 0x30], 0x20
je 0x1400a29e3
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, [0x140150308]
call fcn.14008388c
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b0a84
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, qword [rsp + 0x2f0]
mov r13b, r8b
mov r14, qword [rsp + 0x2f8]
mov r12b, dl
mov rsi, qword [rsp + 0x308]
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], rcx
mov r10, qword [0x140170048]
lea rbx, [0x140170048]
cmp r10, rbx
je 0x1400b0b4a
test byte [r10 + 0x1c], 4
je 0x1400b0b0f
cmp byte [r10 + 0x19], 4
jb 0x1400b0b0f
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x60
call fcn.140004c54
mov r10, qword [0x140170048]
cmp r10, rbx
je 0x1400b0b4a
test byte [r10 + 0x1c], 4
je 0x1400b0b4a
cmp byte [r10 + 0x19], 5
jb 0x1400b0b4a
movzx eax, r13b
lea r8, [0x1401521b8]
movzx ecx, r12b
mov edx, 0x61
mov dword [rsp + 0x28], eax
mov r9, r14
mov dword [rsp + 0x20], ecx
mov rcx, qword [r10 + 0x10]
call fcn.14001056c
or rdx, 0xffffffffffffffff
mov rcx, rdx
xor eax, eax
inc rcx
cmp word [r15 + rcx*2], ax
jne 0x1400b0b53
mov rdi, rdx
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x1400b0b60
lea ebp, [rdi + rcx]
lea eax, [rbp + 1]
cmp eax, 0x104
jbe 0x1400b0ba6
mov dword [rsi], 0x57
mov eax, 2
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140141340
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, ecx
mov rdx, r15
lea rcx, [rsp + 0x60]
lea rbx, [rax + rax]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, edi
lea rcx, [rsp + 0x60]
add r8, r8
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov eax, ebp
add rax, rax
cmp rax, 0x208
jae 0x1400b0d07
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor edx, edx
mov word [rsp + rax + 0x60], cx
mov dword [rsp + 0x28], 0x2000080
lea r8d, [rcx + 7]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b0c7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400b0c2e
xor eax, eax
jmp 0x1400b0b82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400b0c73
test byte [rcx + 0x1c], 4
je 0x1400b0c73
cmp byte [rcx + 0x19], 2
jb 0x1400b0c73
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0x62
mov dword [rsp + 0x20], eax
lea r8, [0x1401521b8]
call fcn.140005c44
mov eax, 6
jmp 0x1400b0b82
mov r8, qword [rsp + 0x300]
lea r9, [0x1400afc70]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
movzx eax, r12b
mov dword [rsp + 0x50], eax
movzx eax, r13b
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.1400afd10
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400b0d00
test byte [rcx + 0x1c], 4
je 0x1400b0d00
cmp byte [rcx + 0x19], 4
jb 0x1400b0d00
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x63
call fcn.140004c54
mov eax, edi
jmp 0x1400b0b82
call fcn.140141518
int3