joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001d5d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001d63f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001d63f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001d63f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001d63f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001d63f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001d63f
cmp dword [rcx + 0xf8], 0
je 0x18001d63f
mov ecx, ebx
call fcn.18001d6e4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001d4d8
nop
cmp dword [rbp + 0x20], 0
jne 0x18001d6a0
call fcn.180021434
cmp eax, 1
jne 0x18001d690
xor dl, dl
jmp 0x18001d69a
call fcn.180021400
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001d6ab
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001d6b4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001d5d0

Function at 0x18001ea0c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180049050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18001ea71
test rax, rax
jne 0x18001ea5f
lea r9, str.GetLocaleInfoEx
lea r8, [0x1800317a8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.18001e6e0
test rax, rax
je 0x18001ea71
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18002d430
jmp 0x18001ea8b
xor edx, edx
mov rcx, rbp
call fcn.18001ecfc
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180022f84
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180022fb4
xor eax, eax
jmp 0x180023077
mov rbp, rbx
cmp word [rax], si
je 0x180022fd9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180022fc0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180022fbc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180022ea4
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18002301a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180022fad
call fcn.1800213a0
mov rdi, rax
test rax, rax
jne 0x180023030
xor ecx, ecx
call fcn.180020ec0
jmp 0x18002300f
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180022ea4
test eax, eax
jne 0x180023061
mov rcx, rdi
call fcn.180020ec0
jmp 0x18002306b
xor ecx, ecx
call fcn.180020ec0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800274d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18002754b
cmp word [rcx], si
je 0x18002754b
lea rdx, [0x180036c30]
call fcn.18002a258
test eax, eax
je 0x18002754b
lea rdx, [0x180036c48]
mov rcx, rbx
call fcn.18002a258
test eax, eax
jne 0x180027541
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180027568
mov eax, dword [rsp + 0x30]
jmp 0x18002757a
mov rcx, rbx
call fcn.18001e3f8
jmp 0x18002757a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18002756c
xor eax, eax
jmp 0x18002757a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18002757a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002758c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.18001f454
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002762f
cmp edi, dword [rsp + 0x30]
je 0x180027628
test ebp, ebp
je 0x180027628
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180027604
sub dx, 0x61
cmp dx, 0x19
ja 0x180027610
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1800275f1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180027614
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180027631
mov eax, 1
jmp 0x180027631
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002c5b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002c5d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002c5d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006c48
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 [0x1400f3190]
lea r12, [0x1400f3190]
cmp r10, r12
je 0x140006ca8
test byte [r10 + 0x1c], 1
je 0x140006ca8
cmp byte [r10 + 0x19], 5
jb 0x140006ca8
mov r9, rcx
mov dword [rax - 0x40], r8d
mov rcx, qword [r10 + 0x10]
mov qword [rax - 0x48], rdx
call fcn.140005880
mov r10, qword [0x1400f3190]
xor ebx, ebx
mov dword [rsp + 0x88], ebx
lea r13, [0x1400cdbb8]
cmp r10, r12
je 0x140006ce1
test byte [r10 + 0x1c], 2
je 0x140006ce1
cmp byte [r10 + 0x19], 5
jb 0x140006ce1
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x33]
mov r8, r13
call fcn.1400035e4
mov r10, qword [0x1400f3190]
cmp dword [rdi + 4], 1
je 0x140006e60
mov edx, 0x7530
mov ecx, dword [rdi + 0x18]
mov eax, edx
cmp ecx, edx
cmovb eax, ecx
cmp eax, 0x1f4
jae 0x140006d08
mov esi, 0x1f4
jmp 0x140006d0f
cmp ecx, edx
mov esi, edx
cmovb esi, ecx
cmp r10, r12
je 0x140006d36
test byte [r10 + 0x1c], 2
je 0x140006d36
cmp byte [r10 + 0x19], 5
jb 0x140006d36
mov rcx, qword [r10 + 0x10]
mov edx, 0x34
mov r9d, esi
mov r8, r13
call fcn.1400036a8
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 0x140006e23
cmp dword [rdi + 4], 1
je 0x140006df2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov edx, 0x7530
cmp eax, edx
ja 0x140006d98
cmp dword [rdi + 4], 1
mov r10, qword [0x1400f3190]
jne 0x140006cf0
jmp 0x140006e60
mov ebx, 0x5b4
mov r10, qword [0x1400f3190]
cmp r10, r12
je 0x140006e95
test byte [r10 + 0x1c], 2
je 0x140006e60
cmp byte [r10 + 0x19], 2
jb 0x140006e60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400f3190]
mov edx, 0x37
mov dword [rsp + 0x28], 0x7530
mov r9d, ebp
mov r8, r13
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.14000534c
jmp 0x140006e59
mov r10, qword [0x1400f3190]
cmp r10, r12
je 0x140006e95
test byte [r10 + 0x1c], 2
je 0x140006e60
cmp byte [r10 + 0x19], 5
jb 0x140006e60
mov rcx, qword [r10 + 0x10]
mov edx, 0x36
mov r8, r13
call fcn.1400035e4
jmp 0x140006e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400f3190]
cmp r10, r12
je 0x140006e95
test byte [r10 + 0x1c], 2
je 0x140006e60
cmp byte [r10 + 0x19], 2
jb 0x140006e60
mov rcx, qword [r10 + 0x10]
mov edx, 0x35
mov r9d, eax
mov r8, r13
call fcn.1400036a8
mov r10, qword [0x1400f3190]
cmp r10, r12
je 0x140006e95
test byte [r10 + 0x1c], 1
je 0x140006e95
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140006e95
mov rcx, qword [r10 + 0x10]
mov edx, 0x38
mov r9d, ebx
mov r8, r13
call fcn.1400036a8
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 0x140006eb4
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 [0x1400f6388]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov r9, rcx
mov rcx, qword [0x1400f3190]
lea r14, [0x1400f3190]
cmp rcx, r14
je 0x140006f08
test byte [rcx + 0x1c], 1
je 0x140006f08
cmp byte [rcx + 0x19], 5
jb 0x140006f08
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rdx
call fcn.140005814
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, [0x1400cdbb8]
test eax, eax
jne 0x140006f96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400f3190]
cmp r10, r14
je 0x140007050
test byte [r10 + 0x1c], 2
je 0x14000701b
cmp byte [r10 + 0x19], 2
jb 0x14000701b
mov rcx, qword [r10 + 0x10]
mov edx, 0x3a
mov r9d, eax
mov r8, rbp
call fcn.1400036a8
jmp 0x140007014
cmp dword [rsp + 0x3c], 1
jne 0x140006fce
mov r10, qword [0x1400f3190]
cmp r10, r14
je 0x140007050
test byte [r10 + 0x1c], 2
je 0x14000701b
cmp byte [r10 + 0x19], 5
jb 0x14000701b
mov rcx, qword [r10 + 0x10]
mov edx, 0x3b
mov r8, rbp
call fcn.1400035e4
jmp 0x140007014
cmp dword [rsp + 0x3c], 3
jne 0x140007074
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x140007002
test byte [rcx + 0x1c], 2
je 0x140007002
cmp byte [rcx + 0x19], 5
jb 0x140007002
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, rbp
call fcn.1400035e4
mov r8d, esi
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140006c48
mov ebx, eax
mov r10, qword [0x1400f3190]
cmp r10, r14
je 0x140007050
test byte [r10 + 0x1c], 1
je 0x140007050
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140007050
mov rcx, qword [r10 + 0x10]
mov edx, 0x3e
mov r9d, ebx
mov r8, rbp
call fcn.1400036a8
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c13a0
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 [0x1400f3190]
cmp rcx, r14
je 0x14000709d
test byte [rcx + 0x1c], 2
je 0x14000709d
cmp byte [rcx + 0x19], 5
jb 0x14000709d
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, rbp
call fcn.1400035e4
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140007002
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140007012
Function at 0x14000b32c
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 [0x1400f3190]
lea r13, [0x1400f3190]
mov ebp, dword [rsp + 0xc8]
mov r14, qword [rsp + 0xc0]
cmp r10, r13
je 0x14000b3a3
test byte [r10 + 0x1c], 1
je 0x14000b3a3
cmp byte [r10 + 0x19], 5
jb 0x14000b3a3
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.14000ad2c
mov r10, qword [0x1400f3190]
xor r12d, r12d
mov ebx, r12d
mov esi, r12d
test rdi, rdi
je 0x14000b4cb
cmp r12w, word [rdi]
je 0x14000b4cb
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 0x14000b3fc
mov rsi, qword [rsp + 0x58]
mov ecx, r12d
test ecx, ecx
jne 0x14000b477
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 0x14000b456
cmp dword [rsp + 0x50], 4
je 0x14000b453
lea ecx, [rax + 0xd]
jmp 0x14000b464
mov ecx, r12d
test ecx, ecx
jne 0x14000b464
mov eax, dword [rsp + 0xa8]
mov dword [r14], eax
cmp ebp, 1
jne 0x14000b477
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
cmp ecx, 0x490
je 0x14000b484
cmp ecx, 2
jne 0x14000b487
mov ecx, r12d
test ecx, ecx
je 0x14000b509
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
mov r10, qword [0x1400f3190]
cmp r10, r13
je 0x14000b548
test byte [r10 + 0x1c], 2
je 0x14000b510
movzx eax, byte [r10 + 0x19]
mov ecx, ebx
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x14000b510
mov edx, 0x1c
jmp 0x14000b4e8
mov ebx, 0x80070057
cmp r10, r13
je 0x14000b548
test byte [r10 + 0x1c], 2
je 0x14000b510
cmp byte [r10 + 0x19], 2
jb 0x14000b510
mov edx, reloc.OLEAUT32.dll_DispGetParam
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.14000aae4
mov r10, qword [0x1400f3190]
cmp r10, r13
je 0x14000b548
test byte [r10 + 0x1c], 1
je 0x14000b548
movzx eax, byte [r10 + 0x19]
mov edx, ebx
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x14000b548
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400ceae0]
mov edx, 0x1d
mov r9d, ebx
call fcn.1400036a8
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x14000b563
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 0x14000ec10
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.1400b35f8
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 0x14000ec62
mov rbx, qword [rsp + 0x58]
mov rcx, qword [0x1400f3190]
lea rbp, [0x1400f3190]
mov r14d, 5
cmp rcx, rbp
je 0x14000ecb1
lea edx, [r14 - 3]
test byte [rcx + 0x1c], dl
je 0x14000ecb1
movzx eax, byte [rcx + 0x19]
test edi, edi
cmove edx, r14d
cmp eax, edx
jb 0x14000ecb1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ceae0]
mov edx, 0x86
mov r9d, edi
call fcn.1400036a8
mov rcx, qword [0x1400f3190]
test edi, edi
jne 0x14000ece6
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 [0x1400f3190]
cmp rcx, rbp
je 0x14000ed0f
test byte [rcx + 0x1c], 1
je 0x14000ed0f
cmp byte [rcx + 0x19], r14b
jb 0x14000ed0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ceae0]
mov edx, 0x87
mov r9d, esi
call fcn.1400036a8
test rbx, rbx
je 0x14000ed1d
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 0x140013b18
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 [0x1400f3190]
lea rsi, [0x1400f3190]
cmp rcx, rsi
je 0x140013b5e
test byte [rcx + 0x1c], 1
je 0x140013b5e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ceae0]
mov edx, 0x108
call fcn.1400035e4
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 [0x1400f3190]
cmp rcx, rsi
je 0x140013bd1
test byte [rcx + 0x1c], 2
je 0x140013bd1
cmp byte [rcx + 0x19], 5
jb 0x140013bd1
mov eax, dword [rbp + 0x48]
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x109
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14000ac20
mov rcx, qword [0x1400f3190]
test ebx, ebx
je 0x140013cea
cmp dword [rbp + 0x48], r13d
jne 0x140013be7
mov edi, r13d
jmp 0x140013cd5
mov r14d, r13d
lea rdi, [0x1400f3190]
mov r15d, r13d
mov esi, r13d
cmp esi, dword [rbp + 0x48]
jae 0x140013cbd
mov rcx, qword [rbp + 0x58]
mov eax, esi
lea rbx, [rax + rax*2]
mov eax, dword [rcx + rbx*8 + 0x10]
test eax, eax
je 0x140013c1e
add eax, 0xfffffffd
cmp eax, 1
ja 0x140013cb2
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 [0x1400f3190]
cmp rcx, rdi
je 0x140013c84
test byte [rcx + 0x1c], 2
je 0x140013c84
cmp byte [rcx + 0x19], 5
jb 0x140013c84
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.14000a958
test r12d, r12d
je 0x140013cac
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140013cac
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 0x140013cb2
mov r15d, 1
inc esi
test r14d, r14d
je 0x140013bf7
lea rsi, [0x1400f3190]
mov edi, 1
test r15d, r15d
jne 0x140013cd5
test r14d, r14d
cmove edi, r13d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [0x1400f3190]
mov qword [rbp + 0x58], r13
cmp rcx, rsi
je 0x140013d13
test byte [rcx + 0x1c], 1
je 0x140013d13
cmp byte [rcx + 0x19], 5
jb 0x140013d13
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ceae0]
mov edx, 0x10b
mov r9d, edi
call fcn.1400036a8
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 0x14002f3bc
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.1400307f8
test eax, eax
je 0x14002f548
call fcn.140030ba0
test eax, eax
je 0x14002f548
lea r14, [0x1400f6fc0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov dword [0x1400f8c70], ebp
lea r8d, [rbp + 0x20]
lea rcx, [0x1400f8a20]
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 [0x1400f8a38], rax
test rax, rax
jne 0x14002f443
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14002f4a8
mov dword [rsp + 0x28], ebp
lea r8, [0x14002efe0]
or dword [rsp + 0x20], 0xffffffff
lea rcx, [0x1400f8c78]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x14002f439
lea rdx, [0x1400f8a20]
mov esi, 1
lea rcx, [0x1400f8c80]
call qword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
mov ebx, eax
cmp eax, 0x3e5
jne 0x14002f4a8
lea rcx, [0x1400f8c88]
mov edi, esi
call fcn.14002ef58
mov ebx, eax
test eax, eax
jne 0x14002f4b0
mov ebx, ebp
mov dword [0x1400f8c6c], esi
test ebx, ebx
je 0x14002f53b
mov rcx, r14
mov dword [0x1400f8c70], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400f8c78]
test esi, esi
mov rcx, r14
cmovne rax, rbp
mov qword [0x1400f8c78], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x14002f4f1
lea rcx, [0x1400f8a20]
call qword [sym.imp.IPHLPAPI.DLL_CancelIPChangeNotify]
mov rcx, qword [0x1400f8a38]
test rcx, rcx
je 0x14002f503
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [0x1400f8a20]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [0x1400f8c88]
test rcx, rcx
je 0x14002f52e
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [0x1400f8c88], rbp
mov qword [0x1400f8c80], rbp
mov dword [0x1400f8c6c], ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x14002f581
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x14002f57c
test byte [rcx + 0x1c], 4
je 0x14002f57c
cmp byte [rcx + 0x19], 2
jb 0x14002f57c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400cf878]
mov edx, SafeArrayAccessData
call fcn.1400035e4
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 0x140030c18
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, [0x1400f3190]
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x140030c74
test byte [rcx + 0x1c], 1
je 0x140030c74
cmp byte [rcx + 0x19], 5
jb 0x140030c74
mov edx, 0xa
mov r9d, ebx
lea r8, [0x1400cf8d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
cmp ebx, 0x192
je 0x140030ce2
cmp ebx, 0x194
je 0x140030ce2
cmp ebx, 0x1f5
je 0x140030ce2
lea eax, [rbx - 0x2bd]
cmp eax, 0x13
ja 0x140030cc8
mov ecx, 0x81fbf
bt ecx, eax
jb 0x140030ce2
cmp ebx, 0x321
je 0x140030ce2
mov r8d, ebx
mov edx, 0x67
mov rcx, rdi
call fcn.140031274
jmp 0x140030cfc
mov ecx, ebx
call fcn.140004984
test rax, rax
je 0x140030cfc
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.140004ac8
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x140030d2c
test byte [rcx + 0x1c], 1
je 0x140030d2c
cmp byte [rcx + 0x19], 5
jb 0x140030d2c
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9, qword [rdi]
lea r8, [0x1400cf8d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret