joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ee50
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.140009640
mov rbp, qword [rsp + 0x28]
cmp eax, 0xffffffff
je 0x14000ef27
test eax, eax
je 0x14000ef73
movzx r8d, byte [rbp + 0xc]
mov ecx, r8d
dec ecx
je 0x14000ef00
sub ecx, 6
je 0x14000eef2
cmp ecx, 2
je 0x14000eedf
lea rdx, str.ProcessLoop_encountered_unexpected_request__2.2x
lea rcx, [rsp + 0x30]
call fcn.140197bf8
lea rcx, [rsp + 0x30]
call fcn.14000c360
jmp 0x14000ef7b
mov rcx, qword [rdi + 8]
mov rdx, rbp
call fcn.14000f0b0
mov esi, eax
jmp 0x14000ef7b
mov rcx, qword [rdi + 8]
call fcn.14000a310
jmp 0x14000ef7b
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 0x14000ef20
lea rdx, str.Shutdown_request_has_been_received_from_an_external_process
xor ecx, ecx
call qword [rdi + 0x28]
mov esi, 0xfffffffe
jmp 0x14000ef7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rdi + 8]
mov esi, eax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ef73
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 0x14000ef50
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 0x14000ef98
mov rcx, rbp
call fcn.1401982c4
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14019aa20
mov rbp, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
Function at 0x14000f370
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.14002666c
mov rbx, rax
test rax, rax
je 0x14000f538
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 0x14000f442
mov rcx, rbx
call fcn.14000f570
mov dword [0x14027d318], edi
xor eax, eax
jmp 0x14000f53d
mov rcx, qword [0x14027d310]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x14027d318]
cmp ecx, dword [rsi + 0x1c]
jb 0x14000f494
lea rdx, [rsp + 0x30]
call fcn.14000f730
mov ecx, dword [0x14027d394]
cmp dword [0x14027d350], ecx
cmova ecx, dword [0x14027d350]
mov dword [0x14027d394], ecx
mov rcx, qword [0x14027d310]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x14000f53d
mov eax, dword [0x14027d308]
inc ecx
cmp ecx, eax
mov dword [0x14027d318], ecx
cmova eax, ecx
mov rcx, qword [0x14027d310]
mov dword [0x14027d308], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000f570]
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 0x14000f52b
lea rdx, str.ProcessLoop_CreateThread_failed.
lea rcx, [rsp + 0x40]
call fcn.140197bf8
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 2]
call qword [rsi + 0x28]
mov rcx, qword [0x14027d310]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14027d310]
dec dword [0x14027d318]
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 0x14000f53d
mov eax, 6
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14019aa20
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 0x14000fba0
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.140011490
mov rbx, rax
mov rcx, qword [0x14027d360]
cmp rax, rcx
je 0x14000fbfd
lea rdx, [rax + 0x20]
mov rcx, rsi
call fcn.140011130
mov rcx, qword [0x14027d360]
test eax, eax
mov qword [rsp + 0x20], rbx
jns 0x14000fc02
mov qword [rsp + 0x20], rcx
lea rax, [rsp + 0x20]
mov rax, qword [rax]
cmp rax, rcx
je 0x14000fc18
mov rax, qword [rax + 0x40]
jmp 0x14000fd28
mov rax, qword [0x14027d380]
sub rax, qword [0x14027d378]
test rax, 0xffffffffffffffc0
jne 0x14000fc42
lea rcx, str.TS_CONFIG
call fcn.140198258
mov rdx, rax
call fcn.140012d60
mov ecx, 0x80
call fcn.14002666c
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000fc63
mov rcx, rax
call fcn.140014f50
mov rbx, rax
jmp 0x14000fc65
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 0x14000fcb8
lea rdx, [rbx + 0x10]
jmp 0x14000fcba
xor edx, edx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + gethostname]
test rbx, rbx
je 0x14000fcce
lea rdx, [rbx + 0x18]
jmp 0x14000fcd0
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 0x14000fcfc
mov rdx, qword [rsi]
jmp 0x14000fcff
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.1400111b0
mov qword [rax], rbx
mov rax, rbx
jmp 0x14000fd28
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14019aa20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140020ab0
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 0x140020ade
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022c10
cmp byte [0x140271c50], 0
jne 0x140020b29
lea rcx, [0x1401cb250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020b19
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140271c50], 1
mov qword [0x140271c48], rax
jmp 0x140020b30
mov rax, qword [0x140271c48]
mov byte [0x140271c50], 1
jmp 0x140020b30
mov rax, qword [0x140271c48]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140020b4f
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 0x140022c84
lea rcx, [0x1401cb250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022ca6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022ca6
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 0x140022ca6
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 0x140021eb0
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.140022070
test eax, eax
je 0x140021ee1
mov eax, 1
jmp 0x140022054
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 0x140021f21
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 0x14002204c
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 0x140021f43
movsd xmm0, qword [str.__n]
movzx eax, word [0x1401cbf80]
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 0x140021f70
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 0x140021f80
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 0x140022028
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 0x140022044
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140024400
mov eax, 1
mov rbx, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14019aa20
add rsp, 0x4a0
pop rsi
ret
Function at 0x1400221a0
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 0x1400221fb
inc ebx
cmp ebx, 3
jb 0x1400221e0
cmp dword [rdi + 0xce8], r14d
je 0x1400222cf
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 0x140022287
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.14019aa20
add rsp, 0x88
pop r14
pop rdi
pop rbp
pop rbx
ret
lea rcx, [rdi + 0x158]
lea rdx, [0x14022906c]
call fcn.140197bc8
mov rbx, rax
test rax, rax
je 0x140022265
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140002df0
lea r8, [rsp + 0x50]
lea rdx, [0x140227cb4]
mov rcx, rbx
call fcn.14019c0ec
mov rcx, rbx
call fcn.14019be84
jmp 0x140022265
lea rcx, str.TrilMsg.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14002226d
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.14019b87c
mov rcx, qword [rdi + 0xcf0]
call fcn.14019bfc0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002226d
Function at 0x140022ac0
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.1400225a0
mov ebx, eax
test eax, eax
jne 0x140022bd7
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 0x140022bb1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140022ac0
mov ebx, eax
test eax, eax
jne 0x140022bd7
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 0x140022b60
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140022bc6
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.140020ab0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140022be7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019aa20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022c10
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 0x140020ade
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022c10
cmp byte [0x140271c50], 0
jne 0x140020b29
lea rcx, [0x1401cb250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020b19
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140271c50], 1
mov qword [0x140271c48], rax
jmp 0x140020b30
mov rax, qword [0x140271c48]
mov byte [0x140271c50], 1
jmp 0x140020b30
mov rax, qword [0x140271c48]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140020b4f
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 0x140022c84
lea rcx, [0x1401cb250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022ca6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022ca6
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 0x140022ca6
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 0x140022f40
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 0x140022fce
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 0x140022fce
call fcn.14001fe90
mov ebx, eax
jmp 0x1400230f6
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140022fef
call fcn.14001fe90
jmp 0x1400230e5
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 0x140023012
call fcn.14001fe90
jmp 0x1400230e5
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 0x140023034
mov ebx, 0x8007000e
jmp 0x1400230e7
mov ecx, eax
test eax, eax
je 0x14002306c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140023062
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14002306c
lea rcx, [rsp + 0x70]
call fcn.14001fc20
jmp 0x140023076
mov ecx, 0x80070216
call fcn.140020790
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140023089
cmp qword [rsp + 0x70], 0
jne 0x140023098
mov ebx, 0x8007000e
jmp 0x1400230e7
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 0x1400230c2
call fcn.14001fe90
jmp 0x1400230e5
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.140022cc0
mov ebx, eax
test rdi, rdi
je 0x1400230f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14002310d
lea rcx, [rsp + 0x70]
call fcn.140028550
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14019aa20
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140023130
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 0x14002334c
mov rcx, rbx
call fcn.140024fe0
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.1400225a0
mov edi, eax
test eax, eax
jne 0x140023337
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 0x140023328
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 0x1400232ad
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.140021eb0
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x1400232f2
cmp qword [rbx], 0
je 0x1400232f2
nop dword [rax]
mov ecx, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov edi, eax
test eax, eax
js 0x140023321
call qword [rbx + gethostname]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rbx]
call fcn.1400200f0
mov edi, eax
test eax, eax
js 0x140023321
add rbx, 0x48
cmp qword [rbx], 0
jne 0x1400232c0
xor r8d, r8d
mov edx, r15d
lea rcx, [0x14027dcc0]
call fcn.14001fdb0
mov edi, eax
test eax, eax
js 0x140023321
mov rax, qword [0x14027d0c0]
test rax, rax
je 0x140023321
mov rcx, qword [0x14027d048]
call rax
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
test rsi, rsi
je 0x140023337
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x60], 0
je 0x14002334a
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 0x140024200
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 0x1400242f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140024308
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 0x140024314
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140024310
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