joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021569c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x140215727
lea rax, [0x14022c5d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1402c45c0]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14021506a
lea rax, [0x14022c640]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14021506a
jmp 0x140215732
cmp qword [rsi + 0x18], 0
je 0x14021589f
mov rax, qword [rsi]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r12, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r12
mov rdi, rax
mov rbx, qword [rsi + 0x18]
shl rbx, 6
lea r15, [rbx + 0x60]
mov rcx, r15
call fcn.140214e90
mov rbp, rax
mov edx, ebp
and edx, 0xfffff000
add rdx, rdi
add rbx, 0x105f
and rbx, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rbx
mov r9d, 0x1000
call r12
test rax, rax
je 0x1402158c5
mov rdi, rax
and ebp, 0xfff
add rdi, rbp
movaps xmm0, xmmword [0x14029de10]
lea rbx, [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx], r15
mov dword [rbx + 0x18], 0
mov qword [rbx + 8], 0x20
lea rcx, [0x14032ccb0]
mov r8d, 0xd8
xor edx, edx
call fcn.140259320
mov rcx, rsi
mov rdx, rdi
mov r8, r15
mov r9, rbx
call fcn.140215b80
mov ebp, eax
test eax, eax
jne 0x1402158a1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x1402158a1
cmp qword [rsp + 0x40], 0x20
jne 0x1402158a1
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [0x14032ccb0]
mov r9d, 0xd8
call fcn.1401e61f8
mov ebp, eax
jmp 0x1402158a1
xor ebp, ebp
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140257200
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
int3
Function at 0x14021ceee
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea rbx, [rsp + 0x40]
mov dword [rbx], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x14021cf4d
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140257200
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14021d010
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x14029de10]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x14021d0a3
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x14021d0a3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x10a
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.14001eb4a
mov rcx, rsi
call fcn.1400f68f0
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
Function at 0x14022b9d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14022ba12
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14022ba1c
add rdi, rbx
sub rsi, rbx
jne 0x14022b9f0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x14022c5b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret

Function at 0x140239c82
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x14029de10]
lea rbx, [rsp + 0x160]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.14001db1c
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, rbx
call fcn.140247f5a
test al, al
je 0x140239d50
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140239d99
mov rcx, rdi
call fcn.14001db1c
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, rdi
mov r9, r15
call fcn.140247f5a
test al, al
je 0x140239de2
cmp dword [r15], 0x4550
jne 0x140239e25
mov sil, 1
test r14, r14
je 0x140239e90
mov qword [r14], rdi
jmp 0x140239e90
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x140239e8e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x140239e65
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x140239e8e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140239e65
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x140239e8e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140239d8e
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x140239e8e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.14001eb4a
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140239e7b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14001eb4a
mov rcx, rdi
call fcn.1400f68f0
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140239eb2
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x14029de10]
lea rbx, [rsp + 0x160]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.14001db1c
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, rbx
call fcn.140247f5a
test al, al
je 0x140239f80
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140239fc9
mov rcx, rdi
call fcn.14001db1c
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, rdi
mov r9, r15
call fcn.140247f5a
test al, al
je 0x14023a012
cmp dword [r15], 0x4550
jne 0x14023a055
mov sil, 1
test r14, r14
je 0x14023a0c0
mov qword [r14], rdi
jmp 0x14023a0c0
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x14023a0be
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x14023a095
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x14023a0be
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14023a095
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x14023a0be
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140239fbe
mov ecx, 1
call fcn.1400f6360
test al, al
je 0x14023a0be
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400f6410
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.14001eb4a
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14023a0ab
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14001eb4a
mov rcx, rdi
call fcn.1400f68f0
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14023cd8c
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx + 0x78], 0x1003f
mov eax, dword [rdx + 0x234]
mov dword [rcx + 0x7c], eax
mov eax, dword [rdx + 0x238]
mov dword [rcx + 0x80], eax
mov eax, dword [rdx + 0x23c]
mov dword [rcx + 0x84], eax
mov eax, dword [rdx + 0x240]
mov dword [rcx + 0x88], eax
mov eax, dword [rdx + 0x24c]
mov dword [rcx + 0x8c], eax
mov eax, dword [rdx + 0x250]
mov dword [rcx + 0x90], eax
lea rdx, [rcx + 0x94]
lea rbx, [rdi + 0x34]
mov rcx, rbx
call fcn.140237eac
movzx eax, word [rdi + 0x30]
mov dword [rsi + 0x104], eax
movzx eax, word [rdi + 0x2e]
mov dword [rsi + 0x108], eax
movzx eax, word [rdi + 0x2c]
mov dword [rsi + 0x10c], eax
movzx eax, word [rdi + 0x2a]
mov dword [rsi + 0x110], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x114], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x118], eax
mov eax, dword [rdi + 4]
mov dword [rsi + 0x11c], eax
mov eax, dword [rdi + 0xc]
mov dword [rsi + 0x120], eax
mov eax, dword [rdi + 8]
mov dword [rsi + 0x124], eax
mov eax, dword [rdi]
mov dword [rsi + 0x128], eax
mov eax, dword [rdi + 0x18]
mov dword [rsi + 0x12c], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x130], eax
movzx eax, word [rdi + 0x28]
mov dword [rsi + 0x134], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x138], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x13c], eax
movzx eax, word [rdi + 0x32]
mov dword [rsi + 0x140], eax
add rsi, 0x144
mov r8d, 0x200
mov rcx, rsi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140258c70

Function at 0x1402427a8
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140242840
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14024da42
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x14024da64
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x14024dac3
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x14024da50
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
shl edx, 6
and r8d, 0xfffe
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x14024da97
and r9d, 1
or r9, 2
mov r10, r9
jmp 0x14024dabd
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x14024daf3
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x14024dae8
mov r10d, 3
test r9w, r9w
js 0x14024daf3
lea rcx, [rcx + r10*2]
jmp 0x14024da81
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x14024daf3
movzx eax, word [rcx + 2]
test dl, 1
je 0x14024daf3
shl eax, 0x10
mov r10d, eax
jmp 0x14024dafc
xor edx, r10d
test edx, 0xffc0
je 0x14024daf4
ret
and r10d, 0x3f
shl r10d, 0x10
movzx eax, word [rcx + 4]
or eax, r10d
ret

Function at 0x140254cf8
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140254d13
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14024b1c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140254dc1
mov rbx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x140254dc1
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140254dec
mov qword [rdi + 0x28], r14
mov al, 1
jmp 0x140254d09
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140254d07
mov dword [rsi], 7
jmp 0x140254d07
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140254d07
Function at 0x1402698f4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140282310
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140282310
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140269a44
cmp rax, 0xffffffffffffffff
je 0x140269a44
xor edi, edi
test rbp, rbp
jle 0x1402699ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140114e80
mov rbx, rax
test rax, rax
jne 0x14026997c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402699e5
mov edx, 0x8000
mov ecx, r14d
call fcn.14026f4b8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402737d4
cmp eax, 0xffffffff
je 0x1402699c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14026998c
mov edx, r15d
mov ecx, r14d
call fcn.14026f4b8
jmp 0x1402699e5
cmp byte [rsi + 0x38], dil
je 0x1402699dc
cmp dword [rsi + 0x34], 5
jne 0x1402699dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1402699e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140114df0
jmp 0x140269a58
jns 0x140269a58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140282310
cmp rax, 0xffffffffffffffff
jne 0x140269a10
cmp byte [rsi + 0x30], dil
je 0x140269a58
mov edi, dword [rsi + 0x2c]
jmp 0x140269a58
mov ecx, r14d
call fcn.14026d17c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140269a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140269a58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140269a51
mov eax, dword [rsi + 0x2c]
jmp 0x140269a56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140282310
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14026cc54
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140292a38]
mov rbp, rcx
call fcn.140283764
xor edi, edi
test rax, rax
je 0x14026cd3a
mov ebx, edi
call fcn.14026c628
mov r14d, dword [rax]
call fcn.14026c628
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140273458
mov rsi, rax
test rax, rax
je 0x14026cccb
call fcn.14026c628
mov dword [rax], r14d
jmp 0x14026ccf5
call fcn.14026c628
cmp dword [rax], 0x22
jne 0x14026cd32
call fcn.14026c628
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140273458
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14026cd32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14026ccf9
cmp rax, 3
je 0x14026cd14
mov rcx, rsi
call fcn.14026cbb0
test al, al
je 0x14026cd25
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14026cd25
mov dil, 1
mov rcx, rbx
call fcn.140114df0
mov al, dil
jmp 0x14026cd3c
mov rcx, rbx
call fcn.140114df0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140257200
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14026f080
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14031e330]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14026f0de
cmp word [rdx], r12w
jne 0x14026f0de
or byte [rax + r8*8 + 0x38], cl
jmp 0x14026f0e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14026f23f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14026f21a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14026f11d
mov rcx, r9
jmp 0x14026f140
cmp r9, rdx
jae 0x14026f157
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14026f101
jmp 0x14026f23f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14026f214
cmp dword [rsp + 0x80], edi
je 0x14026f214
mov rdx, r14
lea r11, [0x14031e330]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14026f1ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14026f1c0
mov word [rbx], r12w
jmp 0x14026f23b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14026f1c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14026f23b
cmp word [rsp + 0x70], r12w
jne 0x14026f1fa
cmp rbx, rsi
je 0x14026f1ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140282310
cmp word [rsp + 0x70], r12w
je 0x14026f23f
mov word [rbx], r13w
jmp 0x14026f23b
lea r11, [0x14031e330]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14026f237
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14026f23f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140276430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1402571a0
sub rsp, rax
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14026c9e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14027647f
mov rax, rbp
jmp 0x140276587
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, sym.software_reporter_tool.exe_Ordinal_0
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x31e330]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402823b4
mov r13, rax
lea rax, sym.software_reporter_tool.exe_Ordinal_0
mov rcx, qword [rax + rbx*8 + 0x31e330]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140276583
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140276583
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402823b4
test rax, rax
js 0x140276583
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140276583
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140276575
lea r8, sym.software_reporter_tool.exe_Ordinal_0
cmp rcx, rdx
jae 0x140276575
cmp byte [rcx], 0xd
jne 0x14027655b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14027656a
cmp byte [rcx + 1], 0xa
jne 0x14027656a
inc rcx
jmp 0x14027656a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30c310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14027653d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140276587
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140257200
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret