joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011578
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140012840
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x430
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x458]
mov rax, qword [0x140020008]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x1400260f6]
call fcn.1400114d8
mov r8d, dword [rbp + 0x430]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140012967
lea rax, [rbp + 0x30]
lea rcx, str._unknown_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f4
rep stosb byte [rdi], al
lea r9, [rbp + 0x274]
mov r8d, 8
lea rdx, [rbp + 0x258]
mov rcx, qword [rbp + 8]
call fcn.140011573
test eax, eax
je 0x14001290e
mov r9d, 0x104
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 8]
call fcn.14001157d
lea rdx, str.Process_ID:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140011280
mov edx, dword [rbp + 0x430]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, str.__Process_Name:
mov rcx, rax
call fcn.140011280
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.140011280
lea rdx, [0x140011258]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400129a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x404], eax
lea rdx, str.Failed_to_get_process_info__Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140011280
mov ecx, dword [rbp + 0x404]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011258]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001d170]
call fcn.140011438
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x410]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001130
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r9, rdx
mov r8d, ecx
call fcn.140001ad0
test eax, eax
jne 0x140001346
mov rax, qword [0x1400097f0]
mov qword [rsp + 0x30], rbx
test rax, rax
jne 0x140001172
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006d50]
call fcn.140003830
mov qword [0x1400097f0], rax
lea rcx, [0x140006660]
mov qword [rsp + 0x20], rdi
call rax
mov rbx, rax
test rax, rax
je 0x140001274
mov rax, qword [0x140009838]
mov qword [rsp + 0x38], rsi
test rax, rax
jne 0x1400011b7
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.140003830
mov qword [0x140009838], rax
xor r8d, r8d
lea rcx, str._MessageBox
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x1400011f5
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.140003830
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x140009838]
test rax, rax
jne 0x140001226
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.140003830
mov qword [0x140009838], rax
xor r8d, r8d
lea rcx, str._SHGetSpecialFolderPath
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x140001264
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.140003830
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x38]
call fcn.1400013b0
lea rcx, [0x1400064b0]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001312
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009878]
test rax, rax
jne 0x1400012c2
mov rcx, qword [0x1400098c8]
lea rdx, [0x1400069f8]
call fcn.140003830
mov qword [0x140009878], rax
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
test eax, eax
je 0x140001312
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x1400099b0]
test rax, rax
jne 0x140001303
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a10]
call fcn.140003830
mov qword [0x1400099b0], rax
xor r8d, r8d
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x20]
test rax, rax
jne 0x14000133d
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a98]
call fcn.140003830
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400068ac
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x20], r9d
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
mov r10, qword [0x140106190]
lea r12, [0x140106190]
cmp r10, r12
je 0x14000690c
test byte [r10 + 0x1c], 1
je 0x14000690c
cmp byte [r10 + 0x19], 5
jb 0x14000690c
mov r9, rcx
mov dword [rax - 0x40], r8d
mov rcx, qword [r10 + 0x10]
mov qword [rax - 0x48], rdx
call fcn.14000556c
mov r10, qword [0x140106190]
xor ebx, ebx
mov dword [rsp + 0x88], ebx
lea r13, [0x1400db968]
cmp r10, r12
je 0x140006945
test byte [r10 + 0x1c], 2
je 0x140006945
cmp byte [r10 + 0x19], 5
jb 0x140006945
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x34]
mov r8, r13
call fcn.140003538
mov r10, qword [0x140106190]
cmp dword [rdi + 4], 1
je 0x140006ac4
mov edx, 0x7530
mov ecx, dword [rdi + 0x18]
mov eax, edx
cmp ecx, edx
cmovb eax, ecx
cmp eax, 0x1f4
jae 0x14000696c
mov esi, 0x1f4
jmp 0x140006973
cmp ecx, edx
mov esi, edx
cmovb esi, ecx
cmp r10, r12
je 0x14000699a
test byte [r10 + 0x1c], 2
je 0x14000699a
cmp byte [r10 + 0x19], 5
jb 0x14000699a
mov rcx, qword [r10 + 0x10]
mov edx, 0x35
mov r9d, esi
mov r8, r13
call fcn.1400035ec
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x88]
mov r9d, 0x24
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140006a87
cmp dword [rdi + 4], 1
je 0x140006a56
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov edx, 0x7530
cmp eax, edx
ja 0x1400069fc
cmp dword [rdi + 4], 1
mov r10, qword [0x140106190]
jne 0x140006954
jmp 0x140006ac4
mov ebx, 0x5b4
mov r10, qword [0x140106190]
cmp r10, r12
je 0x140006af9
test byte [r10 + 0x1c], 2
je 0x140006ac4
cmp byte [r10 + 0x19], 2
jb 0x140006ac4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140106190]
mov edx, 0x38
mov dword [rsp + 0x28], 0x7530
mov r9d, ebp
mov r8, r13
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140005098
jmp 0x140006abd
mov r10, qword [0x140106190]
cmp r10, r12
je 0x140006af9
test byte [r10 + 0x1c], 2
je 0x140006ac4
cmp byte [r10 + 0x19], 5
jb 0x140006ac4
mov rcx, qword [r10 + 0x10]
mov edx, 0x37
mov r8, r13
call fcn.140003538
jmp 0x140006abd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x140106190]
cmp r10, r12
je 0x140006af9
test byte [r10 + 0x1c], 2
je 0x140006ac4
cmp byte [r10 + 0x19], 2
jb 0x140006ac4
mov rcx, qword [r10 + 0x10]
mov edx, 0x36
mov r9d, eax
mov r8, r13
call fcn.1400035ec
mov r10, qword [0x140106190]
cmp r10, r12
je 0x140006af9
test byte [r10 + 0x1c], 1
je 0x140006af9
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140006af9
mov rcx, qword [r10 + 0x10]
mov edx, 0x39
mov r9d, ebx
mov r8, r13
call fcn.1400035ec
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140006b14
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 [0x140109388]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov r9, rcx
mov rcx, qword [0x140106190]
lea r14, [0x140106190]
cmp rcx, r14
je 0x140006b68
test byte [rcx + 0x1c], 1
je 0x140006b68
cmp byte [rcx + 0x19], 5
jb 0x140006b68
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rdx
call fcn.140005504
mov ebp, 0x24
lea rcx, [rsp + 0x38]
mov r8d, ebp
xor edx, edx
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
lea r8, [rsp + 0x38]
mov esi, eax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov r9d, ebp
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea rbp, [0x1400db968]
test eax, eax
jne 0x140006bf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x140106190]
cmp r10, r14
je 0x140006cb0
test byte [r10 + 0x1c], 2
je 0x140006c7b
cmp byte [r10 + 0x19], 2
jb 0x140006c7b
mov rcx, qword [r10 + 0x10]
mov edx, 0x3b
mov r9d, eax
mov r8, rbp
call fcn.1400035ec
jmp 0x140006c74
cmp dword [rsp + 0x3c], 1
jne 0x140006c2e
mov r10, qword [0x140106190]
cmp r10, r14
je 0x140006cb0
test byte [r10 + 0x1c], 2
je 0x140006c7b
cmp byte [r10 + 0x19], 5
jb 0x140006c7b
mov rcx, qword [r10 + 0x10]
mov edx, 0x3c
mov r8, rbp
call fcn.140003538
jmp 0x140006c74
cmp dword [rsp + 0x3c], 3
jne 0x140006cd4
mov rcx, qword [0x140106190]
cmp rcx, r14
je 0x140006c62
test byte [rcx + 0x1c], 2
je 0x140006c62
cmp byte [rcx + 0x19], 5
jb 0x140006c62
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, rbp
call fcn.140003538
mov r8d, esi
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400068ac
mov ebx, eax
mov r10, qword [0x140106190]
cmp r10, r14
je 0x140006cb0
test byte [r10 + 0x1c], 1
je 0x140006cb0
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140006cb0
mov rcx, qword [r10 + 0x10]
mov edx, 0x3f
mov r9d, ebx
mov r8, rbp
call fcn.1400035ec
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400cc8d0
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 [0x140106190]
cmp rcx, r14
je 0x140006cfd
test byte [rcx + 0x1c], 2
je 0x140006cfd
cmp byte [rcx + 0x19], 5
jb 0x140006cfd
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, rbp
call fcn.140003538
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140006c62
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006c72
Function at 0x14000b28c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov rdi, r8
mov r10, qword [0x140106190]
lea r13, [0x140106190]
mov ebp, dword [rsp + 0xc8]
mov r14, qword [rsp + 0xc0]
cmp r10, r13
je 0x14000b303
test byte [r10 + 0x1c], 1
je 0x14000b303
cmp byte [r10 + 0x19], 5
jb 0x14000b303
mov eax, dword [r14]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], eax
mov dword [r11 - 0x68], r9d
mov qword [r11 - 0x70], r8
call fcn.14000aca4
mov r10, qword [0x140106190]
xor r12d, r12d
mov ebx, r12d
mov esi, r12d
test rdi, rdi
je 0x14000b42b
cmp r12w, word [rdi]
je 0x14000b42b
lea rax, [rsp + 0x58]
mov dword [r14], r15d
mov r9d, 0x2011f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], r12
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14000b35c
mov rsi, qword [rsp + 0x58]
mov ecx, r12d
test ecx, ecx
jne 0x14000b3d7
lea rax, [rsp + 0xa0]
mov dword [rsp + 0xa8], r12d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0xa8]
mov dword [rsp + 0xa0], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000b3b6
cmp dword [rsp + 0x50], 4
je 0x14000b3b3
lea ecx, [rax + 0xd]
jmp 0x14000b3c4
mov ecx, r12d
test ecx, ecx
jne 0x14000b3c4
mov eax, dword [rsp + 0xa8]
mov dword [r14], eax
cmp ebp, 1
jne 0x14000b3d7
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
cmp ecx, 0x490
je 0x14000b3e4
cmp ecx, 2
jne 0x14000b3e7
mov ecx, r12d
test ecx, ecx
je 0x14000b469
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
mov r10, qword [0x140106190]
cmp r10, r13
je 0x14000b4a8
test byte [r10 + 0x1c], 2
je 0x14000b470
movzx eax, byte [r10 + 0x19]
mov ecx, ebx
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x14000b470
mov edx, 0x1e
jmp 0x14000b448
mov ebx, 0x80070057
cmp r10, r13
je 0x14000b4a8
test byte [r10 + 0x1c], 2
je 0x14000b470
cmp byte [r10 + 0x19], 2
jb 0x14000b470
mov edx, 0x1d
mov eax, dword [r14]
mov r9d, ebx
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], rdi
call fcn.14000aa00
mov r10, qword [0x140106190]
cmp r10, r13
je 0x14000b4a8
test byte [r10 + 0x1c], 1
je 0x14000b4a8
movzx eax, byte [r10 + 0x19]
mov edx, ebx
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x14000b4a8
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400dcd50]
mov edx, 0x1f
mov r9d, ebx
call fcn.1400035ec
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x14000b4c3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f3d8
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.1400be98c
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]
mov edi, eax
test eax, eax
jne 0x14000f42a
mov rbx, qword [rsp + 0x58]
mov rcx, qword [0x140106190]
lea rbp, [0x140106190]
mov r14d, 5
cmp rcx, rbp
je 0x14000f479
lea edx, [r14 - 3]
test byte [rcx + 0x1c], dl
je 0x14000f479
movzx eax, byte [rcx + 0x19]
test edi, edi
cmove edx, r14d
cmp eax, edx
jb 0x14000f479
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400dcd50]
mov edx, SysStringByteLen
mov r9d, edi
call fcn.1400035ec
mov rcx, qword [0x140106190]
test edi, edi
jne 0x14000f4ae
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]
mov rcx, qword [0x140106190]
cmp rcx, rbp
je 0x14000f4d7
test byte [rcx + 0x1c], 1
je 0x14000f4d7
cmp byte [rcx + 0x19], r14b
jb 0x14000f4d7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400dcd50]
mov edx, SysStringByteLen
mov r9d, esi
call fcn.1400035ec
test rbx, rbx
je 0x14000f4e5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x140017304
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 [0x140106190]
lea rsi, [0x140106190]
cmp rcx, rsi
je 0x14001734a
test byte [rcx + 0x1c], 1
je 0x14001734a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400dcd50]
mov edx, 0x13c
call fcn.140003538
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.WTSAPI32.dll_WTSEnumerateSessionsW]
mov ebx, eax
mov rcx, qword [0x140106190]
cmp rcx, rsi
je 0x1400173bd
test byte [rcx + 0x1c], 2
je 0x1400173bd
cmp byte [rcx + 0x19], 5
jb 0x1400173bd
mov eax, dword [rbp + 0x48]
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x13d
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14000ab28
mov rcx, qword [0x140106190]
test ebx, ebx
je 0x1400174d6
cmp dword [rbp + 0x48], r13d
jne 0x1400173d3
mov edi, r13d
jmp 0x1400174c1
mov r14d, r13d
lea rdi, [0x140106190]
mov r15d, r13d
mov esi, r13d
cmp esi, dword [rbp + 0x48]
jae 0x1400174a9
mov rcx, qword [rbp + 0x58]
mov eax, esi
lea rbx, [rax + rax*2]
mov eax, dword [rcx + rbx*8 + 0x10]
test eax, eax
je 0x14001740a
add eax, 0xfffffffd
cmp eax, 1
ja 0x14001749e
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.WTSAPI32.dll_WTSQuerySessionInformationW]
mov r12d, eax
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017470
test byte [rcx + 0x1c], 2
je 0x140017470
cmp byte [rcx + 0x19], 5
jb 0x140017470
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.14000a890
test r12d, r12d
je 0x140017498
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140017498
movzx ebx, word [rcx]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea eax, [r14 + 1]
cmp r13w, bx
cmove eax, r14d
mov r14d, eax
jmp 0x14001749e
mov r15d, 1
inc esi
test r14d, r14d
je 0x1400173e3
lea rsi, [0x140106190]
mov edi, 1
test r15d, r15d
jne 0x1400174c1
test r14d, r14d
cmove edi, r13d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [0x140106190]
mov qword [rbp + 0x58], r13
cmp rcx, rsi
je 0x1400174ff
test byte [rcx + 0x1c], 1
je 0x1400174ff
cmp byte [rcx + 0x19], 5
jb 0x1400174ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400dcd50]
mov edx, 0x13f
mov r9d, edi
call fcn.1400035ec
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 0x140034b88
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.140035fd4
test eax, eax
je 0x140034d14
call fcn.140036378
test eax, eax
je 0x140034d14
lea r14, [0x14010a0b0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov dword [0x14010be2c], ebp
lea r8d, [rbp + 0x20]
lea rcx, [0x14010bbc0]
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14010bbd8], rax
test rax, rax
jne 0x140034c0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140034c74
mov dword [rsp + 0x28], ebp
lea r8, [0x140034790]
or dword [rsp + 0x20], 0xffffffff
lea rcx, [0x14010be30]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x140034c05
lea rdx, [0x14010bbc0]
mov esi, 1
lea rcx, [0x14010be38]
call qword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140034c74
lea rcx, [0x14010be40]
mov edi, esi
call fcn.140034710
mov ebx, eax
test eax, eax
jne 0x140034c7c
mov ebx, ebp
mov dword [0x14010be28], esi
test ebx, ebx
je 0x140034d07
mov rcx, r14
mov dword [0x14010be2c], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14010be30]
test esi, esi
mov rcx, r14
cmovne rax, rbp
mov qword [0x14010be30], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x140034cbd
lea rcx, [0x14010bbc0]
call qword [sym.imp.IPHLPAPI.DLL_CancelIPChangeNotify]
mov rcx, qword [0x14010bbd8]
test rcx, rcx
je 0x140034ccf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [0x14010bbc0]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [0x14010be40]
test rcx, rcx
je 0x140034cfa
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [0x14010be40], rbp
mov qword [0x14010be38], rbp
mov dword [0x14010be28], ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x140034d4d
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140034d48
test byte [rcx + 0x1c], 4
je 0x140034d48
cmp byte [rcx + 0x19], 2
jb 0x140034d48
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ddb38]
mov edx, SafeArrayUnlock
call fcn.140003538
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 0x1400363e8
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, [0x140106190]
mov rcx, qword [0x140106190]
cmp rcx, rsi
je 0x140036444
test byte [rcx + 0x1c], 1
je 0x140036444
cmp byte [rcx + 0x19], 5
jb 0x140036444
mov edx, 0xa
mov r9d, ebx
lea r8, [0x1400ddb90]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
cmp ebx, 0x192
je 0x1400364b2
cmp ebx, 0x194
je 0x1400364b2
cmp ebx, 0x1f5
je 0x1400364b2
lea eax, [rbx - 0x2bd]
cmp eax, 0x13
ja 0x140036498
mov ecx, 0x81fbf
bt ecx, eax
jb 0x1400364b2
cmp ebx, 0x321
je 0x1400364b2
mov r8d, ebx
mov edx, 0x67
mov rcx, rdi
call fcn.140036a28
jmp 0x1400364cc
mov ecx, ebx
call fcn.14000482c
test rax, rax
je 0x1400364cc
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.14000495c
mov rcx, qword [0x140106190]
cmp rcx, rsi
je 0x1400364fc
test byte [rcx + 0x1c], 1
je 0x1400364fc
cmp byte [rcx + 0x19], 5
jb 0x1400364fc
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9, qword [rdi]
lea r8, [0x1400ddb90]
mov rcx, qword [rcx + 0x10]
call fcn.140003558
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret