joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7e151d110
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.7ff7e151c710
test al, al
je 0x7ff7e151d23c
mov dword [rbp + 0x38], 0xf81a0a53
mov word [rbp + 0x3c], 0xf5
mov byte [rbp + 0x3e], 1
mov ecx, ebx
nop word [rax + rax]
lea eax, [rcx + 0x7d]
xor byte [rbp + rcx + 0x38], al
inc rcx
cmp rcx, 5
jb 0x7ff7e151d160
mov byte [rbp + 0x3e], 0
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.7ff7e151c8c0
mov rsi, rax
mov dword [rbp + 0x40], 0xe11b0c53
mov dword [rbp + 0x44], 0x100e3f5
mov rdx, rbx
nop word [rax + rax]
lea ecx, [rdx + 0x7d]
xor byte [rbp + rdx + 0x40], cl
inc rdx
cmp rdx, 6
jb 0x7ff7e151d1a0
mov byte [rbp + 0x47], 0
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.7ff7e151c8c0
mov rdi, rax
mov dword [rbp + 0x38], 0xf41e1a53
mov word [rbp + 0x3c], 0xe0
mov byte [rbp + 0x3e], 1
nop word [rax + rax]
lea ecx, [rbx + 0x7d]
xor byte [rbp + rbx + 0x38], cl
inc rbx
cmp rbx, 5
jb 0x7ff7e151d1e0
mov byte [rbp + 0x3e], 0
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.7ff7e151c8c0
mov rbx, rax
test rsi, rsi
je 0x7ff7e151d23c
cmp rsi, rdi
jae 0x7ff7e151d23c
cmp rdi, rax
jae 0x7ff7e151d23c
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 0x7ff7e151d23c
xor edx, edx
mov eax, dword [rbx + 0xc]
div ecx
test edx, edx
jne 0x7ff7e151d23c
mov bl, 1
jmp 0x7ff7e151d23e
xor bl, bl
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x7ff7e151d27f
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7e151d27a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7e151d27a
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7e1566ce4
movzx eax, bl
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret

Function at 0x7ff7e151d2a0
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.7ff7e151d110
test al, al
je 0x7ff7e151d354
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.7ff7e151c930
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 0x7ff7e151d33d
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy_1
lea rax, [0x7ff7e151ca20]
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.7ff7e151cef0
nop
mov ecx, 0xbb8
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x7ff7e151d330
cmp rbx, 1
jne 0x7ff7e151d348
call fcn.7ff7e14d2f50
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7e151d380
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.7ff7e14c38a0
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x7ff7e17b48f0]
cmp qword [0x7ff7e17b4908], 0x10
cmovae rdx, qword [0x7ff7e17b48f0]
mov rcx, 0xffffffff80000001
call fcn.7ff7e151d4e0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7e151d3f0
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 0x7ff7e151d45f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7e151d45a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7e151d4c7
mov rcx, r8
call fcn.7ff7e1566ce4
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 0x7ff7e151d4a6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x7ff7e151d4a1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7e151d4ce
mov rcx, r8
call fcn.7ff7e1566ce4
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 0x7ff7e151d560
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 [0x7ff7e17b4908], 0x10
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x7ff7e17b48f0]
cmovae rdx, qword [0x7ff7e17b48f0]
mov rcx, 0xffffffff80000001
call fcn.7ff7e151d4e0
cmp qword [rbx + 0x18], 0x10
mov rsi, rax
mov eax, dword [rbx + 0x10]
mov rcx, rbx
jb 0x7ff7e151d5b0
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x7ff7e151d5bd
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 0x7ff7e151d619
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7e151d614
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7e151d686
mov rcx, r8
call fcn.7ff7e1566ce4
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 0x7ff7e151d660
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff7e151d65b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff7e151d686
mov rcx, r8
call fcn.7ff7e1566ce4
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 0x7ff7e1589090
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.7ff7e1566ca8
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7e15890ec
mov qword [rax + 0x20], r14
lea rax, [0x7ff7e1587ea0]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7e15890ef
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 0x7ff7e158914b
cmp eax, 0x3e5
jne 0x7ff7e158914b
mov rbx, rdi
jmp 0x7ff7e158921a
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7e1589190
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 0x7ff7e15891a3
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7e1589217
cmp r15d, 0x26
jne 0x7ff7e15891a3
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x7ff7e158921a
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7e1589410
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7e1633540]
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, [0x7ff7e15b22f8]
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 0x7ff7e158922c
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7e1566ce4
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 0x7ff7e1589250
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.7ff7e1566ca8
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff7e15892ac
mov qword [rax + 0x20], r14
lea rax, [0x7ff7e1587ea0]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff7e15892af
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x7ff7e15892ce
mov eax, 0xffffffff
mov ecx, eax
jmp 0x7ff7e15892d5
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 0x7ff7e158931d
cmp eax, 0x3e5
jne 0x7ff7e158931d
mov rbx, rdi
jmp 0x7ff7e15893d6
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7e158935f
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 0x7ff7e158935f
mov esi, dword [rsp + 0xd0]
jmp 0x7ff7e15893d3
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff7e1589410
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7e1633540]
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, [0x7ff7e15b22f8]
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 0x7ff7e15893e8
mov edx, 0x30
mov rcx, rbx
call fcn.7ff7e1566ce4
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 0x7ff7e158a080
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 0x7ff7e158a0fe
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x7ff7e158a0d8
lea edx, [rbp + 1]
mov rcx, rax
call fcn.7ff7e1566ce4
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 0x7ff7e158a0fe
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x7ff7e158a105
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 0x7ff7e158ed50
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.7ff7e1566ca8
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x7ff7e158edb4
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.7ff7e152da90
jmp 0x7ff7e158edb7
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 0x7ff7e158ee29
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7e158edde
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.crypt32.dll_CryptUnprotectMemory]
test eax, eax
je 0x7ff7e158ee48
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7e158edfa
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 0x7ff7e158ee42
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x7ff7e158ee25
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.7ff7e14c5db0
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.7ff7e1589410
lea rdx, [0x7ff7e1633540]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x7ff7e15a1480
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 0x7ff7e15a14fe
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7e15a14f8
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x7ff7e15a150c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.7ff7e15683d0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7e15a1519
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 0x7ff7e15a164f
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x7ff7e15a1557
mov rax, qword [rbx]
mov rcx, rax
jmp 0x7ff7e15a155d
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x7ff7e15a15df
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x7ff7e15a1582
cmp word [rdx], 0
jne 0x7ff7e15a15b0
add rdx, 2
cmp rdx, rax
jne 0x7ff7e15a1573
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x7ff7e15a1592
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 0x7ff7e15a15b0
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.7ff7e152da90
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 0x7ff7e15a164f
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x7ff7e15a15f0
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x7ff7e15a1617
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x7ff7e15a1620
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 0x7ff7e15a1670
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 [0x7ff7e17a3018]
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.7ff7e15317b0
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 0x7ff7e15a1711
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x7ff7e15a171d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.7ff7e15683d0
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 0x7ff7e15a187a
cmp dword [rdi], 0x22
je 0x7ff7e15a1887
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7e15a17cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7e15a17ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7e15a17ca
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7e1566ce4
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.7ff7e15a1480
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x7ff7e15a180d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x7ff7e15a1803
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.7ff7e152da90
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7e15a1850
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7e15a184b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7e15a184b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7e1566ce4
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.7ff7e157fd30
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff7e15a4fa0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x7ff7e15f6090]
call sub.msvcp140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x7ff7e15f60a8]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400144e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015850
xor al, al
jmp 0x1400158d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015863
xor al, al
jmp 0x1400158d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001588d
xor al, al
jmp 0x1400158d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400158a1
xor al, al
jmp 0x1400158d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400158b3
xor al, al
jmp 0x1400158d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400158cf
xor al, al
jmp 0x1400158d1
mov al, 1
add rsp, 0x38
ret