joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002250
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [rcx + 0x128]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x30]
mov qword [r11 - 0x80], rax
mov rax, qword [rcx + 0x98]
mov qword [r11 - 0x78], rax
mov rcx, rsi
call fcn.1800021b4
test al, al
je 0x1800024ea
cmp byte [rsi + 0x10], 0
je 0x1800022b5
mov rcx, rsi
call fcn.1800024f8
test al, al
je 0x1800023be
and dword [rsp + 0xc8], 0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
mov r8d, 0x1000
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180002375
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x180002341
cmp eax, 0x3e5
je 0x18000233b
lea rax, str.Channel_read_failure
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.180009fb8
nop
lea rax, [0x180023da8]
mov qword [rsp + 0x68], rax
lea rdx, [0x1800298c0]
lea rcx, [rsp + 0x68]
call fcn.18000a7b8
mov byte [rsi + 0x10], 1
jmp 0x180002375
lea rcx, [rsp + 0x48]
call fcn.18000a030
nop
lea rax, [0x180023da8]
mov qword [rsp + 0x48], rax
lea rax, [0x180023dc8]
mov qword [rsp + 0x48], rax
lea rdx, [0x180029878]
lea rcx, [rsp + 0x48]
call fcn.18000a7b8
cmp byte [rsi + 0x10], 0
jne 0x1800023be
lea rbx, [rsi + 0x48]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx]
mov edx, dword [rsp + 0xc8]
add rdx, rdi
mov rcx, rbx
call fcn.180003540
mov rcx, qword [rbx]
mov r8d, dword [rsp + 0xc8]
add rcx, rdi
mov rdx, qword [rsi + 0x60]
call fcn.180008f60
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dil, 1
jmp 0x1800023c1
xor dil, dil
mov rcx, rsi
call fcn.1800027a8
mov bl, al
mov rcx, rsi
call fcn.180002d9c
or bl, dil
je 0x1800023dd
jmp 0x18000228f
mov r9d, 0x1f4
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x180002408
mov rcx, qword [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1800023d8
cmp eax, 3
jae 0x180002422
mov rcx, rsi
call fcn.1800024f8
mov rcx, rsi
call fcn.180002b78
jmp 0x1800024ab
cmp eax, 0x102
jne 0x1800024b8
mov r8d, dword [0x18002dde8]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0x10
jne 0x18000249c
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180008ef4
mov rcx, rax
call fcn.18000a234
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800024ab
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, rsi
call fcn.180002d9c
jmp 0x1800023d8
lea rcx, [rsp + 0x80]
call fcn.18000a030
nop
lea rax, [0x180023da8]
mov qword [rsp + 0x80], rax
lea rdx, [0x1800298c0]
lea rcx, [rsp + 0x80]
call fcn.18000a7b8
nop
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005884
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800058c7
mov qword [0x18002ddf0], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1800056bc]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800058cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x55
add rsp, 0x38
ret

Function at 0x180006d54
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x18002b528]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov r15, rdx
mov r14, rcx
mov eax, dword [0x18002dde8]
lea r9d, [rax + 1]
imul r9d, eax
mov eax, 0x2e8ba2e9
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r9d, edx
cmp r9d, 0xa
jne 0x180006dce
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 0x10
jae 0x180006de5
xor al, al
jmp 0x180006f00
mov eax, dword [rax]
add eax, 0x10
mov edi, eax
cmp rcx, rdi
jb 0x180006dde
and qword [rbp - 0x59], 0
and qword [rbp - 0x51], 0
and qword [rbp - 0x49], 0
mov edx, edi
lea rcx, [rbp - 0x59]
call fcn.180003540
nop
mov r8d, edi
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x59]
call fcn.180008f60
mov r9d, dword [0x18002dde8]
lea ecx, [r9 + 1]
imul ecx, r9d
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
cmp ecx, 7
jne 0x180006e6b
xor ecx, ecx
lea rdx, [rbp - 0x19]
xor eax, eax
lea r8d, [rax + 1]
mov byte [rdx + rax], 0
inc r8d
inc rax
cmp rax, 5
jl 0x180006e50
inc ecx
add rdx, 5
cmp ecx, 0xc
jl 0x180006e4a
mov rbx, qword [rsi]
lea rdx, [rdi + rbx]
cmp rbx, rbx
jne 0x180006e83
cmp rdx, qword [rsi + 8]
jne 0x180006e83
mov qword [rsi + 8], rbx
jmp 0x180006ea2
cmp rbx, rdx
je 0x180006ea2
mov rdi, qword [rsi + 8]
sub rdi, rdx
mov r8, rdi
mov rcx, rbx
call fcn.180008f60
lea rax, [rdi + rbx]
mov qword [rsi + 8], rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.180007640
nop
mov rbx, qword [r14 + 8]
jmp 0x180006ed1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8, r15
mov rdx, r14
call qword [rax]
add rbx, 8
cmp rbx, qword [r14 + 0x10]
jne 0x180006eb6
lea rcx, [rbp - 0x39]
call fcn.180001ad4
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x180006efe
call fcn.1800095e0
and qword [rbp - 0x59], 0
and qword [rbp - 0x51], 0
and qword [rbp - 0x49], 0
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180008f30
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x100035ab4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x1001542f0]
xor edx, edx
xor ebx, ebx
call fcn.10011b568
lea r13d, [rbx + 1]
mov ebp, r13d
jmp 0x100035b92
test rbx, rbx
jne 0x100035b9e
mov ecx, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr ecx, 4
add cx, r13w
movzx r8d, cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x100035b81
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100035b2e
xor ebx, ebx
jmp 0x100035b7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x100035b2a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x100035b6b
cmp rdi, r11
jae 0x100035b2a
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100035b59
cmp rdi, r11
jae 0x100035b2a
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x100035bb9
lea rcx, [0x1001542f0]
mov edx, ebp
call fcn.10011b568
add ebp, r13d
mov rsi, rax
test rax, rax
jne 0x100035aeb
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x100035ba0

Function at 0x100035bc4
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 r12
sub rsp, 0x20
mov eax, edx
mov esi, edx
mov r8d, 6
shr eax, 4
mov rbp, rcx
inc ax
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov r12, rax
cmp rax, rbx
jne 0x100035c07
xor eax, eax
jmp 0x100035c66
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x100035c63
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, rbx
je 0x100035c63
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and esi, 0xf
jbe 0x100035c52
cmp rdi, r11
jae 0x100035c63
add esi, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100035c40
cmp rdi, r11
jae 0x100035c63
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x100037b24
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov ebp, r8d
mov rdi, rdx
mov r12, rcx
mov r10, qword [0x100152eb8]
lea r14, [0x100152eb8]
mov esi, 0x7530
lea r15, [0x10001e638]
cmp r10, r14
je 0x100037b97
test byte [r10 + 0x1c], 1
je 0x100037b97
cmp byte [r10 + 0x19], 5
jb 0x100037b97
mov dword [rax - 0x38], esi
mov dword [rax - 0x40], r8d
mov r9, rcx
mov rcx, qword [r10 + 0x10]
mov edx, 0x33
mov r8, r15
mov qword [rax - 0x48], rdi
call fcn.1000366d0
mov r10, qword [0x100152eb8]
xor ebx, ebx
mov dword [rsp + 0x78], ebx
cmp r10, r14
je 0x100037c64
test byte [r10 + 0x1c], 2
je 0x100037c64
cmp byte [r10 + 0x19], 5
jb 0x100037c64
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x34]
mov r8, r15
call fcn.100034764
jmp 0x100037c5d
mov ecx, dword [rdi + 0x18]
mov eax, esi
cmp ecx, esi
cmovb eax, ecx
cmp eax, 0x1f4
jae 0x100037be8
mov esi, 0x1f4
jmp 0x100037bf1
cmp ecx, 0x7530
cmovb esi, ecx
cmp r10, r14
je 0x100037c18
test byte [r10 + 0x1c], 2
je 0x100037c18
cmp byte [r10 + 0x19], 5
jb 0x100037c18
mov rcx, qword [r10 + 0x10]
mov edx, 0x35
mov r9d, esi
mov r8, r15
call fcn.100036328
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x78]
mov r9d, 0x24
mov r8, rdi
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, ebx
je 0x100037cfa
cmp dword [rdi + 4], 1
je 0x100037cc9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x7530
sub eax, ebp
cmp eax, esi
ja 0x100037c73
mov r10, qword [0x100152eb8]
cmp dword [rdi + 4], 1
jne 0x100037bd0
jmp 0x100037d37
mov ebx, 0x5b4
mov r10, qword [0x100152eb8]
cmp r10, r14
je 0x100037d6c
test byte [r10 + 0x1c], 2
je 0x100037d37
cmp byte [r10 + 0x19], 2
jb 0x100037d37
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x100152eb8]
mov edx, 0x38
mov rcx, qword [rcx + 0x10]
mov r9d, ebp
mov r8, r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
call fcn.10003bc38
jmp 0x100037d30
mov r10, qword [0x100152eb8]
cmp r10, r14
je 0x100037d6c
test byte [r10 + 0x1c], 2
je 0x100037d37
cmp byte [r10 + 0x19], 5
jb 0x100037d37
mov rcx, qword [r10 + 0x10]
mov edx, 0x37
mov r8, r15
call fcn.100034764
jmp 0x100037d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x100152eb8]
cmp r10, r14
je 0x100037d6c
test byte [r10 + 0x1c], 2
je 0x100037d37
cmp byte [r10 + 0x19], 2
jb 0x100037d37
mov rcx, qword [r10 + 0x10]
mov edx, 0x36
mov r9d, eax
mov r8, r15
call fcn.100036328
mov r10, qword [0x100152eb8]
cmp r10, r14
je 0x100037d6c
test byte [r10 + 0x1c], 1
je 0x100037d6c
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x100037d6c
mov rcx, qword [r10 + 0x10]
mov edx, 0x39
mov r9d, ebx
mov r8, r15
call fcn.100036328
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x100037d90
Capabilities:
Query service status
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rdi, rdx
mov r9, rcx
mov rcx, qword [0x100152eb8]
lea rbp, [0x100152eb8]
lea r12, [0x10001e638]
cmp rcx, rbp
je 0x100037deb
test byte [rcx + 0x1c], 1
je 0x100037deb
cmp byte [rcx + 0x19], 5
jb 0x100037deb
mov rcx, qword [rcx + 0x10]
mov dword [rax - 0x50], 0x7530
mov edx, 0x3a
mov r8, r12
mov qword [rax - 0x58], rdi
call fcn.100036664
xor ebx, ebx
lea rcx, [rsp + 0x34]
xor edx, edx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x30], ebx
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9d, [rbx + 0x24]
mov esi, eax
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x98], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, ebx
jne 0x100037e7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x100152eb8]
cmp r10, rbp
je 0x100037f3c
test byte [r10 + 0x1c], 2
je 0x100037f07
cmp byte [r10 + 0x19], 2
jb 0x100037f07
mov rcx, qword [r10 + 0x10]
mov edx, 0x3b
mov r9d, eax
mov r8, r12
call fcn.100036328
jmp 0x100037f00
cmp dword [rsp + 0x34], 1
jne 0x100037eb4
mov r10, qword [0x100152eb8]
cmp r10, rbp
je 0x100037f3c
test byte [r10 + 0x1c], 2
je 0x100037f07
cmp byte [r10 + 0x19], 5
jb 0x100037f07
mov rcx, qword [r10 + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.100034764
jmp 0x100037f00
cmp dword [rsp + 0x34], 3
jne 0x100037f53
mov rcx, qword [0x100152eb8]
cmp rcx, rbp
je 0x100037ee8
test byte [rcx + 0x1c], 2
je 0x100037ee8
cmp byte [rcx + 0x19], 5
jb 0x100037ee8
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r12
call fcn.100034764
lea rdx, [rsp + 0x30]
mov r9d, 0x7530
mov r8d, esi
mov rcx, rdi
call fcn.100037b24
mov ebx, eax
mov r10, qword [0x100152eb8]
cmp r10, rbp
je 0x100037f3c
test byte [r10 + 0x1c], 1
je 0x100037f3c
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x100037f3c
mov rcx, qword [r10 + 0x10]
mov edx, 0x3f
mov r9d, ebx
mov r8, r12
call fcn.100036328
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [0x100152eb8]
cmp rcx, rbp
je 0x100037f7c
test byte [rcx + 0x1c], 2
je 0x100037f7c
cmp byte [rcx + 0x19], 5
jb 0x100037f7c
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, r12
call fcn.100034764
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x100037ee8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100037efe
Function at 0x10004b6d8
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rcx, qword [0x100152eb8]
lea rsi, [0x100152eb8]
mov r15d, 1
cmp rcx, rsi
je 0x10004b720
test byte [rcx + 0x1c], r15b
je 0x10004b720
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e5a0]
mov edx, 0x13e
call fcn.100034764
xor r14d, r14d
lea rax, [rsp + 0x98]
lea r9, [rsp + 0xa8]
mov r8d, r15d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov ebx, r15d
mov qword [rsp + 0xa8], r14
mov dword [rsp + 0x98], r14d
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rsi
je 0x10004b7a8
test byte [rcx + 0x1c], 2
je 0x10004b7a8
cmp byte [rcx + 0x19], 5
jb 0x10004b7a8
mov eax, dword [rsp + 0x98]
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e5a0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa8]
mov edx, 0x13f
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.10003bf68
mov rcx, qword [0x100152eb8]
cmp edi, r14d
je 0x10004b8ec
cmp dword [rsp + 0x98], r14d
jne 0x10004b7c3
mov ebx, r14d
jmp 0x10004b8d0
mov edi, r14d
mov r12d, r14d
mov ebp, r14d
mov rsi, r14
lea rbx, [0x100152eb8]
cmp ebp, dword [rsp + 0x98]
jae 0x10004b8ba
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rsi + rcx + 0x10]
cmp eax, r14d
je 0x10004b806
cmp eax, 2
jle 0x10004b8aa
cmp eax, 4
jg 0x10004b8aa
mov qword [rsp + 0x40], r14
mov dword [rsp + 0xa0], r14d
mov edx, dword [rsi + rcx]
lea rax, [rsp + 0xa0]
lea r9, [rsp + 0x40]
mov r8d, 5
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov r13d, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004b888
test byte [rcx + 0x1c], 2
je 0x10004b888
cmp byte [rcx + 0x19], 5
jb 0x10004b888
mov rax, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov edx, 0x140
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0x28], r13d
mov r8d, dword [rsi + rax]
mov r9d, ebp
mov dword [rsp + 0x20], r8d
lea r8, [0x10001e5a0]
call fcn.10003bc8c
cmp r13d, r14d
je 0x10004b8a7
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x10004b8a7
cmp r14w, word [rcx]
je 0x10004b8a0
add edi, r15d
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x10004b8aa
mov r12d, r15d
add ebp, r15d
add rsi, 0x18
cmp edi, r14d
je 0x10004b7d6
mov ebx, r15d
lea rsi, [0x100152eb8]
cmp r12d, r14d
jne 0x10004b8d0
cmp edi, r14d
cmove ebx, r14d
mov rcx, qword [rsp + 0xa8]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x100152eb8]
mov qword [rsp + 0xa8], r14
cmp rcx, rsi
je 0x10004b915
test byte [rcx + 0x1c], r15b
je 0x10004b915
cmp byte [rcx + 0x19], 5
jb 0x10004b915
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e5a0]
mov edx, 0x141
mov r9d, ebx
call fcn.100036328
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10006a190
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10006a1cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10006a1c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10006a1ce
test al, 0x10
jne 0x10006a1cc
mov eax, 0x10b
jmp 0x10006a1ce
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x10006a774
Capabilities:
Delete directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x290
mov rax, qword [0x100151198]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r13d, r13d
mov rbx, rcx
mov rbp, r13
mov rsi, r13
mov r12d, r13d
call fcn.1000773d8
cmp eax, r13d
je 0x10006a9b7
call fcn.1000777b4
cmp eax, r13d
je 0x10006a9b7
cmp rbx, r13
je 0x10006a9b0
lea edx, [r13 + 0x1c]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov word [rbx], r13w
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, r13d
mov edi, eax
jl 0x10006a968
mov r14d, 0x104
lea r8, [0x1000213a0]
mov rcx, rbx
mov rdx, r14
call fcn.10006aa64
cmp eax, r13d
mov edi, eax
jl 0x10006a968
mov rcx, rbx
call fcn.10006a190
mov edi, eax
cmp eax, r13d
jne 0x10006a9a2
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea r8, [0x1000213b8]
mov rdx, r14
not rcx
lea rbp, [rbx + rcx*2 - 2]
mov rcx, rbx
call fcn.10006aa64
cmp eax, r13d
mov edi, eax
jl 0x10006a968
lea r9d, [r14 + 0x20]
lea rax, [rsp + 0x30]
mov r8, rbx
lea rcx, [rsp + 0x30]
mov edi, r13d
mov rdx, r9
sub r8, rax
lea rax, [rdx + 0x7ffffeda]
cmp rax, r13
je 0x10006a89e
movzx eax, word [r8 + rcx]
cmp ax, r13w
je 0x10006a89e
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10006a87a
cmp rdx, r13
jne 0x10006a8ac
sub rcx, 2
mov edi, 0x8007007a
cmp edi, r13d
mov word [rcx], r13w
jl 0x10006a96d
lea r8, [0x1000213f8]
lea rcx, [rsp + 0x30]
mov rdx, r9
call fcn.10006aa64
cmp eax, r13d
mov edi, eax
jl 0x10006a968
mov rcx, rbx
call fcn.10006a190
mov edi, eax
cmp eax, r13d
jne 0x10006a98f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rsi, [rbx + rcx*2 - 2]
mov rcx, rbx
call fcn.10006a594
mov edi, eax
cmp eax, r13d
jne 0x10006a97d
lea r8, [0x100021410]
mov rdx, r14
mov rcx, rbx
call fcn.10006aa64
cmp eax, r13d
mov edi, eax
jl 0x10006a968
mov rcx, rbx
call fcn.10006a190
mov edi, eax
cmp eax, r13d
jne 0x10006a97d
mov rcx, rbx
call fcn.10006a3b8
mov edi, eax
cmp eax, r13d
jne 0x10006a97d
lea rcx, [rsp + 0x30]
call fcn.10006a190
mov edi, eax
cmp eax, r13d
jne 0x10006a97d
lea rcx, [rsp + 0x30]
mov r12d, 1
call fcn.10006a1dc
mov edi, eax
cmp edi, r13d
je 0x10006a9a8
cmp r12d, r13d
je 0x10006a97d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp rsi, r13
je 0x10006a98f
mov rcx, rbx
mov word [rsi], r13w
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp rbp, r13
je 0x10006a9a2
mov rcx, rbx
mov word [rbp], r13w
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov word [rbx], r13w
jmp 0x10006a9ac
mov word [rsi], r13w
mov eax, edi
jmp 0x10006a9bc
mov eax, 0x57
jmp 0x10006a9bc
mov eax, 0x8000ffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10011b980
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10007242c
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 r12
sub rsp, 0x30
xor ebp, ebp
mov esi, ebp
mov edi, ebp
call fcn.1000773d8
cmp eax, ebp
je 0x1000725b5
call fcn.1000777b4
cmp eax, ebp
je 0x1000725b5
lea r12, [0x100154b18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8d, [rbp + 0x20]
lea rcx, [0x100154af8]
xor edx, edx
mov dword [0x1001578c8], ebp
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 [0x100154b10], rax
cmp rax, rbp
je 0x1000724d0
lea r8, [0x100071768]
lea rcx, [0x1001578c0]
xor r9d, r9d
mov rdx, rax
mov dword [rsp + 0x28], ebp
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
cmp eax, ebp
jne 0x1000724da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100072517
lea rdx, [0x100154af8]
lea rcx, [0x1001578b8]
mov esi, 1
call sub.IPHLPAPI.DLL_NotifyAddrChange
mov ebx, eax
cmp eax, 0x3e5
jne 0x100072517
lea rcx, [0x1001578b0]
mov edi, esi
call fcn.1000716ec
mov ebx, eax
cmp eax, ebp
jne 0x10007251f
mov ebx, ebp
mov dword [0x1001578e4], esi
cmp ebx, ebp
je 0x1000725a8
mov rcx, r12
mov dword [0x1001578c8], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [0x1001578c0]
cmp esi, ebp
cmovne r11, rbp
mov rcx, r12
mov qword [0x1001578c0], r11
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, ebp
je 0x10007255f
lea rcx, [0x100154af8]
call sub.IPHLPAPI.DLL_CancelIPChangeNotify
mov rcx, qword [0x100154b10]
cmp rcx, rbp
je 0x100072571
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [0x100154af8]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [0x1001578b0]
cmp rcx, rbp
je 0x10007259b
call sub.msvcrt.dll_free
mov qword [0x1001578b0], rbp
mov qword [0x1001578b8], rbp
mov dword [0x1001578e4], ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x1000725ee
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000725e9
test byte [rcx + 0x1c], 4
je 0x1000725e9
cmp byte [rcx + 0x19], 2
jb 0x1000725e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e430]
mov edx, 0x88
call fcn.100034764
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 r12
ret