joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce0
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x407de2
cmp ebx, 0x114
jae 0x407d4c
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.00403a1c
mov al, 1
jmp 0x407de2
lea rcx, [rsp + 0x20]
call fcn.00403838
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x407d69
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.004034c4
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x407d8b
mov rcx, qword [rsp + 0x20]
call fcn.004046d0
xor al, al
jmp 0x407de2
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x407da9
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x407d9d
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x407dd6
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x407dd6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00403a84
nop
mov rcx, qword [rsp + 0x20]
call fcn.004046d0
mov al, 1
jmp 0x407de2
mov rcx, qword [rsp + 0x20]
call fcn.004046d0
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x407ed4
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.00403a1c
mov rcx, rbx
call fcn.0040b27c
cmp esi, edi
je 0x407f21
cmp esi, 0x114
jae 0x407f21
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x407f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, 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 r13d, eax
xor r13d, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x407ff8
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x407f9c
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x407fdb
mov rcx, rsi
call fcn.004040c8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00403290
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x40800f
lea rdx, str..tmp
mov rcx, rsi
call fcn.00403290
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.004038a4
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.00403cdc
mov rcx, qword [rsp + 0x28]
call fcn.00409a58
cmp al, dil
je 0x408051
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
jmp 0x408098
cmp rbp, rdi
je 0x40806d
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.0040a7b4
cmp al, dil
jne 0x4080a6
jmp 0x40807c
mov rcx, qword [rsp + 0x28]
call fcn.00407b34
cmp al, dil
jne 0x4080b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40808e
cmp eax, 0xb7
jne 0x4080c4
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
add ebx, r15d
cmp ebx, 0x64
jb 0x407f82
jmp 0x4080ce
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
mov al, r15b
jmp 0x4080d9
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
mov al, r15b
jmp 0x4080d9
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x408e44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b8f4
mov ebx, eax
cmp eax, 1
je 0x408e71
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408ec2
test ebx, ebx
je 0x408ebd
lea rcx, [rsp + 0x28]
call fcn.00403838
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bfc0
test al, al
je 0x408eb3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
mov eax, ebx
jmp 0x408ec2
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x409b98
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x409be8
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x409be4
mov rcx, qword [rsi]
call fcn.004046d0
mov rcx, rsi
call fcn.004046d0
test ebx, ebx
jne 0x409bc0
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x409ced
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x409c27
add rcx, rcx
call fcn.00404698
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x409ce3
cmp eax, edi
ja 0x409ce3
lea rcx, [rsp + 0x28]
call fcn.00403838
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x409cc4
mov r12, rbx
cmp word [r12], 0
jne 0x409cba
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00403a1c
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.0040f7bc
mov ecx, InitCommonControls
call fcn.00404698
mov qword [rsp + 0x88], rax
test rax, rax
je 0x409ca6
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.00403994
mov r11, rax
jmp 0x409ca9
xor r11d, r11d
mov ecx, dword [rbp + 8]
lea eax, [rcx + 1]
mov dword [rbp + 8], eax
mov rax, qword [rbp]
mov qword [rax + rcx*8], r11
inc edi
add r12, 2
cmp edi, esi
jb 0x409c5b
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call fcn.004046d0
nop
mov rcx, rbx
call fcn.004046d0
mov al, dil
jmp 0x409ced
mov rcx, rbx
call fcn.004046d0
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x409dbc
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x409ddb
cmp byte [rcx + 0xa], 0
je 0x409ddb
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x409e17
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x409e06
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409e06
xor al, al
jmp 0x409e19
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x409f3c
Capabilities:
Read file on windows

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

Function at 0x409f78
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00409f3c

Function at 0x40a03c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov 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 0x40a150
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.00409e7c
xor ebx, ebx
cmp al, bl
je 0x40a178
cmp qword [rsp + 0x50], rdi
je 0x40a17c
xor al, al
jmp 0x40a18a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x40c360
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [0x00474c80]
mov rdi, r9
mov rsi, r8
mov rbx, rdx
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetDiskFreeSpaceExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40c3c6
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r12
call rax
test eax, eax
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x48]
setne bpl
mov qword [rdi], rax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40c418
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
imul rcx, rax
test bpl, bpl
mov qword [rbx], rcx
jne 0x40c416
mov eax, dword [rsp + 0x38]
imul rax, rcx
mov qword [rsi], rax
mov eax, dword [rsp + 0x3c]
imul rax, qword [rbx]
mov qword [rdi], rax
mov al, 1
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40cc98
Capabilities:
Set registry value

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

Function at 0x40ccc8
Capabilities:
Set registry value

Disassembly:
mov al, r8b
xor r8d, r8d
cmp al, r8b
setne r8b
jmp fcn.0040cc98
Function at 0x40ccdc
Capabilities:
Set registry value

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

Function at 0x40cd20
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret

Function at 0x40cdd4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ce33
cmp eax, 0xea
jne 0x40cea9
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40ce48
mov rcx, rbx
call fcn.004034c4
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40cea6
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40ce9a
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40cfa8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x260
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, [rax + 0x38]
mov r9d, 0x2001f
mov qword [rax + 0x38], 0
call fcn.0040cf54
test eax, eax
mov ebx, eax
jne 0x40d05c
mov ebx, 0x105
jmp 0x40cff4
lea rdx, [rsp + 0x50]
call fcn.0040cfa8
test eax, eax
jne 0x40d05a
mov rcx, qword [rsp + 0x298]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x290], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x298]
test eax, eax
je 0x40cfe6
call fcn.0040cc64
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040cc64
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40d078
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d0c7
cmp eax, 0xea
jne 0x40d129
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40d0ff
mov rcx, qword [rbx]
test rcx, rcx
je 0x40d0e3
call fcn.004046d0
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40d0ff
mov rcx, rdi
call fcn.00404698
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40d134
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor esi, esi
mov r12, r8
mov r15, rdx
cmp dword [r8 + 8], esi
mov rbp, rsi
jbe 0x40d175
mov r9, qword [r8]
mov r8d, dword [r8 + 8]
mov rax, qword [r9]
add r9, 8
mov eax, dword [rax + 8]
inc eax
add rbp, rax
dec r8
jne 0x40d161
cmp rbp, rsi
mov rbx, rsi
je 0x40d18a
lea rcx, [rbp + rbp]
call fcn.00404698
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40d1c8
mov r13, rsi
mov rax, qword [r12]
lea rcx, [rbx + rsi*2]
mov rdx, qword [r13 + rax]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
inc eax
mov edi, eax
lea r8, [rax + rax]
call sub.msvcrt.dll_memcpy
inc r14d
add rsi, rdi
add r13, 8
cmp r14d, dword [r12 + 8]
jb 0x40d197
mov rcx, qword [rsp + 0x80]
lea eax, [rbp + rbp]
mov r9d, 3
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call fcn.004046d0
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x40d210
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rdx
mov r12, rcx
movsxd rbx, dword [rdx + 8]
mov rsi, rbx
test ebx, ebx
je 0x40d261
shl rsi, 3
add ebx, 0xffffffff
sub rsi, 8
mov rax, qword [rdi]
mov rbp, qword [rsi + rax]
test rbp, rbp
je 0x40d25d
mov rcx, qword [rbp]
call fcn.004046d0
mov rcx, rbp
call fcn.004046d0
test ebx, ebx
jne 0x40d239
mov dword [rdi + 8], 0
lea rcx, [rsp + 0x48]
call fcn.00403838
nop
xor esi, esi
mov ebp, 0x105
mov dword [rsp + 0x98], ebp
cmp dword [rsp + 0x54], ebp
jae 0x40d293
mov edx, ebp
lea rcx, [rsp + 0x48]
call fcn.004034c4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8, qword [rsp + 0x48]
mov edx, esi
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov rax, qword [rsp + 0x48]
mov word [rax + 0x20a], 0
xor ecx, ecx
cmp word [rax], cx
je 0x40d2f7
inc ecx
add rax, 2
cmp word [rax], 0
jne 0x40d2eb
mov dword [rsp + 0x50], ecx
cmp ebx, 0x103
je 0x40d350
test ebx, ebx
jne 0x40d35e
mov rcx, rdi
call fcn.0040f7bc
lea ecx, [rbx + 0x10]
call fcn.00404698
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x40d336
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.00403994
mov r11, rax
jmp 0x40d339
xor r11d, r11d
mov ecx, dword [rdi + 8]
lea eax, [rcx + 1]
mov dword [rdi + 8], eax
mov rax, qword [rdi]
mov qword [rax + rcx*8], r11
inc esi
jmp 0x40d27a
mov rcx, qword [rsp + 0x48]
call fcn.004046d0
xor eax, eax
jmp 0x40d36a
mov rcx, qword [rsp + 0x48]
call fcn.004046d0
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40da4c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040da24
xor r8d, r8d
cmp eax, r8d
je 0x40da8b
cmp qword [rsp + 0x20], r8
je 0x40da8b
mov rcx, r8
lea eax, [r8 + 0x40]
mov rdx, qword [rsp + 0x20]
shr rdx, cl
inc rcx
and edx, 1
add r8d, edx
dec rax
jne 0x40da70
mov eax, r8d
jmp 0x40da9a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x40daa0
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40dae2
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 0x40ded8
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.0040dcb0
add rsp, 0x50
pop rbx
ret
Function at 0x40ec88
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rdx]
xor ebx, ebx
mov rbp, rcx
mov dword [rdx + 8], ebx
mov word [rax], bx
mov rcx, qword [rcx]
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
mov esi, eax
je 0x40ecf3
cmp eax, dword [rdi + 0xc]
jbe 0x40ecc0
mov edx, eax
mov rcx, rdi
call fcn.004034c4
mov rdx, qword [rdi]
mov rcx, qword [rbp]
lea r8d, [rsi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp esi, eax
cmova esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40ece7
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40ece1
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40ed00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40ed02
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x41fd4c
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x41fedf
mov eax, edx
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
dec rax
jne 0x41fd56
mov eax, ecx
ret
Function at 0x4206dc
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, qword [rcx + 8]
mov r13, qword [rcx]
xor r9d, r9d
test rbp, rbp
lea r12d, [r9 + 1]
mov r14d, r8d
mov r15d, edx
mov edi, 0x159a55e5
mov esi, 0x1f123bb5
mov r10, r12
mov r11d, r12d
je 0x420891
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
shl edx, 0x10
imul ecx, ecx, 0x4650
add esi, ecx
add edx, esi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x420880
cmp r9, 0x400
jb 0x420880
mov ecx, edx
shr edx, 2
mov r8d, r12d
and ecx, 3
inc ecx
shl r8d, cl
sub r8d, r12d
and r8d, edx
shr edx, cl
mov eax, edx
inc r8d
shr edx, 3
and eax, 7
je 0x420849
mov ecx, edx
shr edx, 2
mov eax, r12d
and ecx, 3
inc ecx
shl eax, cl
sub eax, r12d
and eax, edx
shr edx, cl
add r8d, eax
jmp 0x42079d
add r11d, r12d
mov ecx, r11d
mov rax, r12
shl rax, cl
cmp rax, r9
jb 0x42079a
cmp r15d, r11d
mov ecx, 5
mov ebx, r15d
cmova ebx, r11d
lea eax, [rcx - 1]
cmp ebx, 0x15
cmovbe ecx, eax
shl r12d, cl
add r12d, 0xffffffff
movzx ecx, di
shr edi, 0x10
mov r10d, r12d
and r10d, edx
movzx edx, si
shr esi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
add r10d, 6
imul edx, edx, 0x4650
add esi, edx
mov edx, edi
shl edx, 0x10
add edx, esi
xor edx, r14d
cmp r10d, ebx
ja 0x4207ca
mov ecx, r10d
mov r10d, 1
mov eax, edx
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x420840
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
imul ecx, ecx, 0x4650
add esi, ecx
shl edx, 0x10
add edx, esi
xor edx, r14d
jmp 0x4207ca
mov r12d, 1
add r10, r12
mov eax, r8d
lea rdx, [r13 + r9]
mov rcx, rbp
sub rcx, r9
cmp rax, rcx
cmova r8d, ecx
mov rcx, rdx
mov ebx, r8d
sub rcx, r10
add r9, rbx
test r8d, r8d
je 0x420888
mov al, byte [rcx]
add rcx, r12
mov byte [rdx], al
add rdx, r12
sub rbx, r12
jne 0x42086f
jmp 0x420888
mov byte [r13 + r9], dl
add r9, r12
cmp r9, rbp
jb 0x420716
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret