joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b730
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp rdx, r8
je 0x14006b9ad
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rbp, r8
mov rsi, rdx
xor r12d, r12d
movabs r15, 0x100000001b3
movabs r13, 0x492492492492492
lea rbx, [0x14010fc38]
movss xmm6, dword [0x1400eaa98]
movabs rax, 0xcbf29ce484222325
mov r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14006b7a1
mov rdx, qword [rsi]
mov rdi, rax
add r8, r8
mov rcx, r12
je 0x14006b7c3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r15
inc rcx
cmp rcx, r8
jb 0x14006b7b0
mov r9, rdi
mov r8, rsi
lea rdx, [rsp + 0x30]
call fcn.14006c1e0
cmp qword [rsp + 0x38], 0
jne 0x14006b97e
cmp qword [0x14010fc40], r13
je 0x14006b9ae
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r12
mov ecx, 0x38
call fcn.1400816b0
mov r14, rax
mov qword [rsp + 0x28], rax
mov rdx, rsi
lea rcx, [rax + 0x10]
call fcn.1400083a0
nop
mov eax, dword [rsi + 0x20]
mov dword [r14 + 0x30], eax
mov r8, qword [0x14010fc40]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x14006b836
cvtsi2ss xmm0, rcx
jmp 0x14006b84b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x14010fc68]
xorps xmm2, xmm2
test rbx, rbx
js 0x14006b861
cvtsi2ss xmm2, rbx
jmp 0x14006b879
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x14010fc30]
comiss xmm1, xmm3
seta al
test al, al
je 0x14006b916
divss xmm0, xmm3
call fcn.1400b44f4
xor ecx, ecx
comiss xmm0, xmm6
jb 0x14006b8bc
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x14006b8bc
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14006b8ee
cmp rbx, 0x200
jae 0x14006b8eb
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14006b8ee
mov rbx, rcx
mov rdx, rbx
call fcn.14006bec0
lea r8, [r14 + 0x10]
mov r9, rdi
lea rdx, [rsp + 0x40]
call fcn.14006c1e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
mov r8, qword [0x14010fc40]
mov qword [rsp + 0x28], r12
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x14010fc40], r8
mov qword [r14], rcx
mov qword [r14 + 8], rdx
mov qword [rdx], r14
mov qword [rcx + 8], r14
and rdi, qword [0x14010fc60]
add rdi, rdi
mov rax, qword [0x14010fc48]
mov r8, qword [rax + rdi*8]
cmp r8, qword [0x14010fc38]
jne 0x14006b960
mov qword [rax + rdi*8], r14
jmp 0x14006b972
cmp r8, rcx
jne 0x14006b96b
mov qword [rax + rdi*8], r14
jmp 0x14006b977
cmp qword [rax + rdi*8 + 8], rdx
jne 0x14006b977
mov qword [rax + rdi*8 + 8], r14
lea rbx, [0x14010fc38]
add rsi, 0x28
cmp rsi, rbp
jne 0x14006b786
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.14007deb8
int3
Function at 0x1400744f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rbx
mov rdx, rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400745ad
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
call sub.api_ms_win_core_sysinfo_l1_2_0.dll_GetSystemTimePreciseAsFileTime
movabs rcx, 0xfe624e212ac18000
mov dword [rsp + 0x28], 8
add rcx, qword [rsp + 0x70]
lea r9d, [rbx + 0xb]
movabs rax, 0xd6bf94d5e57a42bd
xor r8d, r8d
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x68]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x1400745b5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor al, al
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1400745d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ecx, 4
call fcn.1400816b0
mov rbx, rax
lea r8, str.AppsUseLightTheme
mov r9d, 0x10
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
lea rdi, [rax + 4]
xor eax, eax
mov dword [rbx], eax
mov eax, edi
sub eax, ebx
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x140074675
test rbx, rbx
je 0x14007466e
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140074663
mov rbx, qword [rbx - 8]
mov edi, 0x2b
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746d8
mov rdx, rdi
mov rcx, rbx
call fcn.1400816f4
mov esi, 1
jmp 0x1400746c3
movsx eax, byte [rbx + 2]
sub rdi, rbx
movsx esi, byte [rbx + 3]
shl esi, 8
or esi, eax
movsx eax, byte [rbx + 1]
shl esi, 8
or esi, eax
movsx eax, byte [rbx]
shl esi, 8
or esi, eax
mov rax, rbx
cmp rdi, 0x1000
jb 0x1400746b8
mov rbx, qword [rbx - 8]
mov edi, 0x2b
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746d8
mov rdx, rdi
mov rcx, rbx
call fcn.1400816f4
mov rbx, qword [rsp + 0x58]
test esi, esi
mov rsi, qword [rsp + 0x60]
sete al
add rsp, 0x40
pop rdi
ret
call fcn.140088774
int3
Function at 0x140075cd0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
mov rbx, rcx
xor edi, edi
lea rax, [0x140110218]
mov qword [rbp + 0x38], rax
lock inc qword [0x140110218]
cmp qword [0x140110210], rdi
je 0x140075d1b
lea r8, [0x140110210]
mov rdx, rcx
call fcn.140075a80
nop
lock dec qword [0x140110218]
jmp 0x140075d3b
lock dec qword [0x140110218]
lea rax, [0x140075b40]
mov qword [rbp + 0x30], rax
lea r8, [rbp + 0x30]
mov rdx, rbx
call fcn.140075b60
nop
mov qword [rbp + 0x30], rdi
mov dword [rbp - 0x48], 0x5f
mov dword [rbp - 0x44], 9
lea rax, str.C:_a_work1_s_srccommonupdatingx64ReleaseGenerated_FileswinrtWindows.Web.Http.h
mov qword [rbp - 0x40], rax
lea rax, str.auto___cdecl_winrt::impl::consume_Windows_Web_Http_IHttpClient_struct_winrt::Windows::Web::Http::IHttpClient_::DefaultRequestHeaders_void__const
mov qword [rbp - 0x38], rax
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
call qword [rax + 0x80]
test eax, eax
js 0x140075e50
mov rcx, qword [rbp + 0x30]
mov qword [rbp - 0x50], rcx
mov qword [rbp + 0x40], rdi
mov dword [rbp - 0x48], 0x43c
mov dword [rbp - 0x44], 9
lea rsi, str.C:_a_work1_s_srccommonupdatingx64ReleaseGenerated_FileswinrtWindows.Web.Http.Headers.h
mov qword [rbp - 0x40], rsi
lea rax, str.auto___cdecl_winrt::impl::consume_Windows_Web_Http_Headers_IHttpRequestHeaderCollection_struct_winrt::Windows::Web::Http::Headers::IHttpRequestHeaderCollection_::UserAgent_void__const
mov qword [rbp - 0x38], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
call qword [rax + 0x100]
test eax, eax
js 0x140075e5c
mov rdi, qword [rbp + 0x40]
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x28], 1
mov dword [rbp - 0x24], 0x47
lea rax, str.Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_6.2__WOW64__Trident_6.0_
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov byte [rbp + 0x30], 0
mov dword [rbp - 0x48], 0x394
mov dword [rbp - 0x44], 9
mov qword [rbp - 0x40], rsi
lea rax, str.auto___cdecl_winrt::impl::consume_Windows_Web_Http_Headers_IHttpProductInfoHeaderValueCollection_struct_winrt::Windows::Web::Http::Headers::IHttpProductInfoHeaderValueCollection_::TryParseAdd_const_struct_winrt::param::hstring___const
mov qword [rbp - 0x38], rax
mov rax, qword [rdi]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [rax + 0x38]
test eax, eax
js 0x140075e44
test rdi, rdi
je 0x140075e2e
lea rcx, [rbp - 0x58]
call fcn.14001b300
nop
lea rcx, [rbp - 0x50]
call fcn.14001b300
nop
mov rax, rbx
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rbp - 0x48]
mov ecx, eax
call fcn.14001bf90
nop
lea rdx, [rbp - 0x48]
mov ecx, eax
call fcn.14001bf90
nop
lea rdx, [rbp - 0x48]
mov ecx, eax
call fcn.14001bf90
int3
Function at 0x1400785d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov ecx, 0x10
call fcn.1400816b0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007a4d0]
xor edx, edx
xor ecx, ecx
call fcn.140088258
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140078654
cmp dword [rsp + 0x38], 0
je 0x140078667
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14007e3ac
test eax, eax
jne 0x14007864c
add rsp, 0x58
ret
mov ecx, eax
call fcn.14007dc74
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14007dcb0
nop
mov ecx, 1
call fcn.14007dcb0
int3

Function at 0x140078860
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov ecx, 0x10
call fcn.1400816b0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007a530]
xor edx, edx
xor ecx, ecx
call fcn.140088258
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400788e4
cmp dword [rsp + 0x38], 0
je 0x1400788f7
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14007e3ac
test eax, eax
jne 0x1400788dc
add rsp, 0x58
ret
mov ecx, eax
call fcn.14007dc74
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14007dcb0
nop
mov ecx, 1
call fcn.14007dcb0
int3

Function at 0x14007e4b4
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.api_ms_win_core_localization_l1_2_0.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.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007e538
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400cb410]
cmp byte [rcx + rax], 0
je 0x14007e538
dec r8
sub rdx, 1
jne 0x14007e51e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400826c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140082712
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082712
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082712
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082712
cmp dword [rcx + 0x84], 0xe
jbe 0x140082712
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140082714
xor al, al
add rsp, 0x28
ret
Function at 0x140091b30
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140091b50
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14008de40
or eax, 0xffffffff
jmp 0x140091b52
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400a2824
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400a2856
call fcn.14008decc
mov dword [rax], 0x16
call fcn.140088754
jmp 0x1400a2975
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a2975
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a2975
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a2885
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a2975
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a2899
call fcn.1400a2fd4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14009131c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400a34ec
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400a2963
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400a292e
mov rcx, rsi
call fcn.14009131c
cmp eax, edi
je 0x1400a2919
mov rcx, rsi
call fcn.14009131c
cmp eax, 0xfffffffe
je 0x1400a2919
mov rcx, rsi
call fcn.14009131c
movsxd rbx, eax
lea r14, [0x14010c840]
mov rcx, rsi
sar rbx, 6
call fcn.14009131c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a2920
lea rdx, [0x1401045c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a292e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400a2952
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400a2952
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400a2952
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400a2978
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400a2d54
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.1400824e0
sub rsp, rax
mov rax, qword [0x140104200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009131c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a2da3
mov rax, rbp
jmp 0x1400a2eab
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10c840]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a3cc4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10c840]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a2ea7
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.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1400a2ea7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a3cc4
test rax, rax
js 0x1400a2ea7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a2ea7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a2e99
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a2e99
cmp byte [rcx], 0xd
jne 0x1400a2e7f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a2e8e
cmp byte [rcx + 1], 0xa
jne 0x1400a2e8e
inc rcx
jmp 0x1400a2e8e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x104610]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a2e61
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a2eab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140081690
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a3040
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, [0x14010c840]
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 0x1400a309e
cmp word [rdx], r12w
jne 0x1400a309e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400a30a4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400a31ff
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400a31da
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400a30dd
mov rcx, r9
jmp 0x1400a3100
cmp r9, rdx
jae 0x1400a3117
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 0x1400a30c1
jmp 0x1400a31ff
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1400a31d4
cmp dword [rsp + 0x80], edi
je 0x1400a31d4
mov rdx, r14
lea r11, [0x14010c840]
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 0x1400a31ad
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400a3180
mov word [rbx], r12w
jmp 0x1400a31fb
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 0x1400a3189
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400a31fb
cmp word [rsp + 0x70], r12w
jne 0x1400a31ba
cmp rbx, rsi
je 0x1400a317a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400a3ccc
cmp word [rsp + 0x70], r12w
je 0x1400a31ff
mov word [rbx], r13w
jmp 0x1400a31fb
lea r11, [0x14010c840]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400a31f7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400a31ff
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 0x1400a8958
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a8988
xor eax, eax
jmp 0x1400a8a4b
mov rbp, rbx
cmp word [rax], si
je 0x1400a89ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a8994
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a8990
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a5318
movsxd r14, eax
test eax, eax
jne 0x1400a89eb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
jmp 0x1400a8981
mov rcx, r14
call fcn.14009f774
mov rdi, rax
test rax, rax
jne 0x1400a8a04
xor ecx, ecx
call fcn.14009e2f8
jmp 0x1400a89e0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a5318
test eax, eax
jne 0x1400a8a35
mov rcx, rdi
call fcn.14009e2f8
jmp 0x1400a8a3f
xor ecx, ecx
call fcn.14009e2f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a8a68
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a8aef
mov rsi, rbx
cmp word [rax], bp
je 0x1400a8aae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a8a98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a8a94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009f774
mov rdi, rax
test rax, rax
je 0x1400a8adc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140083ba0
mov rbp, rdi
xor ecx, ecx
call fcn.14009e2f8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400afdf4
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.1400a3ccc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a3ccc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400aff44
cmp rax, 0xffffffffffffffff
je 0x1400aff44
xor edi, edi
test rbp, rbp
jle 0x1400afeef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009e280
mov rbx, rax
test rax, rax
jne 0x1400afe7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400afee5
mov edx, 0x8000
mov ecx, r14d
call fcn.14009c630
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.1400a1fc8
cmp eax, 0xffffffff
je 0x1400afec5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400afe8c
mov edx, r15d
mov ecx, r14d
call fcn.14009c630
jmp 0x1400afee5
cmp byte [rsi + 0x38], dil
je 0x1400afedc
cmp dword [rsi + 0x34], 5
jne 0x1400afedc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400afee5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009e2f8
jmp 0x1400aff58
jns 0x1400aff58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a3ccc
cmp rax, 0xffffffffffffffff
jne 0x1400aff10
cmp byte [rsi + 0x30], dil
je 0x1400aff58
mov edi, dword [rsi + 0x2c]
jmp 0x1400aff58
mov ecx, r14d
call fcn.140091210
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x1400aff58
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.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 0x1400aff58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400aff51
mov eax, dword [rsi + 0x2c]
jmp 0x1400aff56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a3ccc
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 0x1400026d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140046360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002749
mov rcx, r10
call fcn.1400025a0
test eax, eax
je 0x140002749
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002746
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000273d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002749
add r8, 0x28
cmp r8, r9
jne 0x140002728
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret