joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000585ec
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
push rdi
sub rsp, 0xa8
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x90], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x30]
mov rdi, r9
mov r9d, r8d
mov r8, rdx
mov qword [rsp + 0x28], rax
mov edx, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x100058660
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x7df013e
jmp 0x10005879e
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x80]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x100058692
lea rcx, [rsp + 0x80]
call fcn.1000b19d0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test eax, eax
je 0x1000586b5
mov edx, 0x7e6013e
jmp 0x1000587a0
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x30]
call sub.msvcrt.dll_memset
mov eax, dword [0x10011bcd8]
mov rdx, qword [rsp + 0x38]
neg eax
mov eax, dword [rsp + 0xe8]
lea r8, [0x100016300]
sbb ecx, ecx
mov r9d, 1
mov qword [rsp + 0x50], rdx
not ecx
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x60], 1
and ecx, 0x20
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x64], ecx
or ecx, 8
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100058730
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x7f7013e
jmp 0x10005879e
mov r8d, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100058772
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x7fc013e
jmp 0x10005879e
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 2]
call qword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x1000587af
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x805013e
mov ebx, eax
xor r9d, r9d
mov r8d, eax
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000587b1
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1000587c1
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1000587d3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1000587e3
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000587f3
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0xa8
pop rdi
pop rbx
ret
Function at 0x10005fc74
Capabilities:
Get domain controller name

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x2b0
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
and qword [r8], 0
mov rsi, qword [rsp + 0x300]
mov r12, qword [rsp + 0x308]
and qword [rsi], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
or qword [rsp + 0x40], 0xffffffffffffffff
mov rcx, rdx
lea rdx, [rsp + 0x50]
mov r13, r9
mov rbp, r8
call fcn.10005fad8
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x10005fce7
xor r9d, r9d
mov edx, 0x2240135
jmp 0x10005fdcf
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], Ordinal_261
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], reloc.WLDAP32.dll_Ordinal_16
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x10005fd49
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x2340135
mov ebx, eax
jmp 0x10005fdca
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x40000000
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov ebx, eax
test eax, eax
je 0x10005fd7b
mov edx, 0x2430135
jmp 0x10005fdca
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.NTDSAPI.dll_DsBindW]
mov ebx, eax
test eax, eax
je 0x10005fd9d
mov edx, 0x2480135
jmp 0x10005fdca
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov r9, r13
mov rdx, qword [rdx + 0x28]
mov r8d, 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
mov ebx, eax
test eax, eax
je 0x10005fdd9
mov edx, 0x2520135
xor r9d, r9d
xor ecx, ecx
mov r8d, eax
call fcn.1000b51b8
jmp 0x10005fe13
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov r9, r12
mov rdx, qword [rdx + 0x28]
mov r8d, 3
mov qword [rsp + 0x20], rsi
call qword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
test eax, eax
je 0x10005fe11
xor r9d, r9d
mov r8d, eax
mov edx, 0x25a0135
xor ecx, ecx
call fcn.1000b51b8
xor ebx, ebx
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x10005fe26
lea rcx, [rsp + 0x40]
call qword [sym.imp.NTDSAPI.dll_DsUnBindW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10005fe35
call sub.NETAPI32.dll_NetApiBufferFree
cmp qword [rsp + 0x50], 0
je 0x10005fe48
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x2b0
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x100060024
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov ebx, ecx
lea rcx, [0x10000c564]
mov esi, r8d
mov rdi, rdx
call fcn.1000b99b0
mov ecx, 0x821
call fcn.1000ba420
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.1000b99b0
lea rcx, [0x10000c564]
call fcn.1000b99b0
lea r8, [0x100017048]
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x400
call fcn.10003e304
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000600d5
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
xor r9d, r9d
mov edx, 0x820
mov r8d, eax
xor ecx, ecx
mov ebx, eax
call fcn.1000ba5ac
mov r9d, ebx
mov r8d, ebx
mov edx, 0x2d40135
xor ecx, ecx
call fcn.1000b51b8
jmp 0x100060140
mov rcx, rdi
call fcn.10005fe70
mov ebx, eax
test eax, eax
je 0x100060107
xor r9d, r9d
mov r8d, eax
mov edx, 0x81e
xor ecx, ecx
call fcn.1000ba5ac
mov r9d, ebx
mov r8d, ebx
mov edx, 0x2de0135
xor ecx, ecx
call fcn.1000b51b8
mov edx, esi
mov rcx, rdi
call fcn.10005f4c4
mov edi, eax
test eax, eax
je 0x100060140
xor r9d, r9d
mov r8d, eax
mov edx, 0x81f
xor ecx, ecx
call fcn.1000ba5ac
mov r9d, edi
mov r8d, edi
mov edx, 0x2e70135
xor ecx, ecx
call fcn.1000b51b8
test ebx, ebx
cmove ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret

Function at 0x1000630d8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
test ecx, ecx
js 0x1000630f6
cmp ebx, 5
jae 0x1000630f6
lea rcx, [0x100113828]
mov ecx, dword [rcx + rbx*4]
jmp 0x1000630fb
mov ecx, 0x2db
call fcn.1000ba420
mov edx, ebx
mov rcx, rax
call fcn.1000b99b0
lea rcx, [0x10000c564]
add rsp, 0x20
pop rbx
jmp fcn.1000b99b0
Function at 0x100065be0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x2058
call fcn.1000f37e0
sub rsp, rax
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r13d, r13d
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
cmp rdx, r13
je 0x100065c56
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r13d
je 0x100065c51
mov r9d, eax
mov edx, 0x12c50136
mov rcx, rsi
jmp 0x100065d09
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x1ffe
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
je 0x100065c97
mov r9d, eax
mov edx, 0x12cf0136
mov rcx, rdi
jmp 0x100065d09
mov r8d, dword [rsp + 0x34]
mov ebx, reloc.WLDAP32.dll_Ordinal_13
cmp r8d, 1
je 0x100065ccd
cmp r8d, 2
je 0x100065ccd
xor r9d, r9d
mov edx, 0x12d40136
mov rcx, rdi
call fcn.1000b51b8
mov edx, 0x12d50136
mov r8d, ebx
xor r9d, r9d
mov rcx, rdi
jmp 0x100065d0c
cmp dword [rsp + 0x30], 0x2000
jb 0x100065cde
mov edx, 0x12d90136
jmp 0x100065cc2
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov rdx, r12
shr rax, 1
mov word [rsp + rax*2 + 0x40], r13w
call fcn.1000b80c8
mov ebx, eax
cmp eax, r13d
je 0x100065d11
xor r9d, r9d
mov edx, 0x12de0136
xor ecx, ecx
mov r8d, eax
call fcn.1000b51b8
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x100065d26
cmp rbp, rcx
je 0x100065d26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.1000b7bec
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x2058
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100065d54
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x460
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rax, [rsp + 0x38]
mov r13, r9
movzx edi, r8w
xor r14d, r14d
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rbx, rdx
mov r12b, r14b
mov qword [rsp + 0x38], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
je 0x100065db2
mov edx, 0x12f90136
jmp 0x100065e01
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x10000d4b0]
xor r8d, r8d
mov dword [rsp + 0x30], 0x40e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x100065dfc
mov r8d, dword [rsp + 0x34]
cmp r8d, r14d
jne 0x100065e43
mov eax, 0x80070002
mov edx, 0x13070136
mov r9d, eax
mov r8d, eax
xor ecx, ecx
call fcn.1000b51b8
mov rcx, qword [rsp + 0x38]
cmp rcx, r14
je 0x100065e1e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, r12b
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp r8d, 1
je 0x100065e72
cmp r8d, 2
je 0x100065e72
xor r9d, r9d
mov edx, 0x130c0136
mov rcx, rbx
call fcn.1000b51b8
xor r9d, r9d
mov edx, 0x130d0136
mov r8d, 0x8007000d
mov rcx, rbx
jmp 0x100065e09
cmp dword [rsp + 0x30], 0x410
jae 0x100065e0e
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movzx edx, di
shr rax, 1
mov word [rsp + rax*2 + 0x40], r14w
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbx, rax
cmp rax, r14
jne 0x100065ea6
lea rbx, [rsp + 0x40]
jmp 0x100065f00
mov edx, 0x2e
cmp di, dx
jne 0x100065ef8
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
cmp rax, r14
je 0x100065ef8
cmp rbx, rax
je 0x100065ef8
mov ebp, 1
lea rdi, [rbx + 2]
jmp 0x100065ed9
inc ebp
add rdi, 2
movzx ecx, word [rdi]
call qword [sym.imp.msvcrt.dll_iswdigit]
cmp eax, r14d
jne 0x100065ed3
movsxd rax, ebp
cmp r14w, word [rbx + rax*2]
jne 0x100065ef8
mov word [rbx], r14w
mov rbx, rsi
mov word [rbx], r14w
add rbx, 2
mov rdx, rbx
mov rcx, r13
call fcn.1000b5684
cmp eax, r14d
je 0x100065f26
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.1000b5684
cmp eax, r14d
jne 0x100065e0e
mov r12b, 1
jmp 0x100065e0e
Function at 0x100065f34
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x290
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
mov rsi, rdx
xor r12d, r12d
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
mov r13, r8
mov rbp, rcx
xor edx, edx
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x40], reloc.certcli.dll_Ordinal_260
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10006610a
mov eax, Ordinal_127
cmp ax, word [rsp + 0x70]
jne 0x1000660d0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x1000660d0
test rsi, rsi
je 0x100066069
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100066015
xor r9d, r9d
mov r8d, eax
mov edx, 0x134b0136
xor ecx, ecx
call fcn.1000b51b8
jmp 0x100066054
mov rcx, qword [rsp + 0x48]
lea rdx, [0x100018770]
mov r8d, 0x5c
mov r9, rsi
call fcn.100065d54
test al, al
jne 0x100066051
mov rcx, qword [rsp + 0x48]
lea rdx, [0x100018790]
mov r8d, 0x2e
mov r9, rsi
call fcn.100065d54
test al, al
je 0x100066054
mov dil, 1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100066064
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x1000660d0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbp
call fcn.100065be0
test eax, eax
je 0x100066097
lea rcx, [rsp + 0x70]
mov r9d, eax
mov r8d, eax
mov edx, 0x13a40136
call fcn.1000b51b8
mov rbx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
test rbx, rbx
mov rcx, r13
cmovne r8, rbx
call fcn.100065ae8
mov edi, eax
test eax, eax
jne 0x1000660f6
test rbx, rbx
je 0x1000660d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
inc r12d
and qword [rsp + 0x20], 0
mov rcx, rbp
mov edx, r12d
jmp 0x100065f82
xor r9d, r9d
mov r8d, eax
mov edx, 0x13a90136
xor ecx, ecx
call fcn.1000b51b8
jmp 0x10006610c
xor edi, edi
test rbx, rbx
je 0x10006611a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000ef870
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100069a88
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor esi, esi
mov r12b, dl
xor edi, edi
lea edx, [rsi + 0x5c]
mov rbp, rcx
mov qword [rax + 0x20], rsi
mov qword [rax - 0x28], rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbx, rax
test rax, rax
jne 0x100069ac3
mov rbx, rbp
jmp 0x100069ac7
add rbx, 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100069c6a
and eax, 0x10
test al, al
jne 0x100069c6a
mov ecx, 0xa60
call fcn.1000ba420
lea rcx, [0x100013cd8]
mov r8, rbx
mov rdx, rax
call fcn.1000b99b0
lea r11, [rsp + 0x38]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call fcn.1000e1488
mov ebx, eax
test eax, eax
je 0x100069b41
xor r9d, r9d
mov r8d, eax
mov edx, 0x6540143
xor ecx, ecx
call fcn.1000b51b8
mov rsi, qword [rsp + 0x78]
jmp 0x100069c94
mov ecx, 0xa59
call fcn.1000ba420
mov ecx, 0x7d0
mov rbx, rax
call fcn.1000ba420
mov edx, dword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
lea rcx, [0x100019330]
mov r8d, edx
mov r9, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call fcn.1000b99b0
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0xa58
xor ecx, ecx
call fcn.100051fbc
mov ebx, eax
test eax, eax
je 0x100069bae
xor r9d, r9d
mov r8d, eax
mov edx, 0x65f0143
xor ecx, ecx
call fcn.1000b51b8
jmp 0x100069c94
test rsi, rsi
je 0x100069c1e
cmp dword [0x10011bcd8], edi
lea r9, [rsp + 0x30]
mov rcx, rsi
sete dl
xor r8d, r8d
call fcn.1000e12dc
mov ebx, eax
test eax, eax
je 0x100069bee
xor r9d, r9d
mov r8d, eax
mov edx, 0x6680143
xor ecx, ecx
call fcn.1000b51b8
mov rdi, qword [rsp + 0x30]
jmp 0x100069c94
mov rdi, qword [rsp + 0x30]
mov rcx, rbp
mov rdx, rdi
call fcn.1000b5684
test eax, eax
je 0x100069c1e
mov ecx, 0xa63
call fcn.1000ba420
lea rcx, [0x100019378]
mov r8, rdi
mov rdx, rax
call fcn.1000b99b0
test r12b, r12b
je 0x100069c86
mov ecx, 0xa61
call fcn.1000ba420
lea rcx, [0x100017d10]
mov rdx, rax
call fcn.1000b99b0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100069c86
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
xor r9d, r9d
mov edx, 0x67b0143
mov r8d, eax
mov rcx, rbp
call fcn.1000b51b8
jmp 0x100069c86
mov ecx, 0xa62
call fcn.1000ba420
lea rcx, [0x100013cd8]
mov r8, rbx
mov rdx, rax
call fcn.1000b99b0
lea rcx, [0x10000c564]
call fcn.1000b99b0
xor ebx, ebx
test rsi, rsi
je 0x100069ca2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x100069cb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x10006a344
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
test rcx, rcx
lea rbx, [0x10000c2a4]
mov rdi, rdx
cmovne rbx, rcx
mov ecx, 0xa6c
call fcn.1000ba420
lea rcx, [0x100015490]
mov r9, rdi
mov r8, rax
mov rdx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1000b99b0
Function at 0x10006a390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x10000c8e4]
lea rbx, [0x10000c2a4]
mov ecx, 0xa6d
test rax, rax
mov rdi, rdx
cmovne rbx, rax
call fcn.1000ba420
lea rcx, [0x100015490]
mov r9, rdi
mov rdx, rbx
mov r8, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1000b99b0

Function at 0x10006a5c4
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0xa6e
call fcn.1000ba420
lea rdx, [0x10000c8e4]
lea rcx, [0x100014fd8]
mov r8, rax
call fcn.1000b99b0
cmp dword [0x10011bd08], 0
jne 0x10006a620
test rdi, rdi
je 0x10006a620
or rcx, 0xffffffffffffffff
xor eax, eax
lea r8, [0x1000193d0]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [0x100004ae0]
call fcn.1000b99b0
jmp 0x10006a62f
lea rcx, [0x1000109b8]
mov rdx, rdi
call fcn.1000b99b0
lea rcx, [0x10000c564]
add rsp, 0x20
pop rdi
jmp fcn.1000b99b0
Function at 0x10006cb08
Capabilities:
Query or enumerate registry value

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 r12
push r13
push r14
sub rsp, 0x30
mov rsi, qword [rsp + 0x70]
xor ebx, ebx
mov r13, r9
mov r12, r8
mov rbp, rdx
mov r14, rcx
cmp rsi, rbx
je 0x10006cb40
mov qword [rsi], rbx
cmp rdx, rbx
je 0x10006cc5a
cmp r8, rbx
je 0x10006cc5a
cmp r9, rbx
je 0x10006cc5a
cmp rsi, rbx
je 0x10006cc5a
lea rax, [rsp + 0x70]
mov r9, r8
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, ebx
je 0x10006cb9f
mov r9d, 2
mov edx, 0x6770138
mov r8d, eax
mov rcx, rbp
jmp 0x10006cc6c
mov edx, dword [rsp + 0x70]
xor ecx, ecx
add rdx, 6
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
cmp rax, rbx
jne 0x10006cbd3
mov edi, 0x8007000e
xor r9d, r9d
mov edx, 0x6800138
mov r8d, edi
xor ecx, ecx
call fcn.1000b51b8
jmp 0x10006cc75
lea rcx, [rsp + 0x70]
mov r9, r12
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, ebx
je 0x10006cc04
xor r9d, r9d
mov edx, 0x68a0138
jmp 0x10006cb94
cmp dword [r12], 1
je 0x10006cc18
cmp dword [r12], 7
je 0x10006cc18
mov eax, dword [rsp + 0x70]
jmp 0x10006cc54
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsi]
shr rax, 1
xor edx, edx
mov dword [rcx + rax*2], edx
mov word [rcx + rax*2 + 4], dx
mov rax, rcx
cmp bx, word [rax]
jne 0x10006cc3a
cmp bx, word [rax + 2]
je 0x10006cc40
add rax, 2
jmp 0x10006cc2f
sub rax, rcx
shr rax, 1
cmp dword [r12], 1
setne bl
inc ebx
add eax, ebx
add eax, eax
mov dword [r13], eax
jmp 0x10006cc8b
mov edi, 0x80004003
xor r9d, r9d
mov edx, 0x66d0138
mov r8d, edi
xor ecx, ecx
call fcn.1000b51b8
cmp edi, ebx
je 0x10006cc8b
cmp rsi, rbx
je 0x10006cc8b
cmp qword [rsi], rbx
je 0x10006cc8b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rbx
mov ecx, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
jmp fcn.1000b7bec
Function at 0x10007c674
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
and qword [r9], 0
and qword [rax - 0x28], 0
mov rdi, r8
mov rsi, r9
mov ebp, edx
lea r9, [rax + 0x20]
mov r8d, 8
mov rdx, rdi
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007c6cd
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x1e620139
jmp 0x10007c757
cmp dword [rsp + 0x68], 8
mov r14d, 0x80070026
mov ebx, r14d
je 0x10007c6f4
mov edx, 0x1e6c0139
mov r8d, r14d
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
jmp 0x10007c781
mov ecx, dword [rdi + 4]
lea eax, [rcx + 8]
cmp eax, ebp
jbe 0x10007c705
mov edx, 0x1e750139
jmp 0x10007c6e2
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
jne 0x10007c727
mov ebx, 0x8007000e
mov edx, 0x1e7c0139
mov r8d, ebx
jmp 0x10007c6e5
mov r8d, dword [rdi + 4]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007c768
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x1e810139
mov r8d, eax
xor r9d, r9d
xor ecx, ecx
mov ebx, eax
call fcn.1000b51b8
jmp 0x10007c77d
mov eax, dword [rdi + 4]
cmp dword [rsp + 0x68], eax
je 0x10007c77b
mov edx, 0x1e8b0139
jmp 0x10007c6e2
xor ebx, ebx
test ebx, ebx
je 0x10007c793
mov rcx, qword [rsi]
test rcx, rcx
je 0x10007c793
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsi], 0
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret