joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180051d64
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rax + 8], rbx
test rcx, rcx
je 0x180051daa
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, rsi
mov qword [rsp + 0x80], rbx
mov rcx, r15
call fcn.180030ee8
xor r12d, r12d
mov r8, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x30]
sub rcx, r8
movabs r13, 0x23ee08fb823ee09
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180051e5a
xor ebp, ebp
mov dil, byte [rsp + 0x80]
mov r14, qword [r8 + rbp + 0x10]
mov ecx, 0x21
call fcn.18000a354
mov rcx, r14
test rax, rax
je 0x180051e05
call rax
jmp 0x180051e0b
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180051e2c
mov r9, qword [rsi + 0x28]
add r9, 0x10
add r9, rbp
mov byte [rsp + 0x20], dil
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180036d2c
inc r12
add rbp, 0x390
mov r8, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x30]
sub rcx, r8
mov rax, r13
imul rcx
sar rdx, 3
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp r12, rdx
jb 0x180051dea
test rbx, rbx
je 0x180051e68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180052860
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r15, rdx
mov rsi, rcx
lea rdi, [rcx + 0x40]
xor ebx, ebx
mov qword [rax + 8], rbx
test rdi, rdi
je 0x1800528ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, rdi
mov qword [rsp + 0x80], rbx
mov rcx, r15
call fcn.180030ee8
xor r12d, r12d
mov r8, qword [rsi + 0x68]
mov rcx, qword [rsi + 0x70]
sub rcx, r8
movabs r13, 0x8888888888888889
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180052960
xor ebp, ebp
mov dil, byte [rsp + 0x80]
mov r14, qword [r8 + rbp + 0x70]
mov ecx, 0x21
call fcn.18000a354
mov rcx, r14
test rax, rax
je 0x18005290b
call rax
jmp 0x180052911
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180052932
mov r9, qword [rsi + 0x68]
add r9, 0x70
add r9, rbp
mov byte [rsp + 0x20], dil
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180036d2c
inc r12
add rbp, 0x78
mov r8, qword [rsi + 0x68]
mov rcx, qword [rsi + 0x70]
sub rcx, r8
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 6
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp r12, rdx
jb 0x1800528f0
test rbx, rbx
je 0x18005296e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180052e84
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x1f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r15, rdx
mov rbp, rcx
xor edi, edi
mov r14d, edi
cmp dword [rcx + 0x90], edi
je 0x180052f5a
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x180052f38
lea r14, [0x18016b438]
mov qword [rsp + 0x30], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x180052f2f
mov eax, dword [0x18016b410]
lea esi, [rdi + 1]
test sil, al
jne 0x180052f21
or eax, esi
mov dword [0x18016b410], eax
call fcn.1800432c8
lea rcx, [0x1800856ec]
call fcn.18006f680
nop
lea rbx, [0x18016b418]
mov qword [0x18016b408], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 8], edi
je 0x180052f56
lea rdx, [rbp + 0x80]
mov rcx, rbp
call fcn.180053480
test eax, eax
setns dil
mov eax, edi
jmp 0x180052fae
xor eax, eax
jmp 0x180052fae
mov dword [rsp + 0x20], edi
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, edi
mov esi, 1
test eax, eax
cmove ebx, esi
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x80]
call qword [sym.imp.WS2_32.dll_WSCUnInstallNameSpace]
test eax, eax
jne 0x180052f94
mov r14d, esi
jmp 0x180052f9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r15], eax
test ebx, ebx
je 0x180052fa7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x20], edi
mov eax, r14d
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x230]
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800535e4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
xor r14d, r14d
cmp dword [rcx + 0x98], r14d
jne 0x1800537dc
mov dword [rcx + 0x98], 1
lea rdi, [rcx + 0x40]
mov qword [rsp + 0x48], r14
test rdi, rdi
je 0x180053658
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x48], rdi
lea rsi, [rbx + 0xa0]
mov rdi, r14
lea r13, str._SystemRoot_System32mswsock.dll
mov r15d, 0x104
mov bl, byte [rsp + 0x30]
mov word [rbp - 0x80], r14w
mov r8d, r15d
lea rdx, [rbp - 0x80]
mov rcx, qword [rdi + r13]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1800709c0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.180005348
nop
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180036d2c
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800536da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rdi, 8
cmp rdi, 0x28
jb 0x180053673
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x18005374e
lea rdi, [0x18016b438]
mov qword [rsp + 0x58], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x180053745
mov eax, dword [0x18016b410]
test al, 1
jne 0x180053737
or eax, 1
mov dword [0x18016b410], eax
call fcn.1800432c8
lea rcx, [0x1800856ec]
call fcn.18006f680
nop
lea rbx, [0x18016b418]
mov qword [0x18016b408], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 8], r14d
je 0x1800537cc
mov rdi, r14
mov bl, byte [rsp + 0x30]
mov word [rbp - 0x80], r14w
mov r8d, r15d
lea rdx, [rbp - 0x80]
mov rcx, qword [rdi + r13]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1800709c0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.180005348
nop
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180036d2c
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800537c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rdi, 8
cmp rdi, 0x28
jb 0x18005375b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800537dc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1800562d0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x450
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp dword [0x18016b2ac], 0
jne 0x1800563e0
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x208
lea rdx, [rsp + 0x30]
mov rcx, qword [0x180169370]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
mov ebx, 1
cmp eax, 0x206
ja 0x1800563da
lea rdx, [0x180090d64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call fcn.18005619c
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1800563bb
lea rdx, str.safemon360ExtHost.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [rbx + 0x20]
call fcn.18000a354
lea rcx, [rsp + 0x30]
test rax, rax
je 0x180056396
call rax
jmp 0x18005639c
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800563bb
lea rcx, [rsp + 0x30]
call fcn.180065ee4
mov ecx, dword [0x18016b2a8]
test eax, eax
cmovne ecx, ebx
mov dword [0x18016b2a8], ecx
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800563da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [0x18016b2ac], ebx
mov eax, dword [0x18016b2a8]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x450
pop rbx
ret

Function at 0x180056534
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x450
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp dword [0x18016b2a4], 0
jne 0x180056644
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x208
lea rdx, [rsp + 0x30]
mov rcx, qword [0x180169370]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
mov ebx, 1
cmp eax, 0x206
ja 0x18005663e
lea rdx, [0x180090d64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call fcn.180056400
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x18005661f
lea rdx, str.safemon360EDRSensor.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [rbx + 0x20]
call fcn.18000a354
lea rcx, [rsp + 0x30]
test rax, rax
je 0x1800565fa
call rax
jmp 0x180056600
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005661f
lea rcx, [rsp + 0x30]
call fcn.180065ee4
mov ecx, dword [0x18016b2a0]
test eax, eax
cmovne ecx, ebx
mov dword [0x18016b2a0], ecx
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18005663e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [0x18016b2a4], ebx
mov eax, dword [0x18016b2a0]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x450
pop rbx
ret
Function at 0x180056c84
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rdi, rcx
mov ebx, 1
lea r15, [0x180168cf0]
mov qword [rbp + 0x58], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r14, [0x18016b1a0]
xor esi, esi
cmp word [0x18016b1a0], si
jne 0x180056db2
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x48], 0xfc
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x50]
lea r8, [0x18008b760]
lea rdx, str.SOFTWAREWow6432Node360SD
mov r12, 0xffffffff80000002
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x180056db2
call fcn.1800562d0
test eax, eax
jne 0x180056d4f
call fcn.180056534
test eax, eax
jne 0x180056d4f
xor edx, edx
mov r8d, 0x100
mov rcx, r14
call sub.msvcrt.dll_memset
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x48], 0xfc
lea r8, str.PartnerName
lea rdx, str.SOFTWAREWow6432Node360SafeCoop
jmp 0x180056d87
xor edx, edx
mov r8d, 0x100
mov rcx, r14
call sub.msvcrt.dll_memset
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x48], 0xfc
call fcn.180056534
lea r8, str.Partner
test eax, eax
lea rdx, str.SOFTWAREWow6432Node360EDRSensor
jne 0x180056d87
lea rdx, str.SOFTWAREWow6432Node360EntSecurity
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x50]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x180056db2
mov rcx, rdi
call fcn.1800055b8
mov ebx, esi
jmp 0x180056dcc
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], si
jne 0x180056db6
mov rdx, r14
mov rcx, rdi
call fcn.180005498
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180056de8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov ebx, 1
lea r13, [0x180168d18]
mov qword [rbp - 0x10], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r12, [0x18016b0a0]
xor r15d, r15d
cmp word [0x18016b0a0], r15w
je 0x180056e86
test rdi, rdi
je 0x180056f74
test rsi, rsi
je 0x180056f74
lea rdx, str.360ExtHost
mov rcx, rdi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x180056f74
lea rdx, str.PCInfo
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x180056f74
mov esi, 0x100
mov r8d, esi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
mov dword [rbp - 0x20], ebx
mov dword [rbp + 0x48], 0xfc
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x20]
lea r8, [0x18008b760]
lea rdx, str.SOFTWAREWow6432Node360SD
mov rdi, 0xffffffff80000002
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x180056f74
call fcn.1800562d0
test eax, eax
jne 0x180056f13
call fcn.180056534
test eax, eax
jne 0x180056f13
mov r8d, esi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
mov dword [rbp - 0x20], ebx
mov dword [rbp + 0x48], 0xfc
lea r8, str.ipartner
lea rdx, str.SOFTWAREWow6432Node360SafeCoop
jmp 0x180056f48
mov r8, rsi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
mov dword [rbp - 0x20], ebx
mov dword [rbp + 0x48], 0xfc
call fcn.180056534
lea r8, str.Partner
test eax, eax
lea rdx, str.SOFTWAREWow6432Node360EDRSensor
jne 0x180056f48
lea rdx, str.SOFTWAREWow6432Node360EntSecurity
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x180056f74
mov rcx, r14
call fcn.1800055b8
mov ebx, r15d
jmp 0x180056f8e
or r8, 0xffffffffffffffff
inc r8
cmp word [r12 + r8*2], r15w
jne 0x180056f78
mov rdx, r12
mov rcx, r14
call fcn.180005498
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800570a0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [0x180169370]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180005348
nop
lea r8, str.360ver.dll
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180019fc4
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
xor edi, edi
test eax, eax
jg 0x180057159
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800571da
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.180005348
nop
lea r8, str.QHVer.dll
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180019fc4
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18000525c
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1800571bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1800571da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea r14, [0x18016afa0]
test eax, eax
je 0x180057254
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
call fcn.180019044
test eax, eax
je 0x180057254
mov edx, dword [rsp + 0x40]
movzx ecx, dx
shr edx, 0x10
mov r9d, dword [rsp + 0x44]
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
lea r8, str._hd._hd._hd._hd
mov edx, 0x80
mov rcx, r14
call fcn.18000d328
mov eax, 1
mov dword [0x18016af94], eax
jmp 0x18005725a
mov eax, dword [0x18016af94]
test eax, eax
je 0x18005727b
mov rax, rsi
inc rax
cmp word [r14 + rax*2], di
jne 0x180057261
mov r8d, eax
mov rdx, r14
mov rcx, qword [rbx]
call fcn.180005498
jmp 0x180057284
mov rcx, qword [rbx]
call fcn.1800055b8
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1800572a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180057364
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Path
add eax, eax
mov rbx, r8
mov dword [rsp + 0x48], eax
mov rdi, r9
lea rax, [r11 + 0x10]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov rcx, qword [rcx]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800573e1
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x1800573dc
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x1800573f4
test ecx, ecx
je 0x1800573f1
test cl, 1
jne 0x1800573dc
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1800573f4
mov eax, SafeArrayDestroy
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x1800573e1

Function at 0x180057474
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
mov r8d, edx
mov r9d, edx
shr eax, 2
and r9d, 3
cmp edx, 4
ja 0x1800574b9
lea rdx, [rsp + 0x10]
mov eax, 0x15762180
mov dword [rsp + 0x10], eax
test r8d, r8d
je 0x180057500
lea rax, [rsp + 0x10]
mov r9d, r8d
sub rcx, rax
mov al, byte [rcx + rdx]
xor byte [rdx], al
inc rdx
sub r9, 1
jne 0x1800574a6
mov eax, dword [rsp + 0x10]
ret
mov edx, dword [rcx]
cmp eax, 1
jbe 0x1800574d0
lea r8d, [rax - 1]
add rcx, 4
xor edx, dword [rcx]
sub r8, 1
jne 0x1800574c4
test r9d, r9d
je 0x1800574fe
lea rax, [rsp + 0x10]
mov dword [rsp + 0x10], edx
sub rcx, rax
mov edx, r9d
lea r8, [rsp + 0x10]
mov al, byte [rcx + r8 + 4]
xor byte [r8], al
inc r8
sub rdx, 1
jne 0x1800574e9
mov edx, dword [rsp + 0x10]
mov eax, edx
ret
Function at 0x18005afb8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
and dword [rax + 0x10], 0
mov dword [rax + 0x18], 4
mov edi, 1
mov dword [rax - 0x28], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MsgCenter
lea rcx, [rax + 0x20]
call fcn.180056700
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
lea r8, str.opentime_afterinstall
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18005b031
cmp dword [rsp + 0x58], 4
je 0x18005b033
xor edi, edi
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18005b053
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18005b060
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov dword [rax - 0x28], 1
lea rdx, str.MsgCenter
mov r9, rdx
xor r8d, r8d
lea rcx, [rax + 8]
call fcn.180056700
nop
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8, str.opentime_afterinstall
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ebx, ebx
test eax, eax
sete bl
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18005b0ea
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x40
pop rbx
ret