joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d79f0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0xa0], 0xff
movzx r12d, r9w
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1800d7a4e
cmp dword [rcx + 0x18], 0
lea r9, [rcx + 0x18]
jne 0x1800d7a4e
mov rcx, qword [rcx + 0x10]
mov edx, 0xffff
mov r8d, SafeArrayAllocData
mov dword [r9], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
movzx ecx, r12w
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [rsp + 0xa0]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18007e1e0
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret

Function at 0x1800d7ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x58
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13, qword [rsp + 0xb0]
mov r12, r9
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
test eax, eax
je 0x1800d7b5a
jns 0x1800d7b34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1800d7b5a
test ebx, ebx
jle 0x1800d7af0
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x3a]
mov dword [r12], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r13], ax
mov eax, ebx
jmp 0x1800d7b5c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18007e1e0
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1800d7b80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x1800d7ba0
mov dword [rsp + 0x48], 1
jmp 0x1800d7bad
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x1800d7be9
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x1800d7c17
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1800d7bdc
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x1800d7b80
Function at 0x1800d7c60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x1800d7ba0
mov dword [rsp + 0x48], 1
jmp 0x1800d7bad
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x1800d7be9
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x1800d7c17
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1800d7bdc
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x1800d7b80

Function at 0x1800d7c70
Capabilities:
Set socket configuration

Disassembly:
mov r8d, 0x1006
mov dword [rcx + 0xc], edx
jmp 0x1800d7b80

Function at 0x1800d81d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rcx + 0x20]
mov r13, rcx
mov r15d, r9d
mov rcx, rbp
mov r12d, edx
call fcn.1800d8550
xor esi, esi
add r13, 8
mov rcx, r13
mov r14d, esi
mov edi, esi
call fcn.1800d7cc0
mov ebx, eax
test eax, eax
jle 0x1800d823b
nop
mov edx, edi
mov rcx, r13
call fcn.1800d7e50
cmp dword [rax], r12d
je 0x1800d8296
cmp dword [rax + 4], 1
jne 0x1800d828e
inc edi
cmp edi, ebx
jl 0x1800d8220
xor eax, eax
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x24], rax
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], rax
test r14d, r14d
je 0x1800d82a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x24], 2
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x28], rax
jmp 0x1800d82b1
mov r14d, 1
jmp 0x1800d823b
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x1800d82e8
mov dword [rsp + 0x24], 1
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1800d8180
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rsi, rsi
je 0x1800d82e3
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800da850
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x78]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rdx], rbx
mov rbp, rcx
mov rdx, rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1800da8b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1800da8b0
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x60], rdi
call fcn.180030824
mov ecx, dword [rsp + 0x68]
mov qword [rsi], rax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180030824
mov r8, qword [rsi]
mov rdi, rax
test r8, r8
je 0x1800da91b
test rax, rax
je 0x1800da92c
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test rdi, rdi
je 0x1800da928
mov rcx, rdi
call fcn.18003082c
test ebx, ebx
jne 0x1800da939
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800da939
call fcn.18003081c
mov eax, ebx
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800e4370
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, SafeArrayAllocData
call fcn.18011bdc0
sub rsp, rax
mov rbx, r8
call fcn.1800e3d80
test eax, eax
js 0x1800e45ae
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1800e43f9
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x1800e43b0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1800e45ac
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x180000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x150650]
mov r9d, dword [rdi + rdx*4 + 0x151250]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x151a50]
movzx ecx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x151e50]
movzx ecx, byte [rdi + rax*4 + 0x150650]
xor r9d, dword [rdi + rcx*4 + 0x151650]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x150650]
mov r8d, dword [rdi + rdx*4 + 0x151250]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x151a50]
movzx ecx, byte [rdi + rax*4 + 0x150650]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x151650]
movzx ecx, byte [rdi + rax*4 + 0x150650]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x151e50]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x150650]
mov r8d, dword [rdi + rdx*4 + 0x151250]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x151a50]
movzx ecx, byte [rdi + rax*4 + 0x150650]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x151650]
movzx ecx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x151e50]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x150650]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x150650]
mov r8d, dword [rdi + rdx*4 + 0x151a50]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x151650]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x150650]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x151250]
movzx ecx, byte [rdi + rax*4 + 0x150650]
xor r8d, dword [rdi + rcx*4 + 0x151e50]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1800e4420
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800e57a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.18011bdc0
sub rsp, rax
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r15, qword [rbp + 0x68]
mov rsi, rcx
movzx r10d, byte [rax]
mov ebx, dword [r15]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
mov r14, rdx
movzx edx, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov r12d, r8d
lea r8, [rdi + 5]
or r10d, eax
movzx eax, byte [rdi + 2]
xor r13d, r13d
shl eax, 0x18
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r15
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0x10], r10b
or edx, eax
movzx eax, byte [r8]
or ecx, eax
mov eax, r10d
shr eax, 8
shl ecx, 0x10
mov byte [rbp - 0xf], al
or edx, ecx
mov eax, r10d
shr eax, 0x10
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
test r12d, r12d
je 0x1800e595c
mov r15, qword [rbp - 0x28]
sub r14, rsi
movzx r8d, dl
movzx r9d, r10b
dec r12d
test ebx, ebx
jne 0x1800e58f8
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.1800e0b20
mov r10d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
mov eax, r10d
shr eax, 8
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
inc r13d
mov byte [rbp - 9], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r14 + rsi - 1], cl
and ebx, 7
test r12d, r12d
jne 0x1800e5892
mov r15, qword [rbp - 0x20]
test r13d, r13d
je 0x1800e595c
mov rax, qword [rbp - 0x18]
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], dl
mov dword [r15], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18007e1e0
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 0x1800f29a0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
test rcx, rcx
je 0x1800f29f8
movzx eax, byte [rcx]
test al, al
je 0x1800f29f8
mov r10d, 0x100
nop dword [rax + rax]
movsx edx, al
inc r9
or edx, r10d
add r10d, 0x100
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0xf
movzx ecx, al
movzx eax, byte [r9]
imul edx, edx
rol r8d, cl
xor r8d, edx
test al, al
jne 0x1800f29c0
mov eax, r8d
shr eax, 0x10
xor eax, r8d
ret
xor eax, eax
ret

Function at 0x180108d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x38], rbp
mov rbp, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180108e8f
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180108e8f
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x180108e8f
lea ecx, [rdi + 0x40]
mov edx, eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180108e8a
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180108e81
cmp dword [rsp + 0x60], 7
jne 0x180108e81
mov qword [rsp + 0x50], rbx
mov rbx, rsi
cmp byte [rsi], dil
je 0x180108e7c
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x180108e77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rbx, rax
cmp byte [rbx], dil
jne 0x180108e50
jmp 0x180108e7c
mov edi, 1
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x38]
test rcx, rcx
je 0x180108ea4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180108eb0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.1800d08e0
test eax, eax
je 0x180108f87
call fcn.1800d0940
test eax, eax
je 0x180108f79
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x180108f27
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180108f2b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180108f89
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180108f65
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180108f60
cmp eax, 2
jne 0x180108f65
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180108f87
lea rcx, str.Terminal_Server
call fcn.180108d70
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180108eb0

Function at 0x180109050
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.1800d08e0
test eax, eax
je 0x180108f87
call fcn.1800d0940
test eax, eax
je 0x180108f79
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x180108f27
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180108f2b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180108f89
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180108f65
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180108f60
cmp eax, 2
jne 0x180108f65
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180108f87
lea rcx, str.Terminal_Server
call fcn.180108d70
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180108eb0
Function at 0x18010bad0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
call fcn.18010a920
cmp qword [0x1801b1590], 0
mov rdx, rbx
mov rcx, rdi
je 0x18010bb1b
mov eax, dword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
call qword [0x1801b1598]
jmp 0x18010bb21
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18010e5f0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1801b1d1c]
test ecx, ecx
jne 0x18010e7b0
mov eax, dword [0x1801b1d18]
cmp eax, 3
ja 0x18010e7b0
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1801b1d18], eax
call fcn.1800d08e0
test eax, eax
je 0x18010e636
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18010e643
lea rcx, [0x18015b9c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18010e655
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.WTSOpenServerA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSOpenServerW
mov rcx, rbx
mov qword [0x1801b1ca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSCloseServer
mov rcx, rbx
mov qword [0x1801b1cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSFreeMemory
mov rcx, rbx
mov qword [0x1801b1cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsA
mov rcx, rbx
mov qword [0x1801b1cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rbx
mov qword [0x1801b1cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSTerminateProcess
mov rcx, rbx
mov qword [0x1801b1cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesA
mov rcx, rbx
mov qword [0x1801b1cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesW
mov rcx, rbx
mov qword [0x1801b1ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageA
mov rcx, rbx
mov qword [0x1801b1ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageW
mov rcx, rbx
mov qword [0x1801b1cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rbx
mov qword [0x1801b1cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rbx
mov qword [0x1801b1d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSWaitSystemEvent
mov rcx, rbx
mov qword [0x1801b1d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x1801b1d10], rax
mov dword [0x1801b1d1c], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret

Function at 0x18010e820
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rdx], eax
test rcx, rcx
je 0x18010e84e
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov r9, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add rsp, 0x48
ret

Function at 0x18010eac0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rdx], eax
test rcx, rcx
je 0x18010eaee
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add rsp, 0x48
ret