joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a10
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a44
cmp word [rcx], 0x5a4d
jne 0x140003a44
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a44
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a44
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003950
test eax, eax
jne 0x140003a60
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039c0
test rax, rax
je 0x140003a55
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000420c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004110
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040b0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004564
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140467e18]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140467e14]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004699
inc ebx
add rax, 0x28
jmp 0x14000458a
mov rcx, r12
call fcn.140004d91
mov rbp, rax
test rax, rax
jne 0x1400045d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004500
movsxd rbx, ebx
mov rax, qword [0x140467e18]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e3f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140467e18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004633
mov rax, qword [0x140467e18]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004500
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004693
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004693
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140467e18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004693
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004500
inc dword [0x140467e14]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ac0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140467e80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140467e60]
test rbx, rbx
je 0x140004b0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b06
test eax, eax
jne 0x140004b06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004ade
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004ce3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004ce3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004ce4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d20
inc r8d
add rax, 0x28
jmp 0x140004cfc
xor eax, eax
ret

Function at 0x140004d91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140463fd0]
mov r8, rcx
mov rcx, r9
call fcn.140004cc0
test eax, eax
je 0x140004dbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004ce4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004a84
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004b08
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a450]
cmp byte [rcx + rax], 0
je 0x140004b08
dec r8
sub rdx, 1
jne 0x140004aee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005a70
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140174f64], eax
jle 0x140013106
lea rcx, [0x140174f64]
call fcn.14013ebe8
cmp dword [0x140174f64], 0xffffffff
jne 0x140013106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x24]
lea rcx, [0x140174f64]
mov dword [0x140174f60], eax
call fcn.14013eb88
mov eax, dword [0x140174f60]
add rsp, 0x58
ret
Function at 0x1400157c0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rcx
mov ecx, dword [rcx + 8]
test ecx, ecx
je 0x1400158f0
mov rax, qword [rbx]
add rcx, rax
cmp rax, rcx
je 0x140015807
cmp byte [rax], 0x2f
jne 0x1400157fc
mov byte [rax], 0x5c
inc rax
cmp rax, rcx
jne 0x1400157f4
mov rax, qword [rbx]
cmp byte [rax], 0x7e
jne 0x1400158f0
cmp dword [rbx + 8], 1
je 0x140015828
movzx ecx, byte [rax + 1]
cmp cl, 0x2f
je 0x140015828
cmp cl, 0x5c
jne 0x1400158f0
movups xmm0, xmmword [0x140142aa0]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x5c], 0x80
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x30]
xor eax, eax
movaps xmmword [rsp + 0x40], xmm0
xor r8d, r8d
mov dword [rsp + 0x58], eax
mov edx, 0x8000
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400158aa
mov r8, qword [rsp + 0x30]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [r8 + r9*2], 0
jne 0x140015880
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140018b80
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x50]
mov r8d, dword [rbx + 8]
add r8, rdx
inc rdx
call fcn.140008430
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140018fc0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400158f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0xf0
pop rbx
ret
Function at 0x140016870
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rbx, rcx
mov dword [rbp - 0x64], 0x80
mov rax, rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x70], rcx
lea r8, [rbp - 0x70]
xor esi, esi
lea rdx, [rbp - 0x80]
mov rcx, rax
mov dword [rbp - 0x68], esi
mov edi, r9d
call fcn.140013d20
lea rax, [rbp - 0x80]
mov word [rsp + 0x40], 0x105
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x20]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x28], esi
lea rdx, [rsp + 0x30]
mov qword [rbp + 0x20], rax
lea rcx, [rsp + 0x20]
mov dword [rbp + 0x2c], 0x80
call fcn.140016a70
mov rcx, qword [rbp + 0x20]
cmp dword [rsp + 0x20], esi
je 0x140016911
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
jmp 0x140016957
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140016943
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140016943
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14001c470
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x30]
cmp rcx, rdx
jmp 0x14001695e
mov rcx, qword [rbp + 0x20]
lea rax, [0x14016e048]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
lea rax, [rbp + 0x30]
cmp rcx, rax
je 0x140016966
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x14016e060]
cmp qword [rax + 8], rcx
jne 0x1400169b1
cmp dword [rsp + 0x20], 2
jne 0x1400169b1
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rsp + 0x30]
mov edx, 2
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x30], xmm0
call fcn.1400142b0
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400169f1
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x60]
cmp rcx, rax
je 0x1400169cc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14013e7c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x60]
cmovb rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x1400169b1
lea rax, [rsp + 0x50]
mov word [rsp + 0x70], 0x105
mov r9d, edi
mov qword [rsp + 0x60], rax
mov r8b, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140016870
movups xmm0, xmmword [rax]
movd eax, xmm0
test eax, eax
jne 0x1400169b6
lea rax, [rbp - 0x80]
mov word [rsp + 0x40], 0x105
mov r8b, 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400172b0
jmp 0x1400169b9
Function at 0x1400171c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov ecx, 0x104
mov rdi, rdx
mov dword [rsp + 0x3c], ecx
mov eax, ecx
mov r8d, eax
mov eax, ecx
cmp rax, r8
jae 0x140017225
mov r9d, 2
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14001d070
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140017264
mov ecx, dword [rsp + 0x3c]
cmp eax, ecx
ja 0x140017202
mov r8, qword [rsp + 0x30]
mov rcx, rbx
mov r9d, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x20], rdi
call fcn.140018b80
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
cmp rcx, rax
jmp 0x140017281
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14001c470
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
je 0x140017289
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013e7c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x1400172b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x140], rax
movzx edi, r8b
mov dword [rsp + 0x38], 0
mov rbx, rcx
mov dword [rsp + 0x3c], 0x80
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.140016a70
cmp dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
je 0x140017315
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
jmp 0x140017362
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001734c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140017333
test dil, dil
jne 0x14001734c
mov edx, eax
mov rcx, rbx
call fcn.14001c470
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
jmp 0x14001736a
mov rcx, qword [rsp + 0x30]
lea rax, [0x14016e048]
mov qword [rbx + 8], rax
mov dword [rbx], 0
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x140017372
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14013e7c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x140017d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov dword [rsp + 0x3c], 0x80
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
call fcn.140016a70
cmp dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
je 0x140017d7d
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
jmp 0x140017de3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140017dcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140017daf
mov edx, eax
mov rcx, rbx
call fcn.14001c470
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
jmp 0x140017deb
lea rax, [0x14016e058]
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
jmp 0x140017dde
lea rax, [0x14016e048]
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x140017df3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x150
pop rbx
ret
Function at 0x140018340
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x80
xor ebp, ebp
mov qword [rcx], r9
mov qword [rcx + 8], rbp
mov rdi, rcx
mov dword [rcx + 0x18], ebp
mov ecx, edx
mov qword [rsp + 0x98], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001838e
lea rax, [0x14016e058]
mov dword [rsp + 0x40], 9
mov qword [rsp + 0x48], rax
jmp 0x1400184e9
mov r9, qword [rdi]
xor edx, edx
mov eax, dword [rdi]
mov rcx, rsi
shr r9, 0x20
mov qword [rsp + 0x28], rbp
lea r8d, [rdx + 2]
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x1400183d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001c470
jmp 0x1400184e1
mov rcx, qword [rsp + 0xb0]
mov edx, 4
mov rax, qword [rdi]
mov r8, rcx
mov r9d, ecx
shr r8, 0x20
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140018427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001c470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400184e1
cmp qword [rdi], rbp
jne 0x140018474
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14001846c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001c470
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400184e1
mov rax, qword [rsp + 0x68]
mov qword [rdi], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rdi + 0x10]
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400184d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001c470
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400184e1
lea rax, [0x14016e048]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0xb8]
movaps xmm0, xmmword [rsp + 0x40]
mov rsi, qword [rsp + 0x98]
movups xmmword [rax], xmm0
cmp dword [rax], ebp
mov rax, rdi
je 0x14001850c
mov qword [rdi + 8], rbp
mov rbp, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x1400186a0
Capabilities:
Timestomp file

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r11, rdx
mov r10d, r9d
mov edx, dword [rsp + 0xd0]
mov rdi, rcx
test dl, 2
je 0x1400186d8
mov r9d, 4
jmp 0x140018707
test r8d, r8d
je 0x140018701
sub r8d, 1
je 0x1400186f9
cmp r8d, 1
je 0x1400186f1
mov r9d, 4
jmp 0x140018707
mov r9d, 3
jmp 0x140018707
mov r9d, 1
jmp 0x140018707
mov r9d, 2
mov eax, r10d
mov qword [rsp + 0xc0], rbx
and eax, 1
mov qword [rsp + 0x98], rbp
shl eax, 0x1f
mov ebp, edx
mov ecx, eax
mov ebx, edx
bts ecx, 0x1e
and r10b, 2
cmove ecx, eax
mov r8d, ecx
bts r8d, 0x10
and ebp, 4
cmove r8d, ecx
shr edx, 3
and dl, 1
lea rcx, [rsp + 0x70]
mov eax, r8d
mov byte [rsp + 0x30], dl
bts eax, 8
mov rdx, r11
and ebx, 0x10
cmove eax, r8d
lea r8, [rsp + 0x48]
mov dword [rsp + 0x20], eax
call fcn.140018520
cmp dword [rsp + 0x70], 0
je 0x1400187a2
mov ecx, 0x18
call fcn.14013ecf8
movups xmm0, xmmword [rsp + 0x70]
lea rcx, [0x14014a570]
movups xmmword [rax + 8], xmm0
mov qword [rax], rcx
or byte [rdi + 8], 1
and rax, 0xfffffffffffffffe
mov qword [rdi], rax
jmp 0x1400188cf
mov qword [rsp + 0x90], rsi
mov rsi, qword [rsp + 0x48]
test ebx, ebx
je 0x14001884f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400187ed
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x14001884f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14001c470
cmp dword [rax], 0
jne 0x14001881d
xor eax, eax
or byte [rdi + 8], 1
mov qword [rdi], rax
jmp 0x1400188c7
movups xmm0, xmmword [rax]
mov ecx, 0x18
movups xmmword [rsp + 0x50], xmm0
call fcn.14013ecf8
movups xmm0, xmmword [rsp + 0x50]
lea rcx, [0x14014a570]
movups xmmword [rax + 8], xmm0
mov qword [rax], rcx
and rax, 0xfffffffffffffffe
or byte [rdi + 8], 1
mov qword [rdi], rax
jmp 0x1400188c7
test ebp, ebp
je 0x1400188c0
mov r9d, 1
mov byte [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov rcx, rsi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x1400188c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14001c470
cmp dword [rsp + 0x70], 0
je 0x1400188c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x18
call fcn.14013ecf8
movups xmm0, xmmword [rsp + 0x70]
lea rcx, [0x14014a570]
movups xmmword [rax + 8], xmm0
mov qword [rax], rcx
or byte [rdi + 8], 1
and rax, 0xfffffffffffffffe
mov qword [rdi], rax
jmp 0x1400188c7
and byte [rdi + 8], 0xfe
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xc0]
mov rax, rdi
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0xa0
pop rdi
ret
Function at 0x14001c280
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
movzx esi, dl
mov rdi, rcx
lea rdx, [0x140172730]
lea rcx, [rsp + 0x50]
call fcn.14001c850
mov rbx, qword [0x1401721e0]
lea rcx, [rsp + 0x50]
mov rbp, qword [0x1401721f0]
call fcn.14001c840
test rbx, rbx
je 0x14001c2e8
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400238a0
mov rdx, rax
movzx r8d, sil
mov rcx, rbp
call rbx
lea rcx, [rsp + 0x50]
call fcn.140005ee0
jmp 0x14001c364
lea rcx, [rsp + 0x70]
call fcn.140008190
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140006540
lea rdx, str.LLVM_ERROR:
lea rcx, [rsp + 0x20]
call fcn.140005940
mov rcx, rax
mov rdx, rdi
call fcn.140008cc0
lea rdx, [0x140143178]
mov rcx, rax
call fcn.140005940
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14001c210
mov r8d, dword [rsp + 0x58]
mov ecx, 2
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
lea rcx, [rsp + 0x20]
call fcn.1400065f0
lea rcx, [rsp + 0x70]
call fcn.140008170
call fcn.140027090
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140024740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x4050
call fcn.14013f930
sub rsp, rax
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x4040], rax
lea rax, [rsp + 0x40]
xor r15d, r15d
mov qword [rsp + 0x30], rax
mov rbp, rcx
mov eax, 0x4000
mov ecx, r15d
mov r14, r8
mov dword [rsp + 0x3c], eax
mov esi, edx
mov dword [rsp + 0x38], ecx
mov r8d, r15d
add r8, 0x4000
cmp rax, r8
jae 0x1400247b8
mov r9d, 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14001d070
mov ecx, dword [rsp + 0x38]
mov edi, ecx
add rdi, qword [rsp + 0x30]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x4000
mov rdx, rdi
mov ecx, esi
mov dword [rax], r15d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x1400247ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400247c0
cmp rbx, 0xffffffffffffffff
je 0x140024836
mov ecx, dword [rsp + 0x38]
add ecx, ebx
mov r8d, ecx
mov dword [rsp + 0x38], ecx
test ebx, ebx
je 0x14002480a
mov eax, dword [rsp + 0x3c]
jmp 0x140024793
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov r8, r14
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140024410
jmp 0x14002485b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, [0x14016e058]
or byte [rbp + 0x10], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x140024870
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbp
mov rcx, qword [rsp + 0x4040]
xor rcx, rsp
call fcn.14013e7c0
mov rbx, qword [rsp + 0x4098]
add rsp, 0x4050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret