joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180078740
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov r13d, r9d
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
lea rax, vtable.LogUtils::LogAppender.0
mov qword [rcx], rax
xor edi, edi
mov qword [rcx + 8], rdi
mov dword [rcx + 0x10], edi
mov byte [rcx + 0x14], 1
mov dword [rcx + 0x18], edi
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x180078915
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x20], rax
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x180078920
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x28], rax
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x18007890a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x30], rax
mov r14, 0xffffffffffffffff
mov dword [rbx + 0x38], r14d
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rdi
mov dword [rbx + 0x18], r13d
test rsi, rsi
jne 0x18007881c
mov eax, edi
jmp 0x18007882a
mov rax, r14
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x180078820
mov r8d, eax
mov rdx, rsi
lea rcx, [rbx + 0x20]
call fcn.180013680
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x28]
call fcn.18002a400
test rbp, rbp
je 0x18007885d
mov rax, r14
nop
inc rax
cmp word [rbp + rax*2], 0
jne 0x180078850
mov edi, eax
mov r8d, edi
mov rdx, rbp
lea rcx, [rbx + 0x30]
call fcn.180013680
lea r8, [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1800797b0
nop
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.18002a400
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1800788a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, qword [rbx + 0x28]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1800788ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800788ea
cmp dword [rbx + 0x18], 0
je 0x1800788df
mov rcx, qword [rbx + 0x20]
call fcn.1800b69ec
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.180010480
nop
mov ecx, 0x80004005
call fcn.180010480
nop
mov ecx, 0x80004005
call fcn.180010480
int3
Function at 0x18007ac50
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 0x180
lea r9d, [rbp + 0x40]
mov r8d, 0x8109
call fcn.1800b75cc
mov esi, eax
test eax, eax
je 0x18007ae0f
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.18009b170
lea edx, [rbp + 2]
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x60]
call fcn.1800140d0
nop
lea rdx, str.open
lea rcx, [rsp + 0x60]
call fcn.180013a00
mov rcx, rax
mov rdx, rdi
call fcn.180013a00
mov rcx, rax
lea rdx, str._error.__
call fcn.180013a00
mov rcx, rax
mov edx, esi
call fcn.180078990
mov rcx, rax
lea rdx, [0x180103a30]
call fcn.180013a00
nop
movdqa xmm0, xmmword [0x1801180d0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
mov dword [rsp + 0x30], 2
mov rcx, qword [rsp + 0xd8]
test cl, 2
jne 0x18007ad6d
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x18007ad6d
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
jmp 0x18007ada1
test cl, 4
jne 0x18007adaf
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x18007adaf
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.18000f050
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18007ae05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007adff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007ae4b
call fcn.180050640
nop
lea rcx, [rsp + 0x60]
call fcn.1800147c0
mov ecx, dword [rbx]
cmp ecx, 0xffffffff
je 0x18007ae23
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1800b7b78
jmp 0x18007ae28
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180050ad0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.18009e27c
nop
int3
Function at 0x18007bff0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov r14, rdx
mov rsi, rcx
lea rbp, [rcx + 0x28]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbp
call fcn.18009b170
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rsi + 0x20028]
mov r8d, 0x20000
mov rdx, rbp
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18007c1ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
call fcn.18007a080
mov r8, qword [rax]
lea edx, [r13 + 1]
mov rcx, rax
call qword [r8 + 0x10]
cmp al, 1
jne 0x18007c1b3
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r13b
lea r8d, [r13 + 0x61]
lea rdx, str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea rcx, [rsp + 0x58]
call fcn.18000f910
nop
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], r13b
lea r8d, [r13 + 3]
lea rdx, [0x1800f4ed4]
lea rcx, [rsp + 0x38]
call fcn.18000f910
nop
call fcn.18007a080
mov rdi, rax
lea r9d, [r13 + 0x58]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.1800143c0
mov rbx, rax
lea rdx, str.RecvData_failed__error_code_:
mov rcx, rax
call fcn.180014650
mov edx, r15d
mov rcx, rbx
call fcn.18007b780
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
nop
lea rcx, [rsp + 0x80]
call fcn.1800147c0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18007c167
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007c162
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007c221
call fcn.180050640
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18007c1b3
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007c1ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007c21b
call fcn.180050640
mov dword [rsi + 0x18], 6
cmp r15d, 0xe8
jne 0x18007c1ce
mov dword [rsi + 0x18], 7
mov qword [rsi + 0x20], r13
lea rcx, [r14 + 8]
mov rax, qword [rcx]
mov qword [rcx + 8], rax
mov dword [r14 + 0x20], r13d
movsxd r9, dword [rsi + 0x20028]
add r9, rbp
mov rdx, qword [rcx + 8]
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
mov r8, rbp
call fcn.180042a00
mov dword [r14 + 0x20], r13d
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18009e27c
nop
call fcn.18009e27c
nop
int3
Function at 0x18007c230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x20], 0
jne 0x18007c27b
mov dword [rcx + 0x18], 8
jmp 0x18007c482
mov rax, qword [rdx + 0x10]
sub rax, qword [rdx + 8]
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.180050af4
mov r14, rax
xor r15d, r15d
test rax, rax
je 0x18007c2ad
lea r8, [rdi + 1]
xor edx, edx
mov rcx, rax
call fcn.18009b170
mov byte [r14], r15b
jmp 0x18007c2b0
mov r14, r15
mov dword [rsp + 0x160], r15d
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
sub rax, rdx
movsxd r8, eax
mov rcx, r14
call fcn.18009ad00
mov r8, qword [rbx + 0x10]
sub r8, qword [rbx + 8]
inc r8d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x160]
mov rdx, r14
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18007c471
mov dword [rsi + 0x18], 5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.18007a080
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8 + 0x10]
cmp al, 1
jne 0x18007c45c
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], r15b
mov r8d, 0x61
lea rdx, str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea rcx, [rsp + 0x50]
call fcn.18000f910
nop
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r8d, 3
lea rdx, [0x1800f4ed4]
lea rcx, [rsp + 0x30]
call fcn.18000f910
nop
call fcn.18007a080
mov rdi, rax
mov r9d, 0x48
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1800143c0
mov rbx, rax
lea rdx, str.send_failed__error_code_:
mov rcx, rax
call fcn.180014650
mov edx, ebp
mov rcx, rbx
call fcn.18007b780
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
nop
lea rcx, [rsp + 0x78]
call fcn.1800147c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18007c410
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007c40b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007c4af
call fcn.180050640
movdqa xmm0, xmmword [0x1801180e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18007c45c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007c457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007c4a9
call fcn.180050640
cmp ebp, 0xe8
jne 0x18007c475
mov dword [rsi + 0x18], 7
mov qword [rsi + 0x20], r15
jmp 0x18007c475
mov dword [rsi + 0x18], r15d
mov edx, 1
mov rcx, r14
call fcn.180050640
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.180050ad0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18009e27c
nop
call fcn.18009e27c
nop
int3
Function at 0x18007db80
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov r9, rcx
test edx, edx
je 0x18007dc64
mov r10d, edx
movzx edx, byte [r9]
lea r9, [r9 + 1]
xor dl, al
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
and r8b, 1
movzx eax, al
cmove eax, ecx
sub r10, 1
jne 0x18007db90
ret
Function at 0x18007f5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov r15, rcx
xor esi, esi
mov dword [rdx], esi
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x69], esi
mov qword [rbp - 0x61], rsi
mov r9d, 0x201
mov r8, qword [0x180142e40]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x71]
call fcn.180019b50
test eax, eax
jne 0x18007f762
xor edx, edx
lea r8d, [rsi + 0x64]
lea rcx, [rbp - 0x49]
call fcn.18009b170
mov dword [rsp + 0x30], 0x64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x180104824]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18007f762
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x18007f762
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18007f688
test cl, 1
jne 0x18007f762
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x4b], si
je 0x18007f68c
jmp 0x18007f762
mov word [rbp - 0x49], si
shr ecx, 1
cmp ecx, 0x2d
jne 0x18007f762
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x18007f796
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
call fcn.18007d750
mov dword [rsp + 0x34], esi
lea r8, [rsp + 0x34]
lea rdx, [0x18010482c]
lea rcx, [rbp + 0xb]
call fcn.1800504b0
mov edx, 0x2a
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call fcn.18007db80
movzx ecx, al
cmp dword [rsp + 0x34], ecx
jne 0x18007f743
lea rcx, [rbp - 0x49]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x18007f704
mov r8d, eax
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.180013680
mov r8d, dword [reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [str.ffffffff]
lea rcx, [rbp - 0x49]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov esi, 1
test eax, eax
jne 0x18007f741
mov dword [r14], esi
jmp 0x18007f74a
mov rdi, 0xffffffffffffffff
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18007f762
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x18007f771
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180050ad0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.180010480
int3
Function at 0x18008df90
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x18008e0c8
test rdx, rdx
je 0x18008e0c8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18008e0c8
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18008e0c8
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x18008e0be
xor eax, eax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008e0b5
cmp dword [rsp + 0x8c], ebx
jne 0x18008e0b5
mov edx, dword [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call fcn.180053150
nop
mov dword [rsp + 0x70], ebx
xor edx, edx
mov rcx, rsi
call fcn.180052fbc
mov rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x88], eax
jne 0x18008e0b5
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x180098700
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x550
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x1800988c0
cmp ebx, 0x20
jb 0x1800988c0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x400
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x140]
call fcn.18009b170
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x140]
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1800988c0
lea rcx, [rsp + 0x140]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1800987b0
cmp rax, 0x40
jne 0x1800988c0
mov edx, 0x80
lea r9, [rsp + 0x140]
lea rax, [rsp + 0x40]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x40]
lea rax, [r8 - 0x60]
test rax, rax
je 0x1800987fd
movzx eax, byte [r9 + rcx]
test al, al
je 0x1800987fd
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800987e0
test r8, r8
lea rax, [rcx - 1]
lea r9, [rsp + 0x160]
cmovne rax, rcx
lea rcx, [rsp + 0xc0]
mov byte [rax], 0
lea rax, [rsp + 0xc0]
sub r9, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x180098850
movzx eax, byte [r9 + rcx]
test al, al
je 0x180098850
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180098830
test rdx, rdx
lea rax, [rcx - 1]
mov r8d, 0x400
cmovne rax, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov byte [rax], 0
call fcn.18009b170
mov r8d, 0x400
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.1800988f0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800988c0
mov rdx, rbx
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.1800998a0
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x1800988c2
xor eax, eax
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.180050ad0
mov rbx, qword [rsp + 0x570]
add rsp, 0x550
pop rdi
ret
Function at 0x180099300
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r14
mov eax, 0x2c88
call fcn.180050b10
sub rsp, rax
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x2c60], rax
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x180099529
test edx, edx
je 0x180099529
mov qword [rsp + 0x2ca8], rbx
mov qword [rsp + 0x2cb0], rsi
mov qword [rsp + 0x2cb8], rdi
mov qword [rsp + 0x2c80], r12
mov qword [rsp + 0x2c78], r13
mov r13d, 0x80070057
mov qword [rsp + 0x2c70], r15
xor r15d, r15d
mov ebx, r15d
mov edi, r15d
lea r12d, [r15 + 1]
nop dword [rax]
mov r9d, edi
lea r8, str..PhysicalDrive_d
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.1800780c0
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800994ea
xor eax, eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x550]
xor edx, edx
mov qword [rsp + 0x4c], rax
mov r8d, 0x2710
mov dword [rsp + 0x48], r15d
call fcn.18009b170
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x550]
mov dword [rsp + 0x28], 0x2710
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800994dd
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x3e8
call fcn.18009b170
mov edx, dword [rsp + 0x568]
lea r9, [rsp + 0x160]
mov r8d, r12d
lea rcx, [rsp + 0x550]
call fcn.18009a2a0
lea rax, [r14 - 1]
mov ecx, r15d
cmp rax, 0x7ffffffe
mov rdx, r14
cmova ecx, r13d
test ecx, ecx
js 0x1800994d9
mov rax, rbp
test r14d, r14d
je 0x1800994c0
mov r8d, 0x7ffffffe
lea r9, [rsp + 0x160]
sub r8, rdx
sub r9, rbp
lea rcx, [r8 + rdx]
test rcx, rcx
je 0x1800994c0
movzx ecx, byte [r9 + rax]
test cl, cl
je 0x1800994c0
mov byte [rax], cl
inc rax
sub rdx, r12
jne 0x1800994a4
test rdx, rdx
lea rcx, [rax - 1]
cmovne rcx, rax
mov byte [rcx], r15b
mov ecx, 0x8007007a
cmovne ecx, r15d
test ecx, ecx
cmove ebx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1800994f5
inc edi
cmp edi, 0x10
jl 0x180099380
mov r15, qword [rsp + 0x2c70]
mov eax, ebx
mov rbx, qword [rsp + 0x2ca8]
mov r13, qword [rsp + 0x2c78]
mov r12, qword [rsp + 0x2c80]
mov rdi, qword [rsp + 0x2cb8]
mov rsi, qword [rsp + 0x2cb0]
jmp 0x18009952b
xor eax, eax
mov rcx, qword [rsp + 0x2c60]
xor rcx, rsp
call fcn.180050ad0
add rsp, 0x2c88
pop r14
pop rbp
ret
Function at 0x180099550
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x18009961e
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18009b170
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18009961e
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x1800995b0
mov ecx, 0x103
mov eax, eax
sub rcx, rdx
cmp rax, rcx
jae 0x18009961e
lea rcx, [rsp + 0x20]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800995d2
mov eax, dword [0x180104760]
mov dword [rcx], eax
lea rcx, [rsp + 0x20]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800995f0
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180099600
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180099620
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180050ad0
add rsp, 0x240
pop rbx
ret
Function at 0x180099640
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call fcn.18009b170
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800988f0
mov edx, 0x104
lea rax, [rsp + 0xc0]
mov r9, rdi
lea rcx, [rsp + 0xc0]
mov r8d, edx
sub r9, rax
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1800996d0
movzx eax, byte [r9 + rcx]
test al, al
je 0x1800996d0
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800996b0
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov rcx, rdx
mov byte [rax], 0
lea rax, [rsp + 0xc0]
nop dword [rax]
cmp byte [rax], 0
je 0x1800996fe
inc rax
sub rcx, 1
jne 0x1800996f0
xor r8d, r8d
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x18009975f
lea rcx, [rsp + 0xc0]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x180099751
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, [rsp + 0x40]
sub r9, rcx
test rax, rax
je 0x180099751
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x180099751
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x180099733
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x100
lea rcx, [rsp + 0x1d0]
call fcn.18009b170
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x1d0]
mov rcx, 0xffffffff80000002
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x18009982d
lea rax, [rsp + 0x1d0]
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1800997e3
inc rax
test ecx, ecx
jne 0x1800997d1
test edx, edx
je 0x18009982d
lea rcx, [rsp + 0x1d0]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1800997f2
mov dword [rsp + 0x28], eax
lea r8, str.mid64_old
lea rax, [rsp + 0x1d0]
mov r9d, 1
lea rdx, str.SoftwareWow6432NodeComMaster
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea rax, [rsp + 0xc0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180099835
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], ebx
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.mid64
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.180050ad0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rdi
ret