joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400059f0
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 0x140005a18
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 0x140005a3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005a40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005a99
test ecx, ecx
jle 0x140005a79
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 0x140005a99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005a99
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 0x140005ac0
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 0x140005ae2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005af8
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 0x140005b14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005b16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005b52
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 0x140005bee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005b8d
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 0x140005bce
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 0x140005bee
cmp rbx, rax
ja 0x140005ba0
test rbx, rbx
je 0x140005bee
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 0x140006050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000607d
xor eax, eax
jmp 0x1400061e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400060b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400060b7
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 0x1400061e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400061dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400060fa
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 0x140006125
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 0x1400061e1
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 0x140006194
sub eax, 1
je 0x140006194
cmp eax, 2
jne 0x1400061dc
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 0x1400061e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400061c2
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 0x1400061dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400061e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400081b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006eb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006f83
cmp byte [rcx + 0x71], 0
je 0x140006f83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140006f7f
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 0x140006f44
sub eax, 1
je 0x140006f48
cmp eax, 2
jne 0x140006f7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400081b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006f76
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 0x140006f7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006f2c
xor al, al
jmp 0x140006f2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400081b0
add rsp, 0x60
pop rbx
ret

Function at 0x140008edc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008f26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008f26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008f26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008f26
cmp dword [rcx + 0x84], 0xe
jbe 0x140008f26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008f28
xor al, al
add rsp, 0x28
ret
Function at 0x140004964
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x1400049f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400049f2
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400049e2
cmp rbx, rcx
jae 0x1400049f2
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400049cd
cmp rbx, rcx
jae 0x1400049f2
cmp word [rbx], r14w
je 0x1400049f2
mov rax, rbx
jmp 0x1400049f4
xor eax, eax
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
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, [0x1400af738]
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.1400a37d0
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.140094ee4
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, [0x1400b0440]
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, [0x1400b0440]
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
Function at 0x140013e30
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov rcx, qword [0x1400cf018]
lea rsi, [0x1400cf018]
cmp rcx, rsi
je 0x140013e76
test byte [rcx + 0x1c], 1
je 0x140013e76
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b0440]
mov edx, 0x105
call fcn.1400034f0
xor r13d, r13d
lea rax, [rbp + 0x48]
mov edi, 1
mov qword [rbp + 0x58], r13
mov r8d, edi
mov dword [rbp + 0x48], r13d
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSEnumerateSessionsW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x140013eef
test byte [rcx + 0x1c], 2
je 0x140013eef
cmp byte [rcx + 0x19], 5
jb 0x140013eef
mov eax, dword [rbp + 0x48]
lea r8, [0x1400b0440]
mov rcx, qword [rcx + 0x10]
mov edx, 0x106
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14000af44
mov rcx, qword [0x1400cf018]
test ebx, ebx
je 0x14001401a
cmp dword [rbp + 0x48], r13d
jne 0x140013f05
mov edi, r13d
jmp 0x140013fff
mov r14d, r13d
lea rdi, [0x1400cf018]
mov r15d, r13d
mov esi, r13d
cmp esi, dword [rbp + 0x48]
jae 0x140013fe7
mov rcx, qword [rbp + 0x58]
mov eax, esi
lea rbx, [rax + rax*2]
mov eax, dword [rcx + rbx*8 + 0x10]
test eax, eax
je 0x140013f3c
add eax, 0xfffffffd
cmp eax, 1
ja 0x140013fdc
mov qword [rbp + 0x60], r13
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x60]
mov edx, dword [rcx + rbx*8]
mov r8d, 5
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSQuerySessionInformationW]
nop dword [rax + rax]
mov r12d, eax
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x140013fa8
test byte [rcx + 0x1c], 2
je 0x140013fa8
cmp byte [rcx + 0x19], 5
jb 0x140013fa8
mov rax, qword [rbp + 0x60]
mov r9d, esi
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x58]
mov dword [rsp + 0x28], r12d
mov edx, dword [rax + rbx*8]
mov dword [rsp + 0x20], edx
call fcn.14000ac5c
test r12d, r12d
je 0x140013fd6
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140013fd6
movzx ebx, word [rcx]
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSFreeMemory]
nop dword [rax + rax]
lea eax, [r14 + 1]
cmp r13w, bx
cmove eax, r14d
mov r14d, eax
jmp 0x140013fdc
mov r15d, 1
inc esi
test r14d, r14d
je 0x140013f15
lea rsi, [0x1400cf018]
mov edi, 1
test r15d, r15d
jne 0x140013fff
test r14d, r14d
cmove edi, r13d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSFreeMemory]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
mov qword [rbp + 0x58], r13
cmp rcx, rsi
je 0x140014043
test byte [rcx + 0x1c], 1
je 0x140014043
cmp byte [rcx + 0x19], 5
jb 0x140014043
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b0440]
mov edx, 0x108
mov r9d, edi
call fcn.1400035c4
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140017038
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x40], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
xor r8d, r8d
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400170b0
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x1400170ab
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x1400170c4
test ecx, ecx
je 0x1400170c1
test cl, 1
jne 0x1400170ab
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400170c4
mov eax, SafeArrayDestroy
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x1400170b0
Function at 0x14002ffa4
Capabilities:
Monitor local ipv4 address changes

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 r14
sub rsp, 0x30
xor ebp, ebp
mov esi, ebp
mov edi, ebp
call fcn.140031480
test eax, eax
je 0x140030170
call fcn.140031844
test eax, eax
je 0x140030170
lea r14, [0x1400d2d40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
xorps xmm0, xmm0
mov dword [0x1400d48b0], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movups xmmword [0x1400d4630], xmm0
movups xmmword [0x1400d4640], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x1400d4648], rax
test rax, rax
jne 0x14003003c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400300ad
mov dword [rsp + 0x28], ebp
lea r8, [0x14002fba0]
or dword [rsp + 0x20], 0xffffffff
lea rcx, [0x1400d48b8]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14003002c
lea rdx, [0x1400d4630]
mov esi, 1
lea rcx, [0x1400d48c0]
call qword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x1400300ad
lea rcx, [0x1400d48c8]
mov edi, esi
call fcn.14002fb0c
mov ebx, eax
test eax, eax
jne 0x1400300b5
mov ebx, ebp
mov dword [0x1400d48ac], esi
test ebx, ebx
je 0x14003015d
mov rcx, r14
mov dword [0x1400d48b0], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x1400d48b8]
test esi, esi
mov rcx, r14
cmovne rax, rbp
mov qword [0x1400d48b8], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
test edi, edi
je 0x140030108
lea rcx, [0x1400d4630]
call qword [sym.imp.IPHLPAPI.DLL_CancelIPChangeNotify]
nop dword [rax + rax]
mov rcx, qword [0x1400d4648]
test rcx, rcx
je 0x140030120
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x1400d48c8]
xorps xmm0, xmm0
movups xmmword [0x1400d4630], xmm0
movups xmmword [0x1400d4640], xmm0
test rcx, rcx
je 0x140030150
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [0x1400d48c8], rbp
mov qword [0x1400d48c0], rbp
mov dword [0x1400d48ac], ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400301a9
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x1400301a4
test byte [rcx + 0x1c], 4
je 0x1400301a4
cmp byte [rcx + 0x19], 2
jb 0x1400301a4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b1158]
mov edx, SafeArrayAccessData
call fcn.1400034f0
mov eax, 0x8000ffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400318bc
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov ebx, edx
mov rdi, rcx
and dword [rax - 0x18], 0
lea rsi, [0x1400cf018]
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x140031918
test byte [rcx + 0x1c], 1
je 0x140031918
cmp byte [rcx + 0x19], 5
jb 0x140031918
mov edx, 0xa
mov r9d, ebx
lea r8, [0x1400b11a8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
cmp ebx, 0x192
je 0x140031986
cmp ebx, 0x194
je 0x140031986
cmp ebx, 0x1f5
je 0x140031986
lea eax, [rbx - 0x2bd]
cmp eax, 0x13
ja 0x14003196c
mov ecx, 0x81fbf
bt ecx, eax
jb 0x140031986
cmp ebx, 0x321
je 0x140031986
mov r8d, ebx
mov edx, 0x67
mov rcx, rdi
call fcn.140031f28
jmp 0x1400319a0
mov ecx, ebx
call fcn.1400048b8
test rax, rax
je 0x1400319a0
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.140004a18
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x1400319d0
test byte [rcx + 0x1c], 1
je 0x1400319d0
cmp byte [rcx + 0x19], 5
jb 0x1400319d0
mov edx, SafeArrayDestroy
mov r9, qword [rdi]
lea r8, [0x1400b11a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003c36c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x14003c38f
mov eax, 0x8000ffff
jmp 0x14003c4f5
add rcx, 0x38
call fcn.140004484
test eax, eax
js 0x14003c4f5
xor r9d, r9d
mov byte [rbx + 0x60], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x14003c3e5
cmp byte [rbx + 0x60], al
je 0x14003c3db
lea rcx, [rbx + 0x38]
mov byte [rbx + 0x60], al
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop dword [rax + rax]
call fcn.1400171f4
jmp 0x14003c4f5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14003c424
call fcn.1400171f4
mov rcx, rbx
mov edi, eax
call fcn.14003c5b8
test eax, eax
jns 0x14003c4f3
test edi, edi
cmovns edi, eax
jmp 0x14003c4f3
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14003c178
mov esi, eax
test eax, eax
jns 0x14003c456
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14003c5b8
mov eax, esi
jmp 0x14003c4f5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14003c403
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.14003c178
mov edi, eax
test eax, eax
jns 0x14003c4a1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14003c5b8
jmp 0x14003c4f3
lea rax, [rbx + 8]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003c590]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14003c403
mov rcx, qword [rbx + 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14003c4f3
call fcn.1400171f4
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret