joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7626a0bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
test rcx, rcx
je 0x7ff7626a0bfb
movzx r10d, word [rcx + 6]
test r10d, r10d
je 0x7ff7626a0bfb
movzx r11d, word [rcx + 0x14]
xor r9d, r9d
add r11, 0x18
add r11, rcx
test r10d, r10d
je 0x7ff7626a0bfb
lea rdx, [r11 + 0x10]
nop
mov ecx, dword [rdx - 4]
cmp r8d, ecx
jb 0x7ff7626a0bef
add ecx, dword [rdx]
cmp r8d, ecx
jb 0x7ff7626a0c03
inc r9d
add rdx, 0x28
cmp r9d, r10d
jb 0x7ff7626a0be0
xor eax, eax
mov rbx, qword [rsp + 8]
ret
lea rcx, [r9 + r9*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x7ff7626a0bfb
sub r8d, dword [rax + 0xc]
mov eax, dword [rax + 0x14]
mov ecx, r8d
add rcx, rbx
mov rbx, qword [rsp + 8]
add rax, rcx
ret

Function at 0x7ff7626a0c50
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.7ff7626535f0
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x7ff76279ced8]
cmp qword [0x7ff76279cef0], 0xf
cmova rdx, qword [0x7ff76279ced8]
mov rcx, 0xffffffff80000001
call fcn.7ff7626a0db0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x7ff7626a0cc0
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, 0xf
jbe 0x7ff7626a0d2f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7626a0d2a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7626a0d97
mov rcx, r8
call fcn.7ff7626de408
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x7ff7626a0d76
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x7ff7626a0d71
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7626a0d9e
mov rcx, r8
call fcn.7ff7626de408
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 0x7ff7626a0e30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [0x7ff76279cef0], 0xf
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], r12
lea rdx, [0x7ff76279ced8]
mov rcx, 0xffffffff80000001
cmova rdx, qword [0x7ff76279ced8]
call fcn.7ff7626a0db0
cmp qword [rbx + 0x18], 0xf
lea r14, [rbx + 0x10]
mov r12, rax
mov rcx, rbx
mov eax, dword [r14]
jbe 0x7ff7626a0e8c
mov rcx, qword [rbx]
lea r14, [rbx + 0x10]
cmp qword [rdi + 0x18], 0xf
lea rsi, [rdi + 0x18]
mov qword [rsp + 0x50], rbp
mov rdx, rdi
jbe 0x7ff7626a0ea8
mov rdx, qword [rdi]
lea rbp, [rbx + 0x10]
jmp 0x7ff7626a0eab
mov rbp, r14
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.advapi32.dll_RegSetValueExA]
mov rcx, r12
mov r15d, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov r12, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x7ff7626a0f13
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7626a0f0b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7626a0f83
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.7ff7626de408
mov r14, rbp
xor ebp, ebp
mov qword [rsi], 0xf
mov qword [rdi + 0x10], rbp
mov byte [rdi], bpl
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x7ff7626a0f59
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7626a0f54
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7626a0f83
mov rcx, r8
call fcn.7ff7626de408
mov rsi, qword [rsp + 0x68]
mov eax, r15d
mov byte [rbx], bpl
mov qword [r14], rbp
mov rbp, qword [rsp + 0x50]
mov qword [rbx + 0x18], 0xf
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x7ff7626a0f90
Capabilities:
Get uefi variable
Query environment variable

Disassembly:
push rbx
sub rsp, 0x430
mov r8d, 0x400
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff7627295e0]
call qword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x7ff7626a0fe4
mov r8b, 1
lea rdx, [0x7ff762729610]
mov rcx, rax
call fcn.7ff7626a05e0
test rax, rax
jne 0x7ff7626a1046
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeLibrary]
lea rcx, [rsp + 0x440]
call qword [sym.imp.kernel32.dll_GetFirmwareType]
cmp dword [rsp + 0x440], 2
jne 0x7ff7626a103b
lea rcx, [0x7ff762729670]
call fcn.7ff762654200
test eax, eax
je 0x7ff7626a103b
xor r9d, r9d
lea rdx, [0x7ff762729690]
xor r8d, r8d
lea rcx, [0x7ff76272324a]
call qword [sym.imp.kernel32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x7ff7626a103b
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 1
je 0x7ff7626a106c
call qword [sym.imp.kernel32.dll_GetLastError]
mov al, 1
add rsp, 0x430
pop rbx
ret
lea rcx, [rsp + 0x440]
call rax
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeLibrary]
cmp dword [rsp + 0x440], 0
je 0x7ff7626a0fe4
lea rdx, [0x7ff762729620]
jmp 0x7ff7626a1073
lea rdx, [0x7ff7627296b8]
xor eax, eax
mov dword [rsp + 0x28], 0x4e20
mov r9d, 0x1010
mov word [rsp + 0x20], ax
lea r8, [0x7ff762729564]
xor ecx, ecx
call fcn.7ff7626552c0
xor al, al
add rsp, 0x430
pop rbx
ret
Function at 0x7ff7626def4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff7626def96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff7626def96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff7626def96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff7626def96
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff7626def96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff7626def98
xor al, al
add rsp, 0x28
ret
Function at 0x7ff7626df960
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x7ff7626dfb6a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x7ff7626dfa24
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x7ff7626df9e0
mov ecx, dword [r10]
jmp 0x7ff7626dfb07
cmp ecx, 0x4e0
jb 0x7ff7626dfb07
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x7ff7626dfa40
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x7ff7626dfa90
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x7ff7626df9c0
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x7ff7626df9b0
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x7ff7626dfb8a
cmp r8d, r14d
jne 0x7ff7626df990
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x7ff7626fd9e0
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.7ff7626de3cc
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7626fda3c
mov qword [rax + 0x20], r14
lea rax, [0x7ff7626fc7f0]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7626fda3f
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 0x7ff7626fda9b
cmp eax, 0x3e5
jne 0x7ff7626fda9b
mov rbx, rdi
jmp 0x7ff7626fdb6a
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7626fdae0
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 0x7ff7626fdaf3
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7626fdb67
cmp r15d, 0x26
jne 0x7ff7626fdaf3
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x7ff7626fdb6a
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7626fdd60
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7627537f0]
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, [0x7ff762723198]
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 0x7ff7626fdb7c
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7626de408
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 0x7ff7626fdba0
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.7ff7626de3cc
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7626fdbfc
mov qword [rax + 0x20], r14
lea rax, [0x7ff7626fc7f0]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7626fdbff
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x7ff7626fdc1e
mov eax, 0xffffffff
mov ecx, eax
jmp 0x7ff7626fdc25
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 0x7ff7626fdc6d
cmp eax, 0x3e5
jne 0x7ff7626fdc6d
mov rbx, rdi
jmp 0x7ff7626fdd26
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7626fdcaf
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 0x7ff7626fdcaf
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7626fdd23
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7626fdd60
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7627537f0]
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, [0x7ff762723198]
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 0x7ff7626fdd38
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7626de408
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 0x7ff7626fe9d0
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 0x7ff7626fea4e
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x7ff7626fea28
lea edx, [rbp + 1]
mov rcx, rax
call fcn.7ff7626de408
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 0x7ff7626fea4e
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x7ff7626fea55
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 0x7ff7627011f0
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.7ff7626de3cc
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x7ff762701254
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.7ff7626e00e0
jmp 0x7ff762701257
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 0x7ff7627012c9
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff76270127e
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.crypt32.dll_CryptUnprotectMemory]
test eax, eax
je 0x7ff7627012e8
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff76270129a
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 0x7ff7627012e2
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x7ff7627012c5
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.7ff7626558c0
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.7ff7626fdd60
lea rdx, [0x7ff7627537f0]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x7ff762713c90
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 0x7ff762713d0e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff762713d08
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x7ff762713d1c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.7ff7626dfdf0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff762713d29
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 0x7ff762713e5f
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x7ff762713d67
mov rax, qword [rbx]
mov rcx, rax
jmp 0x7ff762713d6d
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x7ff762713def
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x7ff762713d92
cmp word [rdx], 0
jne 0x7ff762713dc0
add rdx, 2
cmp rdx, rax
jne 0x7ff762713d83
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x7ff762713da2
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 0x7ff762713dc0
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.7ff7626e00e0
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 0x7ff762713e5f
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x7ff762713e00
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x7ff762713e27
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x7ff762713e30
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
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff762713e80
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 [0x7ff762785700]
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.7ff7626aa900
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 0x7ff762713f21
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x7ff762713f2d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.7ff7626dfdf0
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 0x7ff76271408a
cmp dword [rdi], 0x22
je 0x7ff762714097
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff762713fdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff762713fda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff762713fda
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7626de408
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.7ff762713c90
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x7ff76271401d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x7ff762714013
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.7ff7626e00e0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff762714060
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff76271405b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff76271405b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7626de408
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.7ff7626f4360
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff7627177f0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x7ff762729480]
call sub.msvcp140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x7ff762729498]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x7ff7627175e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x7ff7627319f0]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff76271761a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff76271761f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff762717668
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff7627318f0]
cmp byte [rcx + rax], 0
je 0x7ff762717668
dec r8
sub rdx, 1
jne 0x7ff76271764e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret