joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017fa0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140044b00
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
call sub.oal.dll_Ordinal_27
xor edi, edi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, str.InitHelper
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rax
lea rdx, str.SYSTEMCurrentControlSetServicesAESMService
mov esi, 4
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
mov dword [rsp + 0x44], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [rsp + 0x40], 1
mov rcx, rbx
jne 0x140044b93
mov dl, 1
call fcn.140010940
call fcn.14001f840
mov eax, 0x80004005
jmp 0x140044d0d
xor edx, edx
call fcn.140010940
mov edx, 0x100
mov word [rsp + 0x50], di
lea rcx, [rsp + 0x50]
call fcn.140011b90
test al, al
jne 0x140044bb7
mov word [rsp + 0x50], di
mov edx, 3
lea r9, [rsp + 0x50]
lea r8, str.The_AESM_service_is_starting._PSW_Version:__s
lea ecx, [rdx - 2]
call sub.oal.dll_Ordinal_30
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14023d320], rax
test rax, rax
jne 0x140044c0c
mov edx, 1
lea r8, str.Failed_to_create_AESM_service_event
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x140044d0d
mov rax, qword [0x14023d138]
test rax, rax
jne 0x140044c43
lea ecx, [rax + 0x10]
call fcn.140002480
test rax, rax
je 0x140044c30
mov rcx, rax
call fcn.140019630
mov rdi, rax
lea rcx, [0x140022a30]
mov qword [0x14023d138], rdi
call fcn.14000d0d0
mov rcx, qword [0x14023d138]
call fcn.140002110
test eax, eax
je 0x140044c70
mov edx, 1
lea r8, str.Failed_to_start_AESM_service
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x140044d0d
call fcn.140011890
test eax, eax
je 0x140044c9c
mov edx, 2
lea r8, str.AESMRpcServerStart_failed_with_error0x_x
mov r9d, eax
lea ecx, [rdx - 1]
call sub.oal.dll_Ordinal_30
call fcn.1400149e0
mov eax, 0x80004005
jmp 0x140044d0d
call fcn.14000c5f0
cmp dword [rbx + 0x26c], 0
je 0x140044cdc
mov eax, 2
lock cmpxchg dword [rbx + 0x254], esi
jne 0x140044cdc
lea rdx, str.Service_started_resumed
mov rcx, rbx
call fcn.14000f620
mov rcx, qword [rbx + 0x248]
lea rdx, [rbx + 0x250]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp dword [rbx + 0x254], esi
jne 0x140044d0b
xor ecx, ecx
call sub.oal.dll_Ordinal_26
mov r9, rax
lea r8, str._s._PSW_Version:__s
lea rax, [rsp + 0x50]
mov edx, 3
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.oal.dll_Ordinal_30
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000fde0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140018e90
Capabilities:
Terminate process

Disassembly:
jmp 0x14015b88c
sub rsp, 0x28
mov ecx, Ordinal_26
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14015b8a6
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14001d490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400194e0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a88dc
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401f8a38]
mov ecx, 5
lea r8, [0x1401f8a30]
lea rdx, str.FlsGetValue
call fcn.1401a7ed4
mov ecx, ebx
test rax, rax
je 0x1401a8916
add rsp, 0x20
pop rbx
jmp qword [case.0x14006bf61.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14001a330
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140080980
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x14023d880], eax
inc eax
cmp eax, 1
jne 0x1400809cd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14023d884], eax
test dil, dil
je 0x1400809e0
xor eax, eax
lock xadd dword [0x14023d884], eax
test eax, eax
jne 0x140080a04
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1401e1a10]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140015770
int3
Function at 0x14001bd40
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401a8934
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401f8a58]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1401f8a50]
call fcn.1401a7ed4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1401a8974
call qword [case.0x14006bf61.0]
jmp 0x1401a897a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bf40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b6f40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400b6f76
mov rax, qword [rax + 0x38]
test rax, rax
je 0x1400b6f6e
xor edx, edx
mov rcx, rax
mov rax, qword [rax]
call qword [case.0x14006bf61.0]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400b6fcb
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b6fbb
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400b6fbb
cmp qword [rcx], 0
jne 0x1400b6fbb
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14001b300
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e5d0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401ad270
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c810
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401ad2fa
cmp byte [rbp - 0x21], r15b
je 0x1401ad2f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, ebx
jmp 0x1401ad330
call fcn.140020f70
test eax, eax
jne 0x1401ad31c
cmp byte [rbp - 0x21], r15b
je 0x1401ad314
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, 1
jmp 0x1401ad330
cmp byte [rbp - 0x21], r15b
je 0x1401ad32d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.14000b3a0
test eax, eax
jne 0x1401ad3c8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c810
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401ad36b
cmp byte [rbp - 0x21], r15b
je 0x1401ad3a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401ad3a0
call fcn.140020f70
test eax, eax
jne 0x1401ad38c
cmp byte [rbp - 0x21], r15b
je 0x1401ad385
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401ad3a0
cmp byte [rbp - 0x21], r15b
je 0x1401ad39d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b3a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401ad3c8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401ad3cb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401ad3d9
mov rcx, rdi
call fcn.140001e90
cmp byte [rbp + 0x3f], r15b
je 0x1401ad3e8
mov rcx, qword [rbp + 0x27]
call fcn.140001e90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001ef50
Capabilities:
Parse pe header

Disassembly:
jmp 0x14019f248
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14019f013
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019f013
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019f013
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019f013
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019f013
cmp dword [rcx + 0x84], 0xe
jbe 0x14019f013
cmp dword [rcx + 0xf8], 0
je 0x14019f013
mov ecx, ebx
call fcn.14019f1a4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14019ed1c
cmp dword [rbp + 0x20], 0
je 0x14019f060
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14019f098
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14019efac

Function at 0x14001f4c0
Capabilities:
Create thread

Disassembly:
jmp 0x14017e230
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test r8, r8
jne 0x14017e260
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140003d00
xor eax, eax
jmp 0x14017e2e0
mov rdx, r9
mov rcx, r8
call fcn.14017e010
mov rbx, rax
test rax, rax
je 0x14017e2b0
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14017ddb0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14017e2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000a0a0
xor edi, edi
test rbx, rbx
je 0x14017e2dd
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14017e2c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017e2d5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140001e90
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14017e300
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
xor ebx, ebx
jmp 0x14017e2b2
Function at 0x140020990
Capabilities:
Print debug messages

Disassembly:
jmp 0x140109258
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140017aa0
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1401ee278]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14000f8a0
test eax, eax
jne 0x1401092ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1401092ef
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1401092e8
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14023d080], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140020e90
Capabilities:
Delete registry value

Disassembly:
jmp 0x140047cb0
sub rsp, 0x58
call fcn.140003f40
test eax, eax
jne 0x140047cc7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x50], rdi
mov r9d, 0x20006
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047dc6
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov r9d, 0x20006
lea rbx, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
mov qword [rsp + 0x78], rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047d99
mov rsi, qword [rsp + 0x70]
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x14023d0b0]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
lea edx, [r8 + 0x65]
call fcn.14001e8a0
mov ebx, eax
test rsi, rsi
je 0x140047da2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140047da2
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140047dcf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x140022410
Capabilities:
Get socket status

Disassembly:
jmp 0x1400bc790
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
mov r10, r9
mov qword [rsp + 0x40], r9
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400bc804
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc97b
cmp byte [rbp + 0x208], 0
mov qword [rsp + 0x2a0], r14
je 0x1400bc843
test r12b, 0x10
je 0x1400bc843
xor r14d, r14d
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc973
mov qword [rsp + 0x2e8], rsi
mov r8, r10
mov qword [rsp + 0x2a8], r13
mov rdx, rax
mov r13d, dword [rbp + 0x200]
mov r9d, r13d
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
jns 0x1400bc961
and r12b, 1
lea rdi, [0x1401e1a10]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x1400bc999
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x1400bc8aa
cmp eax, 0x4d5
jne 0x1400bc999
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x1400bc999
xor ecx, ecx
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rdi
setne byte [rsp + 0x4c]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400bc920
mov dword [rsp + 0x58], r14d
mov byte [rsp + 0x5c], r14b
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x1400bc93f
jle 0x1400bc93b
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x1400bc93f
test esi, esi
js 0x1400bc999
mov r8, qword [rsp + 0x40]
mov r9d, r13d
mov rdx, qword [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
js 0x1400bc883
mov eax, eax
mov r13, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x2b0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x1400bc963
Function at 0x140043a60
Capabilities:
Delete registry key

Disassembly:
jmp 0x140043a60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140043b19
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140043ae5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043b04
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140043b04
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x14006bf61.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140043b04
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14023d649], 0
jne 0x140043b64
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043b54
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023d640], rax
mov byte [0x14023d649], 1
jmp 0x140043b6b
mov rax, qword [0x14023d640]
mov byte [0x14023d649], 1
jmp 0x140043b6b
mov rax, qword [0x14023d640]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x140043aee
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x14006bf61.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140043ca0
Capabilities:
Create service

Disassembly:
jmp 0x140043ca0
push rdi
sub rsp, 0xa90
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140012230
test eax, eax
je 0x140043cd1
mov eax, 1
jmp 0x140043dd8
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140043ece
cmp eax, 0x104
je 0x140043ece
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140043f17
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140043df1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.1400151f0
test eax, eax
jne 0x140043daf
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14000f3d0
test eax, eax
je 0x140043daf
cmp eax, 0xc
je 0x140043eeb
cmp eax, 0x16
je 0x140043ee0
cmp eax, 0x22
je 0x140043ee0
cmp eax, 0x50
jne 0x140043ed5
lea r8, [rdi + 0x48]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x48
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], select
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140043eb2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.1400151f0
test eax, eax
jne 0x140043ea7
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14000f3d0
test eax, eax
je 0x140043ea7
cmp eax, 0xc
je 0x140043f0c
cmp eax, 0x16
je 0x140043f01
cmp eax, 0x22
je 0x140043f01
cmp eax, 0x50
jne 0x140043ef6
xor r9d, r9d
mov r8, rdi
jmp 0x140043db6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140043dc8
xor eax, eax
jmp 0x140043dd8
mov ecx, 0x80004005
call fcn.140015d70
int3
mov ecx, 0x80070057
call fcn.140015d70
int3
mov ecx, 0x8007000e
call fcn.140015d70
int3
mov ecx, 0x80004005
call fcn.140015d70
int3
mov ecx, 0x80070057
call fcn.140015d70
int3
mov ecx, 0x8007000e
call fcn.140015d70
int3
call fcn.140016e00
int3
Function at 0x140044050
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140044050
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.1400021c0
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140001780
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x26c], esi
jne 0x1400440d6
lea rcx, [rsp + 0x60]
call fcn.140014ad0
lea rdx, [rdi + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140044127
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
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.14000fde0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret