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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, r9
mov r15, r8
mov r14, rdx
xor ebx, ebx
mov dword [rax - 0x68], ebx
mov qword [rax - 0x48], rbx
mov qword [rax - 0x50], rbx
cmp rcx, 0xffffffff80000004
je 0x18002223e
lea r9, [rax - 0x50]
lea r8, [rax - 0x48]
lea rdx, [rax + 8]
call qword [sym.imp.KERNELBASE.dll_MapPredefinedHandleInternal]
mov edi, eax
test eax, eax
jne 0x180012c10
test r14, r14
jne 0x180022248
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x180022285
mov r14d, dword [rsi]
mov dword [rsp + 0x34], r14d
mov r12d, r14d
mov dword [rsp + 0x3c], r14d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0xa0]
jne 0x18002228d
mov ecx, 0xd
test edi, edi
jne 0x180012bf9
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
cmova edi, ecx
mov eax, 2
cmp edi, eax
je 0x180012c32
test edi, edi
jne 0x180012c10
cmp dword [rsp + 0x30], eax
je 0x1800222f2
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNELBASE.dll_CLOSE_LOCAL_HANDLE_INTERNAL]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
test rsi, rsi
je 0x180012c46
test r15, r15
je 0x180012c44
cmp dword [rsi], eax
jb 0x180012c44
mov word [r15], bx
mov dword [rsi], eax
mov edi, ebx
jmp 0x180012c02
mov eax, 6
jmp 0x180012c22
cmp word [r14], bx
je 0x180012b86
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x180012c10
jmp 0x180012b93
mov r14d, ebx
jmp 0x180012b9f
test al, 1
jne 0x1800222a1
lea rcx, [rsp + 0x40]
call fcn.1800582f8
nop
jmp 0x180012be4
and rax, 0xfffffffffffffffe
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea edx, [r8 + 5]
lea rcx, [0x18005e438]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x58], rax
jmp 0x180012be4
test rsi, rsi
je 0x180022386
test r15, r15
je 0x180022386
cmp r14d, dword [rsi]
cmovle r12d, dword [rsi]
movsxd r13, r12d
mov rcx, qword gs:[0x60]
mov r8, r13
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
jne 0x180022336
lea edi, [rax + 8]
jmp 0x180012c10
movsxd r8, dword [rsi]
mov rdx, r15
mov rcx, r12
call sub.msvcrt.dll_memcpy
shr r13, 1
mov r8d, r13d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movsxd rcx, r14d
shr rcx, 1
mov edx, 0xea
cmp eax, ecx
cmovg edi, edx
mov dword [rsi], eax
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x180012c10
mov edi, ecx
jmp 0x180012c10
Function at 0x180012cd0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edi, edi
mov dword [rsp + 0x20], 0x100
mov rbx, rcx
test rcx, rcx
je 0x180012d06
cmp word [rcx], di
jne 0x180012d2c
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x180012d30
cmp rax, 2
jbe 0x180012d49
cmp word [rcx], 0x5c
je 0x1800223c6
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x180012d76
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x180012d06
jmp 0x1800223da
xor eax, eax
jmp 0x180012d0b
cmp word [rcx + 2], 0x5c
jne 0x180012d49
add rbx, 4
jmp 0x180012d49
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x30]
mov ecx, 3
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x180012d76
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
sete dil
mov eax, edi
jmp 0x180012d0b

Function at 0x180012df0
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 8], 0x16b551f
jmp 0x1800020f3
Function at 0x1800135c0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNELBASE.dll_CreateProcessAsUserW]
add rsp, 0x68
ret

Function at 0x180013660
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
add dword [rbp - 0x18], 0x27fe3bd0
xor ebx, dword [rbp - 0x18]
xor ebx, edi
xor ebx, dword [rbp - 8]
sub edi, 0xee249585
sub edx, 0x9f648329
add ebx, edi
add ebx, edx
add ebx, eax
and ebx, 0x200
je 0x180006b10
ror ebx, 4
add ecx, 0x3612fce2
add esi, 0xd8ad5ef6
add eax, 0x6973650f
ror ecx, 0xe
add ebx, edi
add ebx, esi
and ebx, 0x100
je 0x1800018d1
rol edi, 0x11
add edx, 0xd52fd99f
xor edi, 0xc31789c3
add ebx, edi
add ebx, esi
and ebx, 0x80000
je 0x180005a88
rol eax, 6
sub edx, 0x8578b653
ror edi, 0x1b
rol eax, 0xa
xor eax, dword [rbp - 0x18]
jmp 0x180009130
add dword [rbp - 0x18], 0x82da867a
xor ebx, dword [rbp - 0x18]
sub ebx, 0x4d2bf248
xor ebx, dword [rbp - 0x18]
ror ebx, 0xf
add ebx, edx
add ebx, esi
and ebx, 0x40000000
je 0x1800060dd
sub edx, 0x510d35fd
xor edx, dword [rbp - 0x18]
add edi, 0x8cd28393
add ebx, 0x615c9d05
add ebx, ecx
add ebx, esi
and ebx, 0x2000000
je 0x180003e96
xor esi, 0xd6ae3290
rol edx, 9
add eax, 0xe04919e4
add ebx, ecx
add ebx, edi
add ebx, esi
and ebx, 1
je 0x180001182
ror ecx, 0x13
ror eax, 8
sub ebx, 0x3aedd36e
xor ecx, 0x21cfe64a
sub ebx, 0x2bce52a0
jmp 0x180009761
push rbp
mov rbp, rsp
sub rsp, 0x30
invalid
clc
invalid
push rbp
Function at 0x180013788
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov dword [rsp + 0x20], 0x105
mov byte [r8], bl
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800137d0
test rcx, rcx
jne 0x180022620
mov byte [r8], 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180017170
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp word [rdx], bx
je 0x1800137d0
cmp rdi, 1
jbe 0x180022650
cmp word [rdx], 0x5c
jne 0x180022650
cmp word [rdx + 2], 0x5c
jne 0x180022650
add rsi, 4
sub rdi, 2
jne 0x180022650
mov ebx, 0xc0000122
jmp 0x1800137d4
mov r15d, ebx
lea r12, str.localhost
lea rbp, [0x18007dc30]
mov eax, dword [rbp]
cmp rdi, rax
jne 0x18002267d
mov rcx, qword [r12]
mov r8, rdi
mov rdx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1800226c8
inc r15d
add rbp, 4
add r12, 8
cmp r15d, 2
jb 0x180022661
cmp rdi, 0xf
ja 0x1800226d1
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x1800226d1
mov eax, dword [rsp + 0x20]
cmp rdi, rax
jne 0x1800226d1
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1800226d1
mov byte [r14], 1
jmp 0x1800137d4
cmp word [rsi + rdi*2 - 2], 0x2e
lea rbp, [rdi - 1]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x105
lea rdx, [rsp + 0x30]
mov ecx, 3
cmovne rbp, rdi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x1800137d4
mov eax, dword [rsp + 0x20]
cmp rbp, rax
jne 0x1800137d4
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1800137d4
jmp 0x1800226c8
Function at 0x180013d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov dword [rsp + 0x20], r9d
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r12d, r9d
movzx r13d, r8w
xor esi, esi
mov dword [rsp + 0x60], esi
movzx ebx, word [rsp + 0xe8]
mov r8d, ebx
shl r8, 3
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x180022d54
mov edi, esi
mov dword [rsp + 0x64], esi
mov r15, qword [rsp + 0xf8]
nop word [rax + rax]
movzx eax, bx
cmp edi, eax
jae 0x180013e83
mov rcx, qword gs:[0x60]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9, rax
mov edi, dword [rsp + 0x64]
mov qword [r14 + rdi*8], rax
test rax, rax
je 0x180013e8d
mov r8, qword [r15 + rdi*8]
mov qword [rsp + 0x70], r8
mov edx, esi
mov dword [rsp + 0x68], edx
mov word [rax], si
mov qword [rax + 8], r8
test r8, r8
je 0x180013e89
mov eax, esi
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8]
add r8, 2
mov qword [rsp + 0x70], r8
test cx, cx
je 0x180013e64
cmp eax, 0xffff
jae 0x180013e98
lea edx, [rax + 2]
mov dword [rsp + 0x68], edx
mov eax, edx
jmp 0x180013e40
cmp eax, 0xffff
jae 0x180013e98
mov word [r9], dx
add ax, 2
mov word [r9 + 2], ax
inc edi
mov dword [rsp + 0x64], edi
jmp 0x180013de0
mov ecx, dword [rsp + 0x60]
jmp 0x180013ea7
mov dword [rax], esi
jmp 0x180013e78
mov ecx, 0xc0000017
mov dword [rsp + 0x60], ecx
jmp 0x180013ea7
inc edi
mov dword [rsp + 0x64], edi
mov ecx, 0xc000000d
mov dword [rsp + 0x60], ecx
jmp 0x180013ed6
test ecx, ecx
jne 0x180013f38
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x48], si
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], bx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
movzx r8d, r13w
movzx edx, word [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call sym.ADVAPI32.dll_ElfReportEventW
mov dword [rsp + 0x60], eax
mov ebx, esi
nop word [rax + rax]
cmp ebx, edi
jae 0x180013f6c
mov eax, ebx
mov r8, qword [r14 + rax*8]
test r8, r8
je 0x180013f68
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [rsp + 0x64]
inc ebx
jmp 0x180013f40
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [rsp + 0x60]
test ecx, ecx
js 0x180022d59
mov esi, 1
mov eax, esi
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0xc0000017
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x180013f95
Function at 0x180015a58
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
lea rcx, [0x180095ea0]
mov qword [rbp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x180095ec8], 2
je 0x180015aa8
lea rcx, [0x180095ea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlLSAAccessProviders
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x180015c30
mov rcx, qword [rbp + 0x58]
lea r8, [rbp + 0x40]
lea rdx, str.ProviderOrder
mov qword [rbp + 0x40], rbx
call fcn.180016d74
mov edi, eax
test eax, eax
jne 0x180015c30
mov r15, qword [rbp + 0x40]
mov edi, ebx
mov rax, r15
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], bx
jne 0x180015b07
test rcx, rcx
je 0x180023219
test rax, rax
je 0x180023219
mov r12d, 0x2c
mov edx, r12d
mov rcx, rax
inc edi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1800231c6
test edi, edi
je 0x180023219
mov dword [0x180095ecc], edi
cmp edi, 0x1555555
ja 0x1800231d5
lea rdx, [rdi + rdi*2]
mov ecx, 0x40
shl rdx, 6
call qword [sym.imp.KERNELBASE.dll_LocalAlloc]
mov rcx, rax
mov qword [0x180095ed0], rax
mov rax, rcx
neg rax
sbb edi, edi
not edi
and edi, 8
test rcx, rcx
je 0x180015c27
mov esi, ebx
mov r14, r15
mov edx, r12d
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
test rax, rax
jne 0x1800231e4
mov rcx, qword [rbp + 0x58]
mov rdx, r14
mov eax, esi
lea r8, [rax + rax*2]
shl r8, 6
add r8, qword [0x180095ed0]
call fcn.180016ac8
test rdi, rdi
jne 0x1800231ec
mov r14, rdi
test eax, eax
jne 0x180015bd9
inc esi
test rdi, rdi
jne 0x180015b92
test esi, esi
je 0x1800231f9
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x50]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RequireUniqueAccessibility
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x180023203
cmp eax, 2
cmove edi, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x180015c3f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x180015c55
call fcn.180016c30
mov edi, eax
test eax, eax
jne 0x180015c55
or dword [0x180095ec8], 2
mov ebx, edi
jmp 0x180015a8a
add rax, 2
jne 0x180015b29
jmp 0x180015b40
mov rcx, rbx
mov qword [0x180095ed0], rbx
jmp 0x180015b77
mov word [rax], bx
jmp 0x180015baa
mov word [rdi], r12w
add rdi, 2
jmp 0x180015bd0
mov edi, 0x4b4
jmp 0x180015c27
cmp dword [rbp + 0x48], 1
jne 0x180015c27
or dword [0x180095ec8], 1
jmp 0x180015c27
mov edi, 0xd
jmp 0x180015c27

Function at 0x180015dd0
Capabilities:
Get hostname

Disassembly:
mov r9, r8
xor r8d, r8d
jmp sym.ADVAPI32.dll_RegConnectRegistryExW
Function at 0x180015df0
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov dword [rsp + 0x30], 0x10
mov rbx, r9
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18001f996
mov rdx, rbx
mov rcx, rsi
call fcn.180015e50
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180017170
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp word [rcx], r14w
je 0x180015e2a
test ebp, 0xfffffffe
je 0x18001f9b2
mov eax, 0x57
jmp 0x180015e35
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18001fa00
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x180015e2a
cmp word [rdi], 0x5c
jne 0x18001fa00
cmp word [rdi + 2], 0x5c
jne 0x18001fa00
lea rdx, [rdi + 4]
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x180015e2a
mov r9, rsi
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rcx, rdi
call fcn.180038920
test eax, eax
jne 0x180015e35
or qword [rbx], 1
jmp 0x180015e35

Function at 0x180016790
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x48
cmp rcx, 0xffffffff80000004
je 0x1800167c5
xor eax, eax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExA]
add rsp, 0x48
ret
mov eax, 6
jmp 0x1800167c0
Function at 0x180016d74
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x30], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x68], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x180016e07
mov edx, dword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNELBASE.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x180023276
lea rcx, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18002327b
cmp dword [rsp + 0x30], 2
je 0x180016e1e
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x18002328d
mov edx, ebp
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNELBASE.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180023276
mov rcx, qword [rdi]
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18002329a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rsi
test ebx, ebx
je 0x180016e07
jmp 0x18002327b
mov ebx, 8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi], 0
jmp 0x180016e07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180016e72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x180016e72
Function at 0x180023ef8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x180096220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp qword [0x180096910], rdi
je 0x180023f21
mov edi, 1
jmp 0x180023f88
xor edx, edx
lea rcx, str.feclient.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180096918], rax
test rax, rax
jne 0x180023f51
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_load_client_dll__error___d_n
jmp 0x180023f80
lea rdx, str.FeClientInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180023f99
mov rcx, qword [0x180096918]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_locate_init_routine__error___d_n
mov edx, eax
call qword [sym.imp.ntdll.dll_DbgPrint]
lea rcx, [0x180096220]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x180023fd4
lea rdx, [0x180096910]
mov ecx, 0x10000
call qword [0x18006e698]
lea rcx, [0x180096220]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x180023fcf
mov rcx, qword [0x180096918]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x180023fd4
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180024a50
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ChangeServiceConfigA]
add rsp, 0x68
ret

Function at 0x180024ac0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
add rsp, 0x68
ret

Function at 0x180024ba0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNELBASE.dll_CreateProcessAsUserA]
add rsp, 0x68
ret
Function at 0x180024c10
Capabilities:
Create service

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [rsp + 0xe0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xd8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xd0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_CreateServiceA]
add rsp, 0x78
ret

Function at 0x180024ca0
Capabilities:
Create service

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [rsp + 0xe0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xd8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xd0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
add rsp, 0x78
ret

Function at 0x1800257d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueA]
add rsp, 0x48
ret