joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001060c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov edi, edx
mov rbx, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp - 0x71]
mov r8d, edi
mov rdx, rbx
lea r14d, [rax + 0xea60]
call fcn.1800152e0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x71]
mov r8d, 0x80
call fcn.180015388
lea rcx, [rbp - 0x71]
call fcn.1800152b8
lea rcx, [rbp - 0x71]
mov rdi, rax
call fcn.180015324
xor ebx, ebx
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x49]
call fcn.1800141cc
test eax, eax
jne 0x1800106db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x1800106bf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r14d
jae 0x1800106bf
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x180010685
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp - 0x49]
mov ecx, gethostbyname
mov r8d, eax
call fcn.18000dbd8
jmp 0x180010766
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x79]
lea rdx, [rsp + 0x30]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001073a
mov ebx, 0x2000
mov rcx, qword [rsp + 0x38]
sub eax, esi
mov edx, esi
cmp eax, ebx
lea r9, [rbp - 0x79]
cmova eax, ebx
and qword [rsp + 0x20], 0
add rdx, rdi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001073a
add esi, dword [rbp - 0x79]
mov eax, dword [rsp + 0x30]
cmp esi, eax
jb 0x180010707
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18001be40
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001078c
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rbp - 0x7f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x80], 0
call fcn.18001c370
lea rcx, [rbp + 0x381]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x380], 0
call fcn.18001c370
lea rcx, [rsp + 0x58]
mov r8d, edi
mov rdx, rbx
call fcn.1800152e0
mov ebx, 0x400
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
mov r8d, ebx
call fcn.180015388
test eax, eax
je 0x180010935
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x58]
mov r8d, ebx
call fcn.180015388
test eax, eax
je 0x180010935
and qword [rsp + 0x30], 0
mov edi, 3
lea rcx, [rbp - 0x80]
lea r8d, [rdi - 2]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
jne 0x180010887
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp - 0x80]
mov r8d, eax
mov ecx, gethostbyname
call fcn.18000dbd8
jmp 0x180010935
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1800108b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 9
jmp 0x180010925
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 2]
lea rcx, [rbp + 0x380]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
jne 0x1800108fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0x380]
jmp 0x180010875
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x18001092c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xa
mov edx, eax
call fcn.18000daec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.18001be40
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18001095c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0x400
mov rbx, r8
mov esi, edx
call fcn.18001bcf0
mov rdi, rax
test rax, rax
je 0x180010a25
lea rcx, [rsp + 0x20]
mov r8d, esi
mov rdx, rbp
call fcn.1800152e0
lea rcx, [rsp + 0x20]
mov r8d, 0x400
mov rdx, rdi
call fcn.180015388
mov rcx, rdi
test eax, eax
jne 0x1800109bf
call fcn.18001bcb0
jmp 0x180010a25
mov rdx, rbx
call fcn.18001d09c
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180010a0b
lea rcx, [rsp + 0x20]
call fcn.180015324
lea rcx, [rsp + 0x20]
movsxd rbx, eax
call fcn.1800152b8
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.18001d238
mov rcx, rsi
call fcn.18001cf5c
mov rcx, rdi
jmp 0x1800109b8
mov rcx, rdi
call fcn.18001bcb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 8
mov edx, eax
call fcn.18000daec
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180010a3c
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.18001c370
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.180013174
test eax, eax
je 0x180010b25
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.1800145b8
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180010b40
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1078
call fcn.18001c6b0
sub rsp, rax
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rdi, rcx
mov rsi, r8
mov r12d, edx
mov ebx, 0x7fe
lea rcx, [rsp + 0x862]
xor r13d, r13d
xor edx, edx
mov r8d, ebx
mov rbp, r9
mov word [rsp + 0x860], r13w
call fcn.18001c370
lea rcx, [rsp + 0x62]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x60], r13w
call fcn.18001c370
mov rcx, qword [0x1800490b8]
mov r15d, r13d
test rcx, rcx
je 0x180010cd6
cmp dword [rsp + 0x10e8], r13d
jne 0x180010cd6
mov r14d, dword [rsp + 0x10e0]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r14d
lea ebx, [r13 + 1]
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x180010d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180010cbb
lea rdx, [rsp + 0x860]
mov r8d, 0x400
mov rcx, rdi
mov qword [rsi + 0x10], r13
call fcn.180010f2c
test eax, eax
jne 0x180010c56
lea ecx, [rbx + 6]
mov edx, r12d
call fcn.18000daec
xor eax, eax
jmp 0x180010d20
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x400
cmp eax, ecx
jae 0x180010c79
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r15, [rsp + 0x60]
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], r13
je 0x180010cbb
mov rcx, qword [0x1800490b8]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x860]
lea edx, [r8 + 2]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x180010d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, rdi
mov r8d, eax
call fcn.18000dbd8
jmp 0x180010c4f
mov eax, dword [rsp + 0x10e0]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
mov ebx, 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180010d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x2f]
jmp 0x180010cc6
mov eax, ebx
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x1078
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180010d44
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180015244
mov edx, 0x4000
mov rcx, rax
mov r14, rax
call fcn.180015328
mov edi, 0x400
mov rcx, r14
mov edx, edi
mov qword [rsp + 0x70], rax
call fcn.180015328
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.180015328
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x60], rax
call fcn.180015328
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x68], rax
call fcn.180015328
lea r8d, [rsi + 0x68]
lea rcx, [rbp - 0x60]
xor edx, edx
mov rdi, rax
call fcn.18001c370
xor eax, eax
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x70]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], ax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rax
call fcn.180010f2c
mov rdx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, r12
call fcn.180010f2c
mov rdx, qword [rsp + 0x68]
mov r8d, 0x400
mov rcx, rbx
call fcn.180010f2c
mov rbx, qword [rsp + 0x78]
mov r8d, 0x400
mov rdx, rbx
mov rcx, r13
call fcn.180010f2c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x400
cmp eax, ecx
jae 0x180010e8e
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor edi, edi
lea rax, [rbp - 0x80]
lea r9d, [rdi + 1]
mov rdx, rbx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x8000400
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x180010f02
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_as__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000da80
mov rcx, r14
call fcn.1800152c0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180010fa0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x180010fea
mov rax, rbp
jmp 0x180011044
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x180010fe5
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001be70
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x180011041
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x180010fe5
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180011138
Capabilities:
Create pipe

Disassembly:
cmp edx, 0x100
jge 0x180011200
push rbx
sub rsp, 0x150
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbx, edx
mov rdx, rcx
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.18001be70
cmp rbx, 0x100
jae 0x180011201
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
lea edx, [rax + 4]
lea r9d, [rax + 3]
lea r8d, [rax + 5]
mov byte [rsp + rbx + 0x40], 0
mov qword [0x18003d018], rax
mov qword [0x18003d010], rax
mov qword [0x18003d020], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x18003d010], rax
test rax, rax
je 0x1800111e8
lea rcx, [0x180011428]
xor edx, edx
call fcn.180018888
mov qword [0x18003d020], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x150
pop rbx
ret
call fcn.18001c820
int3

Function at 0x180011144
Capabilities:
Create pipe

Disassembly:
cmp edx, 0x100
jge 0x180011200
push rbx
sub rsp, 0x150
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbx, edx
mov rdx, rcx
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.18001be70
cmp rbx, 0x100
jae 0x180011201
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
lea edx, [rax + 4]
lea r9d, [rax + 3]
lea r8d, [rax + 5]
mov byte [rsp + rbx + 0x40], 0
mov qword [0x18003d018], rax
mov qword [0x18003d010], rax
mov qword [0x18003d020], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x18003d010], rax
test rax, rax
je 0x1800111e8
lea rcx, [0x180011428]
xor edx, edx
call fcn.180018888
mov qword [0x18003d020], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x150
pop rbx
ret
call fcn.18001c820
int3
Function at 0x18001165c
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x18001168d
xor eax, eax
jmp 0x1800116f6
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and dword [rsp + 0x30], 0
mov r9d, 0xf01ff
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x180011689
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180011708
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180011731
xor eax, eax
jmp 0x18001176f
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x18001172d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x18001172d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001177c
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x1800117a5
xor eax, eax
jmp 0x1800117e8
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1800117a1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1800117a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800117f4
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x60], rax
and dword [rsp + 0x38], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x20]
lea rcx, [r11 - 0x3c]
call fcn.18001c370
and dword [rsp + 0x30], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x180011900
mov r8d, 0x24
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x180011900
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180011900
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rsp + 0x38]
mov r9d, 0x24
mov esi, eax
lea rax, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x180011900
mov r14d, 0x7530
cmp dword [rsp + 0x3c], 1
je 0x180011926
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, r14d
ja 0x180011900
mov ecx, dword [rsp + 0x50]
cmp ecx, r14d
cmova ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1800118b7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18001be40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x180011902

Function at 0x180011af0
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x180011b02
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x180011b33
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8]
mov byte [r8], al
inc r8
dec r10
jne 0x180011b17
mov eax, edx
ret

Function at 0x180011b38
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rsi, edx
movsxd rax, r9d
mov rbx, r8
add rsi, 4
mov edi, edx
mov rbp, rcx
mov r14, r8
cmp rsi, rax
jbe 0x180011b6f
xor eax, eax
jmp 0x180011ba2
call fcn.18000fc40
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x180011ba0
sub rbp, rbx
mov rax, rdi
mov rcx, rdx
inc rdx
and ecx, 3
mov cl, byte [rcx + r14]
xor cl, byte [rbx + rbp]
mov byte [rbx], cl
inc rbx
dec rax
jne 0x180011b86
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180011ed4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x180011ec6
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
mov dword [rsp + 0x30], eax
call rdi
mov rcx, qword [rbx + 8]
call fcn.18001cf5c
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x18003f488], rsi
mov rdi, rcx
jne 0x180011f12
mov ecx, 0x80004
call fcn.18001bcf0
mov qword [0x18003f488], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003f488]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, r14d
cmova ebx, r14d
test ebx, ebx
je 0x180011f5a
mov r9, qword [rdi + 8]
mov eax, esi
mov r8d, ebx
add rax, 4
mov edx, 1
add rcx, rax
call fcn.18001d5c0
mov rcx, qword [0x18003f488]
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180011f30
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180011e8c

Function at 0x180011f8c
Capabilities:
Copy file

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
mov rsi, rcx
mov ecx, 0x4000
mov edi, edx
call fcn.180015244
mov edx, 0x2000
mov rcx, rax
mov r14, rax
call fcn.180015328
mov edx, 0x2000
mov rcx, r14
mov rbp, rax
call fcn.180015328
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call fcn.1800152e0
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rbp
call fcn.180015388
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rbx
call fcn.180015388
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180012032
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_listen
mov edx, eax
call fcn.18000daec
mov rcx, r14
call fcn.1800152c0
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 0x1800120b8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.1800152e0
lea rcx, [rsp + 0x20]
mov edx, 0x80
call fcn.18000d5a0
lea rcx, [rsp + 0x38]
call fcn.1800152f0
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.18000d5e8
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x18002caf8]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.18000d61c
lea rcx, [rsp + 0x20]
call fcn.18000d618
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.18000d67c
mov r8d, reloc.WS2_32.dll_shutdown
mov rcx, rax
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.18000d57c
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret