joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400074c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.14000acc8
mov ebx, eax
cmp eax, 1
je 0x1400074fd
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400074ec
mov al, 1
jmp 0x14000754c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000754a
test ebx, ebx
je 0x14000754a
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x140007540
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
mov al, bl
jmp 0x14000754c
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007558
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r14, r9
mov rsi, r8
mov r15b, dl
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12d, eax
xor r12d, edi
xor edi, edi
mov ebx, edi
lea r10d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
test r15b, r15b
je 0x14000761b
mov edx, r12d
lea r8, [rbp - 0x10]
mov r9d, 8
mov ecx, edx
and ecx, 0xf
shr edx, 4
cmp ecx, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
mov byte [r8], al
add r8, r10
sub r9, r10
jne 0x1400075ca
mov byte [rbp - 8], dil
test r14, r14
je 0x1400075f9
mov rcx, rsi
call fcn.140003020
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140002de4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
mov r10d, 1
cmove eax, r10d
add r12d, eax
mov r15b, r10b
test r14, r14
je 0x140007632
lea rdx, str..tmp
mov rcx, rsi
call fcn.140002de4
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140002958
nop
mov rdx, qword [rsi]
lea rcx, [rbp - 0x20]
call fcn.140002e88
mov rcx, qword [rbp - 0x20]
call fcn.14000824c
test al, al
je 0x140007665
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000769d
test r14, r14
je 0x14000767e
mov r8d, 1
mov rdx, qword [rbp - 0x20]
mov rcx, r14
call fcn.14000963c
jmp 0x140007687
mov rcx, qword [rbp - 0x20]
call fcn.1400074c0
test al, al
jne 0x1400076d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000769d
cmp eax, 0xb7
jne 0x1400076ba
mov rcx, qword [rbp - 0x20]
call fcn.14005bd4c
mov r10d, 1
add ebx, r10d
cmp ebx, 0x64
jb 0x1400075af
jmp 0x1400076c3
mov rcx, qword [rbp - 0x20]
call fcn.14005bd4c
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
jmp 0x1400076db
mov rcx, qword [rbp - 0x20]
call fcn.14005bd4c
mov al, 1
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400076fc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
call fcn.140008bbc
cmp eax, 0xffffffff
je 0x14000772e
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x14000772e
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.140007fd0
test al, al
je 0x14000779d
mov rcx, rbx
call fcn.14000acc8
mov edi, eax
cmp eax, 1
je 0x140007752
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000774e
mov al, 1
jmp 0x14000779f
test edi, edi
je 0x14000779d
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000a7ec
test al, al
je 0x140007793
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
mov al, bl
jmp 0x14000779f
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400077ac
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rsi, rcx
xor r14d, r14d
mov dword [rcx + 8], r14d
mov rax, qword [rcx]
mov word [rax], r14w
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x30]
mov edi, 0x114
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1400078a0
cmp ebx, edi
jae 0x140007821
mov word [rbp + 0x158], r14w
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140002c08
mov eax, 1
jmp 0x1400078a0
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x14000783e
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140003c50
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
je 0x140007890
mov r8, qword [rsp + 0x20]
mov word [r8 + rbx*2], r14w
mov ecx, r14d
mov edi, 1
cmp word [r8], r14w
je 0x140007872
add ecx, edi
cmp word [r8 + rcx*2], r14w
jne 0x140007869
mov dword [rsp + 0x28], ecx
cmp ecx, edx
jne 0x140007890
lea eax, [rbx - 1]
cmp eax, edx
jne 0x140007890
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002ad0
jmp 0x140007893
mov dil, r14b
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
mov al, dil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140007a94
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0x114
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.140002c08
mov rcx, rdi
call fcn.14000b06c
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x260]
cmp eax, 0x112
setbe al
add rsp, 0x250
pop rdi
ret
Function at 0x140007af0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rbp, rdx
mov r14, rcx
call fcn.14000acc8
mov esi, eax
mov rcx, rbp
call fcn.14000acc8
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x140007b4c
cmp eax, ebx
je 0x140007b44
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140007b44
mov al, bl
jmp 0x140007bcc
test esi, esi
jne 0x140007b4c
test edi, edi
je 0x140007bca
lea rcx, [rsp + 0x40]
call fcn.1400029b0
nop
lea rcx, [rsp + 0x30]
call fcn.1400029b0
nop
cmp esi, ebx
je 0x140007b6a
cmp edi, ebx
jne 0x140007b6c
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rbp
mov rcx, r14
call fcn.14000ac30
test al, al
je 0x140007bb5
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x30]
call fcn.14005bd4c
nop
mov rcx, qword [rsp + 0x40]
call fcn.14005bd4c
jmp 0x140007b3d
mov rcx, qword [rsp + 0x30]
call fcn.14005bd4c
nop
mov rcx, qword [rsp + 0x40]
call fcn.14005bd4c
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140007c10
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.14000acc8
mov ebx, eax
cmp eax, 1
je 0x140007c3e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140007c3a
mov al, 1
jmp 0x140007c8b
test ebx, ebx
je 0x140007c89
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x140007c7f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
mov al, bl
jmp 0x140007c8b
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007ea4
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140008068
Capabilities:
Set file attributes

Disassembly:
mov r8d, edx
and edx, 0x3fff
test r8d, 0xf0000000
cmove edx, r8d
jmp fcn.140007fd0
Function at 0x140008bbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.14000acc8
mov ebx, eax
cmp eax, 1
je 0x140008be7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140008c32
test ebx, ebx
je 0x140008c2f
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x140008c25
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
mov eax, ebx
jmp 0x140008c32
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008ce4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r12, rcx
call fcn.140001298
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
xor edi, edi
test eax, eax
je 0x140008db5
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.14005bd54
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebp, eax
test eax, eax
je 0x140008daa
cmp eax, esi
ja 0x140008daa
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
mov r15d, edi
mov esi, edi
test ebp, ebp
je 0x140008d98
mov r14, rbx
inc esi
cmp word [r14], di
jne 0x140008d90
mov eax, r15d
lea rdx, [rbx + rax*2]
lea rcx, [rsp + 0x20]
call fcn.140002c08
mov r15d, esi
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14000120c
add r14, 2
cmp esi, ebp
jb 0x140008d67
cmp r15d, ebp
sete dil
mov rcx, qword [rsp + 0x20]
call fcn.14005bd4c
nop
mov rcx, rbx
call fcn.14005bd4c
mov al, dil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140009474
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x140009496
cmp byte [rcx + 0xa], 0
je 0x140009496
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x1400094cc
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400094be
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400094be
xor al, al
jmp 0x1400094ce
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140009664
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140009710
Capabilities:
Read file on windows

Disassembly:
mov eax, r8d
mov r8d, 0x400000
cmp eax, r8d
cmovbe r8d, eax
jmp fcn.140009664
Function at 0x1400097fc
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.140009728
test al, al
je 0x140009834
cmp qword [rsp + 0x40], rbx
jne 0x140009834
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x140009836
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400099e4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x50], 0
mov eax, r8d
mov rcx, qword [rcx]
mov r8d, 0x400000
cmp eax, r8d
mov rbx, r9
lea r9, [rsp + 0x50]
cmovbe r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000b21c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rsi, r9
mov r14, r8
mov rdi, rdx
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x18]
mov rbx, rcx
lea rdx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r10, qword [rbp - 0x18]
lea r9, [rbp - 0x1c]
mov qword [r14], r10
lea r8, [rbp + 0x48]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp + 0x40]
mov r15d, eax
mov qword [rsi], r10
lea rax, [rbp - 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x14000b2a8
mov ecx, dword [rbp + 0x40]
mov eax, dword [rbp + 0x48]
imul rcx, rax
mov qword [rdi], rcx
test r15d, r15d
jne 0x14000b2a6
mov eax, dword [rbp - 0x20]
imul rax, rcx
mov qword [r14], rax
mov eax, dword [rbp - 0x1c]
imul rax, qword [rdi]
mov qword [rsi], rax
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000bfe4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
and dword [rsp + 0x58], 0
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x14000c01c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
and dword [r9], 0
mov rsi, r9
and dword [rax + 8], 0
mov rbx, r8
mov qword [rax - 0x20], r9
mov r14, rcx
mov rcx, qword [rcx]
lea r9, [rax + 8]
and qword [rax - 0x28], 0
xor r8d, r8d
mov rbp, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000c067
cmp eax, 0xea
jne 0x14000c0bf
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x14000c099
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000c080
call fcn.14005bd4c
and qword [rbx], 0
and qword [rbx + 8], 0
test rdi, rdi
je 0x14000c099
mov rcx, rdi
call fcn.14005bd54
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov rax, qword [rbx]
lea r9, [rsp + 0x68]
and dword [rsp + 0x68], 0
xor r8d, r8d
mov rcx, qword [r14]
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14000c0d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [r8]
lea r9, [rbp + 0x48]
xor r14d, r14d
mov rbx, r8
mov dword [r8 + 8], r14d
mov rsi, rcx
xor r8d, r8d
mov rdi, rdx
mov word [rax], r14w
lea rax, [rbp + 0x30]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x48], r14d
mov dword [rbp + 0x30], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000c12a
cmp eax, 0xea
jne 0x14000c193
mov edx, dword [rbp + 0x30]
mov dword [rbp + 0x40], edx
cmp edx, dword [rbx + 0xc]
jbe 0x14000c13d
mov rcx, rbx
call fcn.140003c50
mov rax, qword [rbx]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 0x10]
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rbp - 0x10], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x30]
cmp ecx, dword [rbp + 0x40]
jbe 0x14000c173
mov ecx, dword [rbp + 0x40]
mov dword [rbp + 0x30], ecx
mov rdx, qword [rbx]
shr rcx, 1
mov word [rdx + rcx*2], r14w
mov ecx, r14d
cmp word [rdx], r14w
je 0x14000c190
inc ecx
cmp word [rdx + rcx*2], r14w
jne 0x14000c187
mov dword [rbx + 8], ecx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000c1d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
and qword [rbp + 0x180], 0
mov rdi, rdx
mov r8, rdx
mov rsi, rcx
mov rdx, qword [rcx]
mov r9d, 0x2001f
lea rcx, [rbp + 0x180]
call fcn.14000bf94
jmp 0x14000c220
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x180]
call fcn.14000c1d0
mov ebx, eax
test eax, eax
jne 0x14000c295
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x188]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x170]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rbp + 0x170], 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000c20f
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14000c287
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp + 0x180], 0
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14000c2a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000c2bc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c314
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov r9d, 4
xor r8d, r8d
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14000c344
Capabilities:
Set registry value

Disassembly:
movzx r8d, r8b
jmp fcn.14000c314
Function at 0x14000c350
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov r14, r8
mov r12, rdx
mov r13, rcx
mov ebp, esi
cmp dword [r8 + 8], esi
jbe 0x14000c39b
mov r8, qword [r8]
mov r9d, dword [r14 + 8]
mov rax, qword [r8]
lea r8, [r8 + 8]
mov eax, dword [rax + 8]
inc eax
add rbp, rax
sub r9, 1
jne 0x14000c386
mov rbx, rsi
test rbp, rbp
je 0x14000c3c1
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovb rax, rcx
mov rcx, rax
call fcn.14005bd54
mov rbx, rax
mov r15d, esi
cmp dword [r14 + 8], esi
jbe 0x14000c3f7
mov rcx, qword [r14]
mov edx, r15d
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rdx + 8]
mov rdx, qword [rdx]
inc ecx
mov edi, ecx
lea r8, [rcx + rcx]
lea rcx, [rbx + rsi*2]
call fcn.14006b630
add rsi, rdi
inc r15d
cmp r15d, dword [r14 + 8]
jb 0x14000c3ca
mov rcx, qword [r13]
lea eax, [rbp*2]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call fcn.14005bd4c
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000c920
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.14000c8f0
xor edx, edx
test eax, eax
je 0x14000c956
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14000c956
lea r8d, [rdx + 0x40]
mov ecx, eax
shr rax, 1
and ecx, 1
add edx, ecx
sub r8, 1
jne 0x14000c942
mov eax, edx
jmp 0x14000c965
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x14000c96c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14000c9ae
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x14000d070
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
mov rax, qword [rbx]
mov dword [rbx + 8], ecx
mov byte [rax], cl
mov rax, qword [rdx]
mov dword [rdx + 8], ecx
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d4f8
add rsp, 0x50
pop rbx
ret

Function at 0x14000d7c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
xor ebp, ebp
mov dword [rdx + 8], ebp
mov rsi, rcx
mov rbx, rdx
mov word [rax], bp
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test eax, eax
jne 0x14000d801
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
jmp 0x14000d844
cmp edi, dword [rbx + 0xc]
jbe 0x14000d810
mov edx, edi
mov rcx, rbx
call fcn.140003c50
mov rdx, qword [rbx]
lea r8d, [rdi + 1]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, qword [rbx]
mov ecx, ebp
cmp edi, eax
cmova edi, eax
mov word [rdx + rdi*2], bp
cmp word [rdx], bp
je 0x14000d83b
inc ecx
cmp word [rdx + rcx*2], bp
jne 0x14000d833
mov dword [rbx + 8], ecx
test edi, edi
je 0x14000d7f4
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400207d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r15, qword [rcx + 8]
xor r9d, r9d
mov r12, qword [rcx]
mov r13d, edx
mov qword [rsp + 0x38], r12
mov ebx, 0x159a55e5
mov r11d, 0x1f123bb5
lea r14d, [r9 + 1]
mov r10d, r14d
mov edi, r14d
test r15, r15
je 0x1400209a6
movzx eax, bx
imul ecx, eax, 0x9069
movzx eax, r11w
shr ebx, 0x10
shr r11d, 0x10
add ebx, ecx
imul ecx, eax, 0x4650
mov edx, ebx
shl edx, 0x10
add r11d, ecx
add edx, r11d
xor edx, r8d
mov eax, edx
shr edx, 1
test r14d, eax
je 0x1400209bb
cmp r9, 0x400
jb 0x1400209bb
mov ecx, edx
mov ebp, r14d
shr edx, 2
and ecx, 3
inc ecx
shl ebp, cl
sub ebp, r14d
and ebp, edx
shr edx, cl
mov eax, edx
inc ebp
shr edx, 3
test eax, 7
je 0x140020962
mov ecx, edx
mov eax, r14d
shr edx, 2
and ecx, 3
inc ecx
shl eax, cl
sub eax, r14d
and eax, edx
shr edx, cl
add ebp, eax
jmp 0x1400208aa
add edi, r14d
mov ecx, edi
mov rax, r14
shl rax, cl
cmp rax, r9
jb 0x1400208a7
mov r12d, dword [rsp + 0x48]
cmp r13d, edi
mov esi, InitCommonControls
mov r8d, r13d
cmova r8d, edi
cmp r8d, 0x15
lea eax, [rsi + 0x10]
cmova esi, eax
movzx eax, bx
mov r10d, esi
and r10d, edx
imul ecx, eax, 0x9069
movzx eax, r11w
add r10d, 6
imul edx, eax, 0x4650
shr ebx, 0x10
shr r11d, 0x10
add ebx, ecx
mov r14d, ebx
add r11d, edx
mov edx, ebx
shl edx, 0x10
add edx, r11d
xor edx, r12d
cmp r10d, r8d
ja 0x1400208d5
mov ecx, r10d
mov eax, edx
mov r10d, 1
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x140020954
movzx eax, r14w
imul ebx, eax, 0x9069
movzx eax, r11w
imul ecx, eax, 0x4650
shr r11d, 0x10
shr r14d, 0x10
add ebx, r14d
add r11d, ecx
mov edx, r11d
xor edx, r12d
jmp 0x1400208d5
mov r12, qword [rsp + 0x38]
mov r14d, 1
add r10, r14
lea rdx, [r12 + r9]
mov eax, ebp
mov rcx, r15
sub rcx, r9
cmp rax, rcx
cmovbe ecx, ebp
xor r8d, r8d
mov esi, ecx
mov rcx, rdx
sub rcx, r10
add r9, rsi
test esi, esi
je 0x140020998
mov al, byte [rcx]
add r8d, r14d
mov byte [rdx], al
add rcx, r14
add rdx, r14
cmp r8d, esi
jb 0x140020986
mov r8d, dword [rsp + 0x48]
cmp r9, r15
jb 0x140020821
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov byte [r12 + r9], dl
add r9, r14
jmp 0x14002099d