joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff78718d860
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff78718d92b
cmp byte [rcx + 0x72], 0
je 0x7ff78718d92b
mov rax, qword [rcx]
mov qword [rsp + 0x68], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x7ff78718d91e
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [0x7ff787386878]
test eax, eax
je 0x7ff78718d8da
sub eax, 1
je 0x7ff78718d8de
cmp eax, 2
jne 0x7ff78718d91e
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x72], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x7ff78718d90c
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff78718d91e
cmp byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x7ff78718dcd4
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, [0x7ff7873878e0]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff78718dd0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff78718dd13
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 0x7ff78718dd5c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff7873877e0]
cmp byte [rcx + rax], 0
je 0x7ff78718dd5c
dec r8
sub rdx, 1
jne 0x7ff78718dd42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff78718f0a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff78718f0f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff78718f0f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff78718f0f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff78718f0f2
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff78718f0f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff78718f0f4
xor al, al
add rsp, 0x28
ret
Function at 0x7ff787191100
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.7ff78718e8f0
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff78719115c
mov qword [rax + 0x20], r14
lea rax, [0x7ff78718ff90]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff78719115f
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 0x7ff7871911bb
cmp eax, 0x3e5
jne 0x7ff7871911bb
mov rbx, rdi
jmp 0x7ff78719128a
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff787191200
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 0x7ff787191213
mov esi, dword [rsp + 0xd0]
jmp 0x7ff787191287
cmp r15d, 0x26
jne 0x7ff787191213
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x7ff78719128a
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff787191480
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7874863c8]
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, [0x7ff787387928]
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 0x7ff78719129c
mov edx, 0x30
mov rcx, rbx
call fcn.7ff78718e8e8
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 0x7ff7871912c0
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.7ff78718e8f0
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff78719131c
mov qword [rax + 0x20], r14
lea rax, [0x7ff78718ff90]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff78719131f
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x7ff78719133e
mov eax, 0xffffffff
mov ecx, eax
jmp 0x7ff787191345
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 0x7ff78719138d
cmp eax, 0x3e5
jne 0x7ff78719138d
mov rbx, rdi
jmp 0x7ff787191446
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff7871913cf
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 0x7ff7871913cf
mov esi, dword [rsp + 0xd0]
jmp 0x7ff787191443
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff787191480
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff7874863c8]
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, [0x7ff787387928]
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 0x7ff787191458
mov edx, 0x30
mov rcx, rbx
call fcn.7ff78718e8e8
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 0x7ff7871920f0
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 0x7ff78719216e
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x7ff787192148
lea edx, [rbp + 1]
mov rcx, rax
call fcn.7ff78718e8e8
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 0x7ff78719216e
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x7ff787192175
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 0x7ff7871a9bd0
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 0x7ff7871a9dda
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 0x7ff7871a9c94
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 0x7ff7871a9c50
mov ecx, dword [r10]
jmp 0x7ff7871a9d77
cmp ecx, 0x4e0
jb 0x7ff7871a9d77
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 0x7ff7871a9cb0
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 0x7ff7871a9d00
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 0x7ff7871a9c30
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 0x7ff7871a9c20
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 0x7ff7871a9dfa
cmp r8d, r14d
jne 0x7ff7871a9c00
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 0x7ff7871ad890
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.7ff78718e8f0
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x7ff7871ad8f4
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.7ff78712f980
jmp 0x7ff7871ad8f7
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 0x7ff7871ad969
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7871ad91e
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.crypt32.dll_CryptUnprotectMemory]
test eax, eax
je 0x7ff7871ad988
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7871ad93a
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 0x7ff7871ad982
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x7ff7871ad965
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.7ff78711dbd0
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.7ff787191480
lea rdx, [0x7ff7874863c8]
lea rcx, [rsp + 0x28]
call sub.vcruntime140.dll__CxxThrowException
int3
Function at 0x7ff7871bfee0
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 0x7ff7871bff5e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7871bff58
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x7ff7871bff6c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.7ff78714b670
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7871bff79
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 0x7ff7871c00af
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x7ff7871bffb7
mov rax, qword [rbx]
mov rcx, rax
jmp 0x7ff7871bffbd
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x7ff7871c003f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x7ff7871bffe2
cmp word [rdx], 0
jne 0x7ff7871c0010
add rdx, 2
cmp rdx, rax
jne 0x7ff7871bffd3
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x7ff7871bfff2
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 0x7ff7871c0010
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.7ff78712f980
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 0x7ff7871c00af
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x7ff7871c0050
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x7ff7871c0077
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x7ff7871c0080
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.ntdll.dll_RtlCopyMemory
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff7871c00d0
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 [0x7ff78748c040]
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.7ff7871653c0
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 0x7ff7871c0171
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x7ff7871c017d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.7ff78714b670
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 0x7ff7871c02da
cmp dword [rdi], 0x22
je 0x7ff7871c02e7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7871c022f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7871c022a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7871c022a
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff78718e8e8
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.7ff7871bfee0
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x7ff7871c026d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x7ff7871c0263
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.7ff78712f980
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff7871c02b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7871c02ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7871c02ab
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff78718e8e8
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.7ff7871a1e00
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff78718ed30
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x7ff78744a9e0]
call sub.msvcp140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x7ff78744a9f8]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x7ff787209ce0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call sub.kernel32.dll___chkstk
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.kernel32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x7ff78720d3d0
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x7ff78720d43c
movzx ecx, byte [rcx]
test cl, cl
je 0x7ff78720d43c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x7ff78720d3f0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x7ff78720d440
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x7ff78720d4b0
movzx ecx, byte [rcx]
test cl, cl
je 0x7ff78720d4b0
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, 0x20
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x7ff78720d460
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x7ff78720e200
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x28
call sub.kernel32.dll___chkstk
sub rsp, rax
mov r14, qword [rsp + 0x90]
mov r10, r9
mov r12, qword [rsp + 0x88]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, dword [r14]
test ebx, ebx
je 0x7ff78720e261
nop dword [rax]
test rdi, rdi
je 0x7ff78720e261
mov eax, ebx
dec rdi
movzx ecx, byte [rax + r12]
xor cl, byte [rbp]
inc rbp
mov byte [rsi], cl
inc rsi
inc ebx
and ebx, 0xf
jne 0x7ff78720e240
mov r9, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
cmp rdi, 0x10
jb 0x7ff78720e32e
mov qword [rsp + 0x60], r13
xor ebx, ebx
mov r13, rdi
mov qword [rsp + 0x20], r15
shr r13, 4
mov r14, rsi
imul rax, r13, 0xfffffffffffffff0
mov r15, rbp
mov dword [rsp + 0x70], ebx
mov rbx, qword [rsp + 0x78]
add rdi, rax
mov rax, r13
sub r14, r12
shl rax, 4
sub r15, r12
add rsi, rax
add rbp, rax
mov r8, rbx
mov rdx, r12
call r9
mov rcx, qword [rsp + 0x80]
call fcn.7ff78720e590
mov edx, 2
mov rcx, r12
nop word [rax + rax]
mov rax, qword [r15 + rcx]
xor rax, qword [rcx]
mov qword [r14 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x7ff78720e2e0
mov rcx, qword [rsp + 0x80]
add r14, 0x10
mov r9, qword [rsp + 0x98]
add r15, 0x10
sub r13, 1
jne 0x7ff78720e2b7
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x70]
mov r14, qword [rsp + 0x90]
mov r10, qword [rsp + 0x78]
test rdi, rdi
je 0x7ff78720e365
mov r8, r10
mov rdx, r12
call r9
mov rcx, qword [rsp + 0x80]
call fcn.7ff78720e590
nop dword [rax]
mov ecx, ebx
inc ebx
movzx eax, byte [r12 + rcx]
xor al, byte [rcx + rbp]
mov byte [rsi + rcx], al
sub rdi, 1
jne 0x7ff78720e350
mov dword [r14], ebx
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret