joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401410cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401410e2
mov al, 1
jmp 0x140141142
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401410f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140141140
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401265dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140141140
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140141140
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140141140
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140141142
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14014bd50
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x14014bd90
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14014f680
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14014f6c6
mov r15, rbx
test r15, r15
je 0x14014f7a1
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14014f722
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14014f711
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140149050
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14014f6a2
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14014f7bd
lea rcx, [r13*8]
call fcn.14010f3f0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14014f783
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14014f7a1
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14014f768
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14014f7a3
add rbx, 0xfffffffffffffff8
jne 0x14014f796
ud2
test r12, r12
je 0x14014f6a2
mov rcx, r12
call fcn.14010f42c
mov r15, qword [rsi + 0x10]
jmp 0x14014f6a2
call fcn.14014aec0
int3
Function at 0x140150b00
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x188], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x170], xmm0
movaps xmmword [rsp + 0x160], xmm0
mov dword [rsp + 0x180], 0
cmp byte [rcx + 0x17], 0
jns 0x140150b46
mov rcx, qword [rsi]
lea r8, [rsp + 0x160]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140150bf2
mov rcx, rsi
call fcn.140183580
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140150b7a
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140150c72
lea rcx, str.....chromeinstallerutildelete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.1400e1860
mov dil, 1
test eax, eax
jle 0x140150c55
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x5f
mov r9d, 0xffffffff
call fcn.14018d7b0
lea rcx, [rsp + 0x38]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.1400cdd30
mov rcx, rax
mov rdx, rsi
call fcn.1401895c0
mov rcx, rbx
call fcn.14018dbe0
jmp 0x140150c55
mov ecx, 1
call fcn.14006a140
test al, al
je 0x140150c53
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x40
mov r9d, 1
call fcn.14018e580
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.1401895c0
lea rdx, str._does_not_exist.
mov r8d, 0x10
mov rcx, rax
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018e5f0
xor edi, edi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140110970
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006a140
test al, al
je 0x140150c53
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x4b
mov r9d, 2
call fcn.14018e580
lea rcx, [rsp + 0x38]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.1400cdd30
mov rcx, rax
mov rdx, rsi
call fcn.1401895c0
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
jmp 0x140150c43
Function at 0x140151660
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, qword [rcx]
mov rdi, qword [rcx + 8]
jmp 0x140151696
add rdi, 0xffffffffffffffd0
mov rcx, rdi
call fcn.140152120
cmp rdi, rbx
jne 0x14015168a
mov qword [rsi + 8], rbx
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402cdfe0]
movaps xmmword [rdi], xmm0
lea r8, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, rdi
mov rdx, 0xffffffff80000002
mov r9d, 1
call fcn.14017c460
mov rdi, qword [rdi]
mov ebx, 0x80070002
test rdi, rdi
jne 0x14015170e
lea rcx, [rsp + 0x60]
call fcn.14005a370
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140110970
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x5c], 0
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov edx, 1
mov rcx, rbx
call fcn.1401521d0
mov dword [rsp + 0x3c], 0xaaaaaaaa
mov rax, qword [rbx]
cmp qword [rbx + 8], rax
je 0x140151860
lea r14, [rsp + 0x5c]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x3c]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1401517c0
cmp eax, 0xea
je 0x1401517c7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401516e5
mov rax, qword [rsp + 0x48]
mov rdx, rax
sub rdx, rcx
dec rax
cmp rdx, rax
ja 0x140151860
mov qword [rsp + 0x48], rcx
call fcn.14010f42c
jmp 0x1401516e5
mov ebx, 0x80070002
jmp 0x14015178c
mov ebx, 0x8000ffff
cmp dword [rsp + 0x3c], 7
jne 0x14015178c
mov ecx, dword [rsp + 0x5c]
test cl, 1
jne 0x14015178c
mov rax, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov r9, r8
sub r9, rax
mov rdx, rcx
sub rdx, r9
ja 0x140151862
jb 0x14015182a
mov rcx, r8
cmp rcx, rax
je 0x140151860
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x3c]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14015177e
jmp 0x140151842
add rcx, rax
mov rdx, r8
sub rdx, rcx
dec r8
cmp rdx, r8
ja 0x140151860
mov qword [rsp + 0x48], rcx
jmp 0x1401517f9
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
je 0x140151860
mov r8, rsi
call fcn.140151210
mov ebx, eax
jmp 0x14015178c
ud2
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1401521d0
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
jmp 0x1401517f9
Function at 0x1401596a0
Capabilities:
Delete service

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rbx, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rcx, qword [rdx]
test rcx, rcx
je 0x140159737
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dil, 1
test eax, eax
jne 0x1401596fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 1
call fcn.14006a140
test al, al
jne 0x14015973b
cmp edi, 0x430
sete dil
cmp qword [rsi], 0
je 0x140159716
call fcn.1400e1920
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsi], 0
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140110970
mov eax, edi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor edi, edi
jmp 0x140159716
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x25f
mov r9d, 1
call fcn.14018e580
lea rcx, [rsp + 0x50]
lea rdx, str.DeleteService_failed
mov r8d, 0x15
call fcn.1400cdd30
mov r14, rax
lea r15, [rsp + 0x28]
mov rcx, rbx
mov rdx, r15
call fcn.140159320
cmp byte [r15 + 0x17], 0
jns 0x140159797
mov r15, qword [rsp + 0x28]
mov rcx, r14
mov rdx, r15
call fcn.1401894e0
cmp byte [rsp + 0x3f], 0
jns 0x1401597b3
mov rcx, qword [rsp + 0x28]
call fcn.14010f42c
lea rcx, [rsp + 0x40]
call fcn.14018e5f0
jmp 0x1401596f1
Function at 0x14015a170
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b8
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
movsx rax, byte [rdx + 0x57]
test rax, rax
js 0x14015a1a1
lea r10, [rdx + 0x40]
jmp 0x14015a1a9
mov rax, qword [rdx + 0x48]
mov r10, qword [rdx + 0x40]
test rax, rax
cmove r10, rax
mov rax, qword [rdx + 0x28]
xor r11d, r11d
cmp rax, qword [rdx + 0x30]
cmovne r11, rax
movsx rax, byte [rdx + 0x27]
test rax, rax
js 0x14015a1cf
lea rdi, [rdx + 0x10]
jmp 0x14015a1d7
mov rax, qword [rdx + 0x18]
mov rdi, qword [rdx + 0x10]
test rax, rax
cmove rdi, rax
mov r9d, dword [rdx + 0xc]
mov eax, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov rcx, qword [rsi + 0x130]
mov qword [rsp + 0x50], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r11
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x14015a228
mov ecx, 1
call fcn.14006a140
test al, al
jne 0x14015a24c
test edi, edi
setne bl
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140110970
mov eax, ebx
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x78]
mov r8d, 0x1a1
mov r9d, 1
call fcn.14018e580
lea rcx, [rsp + 0x88]
lea rdx, str.Failed_to_change_service_config
mov r8d, 0x20
call fcn.1400cdd30
mov rbx, rax
lea r14, [rsp + 0x60]
mov rcx, rsi
mov rdx, r14
call fcn.140159320
cmp byte [r14 + 0x17], 0
jns 0x14015a2ab
mov r14, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, r14
call fcn.1401894e0
cmp byte [rsp + 0x77], 0
jns 0x14015a2c7
mov rcx, qword [rsp + 0x60]
call fcn.14010f42c
lea rcx, [rsp + 0x78]
call fcn.14018e5f0
jmp 0x14015a228
Function at 0x14015a690
Capabilities:
Create service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1b8], rax
mov rax, qword [rdx + 0x28]
xor r14d, r14d
cmp rax, qword [rdx + 0x30]
cmovne r14, rax
cmp byte [rdx + 0x27], 0
js 0x14015a6e5
lea r15, [rdx + 0x10]
jmp 0x14015a6e9
mov r15, qword [rdx + 0x10]
cmp byte [rdx + 0x57], 0
js 0x14015a6f5
lea rdi, [rdx + 0x40]
jmp 0x14015a6f9
mov rdi, qword [rdx + 0x40]
mov r12d, dword [rdx + 0xc]
mov ebp, dword [rdx + 4]
mov r13d, dword [rdx + 8]
lea rbx, [rsp + 0x80]
mov rcx, rsi
mov rdx, rbx
call fcn.140159320
cmp byte [rbx + 0x17], 0
jns 0x14015a725
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsi + 0x128]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x50], r14
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebp
mov rdx, rbx
mov r8, rdi
mov r9d, 0x10003
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea rcx, [rsp + 0x1b8]
mov qword [rcx], 0
mov rdx, rax
call fcn.140159150
cmp byte [rsp + 0x97], 0
jns 0x14015a791
mov rcx, qword [rsp + 0x80]
call fcn.14010f42c
mov rdi, qword [rsp + 0x1b8]
test rdi, rdi
jne 0x14015a7f6
mov ecx, 1
call fcn.14006a140
test al, al
jne 0x14015a81b
cmp qword [rsp + 0x1b8], 0
je 0x14015a7ca
call fcn.1400e1920
mov rcx, qword [rsp + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140110970
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rsi, 0x130
mov qword [rsp + 0x1b8], 0
call fcn.1400e1920
mov rcx, rsi
mov rdx, rdi
call fcn.140159150
jmp 0x14015a7ac
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x80]
mov r8d, 0x250
mov r9d, 1
call fcn.14018e580
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_create_service
mov r8d, 0x19
call fcn.1400cdd30
mov rbx, rax
lea r14, [rsp + 0x68]
mov rcx, rsi
mov rdx, r14
call fcn.140159320
cmp byte [r14 + 0x17], 0
jns 0x14015a87d
mov r14, qword [rsp + 0x68]
mov rcx, rbx
mov rdx, r14
call fcn.1401894e0
cmp byte [rsp + 0x7f], 0
jns 0x14015a899
mov rcx, qword [rsp + 0x68]
call fcn.14010f42c
lea rcx, [rsp + 0x80]
call fcn.14018e5f0
jmp 0x14015a7ac
Function at 0x140163e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140163f70
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 1
je 0x140163fd7
cmp byte [rsi + 0x61], 1
jne 0x140164009
mov rcx, qword [rsi + 0x40]
call fcn.1401302f0
cmp eax, 0xffffffff
je 0x140163fd0
test bl, bl
jne 0x140163fc8
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.140132278
cmp eax, 0xffffffff
cmove edi, eax
jmp 0x140163fe9
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x140163fe9
mov edi, 0xffffffff
jmp 0x140163fe9
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x140163fe9
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140110970
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.1401302f0
cmp eax, 0xffffffff
je 0x140163fd0
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x14016402b
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x14033dc40]
cmp eax, 1
jne 0x1401640f3
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15d, 8
je 0x140163fe9
mov rcx, qword [rsi + 0x40]
call fcn.1401302f0
cmp eax, 0xffffffff
je 0x140163fe9
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x140164065
cmp eax, 2
je 0x140163fe9
cmp eax, 3
jne 0x140164109
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x140164121
movzx edi, byte [rsp + 0x57]
jmp 0x140163fcb
movzx edi, byte [rsp + 0x57]
jmp 0x140163fe9
test r15, r15
jle 0x140164117
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + r15 + 0x57]
dec r15
call fcn.140132278
cmp eax, 0xffffffff
jne 0x140164121
jmp 0x140163fe9

Function at 0x140164a20
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140164a57
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140164a31
ret

Function at 0x140164ad0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140164b08
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140164ae1
ret
Function at 0x14016af20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14016af8d
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [0x14033dc40]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14016af6f
call fcn.14010f42c
jmp 0x14016af6f
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.1400d7660
lea rdx, [0x140361040]
mov rcx, rbx
call fcn.1400d8090
mov r14, rax
mov rcx, qword [rbp - 0x20]
lea rax, [0x140360e58]
cmp rcx, rax
je 0x14016afd9
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14016afd9
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14033dc40]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402cdfe0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x14033dc40]
movsx rax, byte [rbx + 0x17]
test rax, rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x14016af7f
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x14016b07b
xor edi, edi
jmp 0x14016b059
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x14016b04e
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x14016af7f
test rdi, rdi
je 0x14016b037
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
jne 0x14016b03b
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x14033dc40]
jmp 0x14016b046

Function at 0x14017c740
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14017c7f0
Capabilities:
Delete registry key

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, rdx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x14017c8a9
mov ebp, r8d
mov rdi, rcx
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x30]
mov qword [rcx + 8], r14
xor eax, eax
mov qword [rcx], rax
mov dword [rcx + 8], 0
mov qword [rcx + 0x10], rax
mov eax, 0x10001
or eax, dword [rdi + 8]
mov dword [rsp + 0x20], eax
mov r8, rbx
mov r9d, 8
call fcn.14017c6b0
test eax, eax
je 0x14017c8b0
mov esi, eax
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14017c874
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14017c88f
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14033dc40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140110970
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov esi, 6
jmp 0x14017c88f
test bpl, 1
je 0x14017c8d9
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14017c8c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.14017c930
mov esi, eax
jmp 0x14017c874
lea rsi, [rsp + 0x28]
mov qword [rsi], r14
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14017caf0
cmp byte [rsi + 4], 0
mov rbx, qword [rbx]
je 0x14017c903
mov esi, dword [rsp + 0x28]
jmp 0x14017c866
mov r8d, dword [rdi + 8]
lea rdx, [0x1402d8faa]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
jmp 0x14017c866
Function at 0x14017c930
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 8], r14
xor ebx, ebx
mov qword [rcx], rbx
mov dword [rcx + 8], 0
mov qword [rcx + 0x10], rbx
mov eax, esi
or eax, 0x10009
mov dword [rsp + 0x20], eax
mov r9d, 8
call fcn.14017c6b0
cmp eax, 2
je 0x14017c99f
mov ebx, eax
test eax, eax
je 0x14017c9f0
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14017c9b2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14017c9cd
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14033dc40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140110970
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdi, [rsp + 0x48]
mov qword [rdi], r14
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14017caf0
cmp byte [rdi + 4], 0
je 0x14017ca11
mov ebx, dword [rsp + 0x48]
jmp 0x14017c99f
mov rdi, qword [rsp + 0x50]
lea rdx, [0x1402d8faa]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x14017c9a4
mov ecx, 0x200
call fcn.14010f46c
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.1401496f0
xorps xmm6, xmm6
lea rbx, [rsp + 0x48]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x48], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x14017cab3
mov eax, dword [rsp + 0x48]
cmp rax, 0x100
jae 0x14017cae6
cmp word [r14 + rax*2], 0
jne 0x14017cae9
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.14017c930
test eax, eax
je 0x14017ca62
jmp 0x14017cab8
mov rdi, qword [rsp + 0x50]
lea rdx, [0x1402d8faa]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x14017c9a4
mov rcx, r14
call fcn.14010f474
jmp 0x14017c9a4
int3
int3