joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f050
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2040
call fcn.1400a7800
sub rsp, rax
mov ebx, r8d
mov rdi, rcx
mov rsi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
xor edx, edx
mov word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rbp, [0x1400c4980]
lea r9, [rsp + 0x30]
lea r8, [0x1400a89b8]
lea rcx, [0x1400c4b90]
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14008f0cd
test ebx, ebx
jne 0x14008f0cd
xor eax, eax
jmp 0x14008f0e3
lea rcx, [0x1400c4b90]
mov r9, rbp
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14008f110
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.1400a7800
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
xor edx, edx
mov word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea r11, [0x1400c4980]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x1400a89b8]
lea rcx, [0x1400c4b90]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14008f1b7
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
sub rdi, rax
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 2], ax
jne 0x14008f190
mov eax, 1
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x14008f610
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rsi, [0x1400c4980]
mov rdx, rsi
sub rdx, rcx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x14008f630
xor ebx, ebx
lea rdx, str.general
lea rdi, [0x1400c4b90]
mov rcx, rbx
nop
nop
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rcx + rdi - 2], ax
jne 0x14008f660
lea rdx, [0x1400a9858]
mov r9, rsi
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [0x1400c4c20]
lea r8, [0x1400a89b8]
cmp eax, 1
lea rdx, str.charset
mov rcx, rdi
sete bl
mov qword [rsp + 0x28], rsi
mov word [0x1400c4c20], 0
mov dword [0x1400c4974], ebx
mov dword [rsp + 0x20], 0x3f
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [0x1400c4ca0]
lea r8, [0x1400a89b8]
lea rdx, str.TranslatorName
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov word [0x1400c4ca0], 0
mov dword [rsp + 0x20], 0x3f
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [0x1400c4d20]
lea r8, [0x1400a89b8]
lea rdx, str.TranslatorURL
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov word [0x1400c4d20], 0
mov dword [rsp + 0x20], 0xff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140099f40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x340
cmp qword [rcx], 0
mov r12, r9
mov ebp, r8d
mov edi, edx
mov rsi, rcx
jne 0x140099fd8
mov rbx, qword [rcx + 0x20]
mov rcx, rbx
call fcn.14009d390
mov r11, qword [rbx + 8]
test r11, r11
je 0x140099fa0
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 0xf0000000
call r11
test eax, eax
jne 0x140099fd8
mov rbx, qword [rsi + 0x20]
mov rcx, rbx
call fcn.14009d390
mov r11, qword [rbx + 8]
test r11, r11
je 0x140099fd2
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 0xf0000000
call r11
test eax, eax
jne 0x140099fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [rsp + 0x370]
lea rcx, [rsp + 0x41]
mov r8d, 0xff
cmp ebp, ebx
mov byte [rsp + 0x40], 0
cmovb ebx, ebp
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x140], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x240], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x140]
mov r8, rbx
mov rdx, r12
call sub.msvcrt.dll_memcpy
xor ebx, ebx
test ebp, ebp
je 0x14009a087
mov rax, rbx
mov rcx, rbp
nop
nop
nop
xor byte [rsp + rax + 0x40], 0x5c
xor byte [rsp + rax + 0x140], 0x36
add rax, 1
sub rcx, 1
jne 0x14009a070
lea rax, [rsp + 0x240]
lea r8, [rsp + 0x140]
mov r9d, ebp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x380]
mov edx, edi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x378]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140098d50
cmp edi, 0x8003
jne 0x14009a0d0
mov ebx, InitCommonControls
jmp 0x14009a0fd
cmp edi, 0x8002
je 0x14009a0c9
cmp edi, 0x8004
je 0x14009a0f8
cmp edi, 0x8009
je 0x14009a0f8
mov eax, 0x40
cmp edi, 0x800e
cmove ebx, eax
jmp 0x14009a0fd
mov ebx, 0x14
mov rax, qword [rsp + 0x388]
lea r8, [rsp + 0x40]
mov r9d, ebp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x240]
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.140098d50
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14009a160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
cmp qword [rcx], 0
mov rdi, r9
mov r15, r8
mov ebp, edx
mov r12, rcx
jne 0x14009a1f6
mov rbx, qword [rcx + 0x20]
mov rcx, rbx
call fcn.14009d390
mov r11, qword [rbx + 8]
test r11, r11
je 0x14009a1bd
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x20], 0xf0000000
call r11
test eax, eax
jne 0x14009a1f6
mov rbx, qword [r12 + 0x20]
mov rcx, rbx
call fcn.14009d390
mov r11, qword [rbx + 8]
test r11, r11
je 0x14009a1f0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x20], 0xf0000000
call r11
test eax, eax
jne 0x14009a1f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
xor r13d, r13d
cmp ebp, 0x8003
lea r14d, [r13 + 0x40]
mov byte [rsp + 0x80], r13b
mov qword [rsp + 0x81], rax
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov qword [rsp + 0x99], rax
mov qword [rsp + 0xa1], rax
mov qword [rsp + 0xa9], rax
mov qword [rsp + 0xb1], rax
mov dword [rsp + 0xb9], eax
mov word [rsp + 0xbd], ax
mov byte [rsp + 0xbf], al
mov byte [rsp + 0x40], al
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x59], rax
mov qword [rsp + 0x61], rax
mov qword [rsp + 0x69], rax
mov qword [rsp + 0x71], rax
mov dword [rsp + 0x79], eax
mov word [rsp + 0x7d], ax
mov byte [rsp + 0x7f], al
jne 0x14009a296
lea ebx, [rax + 0x10]
jmp 0x14009a2c8
cmp ebp, 0x8002
jne 0x14009a2a5
mov ebx, InitCommonControls
jmp 0x14009a2c8
cmp ebp, 0x8004
je 0x14009a2c3
cmp ebp, 0x8009
je 0x14009a2c3
xor ebx, ebx
cmp ebp, 0x800e
cmove ebx, r14d
jmp 0x14009a2c8
mov ebx, 0x14
mov eax, 0x80
cmp ebp, 0x800e
mov r9, r15
cmove r14d, eax
lea rax, [rsp + 0x80]
mov edx, ebp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x14
mov r8d, r14d
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x14
call fcn.140099f40
mov edi, dword [rsp + 0x118]
cmp edi, 1
jne 0x14009a32a
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
mov r8d, ebx
call sub.msvcrt.dll_memcpy
lea eax, [rdi - 1]
test eax, eax
je 0x14009a3c9
mov qword [rsp + 0xf0], rsi
mov edi, ebx
mov esi, eax
nop
nop
nop
nop
lea rax, [rsp + 0x40]
mov r9, r15
mov r8d, r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
mov edx, ebp
mov rcx, r12
mov dword [rsp + 0x20], 0x14
call fcn.140099f40
test ebx, ebx
mov r13d, eax
je 0x14009a3a6
xor edx, edx
mov r8, rdi
nop
movzx ecx, byte [rsp + rdx + 0x80]
add rdx, 1
xor byte [rsp + rdx + 0x3f], cl
sub r8, 1
jne 0x14009a390
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub rsi, 1
jne 0x14009a350
mov rsi, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x120]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call sub.msvcrt.dll_memcpy
lea r11, [rsp + 0xc0]
mov eax, r13d
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14009d390
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x820
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14009d57b
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x7fe
mov qword [rsp + 0x830], rdi
mov word [rsp + 0x20], 0
call sub.msvcrt.dll_memset
cmp word [0x1400c55d0], 0
lea rdi, [0x1400c55d0]
jne 0x14009d3ec
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x1400c57dc], eax
xor ecx, ecx
nop
movzx eax, word [rcx + rdi]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x1e], ax
jne 0x14009d3f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x14009d43d
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x14009d43d
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x1400a9734]
mov dword [rdi - 2], eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.advapi32.dll]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x1400a9300]
mov qword [rdi + 6], rax
mov rax, qword [0x1400a9308]
mov qword [rdi + 0xe], rax
movzx eax, word [0x1400a9310]
mov word [rdi + 0x16], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, qword [rsp + 0x830]
test rax, rax
jne 0x14009d49c
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CryptAcquireContextW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptReleaseContext
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptCreateHash
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptGetHashParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptHashData
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyHash
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDecrypt
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDeriveKey
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDuplicateKey
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptImportKey
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyKey
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
add rsp, 0x820
pop rbx
ret
Function at 0x1400a0bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], 0
call sub.msvcrt.dll_memset
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
add rcx, 7
cmp rcx, 0x104
jae 0x1400a0ca2
lea rdx, [rsp + 0x20]
mov rcx, rbx
sub rdx, rbx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x1400a0c30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1400a0c7c
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x1400a0c7c
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x1400a9734]
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.Cookies]
mov qword [rdi - 2], rax
mov rax, qword [0x1400a8a20]
mov qword [rdi + 6], rax
jmp 0x1400a0ca7
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a0ceb
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
sub rsi, rax
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rsi + rcx - 2], ax
jne 0x1400a0cd0
mov eax, 1
jmp 0x1400a0dea
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
add rcx, 0xf
cmp rcx, 0x104
jae 0x1400a0da8
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop
nop
nop
nop
movzx eax, word [rbx]
add rbx, 2
test ax, ax
mov word [rcx + rbx - 2], ax
jne 0x1400a0d20
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1400a0d6c
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x1400a0d6c
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x1400a9734]
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.NetworkCookies]
mov qword [rdi - 2], rax
mov rax, qword [0x1400a8a30]
mov qword [rdi + 6], rax
mov rax, qword [0x1400a8a38]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1400a8a40]
mov qword [rdi + 0x16], rax
jmp 0x1400a0dad
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a0de8
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
sub rsi, rax
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rsi + rcx - 2], ax
jne 0x1400a0dd0
mov eax, 1
jmp 0x1400a0dea
xor eax, eax
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400a1640
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4a0
mov rbp, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x40], 0
call sub.msvcrt.dll_memset
call fcn.14007f1c0
mov rax, qword [0x1400c4fb8]
test rax, rax
je 0x1400a16c6
cmp dword [0x1400c4864], 0
jne 0x1400a16b1
lea rcx, [0x1400c4860]
mov dword [0x1400c4860], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rax, qword [0x1400c4fb8]
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1c]
call rax
jmp 0x1400a17a6
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a1784
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x4c8]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x460]
xor r8d, r8d
mov dword [rsp + 0x4c8], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1779
mov eax, dword [rsp + 0x4c8]
cmp eax, 2
jb 0x1400a176f
shr rax, 1
mov word [rsp + rax*2 + 0x250], 0
jmp 0x1400a1779
mov word [rsp + 0x250], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
nop
nop
nop
movzx eax, word [rsp + rcx + 0x250]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x3e], ax
jne 0x1400a1790
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1400a17e1
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x3e], 0x5c
je 0x1400a17e1
xor eax, eax
lea rdi, [rsp + 0x40]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x1400a9734]
mov dword [rdi - 2], eax
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov rdi, rbx
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
add ecx, edx
cmp ecx, 0x104
jge 0x1400a1842
movsxd rax, edx
or rcx, 0xffffffffffffffff
lea rdi, [rsp + rax*2 + 0x40]
xor eax, eax
repne scasw ax, word [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, word [rbx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x1400a1830
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x250], 0
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400a0e90
lea rcx, [rsp + 0x250]
mov rdx, rsi
call fcn.1400a0bd0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001504
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor edi, edi
movdqa xmm0, xmmword [0x1400315a0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140031610]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x1400315e0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x1400316c0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140031480]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140031700]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x1400314a0]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140031600]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x1400315f0]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140031710]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x140031540]
movdqa xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 0x3f
lea r8d, [rdi + 0x2d]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400054c4
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r15d, 0xf003f
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001716
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140001719
lea r12, [0x140038500]
or r14, 0xffffffffffffffff
inc r14
cmp word [r12 + r14*2], di
jne 0x140001635
add r14d, r14d
mov r8d, 0x1e
lea rdx, [0x140036ad0]
lea rcx, [rsp + 0x40]
call fcn.1400054c4
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15, rdi
test eax, eax
cmove r15, qword [rsp + 0x38]
test ebx, ebx
je 0x140001701
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
lea eax, [r14 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001701
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.14000276c
jmp 0x14000171e
mov rsi, rdi
mov edi, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.14000276c
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14000d100
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001764
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rbp + 0x40], rax
movdqa xmm0, xmmword [0x1400315a0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140031610]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x1400315e0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x1400316c0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140031480]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140031700]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x1400314a0]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140031600]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x1400315f0]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140031710]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x140031540]
movdqa xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 0x3f
mov r8d, 0x2d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1400054c4
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
jne 0x1400018b7
cmp qword [rsp + 0x30], rdi
je 0x1400018b7
lea r8d, [rdi + 0x1e]
lea rdx, [0x140036ad0]
lea rcx, [rsp + 0x38]
call fcn.1400054c4
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.14000276c
test ebx, ebx
setne dil
jmp 0x1400018bc
mov edi, 1
lea rcx, [rsp + 0x58]
call fcn.14000276c
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14000d100
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400018ec
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
mov rbp, rax
test rax, rax
je 0x14000196b
cmp qword [rsi + 0x18], 7
mov rdx, rsi
jbe 0x140001928
mov rdx, qword [rsi]
mov r8d, 0x10000
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x14000195b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
sete dil
jmp 0x140001960
mov edi, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140001970
mov edi, 1
mov rcx, rsi
call fcn.14000276c
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140001a6c
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x140001ac6
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x140001acb
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret