joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064d6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140058024
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140064e0d
cmp ebx, dword [rsp + 0x30]
je 0x140064e06
test esi, esi
je 0x140064e06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140064de1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140064dee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140064dcb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140064df2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140064e0f
mov eax, 1
jmp 0x140064e0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140069804
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005cfcc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005cfcc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140069954
cmp rax, 0xffffffffffffffff
je 0x140069954
xor edi, edi
test rbp, rbp
jle 0x1400698ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140059c2c
mov rbx, rax
test rax, rax
jne 0x14006988c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400698f5
mov edx, 0x8000
mov ecx, r14d
call fcn.140055c60
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400590d8
cmp eax, 0xffffffff
je 0x1400698d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006989c
mov edx, r15d
mov ecx, r14d
call fcn.140055c60
jmp 0x1400698f5
cmp byte [rsi + 0x38], dil
je 0x1400698ec
cmp dword [rsi + 0x34], 5
jne 0x1400698ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400698f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140059640
jmp 0x140069968
jns 0x140069968
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005cfcc
cmp rax, 0xffffffffffffffff
jne 0x140069920
cmp byte [rsi + 0x30], dil
je 0x140069968
mov edi, dword [rsi + 0x2c]
jmp 0x140069968
mov ecx, r14d
call fcn.140062818
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140069968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140069968
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140069961
mov eax, dword [rsi + 0x2c]
jmp 0x140069966
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005cfcc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x4027f0
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r12d, r12d
mov rbp, r8
mov qword [rsp + 0x48], r12
mov r15d, edx
mov qword [rsp + 0x50], r12
mov r14, rcx
mov dword [rsp + 0x58], r12d
mov edi, r12d
mov dword [rsp + 0x44], r12d
mov esi, r12d
mov dword [rsp + 0x40], r12d
test rcx, rcx
je 0x4029e2
test r8, r8
je 0x4029e2
xorps xmm0, xmm0
lea rdx, str.SHA256
movups xmmword [r8], xmm0
xor r9d, r9d
lea rcx, [rsp + 0x48]
movups xmmword [r8 + 0x10], xmm0
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
or eax, 0x10000000
jl 0x40298e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r12d
lea r9d, [r12 + 4]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
or eax, 0x10000000
jl 0x40298e
mov qword [rsp + 0x70], rbx
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x402989
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r12d
lea r9d, [r12 + 4]
lea r8, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea rdx, str.HashDigestLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
or eax, 0x10000000
jl 0x402989
mov ebx, dword [rsp + 0x44]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x402989
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
or eax, 0x10000000
jl 0x402989
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, r15d
mov rdx, r14
call qword [sym.imp.bcrypt.dll_BCryptHashData]
or eax, 0x10000000
jl 0x402989
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x4029a0
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x4029b0
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
test rdi, rdi
je 0x4029c9
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test rsi, rsi
je 0x4029e2
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.00479310
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x404d90
Capabilities:
Read http header

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov rsi, rdx
mov dword [rsp + 0x30], 0
mov rbp, rcx
lea rax, [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
xor r8d, r8d
lea edx, [r9 + 0x16]
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x404e5a
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x70], rdi
call fcn.00479588
mov rcx, qword [rbp + 0x38]
mov rdi, rax
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x16]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x404e4d
mov rdx, qword [rsi]
mov rcx, rsi
mov qword [rsi + 8], rdx
call fcn.00404f00
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov rdx, qword [rsi + 8]
add r9, rdi
mov rcx, rsi
call fcn.00405930
mov bl, 1
mov rcx, rdi
call fcn.00479330
mov rdi, qword [rsp + 0x70]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.00479310
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x406050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x406063
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov rcx, qword [rbx + 0x18]
cmp eax, 0xffffffff
je 0x406076
test al, 0x10
je 0x4060c4
cmp rcx, 8
jb 0x4060ad
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x4060a8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x406114
mov rcx, r8
call fcn.00479330
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
add rsp, 0x20
pop rbx
ret
cmp rcx, 8
jb 0x4060fb
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x4060f6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x406114
mov rcx, r8
call fcn.00479330
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x406120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x406133
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov rcx, qword [rbx + 0x18]
cmp eax, 0xffffffff
je 0x406196
test al, 0x10
je 0x406196
cmp rcx, 8
jb 0x40617d
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x406178
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4061e4
mov rcx, r8
call fcn.00479330
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov al, 1
add rsp, 0x20
pop rbx
ret
cmp rcx, 8
jb 0x4061cd
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x4061c8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4061e4
mov rcx, r8
call fcn.00479330
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x406b10
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x20], rcx
xor esi, esi
mov qword [r11 - 0x48], rsi
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x30], rsi
mov rdx, rcx
lea rcx, [r11 - 0x48]
call sym.AsusSoftwareManager.exe_private:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Construct_lv_contents_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
lea rcx, [rsp + 0x20]
call fcn.00406050
test al, al
je 0x406bb8
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x406b6b
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x406bb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x406bad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x406c24
mov rcx, r8
call fcn.00479330
movzx eax, dil
jmp 0x406bf5
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x406bf3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x406bee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x406c24
mov rcx, r8
call fcn.00479330
xor al, al
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00479310
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4073e0
Capabilities:
Copy file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rdi, rcx
jb 0x4073f8
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x407402
mov rcx, qword [rcx]
mov r8d, 1
mov qword [rsp + 0x50], rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
mov rdx, qword [rdi + 0x18]
test eax, eax
setne sil
cmp rdx, 8
jb 0x407454
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x40744f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4074c0
mov rcx, r8
call fcn.00479330
xor ebp, ebp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov word [rdi], bp
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x4074a0
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x40749b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4074c0
mov rcx, r8
call fcn.00479330
mov qword [rbx + 0x10], rbp
movzx eax, sil
mov word [rbx], bp
mov rbp, qword [rsp + 0x50]
mov qword [rbx + 0x18], 7
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x422960
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x360
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rdx, [0x004fb650]
cmp qword [0x004fb668], 8
cmovae rdx, qword [0x004fb650]
lea rcx, [0x004fb610]
cmp qword [0x004fb628], 8
cmovae rcx, qword [0x004fb610]
mov r9d, 0x100
lea r8, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_firmware_l1_1_0.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x422a06
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov edx, 0x79
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceBIOSBIAgent.cpp
call fcn.004036d0
lea rbx, [0x004bc570]
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], edi
lea r9, str.BIOSBIAgent:SendBI_BIOS_AppAsusRecoveryFlag_GetFirmwareEnvironmentVariableW_error_:_d
mov ecx, 1
mov r8d, 0x1b5
call fcn.0044a600
jmp 0x422b42
mov edx, 0x79
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceBIOSBIAgent.cpp
cmp eax, 0x100
je 0x422a45
call fcn.004036d0
lea rbx, [0x004bc570]
lea rdx, [rbx + rax*2]
lea r9, str.BIOSBIAgent:SendBI_BIOS_AppAsusRecoveryFlag_GetFirmwareEnvironmentVariableW_Size_error_
mov ecx, 1
mov r8d, 0x1bb
call fcn.0044a600
jmp 0x422b42
call fcn.004036d0
lea rbx, [0x004bc570]
lea rdx, [rbx + rax*2]
lea r9, str.BIOSBIAgent:SendBI_BIOS_AppAsusRecoveryFlag:
mov ecx, 1
mov r8d, 0x1bf
call fcn.0044a600
mov edx, 0x79
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceBIOSBIAgent.cpp
call fcn.004036d0
lea rdx, [rbx + rax*2]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, str.BIOSBIAgent:SendBI_BIOS_AppAsusRecoveryFlag:_u
mov ecx, 1
mov r8d, 0x1c0
call fcn.0044a600
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x150]
call fcn.004a2370
mov r8d, dword [rsp + 0x50]
lea rdx, str.Welcome_ASUS_Recovery__u
lea rcx, [rsp + 0x150]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [0x005022c8]
test rax, rax
jne 0x422afd
lea ecx, [rax + 8]
call fcn.0047970c
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov rcx, rax
call fcn.00418520
nop
mov qword [0x005022c8], rax
mov dword [rsp + 0x38], 1
lea rcx, [0x004b993c]
mov qword [rsp + 0x30], rcx
lea rcx, [0x004bc964]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x1b198
mov r9d, 3
lea r8, [rsp + 0x150]
mov edx, 0x2b5c
mov rcx, qword [rax]
call qword [sym.imp.AsusBusinessIntelligenceCPPLib.dll_public:_void___cdecl_BusinessIntelligenceCollection::BITrackingManager::BISendEventExt_W_enum_BusinessIntelligenceCollection::BI_SUBJECTS__wchar_t_const____ptr64__enum_BusinessIntelligenceCollection::BI_BEHAVIOR__enum_BusinessIntelligenceCollection::BI_PAGES__char_const____ptr64__wchar_t_const____ptr64__unsigned_int____ptr64]
nop
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.00479310
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
Function at 0x422eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x30]
xor ebx, ebx
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov edi, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea ebp, [rbx + 1]
test eax, eax
jne 0x422f4b
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
lea rax, [rsi + 4]
mov rcx, qword [rsp + 0x30]
lea rdx, str.UEFIBISendExpireTimeHigh
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmove edi, ebp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 4
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x422fb5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.UEFIBISendExpireTimeLow
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmove ebx, ebp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test dil, dil
je 0x422fc4
test ebx, ebx
je 0x422fc4
movzx eax, bpl
jmp 0x422fc6
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.00479310
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x424f70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x424fa1
xor eax, eax
jmp 0x4250f4
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x424fde
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x424fde
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x4250f4
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x4250e9
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x425025
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x42504f
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x4250e9
movzx edi, si
jmp 0x4250e9
lea r8, [rsp + 0x40]
mov word [rsp + 0x50], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x52]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x4250a5
sub eax, 1
je 0x4250a5
cmp eax, 2
jne 0x4250e9
movzx ecx, word [rsp + 0x50]
jmp 0x425031
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x4250d6
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x4250e9
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
movzx eax, si
jne 0x4250ec
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.00479310
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x425500
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x4255d8
cmp byte [rcx + 0x72], 0
je 0x4255d8
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x4255d4
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x425596
sub eax, 1
je 0x42559a
cmp eax, 2
jne 0x4255d4
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.00479310
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x4255cb
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x4255d4
cmp byte [rbx + 0x72], 0
sete al
jmp 0x42557e
xor al, al
jmp 0x42557e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.00479310
add rsp, 0x60
pop rbx
ret
Function at 0x4278a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rbx, rcx
mov rdi, r8
je 0x42793a
test r8, r8
jle 0x427932
mov rcx, rbx
call fcn.0040b790
test rax, rax
jle 0x427910
mov rcx, qword [rbx + 0x40]
cmp rdi, rax
mov rsi, rdi
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.004a2610
mov rax, qword [rbx + 0x58]
sub rdi, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x42792a
mov rax, qword [rbx]
mov rcx, rbx
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x427932
dec rdi
mov esi, 1
add rbp, rsi
test rdi, rdi
jg 0x4278d2
sub r14, rdi
mov rax, r14
jmp 0x4279b7
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x42794e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x427950
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x4279b1
test ecx, ecx
jle 0x427989
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.004a2610
mov rax, qword [rbx + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x4279b1
cmp qword [rbx + 0x80], 0
je 0x4279b1
lfence
mov r9, qword [rbx + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rdi, r14
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret