joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140111120
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov edi, edx
mov rbx, rcx
mov word [rsp + 0x30], si
test rcx, rcx
je 0x1401112fe
test edx, edx
je 0x1401112fe
mov word [rcx], si
mov rdx, rcx
mov ecx, edi
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
je 0x1401112a0
cmp word [rbx], si
je 0x1401112a0
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140111191
and eax, 0x10
jne 0x1401111d8
xor edx, edx
mov rcx, rbx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
jne 0x1401111d8
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401111d0
test byte [rcx + 0x1c], 1
je 0x1401111d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9, rbx
call fcn.14000fcd0
mov word [rbx], si
jmp 0x1401112dd
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbx
call sub.KERNEL32.dll_GetLongPathNameW
dec eax
cmp eax, 0x102
ja 0x14011124c
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.140044bb0
mov ebx, eax
test eax, eax
jns 0x14011129c
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401112fa
test byte [rcx + 0x1c], 1
je 0x1401112fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, ebx
call fcn.14000fd64
jmp 0x1401112fa
call sub.KERNEL32.dll_GetLastError
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011129c
test byte [rcx + 0x1c], 2
je 0x14011129c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, reloc.Cabinet.dll_FDIDestroy
call fcn.14000fd64
mov ebx, esi
jmp 0x1401112fa
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401112dd
test byte [rcx + 0x1c], 1
je 0x1401112dd
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, reloc.Cabinet.dll_FDICreate
call fcn.14000fd64
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov eax, ebx
jmp 0x140111331
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011132c
test byte [rcx + 0x1c], 1
je 0x14011132c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, SafeArrayAccessData
call fcn.14000fcb0
mov eax, 0x80070057
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401116b8
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call sub.KERNEL32.dll_GetVersionExW
xor ecx, ecx
test eax, eax
jne 0x14011173c
mov rax, qword [0x140148ea8]
lea rcx, [0x140148ea8]
cmp rax, rcx
je 0x140111738
test byte [rax + 0x1c], 1
je 0x140111738
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x3f
call fcn.14000fd64
xor eax, eax
jmp 0x140111746
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001000
add rsp, 0x158
ret
Function at 0x140111a50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [rbp + 0x50]
and dword [rbp + 0x30], 0
mov esi, r9d
mov r14, r8
mov rdi, rcx
mov dword [rbp + 0x48], r9d
mov dword [rbp + 0x38], 4
mov qword [rbp - 0x10], rcx
test rbx, rbx
je 0x140111a85
and dword [rbx], 0
test rdx, rdx
jne 0x140111a8f
cmp dword [rbp + 0x58], edx
je 0x140111aaf
lea rax, [rbp - 0x10]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140111ad5
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140111ae9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140111afe
jmp 0x140111afa
cmp dword [rbp + 0x30], 4
jne 0x140111af5
cmp dword [rbp + 0x38], 4
je 0x140111b0c
mov ecx, 0x8007065d
test ecx, ecx
jns 0x140111b0c
mov dword [rbp + 0x48], esi
test rbx, rbx
je 0x140111b0c
mov dword [rbx], 1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140111b20
cmp rcx, rdi
je 0x140111b20
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x48]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140111b30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [rbp + 0x50]
and dword [rbp + 0x30], 0
mov rsi, r9
mov r14, r8
mov rdi, rcx
mov qword [rbp - 0x10], r9
mov dword [rbp + 0x38], 8
mov qword [rbp + 0x48], rcx
test rbx, rbx
je 0x140111b65
and dword [rbx], 0
test rdx, rdx
jne 0x140111b6f
cmp dword [rbp + 0x58], edx
je 0x140111b8f
lea rax, [rbp + 0x48]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140111bb5
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140111bc9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140111bde
jmp 0x140111bda
cmp dword [rbp + 0x30], 0xb
jne 0x140111bd5
cmp dword [rbp + 0x38], 8
je 0x140111bed
mov ecx, 0x8007065d
test ecx, ecx
jns 0x140111bed
mov qword [rbp - 0x10], rsi
test rbx, rbx
je 0x140111bed
mov dword [rbx], 1
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140111c01
cmp rcx, rdi
je 0x140111c01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x10]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140111ea0
Capabilities:
Check for time delay via gettickcount

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, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov r14, rcx
call sub.KERNEL32.dll_GetTickCount
mov r9d, dword [rsp + 0x60]
and dword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rdi
mov ecx, esi
mov ebp, eax
call sub.KERNEL32.dll_WaitForMultipleObjectsEx
mov ebx, eax
call sub.KERNEL32.dll_GetTickCount
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x140111f2a
test byte [rcx + 0x1c], 4
je 0x140111f2a
cmp eax, ebp
jb 0x140111f0a
sub eax, ebp
jmp 0x140111f0e
sub eax, ebp
dec eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, DispGetParam
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140011da0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret
Function at 0x140112c0c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, rcx
mov rdi, rdx
xor r12d, r12d
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x24c
mov ebx, r12d
mov dword [rsp + 0x30], r12d
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x182]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x180], r12w
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x140112cbe
lea ebx, [rdi + 0x57]
mov rcx, qword [0x140148ea8]
lea rdi, [0x140148ea8]
cmp rcx, rdi
je 0x140112e8a
test byte [rcx + 0x1c], 1
je 0x140112e8a
lea edx, [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
jmp 0x140112e8a
test r15, r15
jne 0x140112ced
lea ebx, [r15 + 0x57]
mov rcx, qword [0x140148ea8]
lea rdi, [0x140148ea8]
cmp rcx, rdi
je 0x140112e8a
test byte [rcx + 0x1c], 1
je 0x140112e8a
lea edx, [rbx + 0x21]
jmp 0x140112ca9
lea r8, [0x1400014f0]
lea rcx, [rbp + 0x180]
mov r9, r15
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call fcn.1400780b0
test eax, eax
jns 0x140112d57
mov ebx, eax
and ebx, 0x1000ffff
mov rcx, qword [0x140148ea8]
lea rdi, [0x140148ea8]
cmp rcx, rdi
je 0x140112e8a
test byte [rcx + 0x1c], 1
je 0x140112e8a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov edx, 0x79
mov r9d, eax
call fcn.14000fd64
jmp 0x140112e8a
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call sub.KERNEL32.dll_FindFirstFileW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140112db1
mov rcx, qword [0x140148ea8]
lea rdi, [0x140148ea8]
cmp rcx, rdi
je 0x140112e8a
test byte [rcx + 0x1c], 4
je 0x140112e8a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x7b]
lea r9, [rbp + 0x180]
lea r8, [0x1400015b8]
call fcn.14000fcd0
jmp 0x140112e8a
lea rdi, [0x140148ea8]
cmp dword [rsp + 0x30], 0x10
je 0x140112e6d
lea rax, [rsp + 0x5c]
lea r8, [0x1400014f0]
lea rcx, [rbp + 0x180]
mov r9, r15
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1400780b0
mov r14d, eax
test eax, eax
js 0x140112e3a
lea rcx, [rbp + 0x180]
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
jne 0x140112e6d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140112e6d
test byte [rcx + 0x1c], 1
je 0x140112e6d
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x180]
lea r8, [0x1400015b8]
mov edx, 0x7b
mov dword [rsp + 0x20], eax
call fcn.140011da0
jmp 0x140112e6d
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140112e64
test byte [rcx + 0x1c], 1
je 0x140112e64
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov edx, 0x7c
mov r9d, eax
call fcn.14000fd64
mov ebx, r14d
and ebx, 0x1000ffff
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x140112db8
mov rcx, rsi
call sub.KERNEL32.dll_FindClose
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140114a20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
xor r14d, r14d
lea rax, [0x140114b80]
lea rcx, [0x1400015c8]
mov qword [rbp + 0xf], rax
lea rax, [0x140114c10]
mov dword [rbp + 0x67], 4
mov qword [rbp + 0x17], rax
lea rax, [0x140114c90]
mov edi, r14d
mov qword [rbp + 0x1f], rax
lea rax, [0x1400092e0]
mov dword [rbp + 0x6f], r14d
mov dword [rbp + 0x7f], 4
mov dword [rbp + 0x77], r14d
mov qword [rbp + 7], r14
mov qword [rbp + 0x27], rax
call fcn.1401138b8
test eax, eax
je 0x140114a95
xor eax, eax
jmp 0x140114b6a
mov ebx, r14d
lea rsi, [rbp + 0xf]
mov rdx, qword [rsi]
lea rax, [rbp + 7]
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140114ad2
inc ebx
add rsi, 8
cmp ebx, 4
jb 0x140114a9c
jmp 0x140114b68
mov rcx, qword [rbp + 7]
lea rax, [rbp + 0x7f]
lea r9, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
lea rdx, [0x140009350]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140114b5e
cmp dword [rbp + 0x67], 4
jne 0x140114b5e
cmp dword [rbp + 0x6f], r14d
jbe 0x140114b5e
lea edi, [rax + 1]
test ebx, ebx
jne 0x140114b5e
mov rcx, qword [rbp + 7]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140114b5b
cmp dword [rbp + 0x77], r14d
je 0x140114b5e
mov edi, r14d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140115204
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, r8
mov qword [r11 + 0x10], rsi
test rdx, rdx
je 0x140115293
cmp word [rdx], si
je 0x140115293
test rbx, rbx
je 0x140115273
cmp word [r8], si
je 0x140115273
lea rax, [r11 + 0x10]
mov r9d, 0x20106
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14011525f
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14011526f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1401152c6
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401152c1
test byte [rcx + 0x1c], 1
je 0x1401152c1
mov edx, 0x25
jmp 0x1401152b1
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401152c1
test byte [rcx + 0x1c], 1
je 0x1401152c1
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1401152e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov dword [rax - 0x18], 4
mov dword [rax + 0x10], ebp
mov qword [rax - 0x10], rbp
test rdx, rdx
je 0x140115422
cmp word [rdx], bp
je 0x140115422
test r8, r8
je 0x140115402
cmp word [r8], bp
je 0x140115402
test r9, r9
jne 0x14011535d
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115450
test byte [rcx + 0x1c], 1
je 0x140115450
lea edx, [rbp + 0x16]
jmp 0x140115440
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1401153ee
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
je 0x1401153ee
mov r8d, dword [rsp + 0x58]
cmp r8d, 4
je 0x1401153ee
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401153e9
test byte [rcx + 0x1c], 1
je 0x1401153e9
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400015b8]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov r9, rdi
call fcn.140011da0
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401153fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140115455
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115450
test byte [rcx + 0x1c], 1
je 0x140115450
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
jmp 0x140115440
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115450
test byte [rcx + 0x1c], 1
je 0x140115450
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140115470
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov dword [rax + 0x10], ebp
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x30], rbp
add eax, eax
mov dword [rsp + 0x70], eax
test rdx, rdx
je 0x1401155b2
cmp word [rdx], bp
je 0x1401155b2
test r8, r8
je 0x140115592
cmp word [r8], bp
je 0x140115592
test r9, r9
jne 0x1401154f1
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401155e0
test byte [rcx + 0x1c], 1
je 0x1401155e0
lea edx, [rbp + 0xc]
jmp 0x1401155d0
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14011557e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14011557e
mov r8d, dword [rsp + 0x58]
cmp r8d, 1
je 0x14011557e
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
cmp rcx, rax
je 0x14011557e
test byte [rcx + 0x1c], 1
je 0x14011557e
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400015b8]
mov edx, ebx
mov r9, rdi
call fcn.140011da0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14011558e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1401155e5
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401155e0
test byte [rcx + 0x1c], 1
je 0x1401155e0
mov edx, reloc.WSOCK32.dll_inet_ntoa
jmp 0x1401155d0
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1401155e0
test byte [rcx + 0x1c], 1
je 0x1401155e0
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140115600
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, r9
mov rsi, rdx
mov qword [r11 + 0x10], rbp
test rdx, rdx
je 0x14011572c
cmp word [rdx], bp
je 0x14011572c
test r9, r9
je 0x14011570c
cmp word [r9], bp
je 0x14011570c
mov qword [r11 - 0x18], rbp
lea rax, [r11 + 0x10]
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x140115694
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x1401156f8
test byte [rcx + 0x1c], 1
je 0x1401156f8
lea edx, [rbp + 0x1a]
mov r9, rsi
jmp 0x1401156e4
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x80]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1401156f8
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x1401156f8
test byte [rcx + 0x1c], 1
je 0x1401156f8
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov dword [rsp + 0x20], eax
call fcn.140011da0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140115708
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14011575f
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14011575a
test byte [rcx + 0x1c], 1
je 0x14011575a
mov edx, DispGetParam
jmp 0x14011574a
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14011575a
test byte [rcx + 0x1c], 1
je 0x14011575a
mov edx, DispGetParam
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
mov eax, 0x57
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140115774
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rbp, r9
mov rsi, rdx
mov r10, rcx
mov qword [rax + 0x10], r15
test rdx, rdx
je 0x14011595a
cmp word [rdx], r15w
je 0x14011595a
test r9, r9
je 0x14011593a
cmp word [r9], r15w
je 0x14011593a
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x14011591a
cmp word [rdi], r15w
je 0x14011591a
mov r14d, 0x7fffffff
mov rcx, rdi
mov eax, r14d
cmp word [rcx], r15w
je 0x1401157f8
add rcx, 2
dec rax
jne 0x1401157e9
test rax, rax
je 0x1401158cd
mov qword [rsp + 0x40], r15
sub r14, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x14011587c
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115906
test byte [rcx + 0x1c], 1
je 0x140115906
mov edx, SafeArrayAccessData
mov r9, rsi
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov dword [rsp + 0x20], ebx
call fcn.140011da0
jmp 0x140115906
mov rcx, qword [rsp + 0x78]
lea eax, [r14*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140115906
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115906
test byte [rcx + 0x1c], 1
je 0x140115906
mov edx, SafeArrayAccessData
mov r9, rdi
jmp 0x140115863
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115901
test byte [rcx + 0x1c], 1
je 0x140115901
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov edx, SafeArrayUnlock
mov r9d, 0x80070057
call fcn.14000fd64
mov ebx, 0x57
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140115916
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14011598d
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115988
test byte [rcx + 0x1c], 1
je 0x140115988
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
jmp 0x140115978
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115988
test byte [rcx + 0x1c], 1
je 0x140115988
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
jmp 0x140115978
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115988
test byte [rcx + 0x1c], 1
je 0x140115988
mov edx, reloc.Cabinet.dll_FCIDestroy
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
mov eax, 0x57
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140115a3c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, dword [rsp + 0xc0]
mov r13d, r9d
mov r15d, edx
mov esi, r14d
xor ebx, ebx
call sub.KERNEL32.dll_GetTickCount
mov r12, qword [rsp + 0xb0]
mov ebp, eax
lea eax, [r14 - 1]
cmp eax, 0xfffffffd
ja 0x140115a8a
mov esi, r14d
sub esi, ebx
mov r9d, esi
mov r8d, r13d
mov rdx, r12
mov ecx, r15d
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp eax, r15d
jne 0x140115ae3
mov ebx, 1
jmp 0x140115ac8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140115ab2
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
sub ebx, ebp
cmp ebp, eax
jbe 0x140115af2
dec ebx
cmp edi, r15d
je 0x140115a7c
mov rcx, qword [0x140148ea8]
mov r12, qword [rsp + 0xa0]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140115b34
test byte [rcx + 0x1c], 4
je 0x140115b34
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov edx, 0x69
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.140011da0
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret