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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140001230
mov rcx, rdi
mov rbp, rax
call fcn.140004320
cmp eax, 0xffffffff
jne 0x1400013cc
or eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x2078]
lea rbx, [rsi + 0x12]
mov rdx, rbx
call fcn.140004670
mov ecx, dword [rsi + 0xc]
mov rdi, rax
call sub.WS2_32.dll_ntohl
mov esi, eax
test rdi, rdi
jne 0x140001411
mov r8, rbx
lea rdx, str._s_could_not_be_extracted__n
lea rcx, str.fopen
call fcn.140001920
or eax, 0xffffffff
jmp 0x14000145d
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14000b1c8
cmp rax, 1
je 0x14000144b
test rsi, rsi
je 0x14000144b
mov r8, rbx
lea rdx, str.Failed_to_write_all_bytes_for__s_n
lea rcx, str.fwrite
call fcn.140001920
or eax, 0xffffffff
jmp 0x14000145d
mov rcx, rdi
call fcn.14000a41c
mov rcx, rbp
call fcn.14000a388
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea esi, [rdx - 0x60]
mov rdi, rcx
mov rcx, qword [rcx]
lea rbx, [rsp + 0x28]
mov edx, esi
xor r8d, r8d
call fcn.14000aa9c
test eax, eax
jne 0x140001506
mov r9, qword [rdi]
lea edx, [rax + 0x60]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.14000a760
cmp rax, 1
jb 0x140001506
nop word [rax + rax]
mov r8d, 8
lea rcx, str.MEI_f_v_n_v
mov rdx, rbx
call fcn.14000a300
test eax, eax
je 0x14000150b
dec rbx
lea rax, [rsp + 0x20]
cmp rbx, rax
jae 0x1400014e0
or eax, 0xffffffff
jmp 0x140001557
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0x30], xmm1
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdi + 0x50], xmm1
movsd xmm1, qword [rbx + 0x50]
movups xmmword [rdi + 0x60], xmm0
movsd qword [rdi + 0x70], xmm1
mov ecx, dword [rdi + 0x28]
call sub.WS2_32.dll_ntohl
lea rcx, [rsp + 0x20]
sub ebx, ecx
add ebx, esi
sub ebx, eax
add ebx, 0x58
mov dword [rdi + 8], ebx
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140008520
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001670
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000169b
add rcx, 0x78
lea rdx, [0x140022400]
call fcn.140002db0
mov qword [rbx], rax
test rax, rax
je 0x140001728
mov rcx, rbx
call fcn.140001130
cmp eax, 1
jge 0x1400016be
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14000aa9c
mov rcx, qword [rbx]
call fcn.14000af80
mov edx, eax
mov rcx, rbx
call fcn.140001480
cmp eax, 0xffffffff
je 0x140001728
mov ecx, dword [rbx + 0x34]
mov dword [rbx + 0x407c], 0
call sub.WS2_32.dll_ntohl
mov dword [0x140032b14], eax
mov ecx, dword [rbx + 0x2c]
call sub.WS2_32.dll_ntohl
add eax, dword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
mov edx, eax
call fcn.14000aa9c
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000a390
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001731
lea rdx, str.Could_not_allocate_buffer_for_TOC.
lea rcx, str.malloc
call fcn.140001920
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov r9, qword [rbx]
mov r8d, 1
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.14000a760
cmp rax, 1
jae 0x14000176f
lea rdx, str.Could_not_read_from_file.
lea rcx, str.fread
call fcn.140001920
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
add rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rbx]
call fcn.14000a4b4
test eax, eax
je 0x1400017a2
lea rcx, str.Error_on_file_n.
call fcn.140001d40
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400017b6
call fcn.14000a41c
mov qword [rbx], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140004200
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140008560
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140022400]
call fcn.140002db0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140004670
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400042f1
mov rcx, rsi
test rax, rax
je 0x1400042f9
call fcn.14000a488
test eax, eax
jne 0x1400042dd
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000a760
test rax, rax
jne 0x14000429e
mov rcx, rsi
call fcn.14000a4b4
test eax, eax
je 0x1400042c4
mov rcx, rsi
jmp 0x1400042d5
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000b1c8
test rax, rax
je 0x1400042d2
mov rcx, rbx
call fcn.14000a4b4
test eax, eax
jne 0x1400042d2
mov rcx, rsi
call fcn.14000a488
test eax, eax
je 0x140004270
jmp 0x1400042dd
mov rcx, rbx
call fcn.140010b50
or edi, 0xffffffff
mov rcx, rsi
call fcn.14000a41c
mov rcx, rbx
call fcn.14000a41c
mov eax, edi
jmp 0x140004301
test rbx, rbx
je 0x1400042fe
mov rcx, rbx
call fcn.14000a41c
or eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140008520
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004380
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x3070
call fcn.140008560
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x3060], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000441c
lea rcx, [0x140023928]
call fcn.1400045c0
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x1000
mov rsi, rax
call fcn.140002e20
xor r8d, r8d
lea rdx, [0x140023928]
xor ecx, ecx
call fcn.1400054b0
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov rdi, rax
call fcn.1400054b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000f890
mov rcx, rdi
call fcn.14000a388
mov rcx, rbx
call fcn.14000a388
jmp 0x140004421
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x1060]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140004fa0
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x1060]
call fcn.140010b34
mov rcx, rax
mov rdi, rax
call fcn.140005400
test eax, eax
je 0x140004509
mov rcx, rdi
call fcn.14000a388
inc ebx
cmp ebx, 5
jl 0x140004460
test rbp, rbp
je 0x140004502
xor r8d, r8d
lea rdx, [0x140023928]
xor ecx, ecx
call fcn.1400054b0
test rsi, rsi
je 0x1400044ec
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400054b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000f890
mov rcx, rdi
call fcn.14000a388
mov rcx, rbx
call fcn.14000a388
mov rcx, rsi
call fcn.14000a388
xor eax, eax
jmp 0x14000458b
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000a388
xor eax, eax
jmp 0x14000458b
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.1400055b0
mov rcx, rdi
call fcn.14000a388
test rbp, rbp
je 0x140004586
xor r8d, r8d
lea rdx, [0x140023928]
xor ecx, ecx
call fcn.1400054b0
test rsi, rsi
je 0x140004570
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400054b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000f890
mov rcx, rdi
call fcn.14000a388
mov rcx, rbx
call fcn.14000a388
mov rcx, rsi
jmp 0x140004581
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000a388
mov eax, 1
mov rcx, qword [rsp + 0x3060]
xor rcx, rsp
call fcn.140008520
lea r11, [rsp + 0x3070]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400045c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140008560
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400054b0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140004656
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400055b0
test rax, rax
je 0x140004656
cmp byte [rax], 0
je 0x140004656
mov rcx, rax
call fcn.14000eaf8
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008520
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008520
add rsp, 0x4038
ret

Function at 0x140004c40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400054b0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000a388
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004c80
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140008560
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400054b0
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.14001054c
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.14001054c
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.14001054c
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.14001054c
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000b36c
mov rcx, rax
call fcn.14000f1a8
mov ecx, eax
call fcn.1400100bc
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000b36c
mov rcx, rax
call fcn.14000f1a8
mov ecx, eax
call fcn.1400100bc
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000b36c
mov rcx, rax
call fcn.14000f1a8
mov ecx, eax
call fcn.1400100bc
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004dff
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140004e15
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x1400239f8]
call fcn.140001b20
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140008520
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret

Function at 0x140005400
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [str.D:_A__FA___S_1_3_4_]
xor r9d, r9d
mov rbx, rcx
movups xmm1, xmmword [0x140023be0]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x20], 0x18
movups xmmword [rsp + 0x38], xmm0
lea edx, [r9 + 1]
mov dword [rsp + 0x30], 0
movsd xmm0, qword [0x140023bf0]
lea rcx, [rsp + 0x38]
movsd qword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm1
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x14000547e
or eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008520
add rsp, 0x70
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008520
add rsp, 0x70
pop rbx
ret
Function at 0x14000f8c8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000f8e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000da94
or eax, 0xffffffff
jmp 0x14000f8ea
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000fc18
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14000f957
call fcn.14000db04
mov dword [rax], 0x16
call fcn.140013074
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008520
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x14000f91e
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000f9c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14000f998
cmp eax, 3
jbe 0x14000f9b5
cmp eax, 8
je 0x14000f9a5
cmp eax, 0x12
je 0x14000f9b5
call fcn.14000db04
mov dword [rax], 0x16
jmp 0x14000f92e
call fcn.14000db04
mov dword [rax], ntohl
jmp 0x14000f92e
call fcn.14000db04
mov dword [rax], 2
jmp 0x14000f92e
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.14000fb60
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14000fb60
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14000fb60
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140018510
test eax, eax
jne 0x14000fa23
mov rax, rdi
jmp 0x14000f932
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013094
int3
jmp 0x14000f8f0
Function at 0x14000fc20
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14000fa95
call fcn.14000db04
mov dword [rax], 0x16
call fcn.140013074
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008520
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x14000fa61
test rdx, rdx
je 0x14000fa61
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000faf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14000fac9
cmp eax, 3
jbe 0x14000fae3
cmp eax, 8
je 0x14000fad6
cmp eax, 0x12
je 0x14000fae3
call fcn.14000db04
mov dword [rax], 0x16
jmp 0x14000fa71
call fcn.14000db04
mov dword [rax], ntohl
jmp 0x14000fa71
call fcn.14000db04
mov dword [rax], 2
jmp 0x14000fa71
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.14000fb60
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14000fb60
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14000fb60
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140018510
test eax, eax
je 0x14000fa74
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013094
int3
jmp 0x14000fa38

Function at 0x140010738
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140010758
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000da94
or eax, 0xffffffff
jmp 0x14001075a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140011b28
Capabilities:
Parse pe header

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 esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400118fc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400118fc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400118fc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400118fc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400118fc
cmp dword [rcx + 0x84], 0xe
jbe 0x1400118fc
cmp dword [rcx + 0xf8], esi
je 0x1400118fc
mov ecx, r14d
call fcn.140011a44
mov ecx, 2
call fcn.140018380
nop
cmp byte [0x14003c730], 0
jne 0x1400119c6
mov r15d, 1
mov eax, r15d
xchg dword [0x14003c724], eax
test ebx, ebx
jne 0x14001196f
mov rdi, qword [0x140032010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14003c728]
cmp rcx, rax
je 0x140011966
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140008e40]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14003c740]
jmp 0x14001197b
cmp ebx, r15d
jne 0x140011981
lea rcx, [0x14003c758]
call fcn.140011ff8
nop
test ebx, ebx
jne 0x140011998
lea rdx, [0x1400223c0]
lea rcx, [0x140022398]
call fcn.1400117bc
lea rdx, [0x1400223d0]
lea rcx, [0x1400223c8]
call fcn.1400117bc
movzx eax, byte [0x14003c730]
test esi, esi
cmove eax, r15d
mov byte [0x14003c730], al
jmp 0x1400119c6
mov ecx, 2
call fcn.1400183d4
test esi, esi
jne 0x1400119dd
mov ecx, r14d
call fcn.1400119f8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001188c
Function at 0x1400140d4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140013f74
call fcn.14000db04
mov dword [rax], 0x16
call fcn.140013074
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140013f5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140013f5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140013fa6
lock or dword [rax + 0x14], 0x10
jmp 0x140013f5c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140013fc3
mov rcx, qword [rbp + 0x10]
call fcn.14001b3b4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000f1a8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400139ac
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14001401a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140013f5c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140014086
mov rcx, qword [rbp + 0x10]
call fcn.14000f1a8
cmp eax, 0xffffffff
je 0x14001406d
mov rcx, qword [rbp + 0x10]
call fcn.14000f1a8
cmp eax, 0xfffffffe
je 0x14001406d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000f1a8
movsxd rdi, eax
lea rsi, [0x14003c780]
mov rcx, rbx
sar rdi, 6
call fcn.14000f1a8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140014074
lea rax, [0x140032270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140014086
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400140bc
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400140b8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400140b8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140013f5f
jmp 0x140013f2c
Function at 0x140002418
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002462
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002462
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002462
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002462
cmp dword [rcx + 0x84], 0xe
jbe 0x140002462
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002464
xor al, al
add rsp, 0x28
ret
Function at 0x1400021c0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x258
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r9d, 0x40
lea r8, [0x1400350d0]
lea rdx, [0x1400350e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call fcn.140001e50
lea rdx, str.C:UsersPublic360safeHardwareDetect.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x14000224a
lea rdx, [rsp + 0x30]
lea rcx, str.Failed_to_execute_file:__s_n
call fcn.140001160
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140006110
add rsp, 0x258
ret

Function at 0x140002740
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002762
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400027dc
mov rdi, r14
mov rcx, rbx
call fcn.140003eb0
test rax, rax
jle 0x1400027b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140027d90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400027cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400027d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002776
sub r14, rdi
jmp 0x1400028bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400027f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400027f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002827
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140027d90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400028bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002862
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000289d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140010708
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400028bc
cmp rbp, rax
ja 0x140002870
test rbp, rbp
je 0x1400028bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140010708
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret