joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036ad0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or ebx, 0xffffffff
mov rsi, rcx
cmp qword [0x14026c550], 0
jne 0x140036af3
xor eax, eax
jmp 0x140036b22
lea rcx, [rsp + 0x28]
mov rdx, rsi
sub rcx, 8
call fcn.140025830
mov rcx, qword [0x14026c550]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140170a90
mov rcx, rax
call fcn.140170a90
mov rdi, rax
test rax, rax
jne 0x140036b6f
mov rax, qword gs:[0x58]
mov edx, 0x2fe0
mov rcx, qword [rax]
mov rdx, qword [rdx + rcx]
test rdx, rdx
jne 0x140036b54
call fcn.140174cc4
mov rdx, rax
mov eax, dword [rdx]
sub eax, 0x424
neg eax
sbb eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036b9b
mov r8, rsi
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x670003
call fcn.140028e10
jmp 0x140036b9d
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036bc4
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028e10
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140036be0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
or ebx, 0xffffffff
mov rdi, rcx
cmp qword [0x14026c550], 0
je 0x140036caa
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.140025830
mov rcx, qword [0x14026c550]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140170a90
mov rsi, rax
test rax, rax
je 0x140036caa
lea rax, [rsp + 0x78]
xor edx, edx
lea r9d, [rbx + 0x25]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036c7d
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x670003
call fcn.140028e10
test eax, eax
jne 0x140036c81
mov ebx, dword [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036cbe
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028e10
jmp 0x140036cbe
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x670005
call fcn.140028e10
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140036d80
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [0x140259350]
or r14d, 0xffffffff
mov r13, r9
mov rbx, rdx
mov rdi, rcx
cmp eax, r14d
jne 0x140036db5
call fcn.1400377e0
mov r15d, dword [rsp + 0xc0]
cmp eax, 2
mov esi, 0x110
mov qword [rsp + 0xa0], r12
mov ecx, reloc.WS2_32.dll_recv
mov eax, r15d
cmovg esi, ecx
neg eax
sbb ebp, ebp
cmp qword [0x14026c550], 0
je 0x140036ee8
lea rcx, [rsp + 0x98]
mov rdx, rdi
add rcx, 0xfffffffffffffff8
call fcn.140025830
mov rcx, qword [0x14026c550]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140170a90
mov r12, rax
test rax, rax
je 0x140036ee8
lea rcx, [rsp + 0x98]
mov rdx, rbx
add rcx, 0xfffffffffffffff8
call fcn.140025830
lea rcx, [rsp + 0x98]
mov rdx, r13
add rcx, 0xfffffffffffffff8
mov rbx, qword [rax]
call fcn.140025830
mov qword [rsp + 0x50], rbx
lea r8d, [rbp + 3]
xor ebx, ebx
mov edx, esi
mov qword [rsp + 0x48], rbx
mov rcx, r12
mov rax, qword [rax]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036eb1
mov r8, rdi
lea rdx, str.Failed_changing_service_config__s:__m
mov ecx, 0x670003
call fcn.140028e10
jmp 0x140036eb4
mov r14d, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140036edb
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028e10
test r14d, r14d
je 0x140036f12
mov rbx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], r15d
mov r9d, 1
mov r8, r13
mov dword [rsp + 0x20], 0xbb8
mov rdx, rbx
mov rcx, rdi
call fcn.1400367e0
test eax, eax
je 0x140036f12
or eax, 0xffffffff
jmp 0x140036f31
mov r8d, dword [rsp + 0xc8]
mov rcx, rdi
mov rdx, qword [rsp + 0xb0]
call fcn.140036f50
neg eax
sbb eax, eax
and eax, 0xfffffffe
mov r12, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140036f50
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
xor r14d, r14d
mov rbp, rdx
cmp qword [0x14026c550], r14
mov esi, r8d
mov rdx, rcx
jne 0x140036f7f
mov ebx, r14d
jmp 0x140036fb1
lea rcx, [rsp + 0xa8]
sub rcx, 8
call fcn.140025830
mov rcx, qword [0x14026c550]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140170a90
mov rbx, rax
lea rcx, [rsp + 0xa8]
mov rdx, rbp
sub rcx, 8
or edi, 0xffffffff
call fcn.140025830
lea r8, [rsp + 0xc8]
lea edx, [rdi + 2]
mov rcx, qword [rax]
mov qword [rsp + 0xc8], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x14003700d
lea rdx, str.Failed_changing_service_description:__m
mov ecx, 0x670003
call fcn.140028e10
test eax, eax
jne 0x1400370ee
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x50], 1
movdqu xmmword [rsp + 0x40], xmm0
test esi, esi
je 0x140037073
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0xea60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], 0x1d4c0
mov dword [rsp + 0x38], 0x2a300
mov dword [rsp + 0x50], 3
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x1400370a8
lea rdx, str.Failed_changing_service_failure_action:__m
mov ecx, 0x670003
call fcn.140028e10
test eax, eax
jne 0x1400370ee
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea r8, [rsp + 0x60]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x1400370eb
lea rdx, str.failed_SetServiceObjectSecurity____m
mov ecx, 0x670003
call fcn.140028e10
jmp 0x1400370ee
mov edi, r14d
test rbx, rbx
je 0x14003711a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x14003711a
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028e10
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140037470
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rbx, rdx
lea rdi, [rsp + 0x88]
mov rdx, qword [rsp + 0xb8]
mov rsi, rcx
add rdi, 0xfffffffffffffff8
mov r14d, r9d
mov rcx, rdi
mov r15d, r8d
call fcn.140025830
mov rdx, rbx
mov rcx, rdi
mov rbp, qword [rax]
call fcn.140025830
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rax]
call fcn.140025830
xor ecx, ecx
mov r9d, r15d
mov qword [rsp + 0x60], rcx
mov r8, rbx
mov qword [rsp + 0x58], rcx
mov rdx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x14026c550]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.140170a90

Function at 0x1400375b0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140037616
add rsp, 0x60
pop rbx
ret
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x14003764d
lea rdx, str.failed_CheckTokenMembership__:__m
mov ecx, 0x610003
call fcn.140028e10
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
Function at 0x1400376d0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
sub rcx, 8
lea r8, [fcn.140026da0]
lea rdx, [rsp + 0x38]
call fcn.140025270
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140037714
call fcn.140174cec
mov qword [rbx], 0
xor edx, edx
lea r8, [rsp + 0x30]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
movsxd rcx, eax
call fcn.140170a40
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14003779c
mov rax, qword gs:[0x58]
mov r8d, 0x2fe0
mov rcx, qword [rax]
mov rax, qword [r8 + rcx]
test rax, rax
jne 0x140037758
call fcn.140174cc4
mov edx, dword [rsp + 0x30]
cmp dword [rax], 0xea
jne 0x14003779c
mov rcx, qword [rsp + 0x38]
call fcn.140026f40
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov ecx, 1
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14003779c
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1400263f0
add rsp, 0x20
pop rbx
ret
lea rdx, str.failed_GetComputerName:__m
mov ecx, 0x610003
call fcn.140028e10
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400377e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140259350]
cmp ecx, 0xffffffff
jne 0x1400378eb
mov qword [rsp + 0x20], rbx
xor ebx, ebx
cmp dword [0x140259354], ecx
jne 0x1400378e6
cmp dword [0x14026c560], ebx
jne 0x140037836
lea rcx, [0x14026c560]
mov dword [0x14026c560], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
je 0x1400378f2
mov edx, dword [0x14026c564]
movzx r8d, word [0x14026c674]
mov eax, dword [0x14026c568]
cmp edx, 0xa
jg 0x1400378ae
jne 0x14003785c
test eax, eax
jns 0x1400378ae
mov ebx, 6
jmp 0x1400378b3
cmp edx, 6
jg 0x140037855
jne 0x14003788b
cmp eax, 3
jge 0x140037855
cmp eax, 2
jge 0x140037884
cmp eax, 1
jge 0x14003787d
test eax, eax
js 0x1400378a7
mov ebx, 3
jmp 0x1400378b3
mov ebx, 4
jmp 0x1400378b3
mov ebx, 5
jmp 0x1400378b3
cmp edx, 5
jg 0x1400378a7
jne 0x1400378b3
cmp eax, 2
jge 0x1400378a7
cmp eax, 1
jge 0x1400378a7
test eax, eax
js 0x1400378b3
mov ebx, 1
jmp 0x1400378b3
mov ebx, 2
jmp 0x1400378b3
mov ebx, 7
mov dword [0x140259358], eax
mov ecx, ebx
mov eax, dword [0x14026c56c]
mov dword [0x14025935c], eax
mov eax, dword [0x14026c570]
mov dword [0x140259360], eax
mov dword [0x140259350], ebx
mov dword [0x140259354], edx
mov dword [0x140259364], r8d
mov rbx, qword [rsp + 0x20]
mov eax, ecx
add rsp, 0x28
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x61
call fcn.14003e580
int3
Function at 0x140037a20
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [0x140259354]
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbp, rcx
cmp r10d, 0xffffffff
je 0x140037a78
mov ebx, dword [0x140259350]
mov eax, dword [0x140259358]
mov edi, dword [0x14025935c]
mov r11d, dword [0x140259360]
mov r9d, dword [0x140259364]
jmp 0x140037b5d
cmp dword [0x14026c560], ebx
jne 0x140037aa8
lea rcx, [0x14026c560]
mov dword [0x14026c560], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140170a40
test rax, rax
je 0x140037baf
mov r10d, dword [0x14026c564]
mov eax, dword [0x14026c568]
mov edi, dword [0x14026c56c]
mov r11d, dword [0x14026c570]
movzx r9d, word [0x14026c674]
cmp r10d, 0xa
jg 0x140037b31
jne 0x140037add
test eax, eax
jns 0x140037b31
mov ebx, 6
jmp 0x140037b36
cmp r10d, 6
jg 0x140037ad6
jne 0x140037b0d
cmp eax, 3
jge 0x140037ad6
cmp eax, 2
jge 0x140037b06
cmp eax, 1
jge 0x140037aff
test eax, eax
js 0x140037b2a
mov ebx, 3
jmp 0x140037b36
mov ebx, 4
jmp 0x140037b36
mov ebx, 5
jmp 0x140037b36
cmp r10d, 5
jg 0x140037b2a
jne 0x140037b36
cmp eax, 2
jge 0x140037b2a
cmp eax, 1
jge 0x140037b2a
test eax, eax
js 0x140037b36
mov ebx, 1
jmp 0x140037b36
mov ebx, 2
jmp 0x140037b36
mov ebx, 7
mov dword [0x140259350], ebx
mov dword [0x140259354], r10d
mov dword [0x140259358], eax
mov dword [0x14025935c], edi
mov dword [0x140259360], r11d
mov dword [0x140259364], r9d
test rbp, rbp
je 0x140037b65
mov dword [rbp], ebx
test r15, r15
je 0x140037b6d
mov dword [r15], r10d
test r14, r14
je 0x140037b75
mov dword [r14], eax
test rsi, rsi
je 0x140037b7c
mov dword [rsi], edi
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140037b89
mov dword [rax], r11d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140037b96
mov dword [rax], r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x61
call fcn.14003e580
int3
Function at 0x140037bd0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd r11, edx
mov rbp, r8
add r11, rcx
mov r10, r8
cmp rcx, r11
jae 0x140037ccb
movsxd rax, r9d
lea rsi, [r8 - 4]
add rsi, rax
lea r9, [rcx + 2]
lea r8, [rcx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, r11
jb 0x140037c1e
xor dil, dil
jmp 0x140037c22
movzx edi, byte [r8]
cmp r9, r11
jb 0x140037c2b
xor bl, bl
jmp 0x140037c2f
movzx ebx, byte [r9]
cmp r10, rsi
jae 0x140037cf2
movzx eax, byte [rcx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r10], al
movsx rdx, byte [rcx]
inc rcx
and edx, 3
movzx eax, dil
shr rax, 4
lea rdi, [r10 + 3]
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 1], al
mov byte [rdi], 0x3d
mov byte [r10 + 2], 0x3d
mov byte [r10 + 4], 0
cmp rcx, r11
je 0x140037cec
movsx rdx, byte [rcx]
inc rcx
and edx, 0xf
movzx eax, bl
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 2], al
lea r10, [rdi + 1]
cmp rcx, r11
je 0x140037ccb
movsx rax, byte [rcx]
add r8, 3
and eax, 0x3f
inc rcx
add r9, 3
movzx eax, byte [rax + r14]
mov byte [rdi], al
cmp rcx, r11
jb 0x140037c14
mov byte [r10], 0
sub r10d, ebp
mov eax, r10d
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
add r10, 4
jmp 0x140037ccb
or eax, 0xffffffff
jmp 0x140037cd5

Function at 0x140039b70
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov r14d, edx
mov dword [rsp + 0x38], r8d
xor r15d, r15d
mov dword [r11 - 0x28], edx
mov ebp, r8d
mov edx, dword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
mov dword [r11 - 0x30], r15d
mov ebx, 0x1a10
add rbx, qword [rax]
mov edi, 0x1a04
add rdi, qword [rax]
lea rax, [r11 + 8]
mov dword [r11 + 8], r15d
mov r8, qword [rbx]
mov qword [r11 - 0x38], rax
mov r9d, dword [rdi]
call fcn.14003c2e0
mov r9d, dword [rdi]
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jl 0x140039c32
cmp r9d, eax
jg 0x140039bfa
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140025890
mov r9d, dword [rdi]
mov r8, qword [rbx]
lea rax, [rsp + 0x60]
mov edx, dword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r15d
call fcn.14003c2e0
mov r9d, dword [rdi]
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jg 0x140039c58
mov rcx, qword [rbx]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movsxd rdx, eax
mov byte [rdx + rcx], r15b
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov r8d, eax
lea rdx, str.set_str_length_mismatch__d__d
mov ecx, 0x4f
call fcn.14003e580
int3
Function at 0x14003dc60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x40], 0xffffffff80000006
mov r15, r8
mov qword [rax - 0x48], 0xffffffff80000005
mov r14, rdx
mov qword [rax - 0x50], 0xffffffff80000060
or edi, 0xffffffff
mov qword [rax - 0x58], 0xffffffff80000050
mov r12, r9
mov qword [rax - 0x60], 0xffffffff80000004
mov r9, 0xffffffff80000000
mov qword [rax - 0x68], 0xffffffff80000003
xor r8d, r8d
mov qword [rax - 0x70], 0xffffffff80000002
lea edx, [rdi + 0xb]
mov qword [rax - 0x78], 0xffffffff80000001
mov rbx, rcx
call fcn.14003d870
mov rsi, qword [rsp + 0xc0]
xor r13d, r13d
mov ebp, eax
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x60], r13
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003dd07
call fcn.140174cec
mov qword [rsi], r13
test ebp, ebp
je 0x14003dd34
test rbx, rbx
lea r8, [0x140198980]
mov rdx, r14
cmove rbx, qword [0x1402594c0]
mov rcx, rbx
call fcn.14003da00
mov rbx, rax
test rax, rax
je 0x14003de09
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140026dd0
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003de09
movsxd rcx, dword [rsp + 0xa0]
add rcx, 2
call fcn.140180118
mov qword [rsp + 0x68], rax
mov r9, r12
mov qword [rsi], rax
xor r8d, r8d
mov byte [rax], r13b
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rsp + 0xa0]
mov byte [rcx + rax], r13b
mov eax, dword [rsp + 0xa0]
inc eax
movsxd rcx, eax
mov rax, qword [rsp + 0x68]
mov byte [rcx + rax], r13b
lea rax, [rsp + 0xa0]
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x14003ddf3
lea rdx, str.second_RegQueryValue___failed
mov ecx, 0x660003
call fcn.140028e10
cmp qword [rsi], r13
jne 0x14003de09
lea rdx, [0x140197e65]
lea rcx, [rsp + 0x68]
call fcn.140026210
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14003de1f
mov eax, dword [rsp + 0xa0]
mov dword [rcx], eax
lea rcx, [rsp + 0x60]
call fcn.140026da0
test ebp, ebp
je 0x14003de3b
test rbx, rbx
je 0x14003de3b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003def0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
mov qword [rax - 0x10], 0xffffffff80000006
mov rbp, r8
mov qword [rax - 0x18], 0xffffffff80000005
xor r8d, r8d
mov qword [rax - 0x20], 0xffffffff80000060
mov r10, rdx
mov qword [rax - 0x28], 0xffffffff80000050
mov esi, r9d
mov qword [rax - 0x30], 0xffffffff80000004
mov r9, 0xffffffff80000000
mov qword [rax - 0x38], 0xffffffff80000003
lea edx, [r8 + 0xa]
mov qword [rax - 0x40], 0xffffffff80000002
mov rbx, rcx
mov qword [rax - 0x48], 0xffffffff80000001
call fcn.14003d870
mov edi, eax
test eax, eax
je 0x14003df93
test rcx, rcx
lea r8, [0x14019b170]
mov rdx, r10
cmove rbx, qword [0x1402594c0]
mov rcx, rbx
call fcn.14003da00
mov rbx, rax
test rax, rax
jne 0x14003df93
or eax, 0xffffffff
jmp 0x14003e004
mov rax, qword gs:[0x58]
mov rdx, rbp
mov ecx, 0x1a28
add rcx, qword [rax]
call fcn.140026dd0
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rax]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x14003dff0
mov r8, rbp
lea rdx, str.z_RegSetValue:_failed__s
mov ecx, 0x660003
call fcn.140028e10
test edi, edi
je 0x14003e002
test rbx, rbx
je 0x14003e002
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14003e230
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov ebx, r9d
mov rdx, rcx
mov edi, r8d
lea rcx, [rsp + 0x48]
sub rcx, 8
call fcn.140025830
mov rcx, qword [rsp + 0x88]
mov r9d, ebx
mov qword [rsp + 0x38], rcx
mov r8d, edi
mov ecx, dword [rsp + 0x80]
mov edx, esi
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, rax
call fcn.140170a90
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
mov rsi, qword [rsp + 0x58]
cmp rax, 0xffffffffffffffff
cmove rax, rcx
add rsp, 0x40
pop rdi
ret

Function at 0x14003e3f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov ebx, 0x1000
mov edx, 1
mov ecx, ebx
mov r14, r8
call fcn.140174ce4
mov rcx, qword [rsi]
mov rdi, rax
test rcx, rcx
je 0x14003e432
call fcn.140174cec
mov qword [rsi], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rdi
mov ecx, ebp
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rsp + 0x48]
cmp eax, 0xc0000004
je 0x14003e453
cmp ecx, ebx
jbe 0x14003e467
lea eax, [rcx + rbx*2]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140180120
mov rdi, rax
jmp 0x14003e432
xor eax, eax
test r14, r14
je 0x14003e471
mov dword [r14], ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov qword [rsi], rdi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret