joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056ad0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x18007fe00]
xorps xmm0, xmm0
add rcx, 1
js 0x180056a1b
cvtsi2ss xmm0, rcx
jmp 0x180056a30
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x18007fdf0]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x18006d190]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180056a62
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180056a62
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x18007fe28]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x180056a9b
cmp rdx, 0x200
jae 0x180056a98
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x180056a9b
mov rdx, rcx
add rsp, 0x28
jmp 0x180056ad0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180056b01
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18007fdf8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18007fe08]
lea rdx, [rdi + rdi]
call fcn.180055e40
mov rax, qword [0x18007fdf8]
lea r9, [rdi - 1]
mov qword [0x18007fe20], r9
mov qword [0x18007fe28], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180056c74
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18007fe08]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180056bc0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180056c35
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180056bfd
mov r10, qword [rdx]
cmp r10, rax
je 0x180056bf7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180056c35
cmp r9, rdx
je 0x180056c11
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180056c49
cmp r9, rdx
jne 0x180056c02
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180056c6f
mov r9, qword [0x18007fe20]
jmp 0x180056b71
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180056c35
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180057a20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180050870
movzx ebx, byte [rbx]
mov byte [rsp + 0x48], bl
cmp qword [rsi + 0x88], 0
je 0x180057b9d
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180057a70
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rsi
call fcn.18005f0c0
mov r10, rax
mov ecx, dword [0x18006cdf0]
mov dword [rsp + 0x20], ecx
cmp byte [0x18006cdf3], 0
je 0x180057b73
xor r8d, r8d
cmp dword [0x180079018], 2
jl 0x180057b37
movdqa xmm3, xmmword [0x18006d2b0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18006d450]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18006d450]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
mov eax, 5
movd xmm0, eax
psrad xmm2, xmm0
mov eax, 0x1f
movd xmm0, eax
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x18006d2e0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.00000000000000009999999999999999]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x180057b73
lea r9, [rsp + 0x20]
nop dword [rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x180057b40
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.18005c7c0
movzx edx, bl
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___bool____ptr64]
lea rdx, [0x18005c990]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180057bdd
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057bd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180057bd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061958
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180061490
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x180057da0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180050870
mov ebx, dword [rbx]
mov dword [rsp + 0x48], ebx
cmp qword [rsi + 0x88], 0
je 0x180057f1c
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180057def
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rsi
call fcn.18005f0c0
mov r10, rax
mov ecx, dword [0x18006cdf0]
mov dword [rsp + 0x20], ecx
cmp byte [0x18006cdf3], 0
je 0x180057ef3
xor r8d, r8d
cmp dword [0x180079018], 2
jl 0x180057eb6
movdqa xmm3, xmmword [0x18006d2b0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18006d450]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18006d450]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
mov eax, 5
movd xmm0, eax
psrad xmm2, xmm0
mov eax, 0x1f
movd xmm0, eax
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x18006d2e0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.00000000000000009999999999999999]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x180057ef3
lea r9, [rsp + 0x20]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x180057ec0
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.18005c7c0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x18005c990]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180057f5c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057f57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180057f57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061958
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180061490
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x18005b180
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18005b1a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18005b1ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18005b1d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18005b229
test ecx, ecx
jle 0x18005b209
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18005b229
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18005b229
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x18005b250
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18005b272
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18005b288
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18005b2a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005b2a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005b2e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18005b37e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005b31d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18005b35e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18005b37e
cmp rbx, rax
ja 0x18005b330
test rbx, rbx
je 0x18005b37e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18005b7b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18005b7dd
xor eax, eax
jmp 0x18005b949
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18005b817
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18005b817
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18005b949
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18005b93c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18005b85a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18005b885
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18005b941
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18005b8f4
sub eax, 1
je 0x18005b8f4
cmp eax, 2
jne 0x18005b93c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18005b941
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18005b922
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18005b93c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18005b941
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180061490
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18005c390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18005c463
cmp byte [rcx + 0x71], 0
je 0x18005c463
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18005c45f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18005c424
sub eax, 1
je 0x18005c428
cmp eax, 2
jne 0x18005c45f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061490
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18005c456
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 0x18005c45f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18005c40c
xor al, al
jmp 0x18005c40c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061490
add rsp, 0x60
pop rbx
ret
Function at 0x180060670
Capabilities:
Hash data using fnv

Disassembly:
test rcx, rcx
je 0x18006086b
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
mov rsi, rcx
mov rdx, qword [0x18007e4f8]
mov rdi, qword [0x18007e4f0]
xor ebp, ebp
cmp rdi, rdx
je 0x1800606d8
nop
mov ecx, dword [rdi]
and ecx, 0x7fff
cmp dword [rdi], 0xffffffff
cmove ecx, ebp
mov eax, ebx
and eax, 0x7fff
cmp ebx, 0xffffffff
cmove eax, ebp
cmp ecx, eax
je 0x1800606d8
add rdi, 0x38
cmp rdi, rdx
jne 0x1800606b0
mov rax, qword [rsi]
mov r8, qword [rax + 0x110]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call r8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 8]
movsx eax, byte [rcx]
test al, al
je 0x18006071e
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
inc rcx
call fcn.180002190
cmp eax, 0x28ecd7a1
jne 0x18006071e
mov eax, 1
jmp 0x18006077e
mov rax, qword [rsi]
mov rdx, qword [rax + 0x4b0]
mov rcx, rsi
call rdx
test al, al
je 0x180060738
mov eax, 2
jmp 0x18006077e
mov rax, qword [rsi]
mov r8, qword [rax + 0x110]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call r8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 8]
movsx eax, byte [rcx]
test al, al
je 0x18006077c
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
inc rcx
call fcn.180002190
cmp eax, 0x4e65f325
mov eax, 3
je 0x18006077e
mov eax, ebp
mov rsi, qword [0x18007e4f8]
cmp rdi, rsi
jne 0x18006084a
xor ecx, ecx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x2c], eax
test eax, eax
je 0x180060805
cmp rsi, qword [0x18007e500]
je 0x1800607f0
mov dword [rsi], ebx
mov dword [rsi + 4], eax
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x30]
call fcn.18000de40
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
movzx eax, byte [rsp + 0x58]
mov byte [rsi + 0x30], al
add qword [0x18007e4f8], 0x38
jmp 0x180060805
lea r8, [rsp + 0x28]
mov rdx, rsi
lea rcx, [0x18007e4f0]
call fcn.180060870
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18006084f
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x180060843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180060843
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061958
jmp 0x18006084f
mov dword [rdi], ebx
mov dword [rdi + 4], eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180061490
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x180061288
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18006130c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180065900]
cmp byte [rcx + rax], 0
je 0x18006130c
dec r8
sub rdx, 1
jne 0x1800612f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006e00
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov r9, rcx
mov rcx, qword [0x1400cf018]
lea rbp, [0x1400cf018]
cmp rcx, rbp
je 0x140006e54
test byte [rcx + 0x1c], 1
je 0x140006e54
cmp byte [rcx + 0x19], 5
jb 0x140006e54
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rdx
call fcn.14000562c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
xor ebx, ebx
lea r8, [rsp + 0x38]
mov esi, eax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
nop dword [rax + rax]
lea r14, [0x1400af648]
test eax, eax
jne 0x140006ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [0x1400cf018]
cmp r10, rbp
je 0x140006fae
test byte [r10 + 0x1c], 2
je 0x140006f79
cmp byte [r10 + 0x19], 2
jb 0x140006f79
mov rcx, qword [r10 + 0x10]
mov edx, 0x3a
mov r9d, eax
mov r8, r14
call fcn.1400035c4
jmp 0x140006f72
cmp dword [rsp + 0x3c], 1
jne 0x140006f2c
mov r10, qword [0x1400cf018]
cmp r10, rbp
je 0x140006fae
test byte [r10 + 0x1c], 2
je 0x140006f79
cmp byte [r10 + 0x19], 5
jb 0x140006f79
mov rcx, qword [r10 + 0x10]
mov edx, 0x3b
mov r8, r14
call fcn.1400034f0
jmp 0x140006f72
cmp dword [rsp + 0x3c], 3
jne 0x140006fd3
mov rcx, qword [0x1400cf018]
cmp rcx, rbp
je 0x140006f60
test byte [rcx + 0x1c], 2
je 0x140006f60
cmp byte [rcx + 0x19], 5
jb 0x140006f60
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r14
call fcn.1400034f0
mov r8d, esi
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140006b74
mov ebx, eax
mov r10, qword [0x1400cf018]
cmp r10, rbp
je 0x140006fae
test byte [r10 + 0x1c], 1
je 0x140006fae
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140006fae
mov rcx, qword [r10 + 0x10]
mov edx, 0x3e
mov r9d, ebx
mov r8, r14
call fcn.1400035c4
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a3310
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [0x1400cf018]
cmp rcx, rbp
je 0x140006ffc
test byte [rcx + 0x1c], 2
je 0x140006ffc
cmp byte [rcx + 0x19], 5
jb 0x140006ffc
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r14
call fcn.1400034f0
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x140006f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140006f70
Function at 0x14000f0e4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
call fcn.140094a84
mov esi, eax
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
lea rax, [rsp + 0x58]
xor ebx, ebx
and qword [rsp + 0x58], rbx
mov r9d, 0x2011f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000f13c
mov rbx, qword [rsp + 0x58]
mov rcx, qword [0x1400cf018]
lea rbp, [0x1400cf018]
mov r14d, 5
cmp rcx, rbp
je 0x14000f18b
lea edx, [r14 - 3]
test byte [rcx + 0x1c], dl
je 0x14000f18b
movzx eax, byte [rcx + 0x19]
test edi, edi
cmove edx, r14d
cmp eax, edx
jb 0x14000f18b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b0350]
mov edx, 0x85
mov r9d, edi
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
test edi, edi
jne 0x14000f1c6
lea r9d, [rdi + 4]
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.WakeOnMagicPacketEnabled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
cmp rcx, rbp
je 0x14000f1ef
test byte [rcx + 0x1c], 1
je 0x14000f1ef
cmp byte [rcx + 0x19], r14b
jb 0x14000f1ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b0350]
mov edx, 0x86
mov r9d, esi
call fcn.1400035c4
test rbx, rbx
je 0x14000f203
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret