joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000edc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor esi, esi
lea r9, str.Dir___Srv
lea r8d, [rsi + 0xa]
lea rdx, [r11 - 0x60]
call fcn.140009600
mov rbp, qword [rsp + 0x28]
cmp eax, 0xffffffff
je 0x14000ee97
test eax, eax
je 0x14000eee3
movzx r8d, byte [rbp + 0xc]
mov ecx, r8d
dec ecx
je 0x14000ee70
sub ecx, 6
je 0x14000ee62
cmp ecx, 2
je 0x14000ee4f
lea rdx, str.ProcessLoop_encountered_unexpected_request__2.2x
lea rcx, [rsp + 0x30]
call fcn.140197aa8
lea rcx, [rsp + 0x30]
call fcn.14000c2d0
jmp 0x14000eeeb
mov rcx, qword [rdi + 8]
mov rdx, rbp
call fcn.14000f020
mov esi, eax
jmp 0x14000eeeb
mov rcx, qword [rdi + 8]
call fcn.14000a280
jmp 0x14000eeeb
mov ecx, dword [rbp + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
call sub.KERNEL32.dll_GetCurrentProcessId
cmp ebx, eax
je 0x14000ee90
lea rdx, str.Shutdown_request_has_been_received_from_an_external_process
xor ecx, ecx
call qword [rdi + 0x28]
mov esi, 0xfffffffe
jmp 0x14000eeeb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rdi + 8]
mov esi, eax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000eee3
mov edx, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
nop dword [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
je 0x14000eec0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 8], 0xffffffffffffffff
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
test rbp, rbp
je 0x14000ef08
mov rcx, rbp
call fcn.140198554
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14019ac00
mov rbp, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
Function at 0x14000f2e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
xor edi, edi
mov rbp, r9
lea ecx, [rdi + 0x48]
mov r14, r8
mov r15, rdx
call fcn.14002651c
mov rbx, rax
test rax, rax
je 0x14000f4a8
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov qword [rbx], r15
mov rax, qword [rsi + 0x30]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x490]
mov qword [rbx + 0x10], r14
mov dword [rbx + 0x18], eax
movzx eax, byte [rsp + 0x498]
mov byte [rbx + 0x1c], al
mov eax, dword [rsp + 0x4a0]
mov dword [rbx + 0x20], eax
mov rax, qword [rsp + 0x4a8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x38], rdi
cmp dword [rsi + 0x1c], edi
jne 0x14000f3b2
mov rcx, rbx
call fcn.14000f4e0
mov dword [0x14027d2d8], edi
xor eax, eax
jmp 0x14000f4ad
mov rcx, qword [0x14027d2d0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x14027d2d8]
cmp ecx, dword [rsi + 0x1c]
jb 0x14000f404
lea rdx, [rsp + 0x30]
call fcn.14000f6a0
mov ecx, dword [0x14027d354]
cmp dword [0x14027d310], ecx
cmova ecx, dword [0x14027d310]
mov dword [0x14027d354], ecx
mov rcx, qword [0x14027d2d0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x14000f4ad
mov eax, dword [0x14027d2c8]
inc ecx
cmp ecx, eax
mov dword [0x14027d2d8], ecx
cmova eax, ecx
mov rcx, qword [0x14027d2d0]
mov dword [0x14027d2c8], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000f4e0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000f49b
lea rdx, str.ProcessLoop_CreateThread_failed.
lea rcx, [rsp + 0x40]
call fcn.140197aa8
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 2]
call qword [rsi + 0x28]
mov rcx, qword [0x14027d2d0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14027d2d0]
dec dword [0x14027d2d8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14000f4ad
mov eax, 6
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14019ac00
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000fb10
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
mov rdx, rcx
call fcn.140011400
mov rbx, rax
mov rcx, qword [0x14027d320]
cmp rax, rcx
je 0x14000fb6d
lea rdx, [rax + 0x20]
mov rcx, rsi
call fcn.1400110a0
mov rcx, qword [0x14027d320]
test eax, eax
mov qword [rsp + 0x20], rbx
jns 0x14000fb72
mov qword [rsp + 0x20], rcx
lea rax, [rsp + 0x20]
mov rax, qword [rax]
cmp rax, rcx
je 0x14000fb88
mov rax, qword [rax + 0x40]
jmp 0x14000fc98
mov rax, qword [0x14027d340]
sub rax, qword [0x14027d338]
test rax, 0xffffffffffffffc0
jne 0x14000fbb2
lea rcx, str.TS_CONFIG
call fcn.140198108
mov rdx, rax
call fcn.140012cd0
mov ecx, 0x80
call fcn.14002651c
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000fbd3
mov rcx, rax
call fcn.140014ec0
mov rbx, rax
jmp 0x14000fbd5
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, qword [sym.imp.xerces_c_3_1.dll_class_xercesc_3_1::MemoryManager____ptr64___ptr64_xercesc_3_1::XMLPlatformUtils::fgMemoryManager]
mov rcx, qword [rcx]
call qword [sym.imp.xerces_c_3_1.dll_public:_static_class_xercesc_3_1::SAX2XMLReader____ptr64___cdecl_xercesc_3_1::XMLReaderFactory::createXMLReader_class_xercesc_3_1::MemoryManager__const___ptr64__class_xercesc_3_1::XMLGrammarPool__const___ptr64_]
mov rdi, rax
mov qword [rsp + 0x28], rax
mov r9, qword [rax]
xor r8d, r8d
mov rdx, qword [sym.imp.xerces_c_3_1.dll_wchar_t_const__const_const_xercesc_3_1::XMLUni::fgSAX2CoreValidation]
mov rcx, rax
call qword [r9 + 0x58]
mov r9, qword [rdi]
xor r8d, r8d
mov rdx, qword [sym.imp.xerces_c_3_1.dll_wchar_t_const__const_const_xercesc_3_1::XMLUni::fgSAX2CoreNameSpaces]
mov rcx, rdi
call qword [r9 + 0x58]
nop
test rbx, rbx
je 0x14000fc28
lea rdx, [rbx + 0x10]
jmp 0x14000fc2a
xor edx, edx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + gethostname]
test rbx, rbx
je 0x14000fc3e
lea rdx, [rbx + 0x18]
jmp 0x14000fc40
xor edx, edx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
cmp qword [rsi + 0x18], 0x10
jb 0x14000fc6c
mov rdx, qword [rsi]
jmp 0x14000fc6f
mov rdx, rsi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rdx, rsi
call fcn.140011120
mov qword [rax], rbx
mov rax, rbx
jmp 0x14000fc98
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14019ac00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140020960
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14002098e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022ac0
cmp byte [0x140271c10], 0
jne 0x1400209d9
lea rcx, [0x1401cb340]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400209c9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140271c10], 1
mov qword [0x140271c08], rax
jmp 0x1400209e0
mov rax, qword [0x140271c08]
mov byte [0x140271c10], 1
jmp 0x1400209e0
mov rax, qword [0x140271c08]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400209ff
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140022b34
lea rcx, [0x1401cb340]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022b56
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022b56
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140022b56
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140021d60
Capabilities:
Create service

Disassembly:
push rsi
sub rsp, 0x4a0
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, rcx
call fcn.140021f20
test eax, eax
je 0x140021d91
mov eax, 1
jmp 0x140021f04
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x4c0], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ecx, ecx
mov rdi, rax
test rax, rax
jne 0x140021dd1
lea r8, [rsi + 0xac0]
lea rdx, str.Couldnt_open_service_manager
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140021efc
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov qword [rsp + 0x4b8], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x70]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140021df3
movsd xmm0, qword [str.__n]
movzx eax, word [0x1401cc070]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rsp + 0x70]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140021e20
xor edx, edx
nop dword [rax]
movzx eax, word [rsi + rdx*2 + 0xac0]
lea rdx, [rdx + 1]
mov word [rcx + rdx*2 - 2], ax
test ax, ax
jne 0x140021e30
mov r8, qword [rsi + 0xab8]
xor ecx, ecx
lea rax, str.RPCSS
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea rdx, [rsi + 0xac0]
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140021ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r8, [rsi + 0xac0]
lea rdx, str.Couldnt_create_service
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140021ef4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1400242b0
mov eax, 1
mov rbx, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x4a0
pop rsi
ret
Function at 0x140022050
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rdi
push r14
sub rsp, 0x88
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx ebp, dx
xor r14d, r14d
lea rdx, [rsp + 0xc8]
add rdx, 0xfffffffffffffff8
mov rdi, rcx
mov ebx, r14d
nop dword [rax]
mov rcx, qword [rdx + 8]
lea rdx, [rdx + 8]
mov eax, ebx
mov qword [rsp + rax*8 + 0x60], rcx
test rcx, rcx
je 0x1400220ab
inc ebx
cmp ebx, 3
jb 0x140022090
cmp dword [rdi + 0xce8], r14d
je 0x14002217f
lea rdx, [rdi + 0xac0]
xor ecx, ecx
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140022137
mov r9d, dword [rsp + 0xc0]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
xor r8d, r8d
movzx edx, bp
mov rcx, rsi
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x88
pop r14
pop rdi
pop rbp
pop rbx
ret
lea rcx, [rdi + 0x158]
lea rdx, [0x1402291bc]
call fcn.140197a78
mov rbx, rax
test rax, rax
je 0x140022115
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140002df0
lea r8, [rsp + 0x50]
lea rdx, [0x140227e04]
mov rcx, rbx
call fcn.14019c35c
mov rcx, rbx
call fcn.14019c0f4
jmp 0x140022115
lea rcx, str.TrilMsg.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14002211d
mov r8d, dword [rsp + 0xc0]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov rdx, rbx
mov ecx, 0x2900
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x58]
call fcn.14019ba5c
mov rcx, qword [rdi + 0xcf0]
call fcn.14019c230
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002211d
Function at 0x140022970
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.140022450
mov ebx, eax
test eax, eax
jne 0x140022a87
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140022a61
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140022970
mov ebx, eax
test eax, eax
jne 0x140022a87
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140022a10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140022a76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.140020960
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140022a97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019ac00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022ac0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14002098e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022ac0
cmp byte [0x140271c10], 0
jne 0x1400209d9
lea rcx, [0x1401cb340]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400209c9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140271c10], 1
mov qword [0x140271c08], rax
jmp 0x1400209e0
mov rax, qword [0x140271c08]
mov byte [0x140271c10], 1
jmp 0x1400209e0
mov rax, qword [0x140271c08]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400209ff
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140022b34
lea rcx, [0x1401cb340]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022b56
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022b56
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140022b56
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140022df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140022e7e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140022e7e
call fcn.14001fd40
mov ebx, eax
jmp 0x140022fa6
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140022e9f
call fcn.14001fd40
jmp 0x140022f95
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140022ec2
call fcn.14001fd40
jmp 0x140022f95
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140022ee4
mov ebx, 0x8007000e
jmp 0x140022f97
mov ecx, eax
test eax, eax
je 0x140022f1c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140022f12
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140022f1c
lea rcx, [rsp + 0x70]
call fcn.14001fad0
jmp 0x140022f26
mov ecx, 0x80070216
call fcn.140020640
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140022f39
cmp qword [rsp + 0x70], 0
jne 0x140022f48
mov ebx, 0x8007000e
jmp 0x140022f97
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140022f72
call fcn.14001fd40
jmp 0x140022f95
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140022b70
mov ebx, eax
test rdi, rdi
je 0x140022fa6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140022fbd
lea rcx, [rsp + 0x70]
call fcn.140020cf0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140022fe0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14d, r8d
mov r15d, edx
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1400231fc
mov rcx, rbx
call fcn.140024e90
mov rax, qword [rbx]
xor r9d, r9d
lea edx, [r9 + 0x64]
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [rax + 0x40]
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x70], r12
mov r9d, 0x20006
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x60]
call fcn.140022450
mov edi, eax
test eax, eax
jne 0x1400231e7
mov esi, r12d
mov dword [rsp + 0x80], r12d
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.768633E2_A3F9_4018_A3AF_E2E3E0ECD9F7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400231d8
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], r12d
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14d, r14d
je 0x14002315d
mov dword [rsp + 0x28], 0x22
lea rax, str.TrilliumRMatcher
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], reloc.WS2_32.dll_select
lea rax, str._Service
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.ServiceParameters
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call fcn.140021d60
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x1400231a2
cmp qword [rbx], 0
je 0x1400231a2
nop dword [rax]
mov ecx, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov edi, eax
test eax, eax
js 0x1400231d1
call qword [rbx + gethostname]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rbx]
call fcn.14001ffa0
mov edi, eax
test eax, eax
js 0x1400231d1
add rbx, 0x48
cmp qword [rbx], 0
jne 0x140023170
xor r8d, r8d
mov edx, r15d
lea rcx, [0x14027dc80]
call fcn.14001fc60
mov edi, eax
test eax, eax
js 0x1400231d1
mov rax, qword [0x14027d080]
test rax, rax
je 0x1400231d1
mov rcx, qword [0x14027d008]
call rax
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
test rsi, rsi
je 0x1400231e7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x60], 0
je 0x1400231fa
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400240b0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1400241a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x1400241b8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400241c4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400241c0
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret