joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100007a50
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x100021380]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp dword [0x100024004], 0
jne 0x100007b1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x100003c50]
xor ecx, ecx
mov dword [0x100024000], eax
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ecx, dword [0x100024000]
mov dword [rsp + 0x20], ecx
lea r9, [0x100003c50]
lea r8, [0x100004088]
lea rcx, [rsp + 0x60]
mov edx, 0x100
mov rbx, rax
call fcn.1000055e4
test eax, eax
jne 0x100007b1a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [0x100004040]
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x100007b1a
xor r8d, r8d
mov ecx, 2
lea rax, [rsp + 0x50]
and qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], r8d
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], r8
lea edx, [rcx - 1]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10000c740
add rsp, 0x270
pop rbx
ret
Function at 0x100007b3c
Capabilities:
Create service
Persist via windows service

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 r13
sub rsp, 0x6b0
mov rax, qword [0x100021380]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
lea rdx, [0x100003b34]
lea rcx, [rsp + 0x70]
xor edi, edi
call fcn.100009088
lea rdx, [0x100003b34]
lea rcx, [rsp + 0x88]
call fcn.100009088
lea rdx, [rsp + 0x2a0]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
jne 0x100007bd7
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rdx, [0x1000040a8]
lea rcx, [0x1000040d8]
mov r8, rax
call fcn.10000cfdc
jmp 0x100007daf
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.1000092a8
mov rbx, qword [rsp + 0x70]
mov esi, 0x22
cmp si, word [rbx]
je 0x100007c31
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov dl, sil
call fcn.100008db4
cmp rbx, qword [rax]
je 0x100007c24
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.100009238
mov rbx, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.100008fcc
movsxd rax, dword [rbx - 0x10]
cmp si, word [rbx + rax*2 - 2]
je 0x100007c5a
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov edx, 1
mov word [rsp + 0x78], si
call fcn.100009360
mov rbx, qword [rsp + 0x70]
mov esi, 0xf003f
xor edx, edx
xor ecx, ecx
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
cmp rax, rdi
je 0x100007d8f
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x208
call fcn.100014da0
mov r8d, esi
xor edx, edx
xor ecx, ecx
lea r13, [0x100004110]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp rax, rdi
je 0x100007cba
lea rcx, [rsp + 0x90]
mov rdx, rax
call fcn.1000082b4
mov esi, eax
jmp 0x100007cbc
mov esi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x90]
cmp esi, 1
lea r8, [0x1000040a8]
lea rdx, [0x100003c50]
cmovne rax, r13
mov r9d, 0xf01ff
mov rcx, rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
cmp rax, rdi
je 0x100007d64
lea rdx, [0x1000040a8]
lea rcx, [0x100004118]
call fcn.10000cfdc
mov rcx, rbx
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, edi
jne 0x100007d84
lea rdx, [0x100003c50]
lea rcx, [rsp + 0x90]
xor r8d, r8d
call fcn.100008468
jmp 0x100007d84
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004138]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100007daf
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004170]
mov rdx, rax
call fcn.10000cfdc
lea rcx, [rsp + 0x88]
call fcn.100008fcc
lea rcx, [rsp + 0x70]
call fcn.100008fcc
mov eax, edi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.10000c740
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x100007dfc
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0x400f003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x100007ec1
lea rdx, [0x100003c50]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x100007e96
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, eax
test eax, eax
je 0x100007e6b
lea rdx, [0x1000040a8]
lea rcx, [0x1000041a8]
jmp 0x100007e86
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x1000041c8]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100007eb6
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004200]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100007ee1
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004170]
mov rdx, rax
call fcn.10000cfdc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x100007efc
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbx
je 0x10000800e
lea rdx, [0x100003c50]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x100007fe3
lea r8, [0x100023fc0]
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
je 0x100007fd8
lea rdx, [0x1000040a8]
lea rcx, [0x100004238]
call fcn.10000cfdc
jmp 0x100007f88
cmp eax, 3
jne 0x100007fad
lea rcx, [0x100004254]
call fcn.10000cfdc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x100023fc0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
mov eax, dword [0x100023fc4]
jne 0x100007f77
lea rdx, [0x1000040a8]
cmp eax, 1
jne 0x100007fcc
lea rcx, [0x100004258]
call fcn.10000cfdc
mov ebx, 1
jmp 0x100007fd8
lea rcx, [0x100004278]
call fcn.10000cfdc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100008003
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004200]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000802e
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004170]
mov rdx, rax
call fcn.10000cfdc
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100008048
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbx
je 0x100008195
lea rdx, [0x100003c50]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x10000816a
lea r8, [0x100023fc0]
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
je 0x100008118
lea rdx, [0x1000040a8]
lea rcx, [0x100004238]
call fcn.10000cfdc
jmp 0x1000080d4
cmp eax, 3
jne 0x1000080f9
lea rcx, [0x100004254]
call fcn.10000cfdc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x100023fc0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
mov eax, dword [0x100023fc4]
jne 0x1000080c3
lea rdx, [0x1000040a8]
lea rcx, [0x100004258]
cmp eax, 1
je 0x100008113
lea rcx, [0x100004278]
call fcn.10000cfdc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
je 0x10000813f
lea rdx, [0x1000040a8]
lea rcx, [0x1000042a8]
call fcn.10000cfdc
mov ebx, 1
jmp 0x10000815f
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x1000042c8]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000818a
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004200]
mov rdx, rax
call fcn.10000cfdc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000081b5
lea rcx, [0x100023bb0]
mov edx, 0x100
call fcn.100008200
lea rcx, [0x100004170]
mov rdx, rax
call fcn.10000cfdc
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000082b4
Capabilities:
Enumerate services

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
xor edi, edi
lea rax, [r11 - 0x38]
mov r13, rdx
mov qword [r11 - 0x40], rax
lea rax, [r11 + 0x20]
mov rsi, rcx
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
lea ebp, [rdi + 3]
mov qword [r11 - 0x50], rax
lea edx, [rdi + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rcx, r13
mov dword [rsp + 0x20], edi
mov dword [r11 + 0x18], edi
mov dword [r11 + 0x20], edi
mov dword [rsp + 0x40], edi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
cmp eax, edi
jne 0x10000843d
cmp dword [rsp + 0x90], edi
je 0x10000843d
mov ebx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rdi + 8]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
cmp rax, rdi
je 0x10000843d
mov ecx, dword [rsp + 0x90]
lea rax, [rsp + 0x40]
lea edx, [rdi + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x98]
mov r9, r12
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov r8d, ebp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
cmp eax, edi
je 0x100008429
mov ebp, edi
cmp dword [rsp + 0x98], edi
jbe 0x100008429
lea rbx, [r12 + 0x14]
lea r14d, [rdi + 1]
mov rcx, qword [rbx - 0xc]
lea rdx, [0x100004358]
call fcn.10000cd64
cmp eax, edi
jne 0x1000083c7
cmp dword [rbx], 4
je 0x1000083d9
add ebp, r14d
add rbx, 0x30
cmp ebp, dword [rsp + 0x98]
jae 0x100008429
jmp 0x1000083ae
mov eax, ebp
mov edx, edi
lea rcx, [rax + rax*2]
add rcx, rcx
mov r8, qword [r12 + rcx*8]
mov ecx, 0x104
sub r8, rsi
lea rax, [rcx + 0x7ffffefa]
cmp rax, rdi
je 0x100008412
movzx eax, word [r8 + rsi]
cmp ax, di
je 0x100008412
mov word [rsi], ax
add rsi, 2
sub rcx, r14
jne 0x1000083f0
cmp rcx, rdi
jne 0x100008420
sub rsi, 2
mov edx, 0x8007007a
cmp edx, edi
mov word [rsi], di
cmove edi, r14d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100008468
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
cmp rax, rdi
je 0x1000085a1
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
cmp rax, rdi
je 0x100008598
lea rax, [rsp + 0x78]
lea esi, [rdi + 3]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov edx, esi
mov rcx, rbp
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], edi
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
cmp eax, edi
jne 0x10000858f
cmp dword [rsp + 0x70], edi
je 0x10000858f
mov ebx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rdi + 8]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
cmp rax, rdi
je 0x10000858f
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov r8, r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
cmp eax, edi
je 0x10000857b
mov ebx, edi
cmp dword [rsp + 0x78], edi
jbe 0x10000857b
mov rsi, r12
mov rcx, qword [rsi]
lea rdx, [0x100003c50]
call fcn.10000cd64
cmp eax, edi
je 0x100008576
inc ebx
add rsi, 0x30
cmp ebx, dword [rsp + 0x78]
jb 0x100008555
jmp 0x10000857b
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x100008958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
lea rax, [0x100004728]
mov qword [rcx], rax
mov rax, qword [0x100022848]
mov qword [rcx + 8], rax
add rcx, 8
call fcn.100008f48
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.100008a90
xor edi, edi
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], rdi
je 0x1000089c6
lea rdx, [0x100004610]
lea rcx, [rsp + 0x48]
call fcn.1000093f0
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], rdi
je 0x100008a10
cmp qword [rsi + 8], rax
je 0x1000089e0
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 8]
call fcn.100009238
mov rcx, qword [rsi + 8]
movsxd rax, dword [rcx - 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x100008a00
lea rdx, [0x100004620]
lea rcx, [rsi + 8]
call fcn.1000093f0
lea rdx, [0x100004628]
lea rcx, [rsi + 8]
call fcn.1000093f0
lea rcx, [rsp + 0x48]
call fcn.100008fcc
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 1
cmp eax, 0xffffffff
cmovne edi, ecx
mov dword [rsi + 0x10], edi
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x100008a90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rsi, rdx
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov rax, qword [0x100022848]
mov qword [rdx], rax
mov dword [rsp + 0x60], 1
mov edi, 0x105
lea eax, [rbp + 2]
mul rdi
lea rcx, [rbp - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.10000ca78
mov rbx, rax
cmp rax, rbp
je 0x100008b45
lea r9d, [rbp + 1]
lea r8d, [rbp + 0x23]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x100008b2d
mov rax, rdi
mov rcx, rbx
cmp word [rcx], bp
je 0x100008b15
add rcx, 2
sub rax, 1
jne 0x100008b06
cmp rax, rbp
je 0x100008b22
sub rdi, rax
cmp rdi, rbp
jne 0x100008b2d
mov rcx, rbx
call fcn.10000ca6c
mov rbx, rbp
cmp rbx, rbp
je 0x100008b45
mov rdx, rbx
mov rcx, rsi
call fcn.1000092a8
mov rcx, rbx
call fcn.10000ca6c
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x100008b5c
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
cmp dword [rcx + 0x10], 1
mov rbx, rcx
jne 0x100008ccc
lea rdi, [rcx + 8]
lea r12, [r11 + 0x18]
mov rax, qword [rdi]
cmp qword [rax - 0x10], 0
je 0x100008ccc
xor eax, eax
lea rcx, [r11 - 0x40]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov ebp, eax
call fcn.100008ce0
lea r8, [0x100004650]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x100008cc2
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov rcx, rdi
call fcn.100009438
lea rdx, [0x10000468c]
mov r8d, 0x20
mov rcx, rax
call fcn.10000d680
mov rdi, rax
test rax, rax
je 0x100008cab
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.100009438
movzx ecx, word [rsp + 0x74]
movzx edx, word [rsp + 0x72]
movzx r10d, word [rsp + 0x70]
movzx r11d, word [rsp + 0x6e]
movzx r9d, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
lea rdx, [0x1000046a0]
mov rcx, rdi
mov dword [rsp + 0x20], r11d
call fcn.10000d5b4
mov rdx, qword [rsp + 0xb8]
mov r8, r12
mov rcx, rdi
call fcn.10000d588
mov rcx, rdi
call fcn.10000d83c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test rbx, rbx
je 0x100008cc2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.100008fcc
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100009088
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x100022848]
xor ebp, ebp
mov rdi, rdx
mov qword [rcx], rax
mov rsi, rcx
cmp rdx, rbp
je 0x100009131
mov rax, rdx
shr rax, 0x10
cmp ax, bp
jne 0x100009107
movzx ebx, dx
xor r8d, r8d
mov edx, ebx
call fcn.100009aa0
cmp eax, ebp
jne 0x100009131
mov rax, qword [0x100022848]
lea rdx, [0x100004730]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov qword [rsp + 0x30], rax
call fcn.100009a08
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x30]
call fcn.100008fcc
jmp 0x100009131
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebp
je 0x100009131
movsxd rbx, eax
mov rcx, rsi
mov rdx, rbx
call fcn.100008e18
mov rcx, qword [rsi]
lea r8, [rbx + rbx]
mov rdx, rdi
call fcn.10000d8f0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x100009b7c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x150
mov rax, qword [0x100021380]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
mov rbp, rdx
mov r12d, ecx
cmp dword [0x10002400c], ebx
je 0x100009bbe
lea eax, [rbx + 1]
jmp 0x100009ce7
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
call fcn.100014da0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x100009ce5
cmp dword [rsp + 0x30], 2
jne 0x100009ce5
cmp dword [rsp + 0x24], 5
jb 0x100009ce5
mov esi, ebx
cmp r12d, 1
jne 0x100009c45
cmp rbp, rbx
je 0x100009c45
lea rcx, [0x100022860]
call fcn.10000aad4
cmp eax, r12d
jne 0x100009c45
lea rcx, [0x1000228e0]
mov rdx, rbp
call fcn.10000b438
mov esi, eax
cmp eax, r12d
jne 0x100009c45
lea rcx, [0x100022868]
xor edx, edx
call fcn.10000ae84
mov esi, eax
cmp r12d, 2
jne 0x100009c89
mov esi, ebx
cmp rbp, rbx
je 0x100009c89
lea rcx, [0x100022860]
call fcn.10000aad4
cmp eax, 1
jne 0x100009c89
lea rcx, [0x1000228e0]
mov rdx, rbp
call fcn.10000b530
mov esi, eax
cmp eax, 1
jne 0x100009c89
lea rcx, [0x100022868]
xor edx, edx
call fcn.10000af0c
mov esi, eax
cmp r12d, 3
jne 0x100009ccd
mov esi, ebx
cmp rbp, rbx
je 0x100009ccd
lea rcx, [0x100022860]
call fcn.10000aad4
cmp eax, 1
jne 0x100009ccd
lea rcx, [0x1000228e0]
mov rdx, rbp
call fcn.10000b628
mov esi, eax
cmp eax, 1
jne 0x100009ccd
lea rcx, [0x100022868]
xor edx, edx
call fcn.10000ae84
mov esi, eax
cmp esi, ebx
je 0x100009ce2
mov dword [0x10002400c], 1
mov ebx, 1
jmp 0x100009ce5
or ebx, 0xffffffff
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10000c740
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x10000a4a8
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x10002400c], ebx
je 0x10000a4db
cmp dword [rcx + 0x10], ebx
jne 0x10000a4c1
xor eax, eax
jmp 0x10000a4f1
mov r8, qword [0x100022928]
mov eax, 0xc
cmp r8, rbx
je 0x10000a4ea
mov rcx, qword [rcx + 8]
call r8
jmp 0x10000a4ea
cmp dword [rcx + 0x10], ebx
je 0x10000a4ef
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
sete bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x10000a5f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
cmp dword [rcx + 0x10], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [0x100003b30]
jne 0x10000a624
mov rcx, rbx
call fcn.100009150
jmp 0x10000a72b
lea rcx, [rsp + 0x48]
call fcn.100009150
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, 0x200
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x10000a666
lea rdx, [0x100003b30]
mov rcx, rbx
call fcn.100009150
jmp 0x10000a721
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x10000a69b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10000a652
mov rcx, qword [rsi + 8]
mov eax, 0x100
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov r8, rdi
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10000a6ec
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1000092a8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.100008dd8
lea rcx, [rsp + 0x48]
call fcn.100008fcc
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret