joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x7827f7fe
retf 0x7067
sbb rax, 0xfffffffffec37c6d
jp 0x14001ac89
dec dh
push rbx
cmp eax, 0x98f1718b
std
int 0x3d
movabs dword [0xa1fdae9f93da927b], eax
xchg ebx, eax
in eax, 0x16
invalid
Function at 0x140005980
Capabilities:
Move file

Disassembly:
push rdi
mov eax, 0x1070
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x1400059bb
mov rax, qword [rax]
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete dil
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x1400059ed
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.1400046b0
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test dil, dil
je 0x140005a50
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140002e70
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005a21
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_mark_file___s__for_deletion_on_reboot___i_.
lea rcx, [rsp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x50]
call fcn.140066028
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret

Function at 0x140005a90
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x140005ab7
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140005adf
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400046b0
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp ebx, 0xffffffff
je 0x140005b00
test bl, 0x10
jne 0x140005b00
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x140006120
Capabilities:
Read file on windows

Disassembly:
push rbx
mov eax, 0x1060
call fcn.1400641b0
sub rsp, rax
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x1058], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x1050]
mov ebx, edx
mov rax, r8
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x1050], edx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000618f
mov eax, dword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x1060
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.Could_not_read__i_bytes_from_file_stream___i_.
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x30]
call fcn.140066028
int3
Function at 0x1400075d0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov qword [rsp + 0x10a0], rsi
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
add rcx, 0x30
mov rax, qword [rcx]
call qword [rax]
or edx, 0xffffffff
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
je 0x140007655
cmp eax, 0x102
je 0x140007655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, ebx
lea rdx, str.Error_waiting_for_event_to_signal__result:__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x30], r9d
movzx r8d, al
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs rdx, 0x100000001b3
imul r8, rdx
movzx ecx, byte [rsp + 0x31]
xor r8, rcx
imul r8, rdx
movzx eax, byte [rsp + 0x32]
xor r8, rax
imul r8, rdx
movzx eax, byte [rsp + 0x33]
xor r8, rax
imul r8, rdx
mov rdx, qword [rdi + 0xa0]
and rdx, r8
mov r8, qword [rdi + 0x88]
mov rax, rdx
add rax, rax
mov rax, qword [r8 + rax*8]
mov rcx, qword [rdi + 0x78]
add rdx, rdx
mov r10, qword [r8 + rdx*8]
lea r11, [r8 + rdx*8]
cmp r10, rcx
jne 0x1400076da
mov rdx, rcx
jmp 0x1400076e1
mov rdx, qword [r11 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x1400076f7
cmp r9d, dword [rax + 0x10]
je 0x1400076f1
mov rax, qword [rax]
jmp 0x1400076d0
cmovne rax, rcx
jmp 0x1400076fa
mov rax, rcx
cmp rax, rcx
jne 0x140007783
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140008500
mov rdx, rax
mov rax, qword [rdi + 0x80]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rax
cmp rcx, 1
jae 0x140007750
lea rcx, str.list_T__too_long
call fcn.14005e5e8
int3
inc rax
mov qword [rdi + 0x80], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov r9, qword [rdi + 0x78]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x70]
call fcn.140008100
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsi]
mov byte [rax + 0x14], cl
lea rcx, [rsp + 0x48]
call fcn.1400079c0
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400077b0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call fcn.140013580
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x20], r9d
movzx edx, al
movabs rsi, 0xcbf29ce484222325
xor rdx, rsi
movabs rdi, 0x100000001b3
imul rdx, rdi
movzx ecx, byte [rsp + 0x21]
xor rdx, rcx
imul rdx, rdi
movzx eax, byte [rsp + 0x22]
xor rdx, rax
imul rdx, rdi
movzx eax, byte [rsp + 0x23]
xor rdx, rax
imul rdx, rdi
mov rcx, qword [rbx + 0xa0]
and rcx, rdx
mov rdx, qword [rbx + 0x88]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8]
mov r8, qword [rbx + 0x78]
add rcx, rcx
mov r10, qword [rdx + rcx*8]
lea r11, [rdx + rcx*8]
cmp r10, r8
jne 0x14000785b
mov rcx, r8
jmp 0x140007862
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140007878
cmp r9d, dword [rax + 0x10]
je 0x140007872
mov rax, qword [rax]
jmp 0x140007851
cmovne rax, r8
jmp 0x14000787b
mov rax, r8
cmp rax, r8
je 0x14000788e
lea rbx, [rax + 0x14]
lea rcx, [rsp + 0x28]
jmp 0x140007965
lea rcx, [rsp + 0x28]
call fcn.1400079e0
lea rdx, [rbx + 0xb0]
mov rcx, rbx
call fcn.1400075d0
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140013580
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x20], r9d
movzx r8d, al
xor r8, rsi
imul r8, rdi
movzx ecx, byte [rsp + 0x21]
xor r8, rcx
imul r8, rdi
movzx eax, byte [rsp + 0x22]
xor r8, rax
imul r8, rdi
movzx eax, byte [rsp + 0x23]
xor r8, rax
imul r8, rdi
mov rdx, qword [rbx + 0xa0]
and rdx, r8
mov r8, qword [rbx + 0x88]
mov rax, rdx
add rax, rax
mov rax, qword [r8 + rax*8]
mov rcx, qword [rbx + 0x78]
add rdx, rdx
mov r10, qword [r8 + rdx*8]
lea r11, [r8 + rdx*8]
nop dword [rax]
cmp r10, rcx
jne 0x14000792a
mov rdx, rcx
jmp 0x140007931
mov rdx, qword [r11 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x140007947
cmp r9d, dword [rax + 0x10]
je 0x140007941
mov rax, qword [rax]
jmp 0x140007920
cmovne rax, rcx
jmp 0x14000794a
mov rax, rcx
cmp rax, rcx
jne 0x14000795c
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.14005e60c
int3
lea rbx, [rax + 0x14]
lea rcx, [rsp + 0x30]
call fcn.1400079e0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140008400
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r10, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r9, r8
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
mov r8, qword [r10 + 0x30]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x1400084a8
cmp qword [rcx], r9
jne 0x14000849e
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x1400084b3
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x1400084b3
cmp qword [rcx], r9
jne 0x1400084b8
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov rdx, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rdx], rbx
mov r8, qword [r9]
mov rdx, qword [r9 + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.1400369b0
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140008560
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10b8]
mov eax, 0x11b8
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
xor edx, edx
lea r8d, [r15 + 0x60]
lea rcx, [rbp + 0x1038]
call fcn.140065dd0
mov dword [rbp + 0x1030], 0x68
mov qword [rbp + 0x1010], r15
xor eax, eax
mov qword [rbp + 0x1018], rax
mov qword [rbp + 0x1020], rax
lea r9d, [r15 + 1]
lea r8, [0x140101a80]
lea rcx, [rbp - 0x78]
call fcn.1400029e0
nop
lea r8, [rbp - 0x78]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140002630
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140002630
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x140008631
mov rax, qword [rax]
lea rcx, [rbp + 0x1010]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x1030]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
sete dil
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140008690
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400046b0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
lea rcx, [rbp - 0x58]
call fcn.1400036b0
nop
lea rcx, [rbp - 0x38]
call fcn.1400036b0
nop
lea rcx, [rbp - 0x78]
call fcn.1400036b0
test dil, dil
je 0x140008729
mov rdx, r14
lea rcx, [rbp - 0x38]
call fcn.140002e70
mov rdi, rax
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.140002e70
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x1400086ee
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x1400086f8
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Could_not_create_process_with_path___s__and_arguments___s____i_.
lea rcx, [rbp - 0x10]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp - 0x10]
call fcn.140066028
nop
mov qword [rbx], r15
mov dword [rsp + 0x50], 1
mov rcx, qword [rbp + 0x1010]
mov qword [rbp + 0x1028], rcx
lea rdx, [rbp + 0x1028]
mov rcx, rbx
call fcn.140008950
nop
lea rcx, [rbp + 0x1028]
call fcn.140007090
mov rcx, qword [rbp + 0x1018]
mov qword [rbp + 0x1028], rcx
lea rcx, [rbp + 0x1028]
call fcn.140007090
mov rax, rbx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x11b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008e80
Capabilities:
Delete registry key

Disassembly:
push rdi
mov eax, 0x1070
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x140008ebb
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140008ee6
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.1400046b0
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test ebx, ebx
je 0x140008f40
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140002e70
nop
cmp qword [rax + 0x18], 0x10
jb 0x140008f17
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_delete_specified_registry_subkey__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x50]
call fcn.140066028
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret
Function at 0x140009960
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1090], rbx
mov qword [rsp + 0x1098], rsi
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x1400099a3
mov rax, qword [rax]
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1400099e0
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400046b0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp ebx, 2
jne 0x1400099fc
xor al, al
jmp 0x140009a43
test ebx, ebx
je 0x140009a41
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002e70
nop
cmp qword [rax + 0x18], 0x10
jb 0x140009a18
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_check_if_registry_value_exists_with_name__s___i_.
lea rcx, [rsp + 0x60]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov al, 1
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140009a60
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x10b0
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov rdi, rdx
mov rbx, rcx
mov rdx, r8
lea rcx, [rsp + 0x1080]
call fcn.140002ec0
nop
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002ec0
mov rdx, rax
lea rcx, [rsp + 0x1080]
cmp qword [rsp + 0x1098], 8
cmovae rcx, qword [rsp + 0x1080]
cmp qword [rax + 0x18], 8
jb 0x140009ad7
mov rdx, qword [rax]
mov eax, dword [rsp + 0x1090]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140009b1a
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400046b0
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
test ebx, ebx
je 0x140009b7c
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002e70
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140009b4d
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_set_registry_value_as_string_with_name__s___i_.
lea rcx, [rsp + 0x60]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov r8, qword [rsp + 0x1098]
cmp r8, 8
jb 0x140009ba2
inc r8
mov rdx, qword [rsp + 0x1080]
lea rcx, [rsp + 0x1080]
call fcn.1400046b0
mov qword [rsp + 0x1098], 7
mov qword [rsp + 0x1090], rsi
mov word [rsp + 0x1080], si
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x10b0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009be0
Capabilities:
Set registry value

Disassembly:
push rdi
mov eax, 0x1090
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x1088], rax
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x1080], r8d
lea rcx, [rsp + 0x30]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x140009c35
mov rax, qword [rax]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x1080]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140009c7e
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400046b0
mov qword [rsp + 0x48], 7
xor eax, eax
mov qword [rsp + 0x40], rax
mov word [rsp + 0x30], ax
test edi, edi
je 0x140009ce0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002e70
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140009cb1
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_set_registry_value_as_32_bit_unsigned_int_with_name__s___i_.
lea rcx, [rsp + 0x60]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov rcx, qword [rsp + 0x1088]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x1090
pop rdi
ret
Function at 0x140012620
Capabilities:
Delete service

Disassembly:
push rbx
mov eax, 0x1090
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400126a0
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400126b0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002e70
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140012671
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_delete_service_with_name__s___i_.
lea rcx, [rsp + 0x70]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x70]
call fcn.140066028
nop
add rsp, 0x1090
pop rbx
ret

Function at 0x1400127b0
Capabilities:
Start service

Disassembly:
push rbx
mov eax, 0x1090
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140012835
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400126b0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002e70
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140012806
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_start_service_with_name__s___i_.
lea rcx, [rsp + 0x70]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rsp + 0x70]
call fcn.140066028
nop
add rsp, 0x1090
pop rbx
ret
Function at 0x140022ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r10, r9
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x38], r14
mov r11, qword [rcx]
mov r8, qword [r11 + 8]
mov cl, 1
nop dword [rax]
cmp byte [r8 + 0x19], 0
jne 0x140022b97
mov r11, r8
test bl, bl
je 0x140022b4b
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x140022b3b
mov r9, qword [r10]
sub r9, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140022b34
inc rax
test ecx, ecx
jne 0x140022b21
test edx, edx
sets cl
jmp 0x140022b46
mov eax, dword [r10 + 8]
cmp dword [r8 + 0x28], eax
setb cl
xor cl, 1
jmp 0x140022b85
mov rax, qword [r10]
test rax, rax
je 0x140022b7a
mov r9, qword [r8 + 0x20]
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140022b73
inc rax
test ecx, ecx
jne 0x140022b60
test edx, edx
sets cl
jmp 0x140022b85
mov eax, dword [r8 + 0x28]
cmp dword [r10 + 8], eax
setb cl
test cl, cl
je 0x140022b8e
mov r8, qword [r8]
jmp 0x140022b92
mov r8, qword [r8 + 0x10]
jmp 0x140022b00
mov rbx, r11
test cl, cl
je 0x140022c1c
mov rdx, qword [rdi]
cmp r11, qword [rdx]
jne 0x140022bd0
mov qword [rsp + 0x28], r14
mov r9, r11
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400227f0
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x140022cbb
cmp byte [r11 + 0x19], 0
je 0x140022bdd
mov rbx, qword [r11 + 0x10]
jmp 0x140022c1c
mov rax, qword [r11]
cmp byte [rax + 0x19], 0
jne 0x140022c00
mov rbx, rax
nop dword [rax]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140022c1c
mov rbx, rax
jmp 0x140022bf0
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140022c14
cmp rbx, qword [rax]
jne 0x140022c14
mov rbx, rax
jmp 0x140022c00
cmp byte [rbx + 0x19], 0
cmove rbx, rax
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140022c4d
mov r9, qword [r10]
sub r9, rax
nop dword [rax + rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x140022c45
inc rax
test edx, edx
jne 0x140022c30
test r8d, r8d
sets al
jmp 0x140022c57
mov eax, dword [r10 + 8]
cmp dword [rbx + 0x28], eax
setb al
test al, al
je 0x140022c83
mov qword [rsp + 0x28], r14
mov r9, r11
movzx r8d, cl
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400227f0
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x140022cbb
lea rdi, [r14 + 0x20]
mov qword [rsp + 0x30], rdi
lea rcx, [rdi + 0x10]
call fcn.140018640
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022ca9
cmp dword [rdi + 8], 1
jne 0x140022ca9
call fcn.140072684
mov rcx, r14
call fcn.1400369b0
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret