joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009f280
Capabilities:
Set registry value

Disassembly:
jmp 0x14009f290
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov rdx, qword [rcx]
mov rdi, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14009f30c
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14009f290
Capabilities:
Set registry value

Disassembly:
jmp 0x14009f290
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov rdx, qword [rcx]
mov rdi, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14009f30c
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400a0ef0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x78], edi
cmp qword [rdx + 8], rdi
jne 0x1400a1078
lea r15, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400a0f4b
test byte [rcx + 0x44], 8
je 0x1400a0f4b
cmp byte [rcx + 0x41], 4
jb 0x1400a0f4b
lea edx, [rdi + 0x2e]
lea r8, [0x140231948]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
lea rcx, [rbp + 0x6f0]
mov r8, r14
lea rdx, [rsp + 0x30]
call fcn.14009d6a0
nop
mov rdx, rax
mov rcx, rsi
call fcn.140034440
nop
lea rcx, [rsp + 0x30]
call fcn.1400348c0
rdtsc
shl rdx, 0x20
or rax, rdx
lea rcx, [rbp + 0x568]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x38]
mov r8, rax
mov rdx, rbx
mov rax, r9
call qword [case.0x140047660.0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400a0ffd
test byte [rcx + 0x44], 8
je 0x1400a0ffd
cmp byte [rcx + 0x41], 3
jb 0x1400a0ffd
mov rax, qword [rsi + 8]
mov qword [rsp + 0x88], rax
mov r9, qword [rsi]
mov qword [rsp + 0x78], r9
mov edi, 3
lea edx, [rdi + 0x2c]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r8, [0x140231948]
mov rcx, qword [rcx + 0x38]
call fcn.140025d50
mov rcx, qword [0x1402aa8a0]
test dil, 2
je 0x1400a1017
and edi, 0xfffffffd
lea rcx, [rsp + 0x78]
call fcn.140034400
mov rcx, qword [0x1402aa8a0]
test dil, 1
je 0x1400a1031
lea rcx, [rsp + 0x88]
call fcn.140034400
mov rcx, qword [0x1402aa8a0]
cmp qword [rsi + 8], 0
jne 0x1400a1078
cmp rcx, r15
je 0x1400a1062
test byte [rcx + 0x44], 8
je 0x1400a1062
cmp byte [rcx + 0x41], 3
jb 0x1400a1062
lea r9, [rbp + 0x10]
mov edx, 0x30
lea r8, [0x140231948]
mov rcx, qword [rcx + 0x38]
call fcn.14002a750
mov eax, 0x70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a3480
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x60
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov r14, rcx
mov rax, qword [rax + 0x28]
call qword [case.0x140047660.0]
test eax, eax
jne 0x1400a35b6
mov ecx, dword [rsi]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r15
test ecx, ecx
je 0x1400a3594
xor r15d, r15d
cmp ecx, 6
jb 0x1400a35ee
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a3517
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test eax, eax
jne 0x1400a35f3
jmp 0x1400a351d
mov eax, dword [rsp + 0x38]
sub dword [rsi], eax
mov edx, dword [rsi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x1400a35e5
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x3c], eax
mov dword [rsi], edx
call fcn.1400a59a0
mov rbx, rax
test rax, rax
je 0x1400a35e5
mov rax, qword [rax]
lea r8, [rsp + 0x3c]
mov rdx, rbp
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x140047660.0]
mov edi, eax
test eax, eax
jne 0x1400a35cc
mov rax, qword [r14 + 0x28]
test rax, rax
je 0x1400a3580
mov qword [rax + 0x18], rbx
jmp 0x1400a3584
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x28], rbx
mov eax, dword [rsi]
mov ecx, eax
test eax, eax
jne 0x1400a34d5
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140100
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x140047660.0]
mov eax, edi
jmp 0x1400a35a4
mov edi, 0xd
mov eax, edi
jmp 0x1400a35a4
mov edi, 0x452
mov eax, edi
jmp 0x1400a35a4

Function at 0x1400a3c20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x30], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x1400a3c4e
mov eax, 0x4df
jmp 0x1400a3cb7
mov ecx, dword [r8]
mov eax, 2
shr ecx, 1
inc ecx
mul rcx
mov qword [rdi + 0x38], rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400e21a0
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x1400a3c84
mov eax, 0xe
jmp 0x1400a3cb7
mov r8d, dword [rbx]
lea r9, [rsp + 0x30]
xor ecx, ecx
mov rdx, rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a3caf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400a3cb7
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a3cd0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r9, r8
mov qword [rsp + 0x20], 0
mov r8d, dword [rcx + 0x38]
mov rax, rdx
mov rdx, qword [rcx + 0x30]
mov rcx, rax
lea r8d, [r8*2 + 2]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400a3d0b
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400a43e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a443d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret

Function at 0x1400a4460
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400a4495
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a4c80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [r8], 6
mov rsi, r8
mov rbp, rdx
mov r14, rcx
jae 0x1400a4cb6
mov ebx, 0x452
mov eax, ebx
jmp 0x1400a4e7b
xor r15d, r15d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
mov dword [rsp + 0x38], r15d
mov rcx, rbp
mov qword [rsp + 0x20], r15
lea r8d, [r15 + 6]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a4cef
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400a4cf5
jmp 0x1400a4e7b
mov eax, dword [rsp + 0x38]
sub dword [rsi], eax
mov edx, dword [rsp + 0x3c]
cmp dx, 0xc
jne 0x1400a4e76
mov ecx, dword [rsi]
mov eax, dword [rsp + 0x3e]
add rcx, 6
cmp rax, rcx
ja 0x1400a4e76
movzx eax, word [rsp + 0x40]
mov r8, rsi
mov dword [r14 + 0x12], edx
mov rcx, r14
mov word [r14 + 0x16], ax
mov rdx, rbp
mov rax, qword [r14]
mov rax, qword [rax + 0x28]
call qword [case.0x140047660.0]
mov ebx, eax
test eax, eax
jne 0x1400a4e2f
mov ecx, dword [rsi]
mov qword [rsp + 0x98], rdi
test ecx, ecx
je 0x1400a4e15
cmp ecx, 6
jb 0x1400a4e65
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a4d98
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400a4e27
jmp 0x1400a4d9e
mov eax, dword [rsp + 0x38]
sub dword [rsi], eax
mov edx, dword [rsi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x1400a4e54
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x44], eax
mov dword [rsi], edx
call fcn.1400a59a0
mov rdi, rax
test rax, rax
je 0x1400a4e54
mov rcx, qword [rax]
lea r8, [rsp + 0x44]
mov rdx, rbp
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140047660.0]
mov ebx, eax
test eax, eax
jne 0x1400a4e33
mov rax, qword [r14 + 0x28]
test rax, rax
je 0x1400a4e01
mov qword [rax + 0x18], rdi
jmp 0x1400a4e05
mov qword [r14 + 0x20], rdi
mov qword [r14 + 0x28], rdi
mov eax, dword [rsi]
mov ecx, eax
test eax, eax
jne 0x1400a4d56
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov ebx, eax
mov rdi, qword [rsp + 0x98]
mov eax, ebx
jmp 0x1400a4e7b
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140047660.0]
mov rdi, qword [rsp + 0x98]
mov eax, ebx
jmp 0x1400a4e7b
mov rdi, qword [rsp + 0x98]
mov ebx, 0xd
mov eax, ebx
jmp 0x1400a4e7b
mov rdi, qword [rsp + 0x98]
mov ebx, 0x452
mov eax, ebx
jmp 0x1400a4e7b
mov eax, 0xd
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140140100
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400a50c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400a50f5
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a5100
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a515d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret

Function at 0x1400a56c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400a56f5
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400a5700
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a575d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret

Function at 0x1400a5c10
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400a5c6d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
add rsp, 0x40
pop rbx
ret

Function at 0x1400a5c90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400a5cc5
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a5da0
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x1400a5e7a
cmp word [rbx + 0x12], 0xa
jne 0x1400a5e7a
mov ecx, 0x98
call fcn.14013ffac
mov qword [rsp + 0x30], rax
xor ecx, ecx
test rax, rax
je 0x1400a5e16
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rcx
mov rcx, rax
call fcn.140038bc0
mov rcx, rax
mov qword [rdi + 0x30], rcx
test rcx, rcx
jne 0x1400a5e63
lea rax, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rax
je 0x1400a5e53
test byte [rcx + 0x44], 1
je 0x1400a5e53
cmp byte [rcx + 0x41], 2
jb 0x1400a5e53
mov edx, 0xa
lea r8, [0x140232810]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov eax, 0xe
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
movzx edx, word [rax + 8]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140038d60
mov eax, 0xd
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7640
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [0x1402aa8a0]
lea rsi, [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a7695
test byte [rcx + 0x44], 2
je 0x1400a7695
cmp byte [rcx + 0x41], 4
jb 0x1400a7695
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x3d
call fcn.140024300
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400a76f9
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a76f2
test byte [rcx + 0x44], 2
je 0x1400a76f2
cmp byte [rcx + 0x41], 2
jb 0x1400a76f2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x3e
mov r9d, eax
call fcn.1400268d0
mov eax, ebx
jmp 0x1400a7851
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.BootMigrationPhase
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400a776e
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a775c
test byte [rcx + 0x44], 2
je 0x1400a775c
cmp byte [rcx + 0x41], 2
jb 0x1400a775c
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov r9d, ebx
call fcn.1400268d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
jmp 0x1400a7851
cmp dword [rsp + 0x3c], 4
jne 0x1400a7814
cmp dword [rsp + 0x38], 4
jne 0x1400a7814
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BootMigrationPhase
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400a77d5
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a775c
test byte [rcx + 0x44], 2
je 0x1400a775c
cmp byte [rcx + 0x41], 2
jb 0x1400a775c
mov edx, 0x41
jmp 0x1400a7749
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a7810
test byte [rcx + 0x44], 2
je 0x1400a7810
cmp byte [rcx + 0x41], 5
jb 0x1400a7810
mov r9d, dword [rdi]
lea r8, [0x140232820]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.1400268d0
xor eax, eax
jmp 0x1400a7851
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a7841
test byte [rcx + 0x44], 2
je 0x1400a7841
cmp byte [rcx + 0x41], 2
jb 0x1400a7841
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x40
call fcn.140024300
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, 0x70c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400a99b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [0x1402aa8a0]
lea rsi, [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a9a35
test byte [rcx + 0x44], 2
je 0x1400a9a0c
cmp byte [rcx + 0x41], 4
jb 0x1400a9a0c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x43
call fcn.140024300
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a9a35
test byte [rcx + 0x44], 2
je 0x1400a9a35
cmp byte [rcx + 0x41], 5
jb 0x1400a9a35
mov r9d, dword [rdi]
lea r8, [0x140232820]
mov rcx, qword [rcx + 0x38]
mov edx, 0x44
call fcn.1400268d0
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400a9a96
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a9a92
test byte [rcx + 0x44], 2
je 0x1400a9a92
cmp byte [rcx + 0x41], 2
jb 0x1400a9a92
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x45
mov r9d, eax
call fcn.1400268d0
mov eax, ebx
jmp 0x1400a9b10
mov rcx, qword [rsp + 0x30]
lea rdx, str.BootMigrationPhase
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400a9b03
mov rcx, qword [0x1402aa8a0]
cmp rcx, rsi
je 0x1400a9af4
test byte [rcx + 0x44], 2
je 0x1400a9af4
cmp byte [rcx + 0x41], 2
jb 0x1400a9af4
mov rcx, qword [rcx + 0x38]
lea r8, [0x140232820]
mov edx, 0x46
mov r9d, eax
call fcn.1400268d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
jmp 0x1400a9b10
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400aa610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rax]
call qword [case.0x140047660.0]
xor ebp, ebp
lea rdx, [rbx + 0x12]
mov r9, rsi
mov dword [rbx + 0x14], eax
mov rcx, rdi
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 6]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400aa66c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x1400aa6d6
mov rax, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140047660.0]
mov ecx, dword [rsp + 0x30]
add dword [rsi], ecx
test eax, eax
jne 0x1400aa6d6
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], ebp
test rbx, rbx
je 0x1400aa6d0
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.1400aa610
mov edx, eax
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
test edx, edx
jne 0x1400aa6d2
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400aa6a1
mov edx, ebp
add dword [rsi], eax
mov eax, edx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400aef00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x139], 0
mov rbx, rcx
je 0x1400aef1b
call fcn.1400aeac0
mov eax, dword [rbx + 0xc]
xor edi, edi
cmp eax, 1
jne 0x1400aef5d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov eax, edi
lea rcx, [0x1400d4ef0]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1400fa5ec
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400aef5d
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400aef77
mov edi, 0x139f
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0xc], 2
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400aef90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc]
xor edi, edi
mov rbx, rcx
cmp eax, 1
jne 0x1400aefdf
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov eax, edi
lea rcx, [0x1400d4ef0]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1400fa5ec
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400aefdf
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400aeff9
mov edi, 0x139f
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0xc], 2
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret