joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041b90
Capabilities:
Get uefi variable
Query environment variable

Disassembly:
push rbx
sub rsp, 0x430
mov r8d, 0x400
lea rdx, [rsp + 0x30]
lea rcx, str._ProgramFiles_Windows_DefenderMpClient.dll
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 0x140041be4
mov r8b, 1
lea rdx, str.WDStatus
mov rcx, rax
call fcn.1400411e0
test rax, rax
jne 0x140041c46
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 0x140041c3b
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140004220
test eax, eax
je 0x140041c3b
xor r9d, r9d
lea rdx, str.00000000_0000_0000_0000_000000000000
xor r8d, r8d
lea rcx, [0x1400c322a]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x140041c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x140041c6c
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 0x140041be4
lea rdx, str.Windows_Defender_is_turned_on._Download_Defender_Control_and_use_it_to_disable.
jmp 0x140041c73
lea rdx, str.Your_BIOS_mode_must_be_UEFI.
xor eax, eax
mov dword [rsp + 0x28], 0x4e20
mov r9d, 0x1010
mov word [rsp + 0x20], ax
lea r8, str.Info
xor ecx, ecx
call fcn.1400052e0
xor al, al
add rsp, 0x430
pop rbx
ret
Function at 0x14007e200
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x48]
test al, al
jne 0x14007e21b
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x30]
mov edx, 1
add rsp, 0x20
pop rbx
jmp 0x14009eec0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x48]
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x14009eef1
mov rdi, rcx
jmp 0x14009ef11
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009ef0f
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rdi, rax
jmp 0x14009ef11
xor edi, edi
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007fadc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007fb26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007fb26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007fb26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007fb26
cmp dword [rcx + 0x84], 0xe
jbe 0x14007fb26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007fb28
xor al, al
add rsp, 0x28
ret
Function at 0x1400804b0
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 0x1400806ba
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 0x140080574
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 0x140080530
mov ecx, dword [r10]
jmp 0x140080657
cmp ecx, 0x4e0
jb 0x140080657
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 0x140080590
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 0x1400805e0
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 0x140080510
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 0x140080500
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 0x1400806da
cmp r8d, r14d
jne 0x1400804e0
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 0x14009e530
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.14007ef5c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x14009e58c
mov qword [rax + 0x20], r14
lea rax, [0x14009d340]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x14009e58f
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 0x14009e5eb
cmp eax, 0x3e5
jne 0x14009e5eb
mov rbx, rdi
jmp 0x14009e6ba
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x14009e630
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 0x14009e643
mov esi, dword [rsp + 0xd0]
jmp 0x14009e6b7
cmp r15d, 0x26
jne 0x14009e643
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x14009e6ba
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.14009e8b0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1400f2590]
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, vtable.std::exception.0
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 0x14009e6cc
mov edx, 0x30
mov rcx, rbx
call fcn.14007ef98
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 0x14009e6f0
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.14007ef5c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x14009e74c
mov qword [rax + 0x20], r14
lea rax, [0x14009d340]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x14009e74f
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x14009e76e
mov eax, 0xffffffff
mov ecx, eax
jmp 0x14009e775
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 0x14009e7bd
cmp eax, 0x3e5
jne 0x14009e7bd
mov rbx, rdi
jmp 0x14009e876
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x14009e7ff
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 0x14009e7ff
mov esi, dword [rsp + 0xd0]
jmp 0x14009e873
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.14009e8b0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1400f2590]
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, vtable.std::exception.0
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 0x14009e888
mov edx, 0x30
mov rcx, rbx
call fcn.14007ef98
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 0x14009eec0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x48]
test al, al
jne 0x14007e21b
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x30]
mov edx, 1
add rsp, 0x20
pop rbx
jmp 0x14009eec0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x48]
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x14009eef1
mov rdi, rcx
jmp 0x14009ef11
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009ef0f
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rdi, rax
jmp 0x14009ef11
xor edi, edi
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14009f520
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::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14009f59e
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x14009f578
lea edx, [rbp + 1]
mov rcx, rax
call fcn.14007ef98
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 0x14009f59e
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x14009f5a5
mov rsi, 0xffffffffffffffff
lea rcx, [rdi + 0x48]
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_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 0x1400a1d40
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.14007ef5c
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400a1da4
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.140080c30
jmp 0x1400a1da7
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 0x1400a1e19
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a1dce
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x1400a1e38
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a1dea
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 0x1400a1e32
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x1400a1e15
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.1400058e0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14009e8b0
lea rdx, [0x1400f2590]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400b47e0
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 0x1400b485e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b4858
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x1400b486c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.140080940
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b4879
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 0x1400b49af
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400b48b7
mov rax, qword [rbx]
mov rcx, rax
jmp 0x1400b48bd
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x1400b493f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400b48e2
cmp word [rdx], 0
jne 0x1400b4910
add rdx, 2
cmp rdx, rax
jne 0x1400b48d3
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x1400b48f2
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 0x1400b4910
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.140080c30
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 0x1400b49af
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400b4950
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x1400b4977
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400b4980
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_memmove
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400b49d0
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 [0x140144900]
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.14004b490
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 0x1400b4a71
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x1400b4a7d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140080940
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.api_ms_win_crt_runtime_l1_1_0.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.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x1400b4bda
cmp dword [rdi], 0x22
je 0x1400b4be7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400b4b2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b4b2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b4b2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400b47e0
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x1400b4b6d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400b4b63
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.140080c30
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400b4bb0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b4bab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b4bab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.140094eb0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b8340
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1400c8c70]
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x1400b8128
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b8162
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b8167
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 0x1400b81b0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400d10d0]
cmp byte [rcx + rax], 0
je 0x1400b81b0
dec r8
sub rdx, 1
jne 0x1400b8196
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001ee70
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x7d0
mov rax, qword [0x1402cf910]
xor rax, rsp
mov qword [rsp + 0x7c0], rax
mov rbx, rcx
call fcn.14006fc48
lea rcx, [rbx + 0x1b0]
call fcn.140042720
mov rax, qword [rbx + 0x1a8]
lea rcx, [rsp + 0x2f0]
mov r8d, 0x2b8
mov edx, dword [rax + 0x60]
mov dword [rbx + 0x2a8], edx
xor edx, edx
call fcn.1401f0eb0
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rsp + 0x2f0]
xor edx, edx
lea rcx, [0x140286b98]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor esi, esi
test rax, rax
je 0x14001ef38
lea rdi, [rbx + 0x178]
mov rdx, rax
mov rcx, rdi
call fcn.140072318
test eax, eax
je 0x14001ef38
mov r9d, esi
test rdi, rdi
je 0x14001ef1b
mov r9, qword [rdi + 8]
mov rcx, qword [rbx + 0x470]
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.140072870
lea rcx, [rbx + 0x430]
xor r9d, r9d
xor edx, edx
mov r8d, 0x800027
call fcn.14006a4bc
lea rdi, [rbx + 0x348]
mov dword [rsp + 0x20], 0x190
mov rcx, rdi
lea r8, [0x140286ba0]
xor r9d, r9d
xor edx, edx
call fcn.14003c980
mov r9d, 1
mov dword [rsp + 0x20], 0x50
mov edx, r9d
lea r8, [0x140286bb0]
mov rcx, rdi
call fcn.14003c980
mov edx, 0x104
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov r9d, 0x2b8
mov qword [0x1402de160], rsi
lea r8, [rsp + 0x30]
mov qword [0x1402de168], rsi
xor edx, edx
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14001eff1
mov eax, dword [rsp + 0x38]
mov dword [0x1402de174], eax
mov rax, qword [rsp + 0x30]
mov qword [0x1402de168], rax
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x103
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14001f02f
mov ecx, dword [rsp + 0x38]
mov dword [0x1402de170], ecx
mov rcx, qword [rsp + 0x30]
mov qword [0x1402de160], rcx
mov rcx, qword [rbx + 0x1a8]
mov eax, 1
mov dword [0x1402de15c], esi
mov qword [rcx + 0x5300], rsi
mov rcx, qword [rbx + 0x1a8]
mov qword [rcx + 0x52f8], rdi
mov rcx, qword [rsp + 0x7c0]
xor rcx, rsp
call fcn.1401ee030
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret