joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x14006b6b9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14006b804
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14006b6e3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14006b6eb
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x14006b7ac
cmp qword [rsp + 0x28], 0
jle 0x14006b7ac
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x14006b723
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x14006b7f4
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x14006b7f4
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14006dd60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1402e7fc0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x14006dd9d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006dda4
mov al, 1
jmp 0x14006df2d
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x3c], 0xffffffff
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x3c], eax
jne 0x14006de00
mov dword [rsp + 0x40], 1
jmp 0x14006de08
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14006de21
xor al, al
jmp 0x14006df2d
mov qword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14006de94
cmp dword [rsp + 0x34], 1
je 0x14006dea0
cmp dword [rsp + 0x34], 3
je 0x14006df1b
jmp 0x14006df2b
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14006def2
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x14006def2
xor al, al
jmp 0x14006df2d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006df0c
mov dword [rsp + 0x44], 1
jmp 0x14006df14
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
jmp 0x14006df2d
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14006df2d
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019f3a0
add rsp, 0xb8
ret
Function at 0x140074810
Capabilities:
Get file size
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x288
mov rax, qword [0x1402e7fc0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jb 0x1400748cd
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
ja 0x1400748cd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019f3a0
add rsp, 0x288
ret

Function at 0x1400749a0
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402e7fc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400749fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d4c70]
call fcn.140074900
mov eax, dword [rsp + 0x30]
jmp 0x140074b0c
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140074a54
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d4c98]
call fcn.140074900
mov eax, dword [rsp + 0x30]
jmp 0x140074b0c
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax], 0x4d2
mov qword [rsp + 0x48], 0x1000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140074ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d4cc0]
call fcn.140074900
mov dword [rsp + 0x30], 0
jmp 0x140074ae2
cmp qword [rsp + 0x48], 1
je 0x140074ad2
mov dword [rsp + 0x34], 1
jmp 0x140074ada
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019f3a0
add rsp, 0x68
ret
Function at 0x140074e50
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1402e7fc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140074eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d5110]
call fcn.140074900
mov eax, dword [rsp + 0x30]
jmp 0x140074fec
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140074f04
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d5138]
call fcn.140074900
mov eax, dword [rsp + 0x30]
jmp 0x140074fec
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x50], 0x1000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140074f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401d5160]
call fcn.140074900
mov dword [rsp + 0x30], 0
jmp 0x140074fc2
cmp qword [rsp + 0x50], 1
je 0x140074f84
mov dword [rsp + 0x38], 1
jmp 0x140074f8c
mov dword [rsp + 0x38], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp dword [rcx + rax], 1
jne 0x140074faa
mov dword [rsp + 0x34], 1
jmp 0x140074fb2
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14019f3a0
add rsp, 0x78
ret
Function at 0x1400752b0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402e7fc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
je 0x1400752f6
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14019f3a0
add rsp, 0x38
ret

Function at 0x140075f20
Capabilities:
Encode data using xor

Disassembly:
lea r10, [0x1402ef260]
movsxd rax, ecx
lea rcx, [rax + rax*2]
movsx r8d, byte [r10 + rcx*8 + 0x10]
mov rdx, qword [r10 + rcx*8 + 8]
mov r10, qword [r10 + rcx*8]
xor ecx, ecx
vmovd xmm2, r8d
vpbroadcastb ymm2, xmm2
test rdx, rdx
je 0x140075fbf
cmp rdx, 0x80
jb 0x140075fab
mov r9, rdx
lea rax, [r10 + 0x40]
and r9, 0xffffffffffffff80
nop dword [rax]
nop word [rax + rax]
vpxor ymm1, ymm2, ymmword [rax - 0x40]
vmovdqu ymmword [rax - 0x40], ymm1
vpxor ymm1, ymm2, ymmword [rax - 0x20]
vmovdqu ymmword [rax - 0x20], ymm1
vpxor ymm1, ymm2, ymmword [rax]
vmovdqu ymmword [rax], ymm1
vpxor ymm1, ymm2, ymmword [rax + 0x20]
sub rcx, 0xffffffffffffff80
vmovdqu ymmword [rax + 0x20], ymm1
lea rax, [rax + 0x80]
cmp rcx, r9
jb 0x140075f70
cmp rcx, rdx
jae 0x140075fbf
lea rax, [rcx + r10]
sub rdx, rcx
xor byte [rax], r8b
lea rax, [rax + 1]
sub rdx, 1
jne 0x140075fb2
vzeroupper
ret
Function at 0x1400760b0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400762c6
lea rax, [rbp + 0x7f]
mov qword [rsp + 0xd0], rdi
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov dl, 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp + 0x7f], rdi
mov qword [rbp - 0x29], rdi
mov dword [rbp + 0x6f], edi
mov word [rbp + 0x73], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400762be
lea rax, [rbp - 0x29]
mov dword [rbp + 0x77], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x40], edi
mov r9d, 0x220
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x7b], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140076186
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rdi, qword [rsp + 0xd0]
add rsp, 0xd8
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x21]
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rbp + 7], ymm0
vmovups ymmword [rbp - 0x19], ymm0
vmovups ymmword [rbp + 0x27], ymm0
xor r8d, r8d
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x29]
lea rdx, [rbp - 0x19]
mov qword [rbp + 0x3f], rax
mov dword [rbp - 0x19], 0x10000000
mov qword [rbp - 0x15], 2
lea ecx, [r8 + 2]
mov dword [rbp + 3], edi
mov dword [rbp + 7], 2
mov dword [rbp + 0x17], 0x10000000
mov qword [rbp + 0x1b], 2
mov dword [rbp + 0x33], edi
mov dword [rbp + 0x37], 2
mov qword [rbp - 0x21], rdi
vzeroupper
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x140076221
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rdi, qword [rsp + 0xd0]
add rsp, 0xd8
pop rbx
pop rbp
ret
mov r9, qword [rbp - 0x29]
mov edx, 1
mov qword [rsp + 0x30], rdi
mov r8d, edx
mov qword [rsp + 0x28], rdi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
jne 0x1400762a0
mov rax, qword [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
jne 0x1400762a0
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140076290
mov word [rbx + rax*2 + 2], di
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0xd0]
add rsp, 0xd8
pop rbx
pop rbp
ret
Function at 0x1400762d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push r14
sub rsp, 0x30
mov rbx, r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400763d0
mov qword [rsp + 0x58], rdi
mov rax, 0xffffffffffffffff
xor edi, edi
inc rax
cmp word [rbx + rax*2], di
jne 0x140076317
test rax, rax
je 0x1400763a9
mov qword [rsp + 0x50], rsi
mov rcx, rdi
mov qword [rsp + 0x60], r15
lea r15, str.abcdef012345789
nop dword [rax]
lea rsi, [rbx + rcx*2]
mov edx, 0x80
movzx ecx, word [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
je 0x14007637d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x140076365
xor edx, edx
div rcx
movzx eax, word [r15 + rdx*2]
mov word [rsi], ax
inc edi
mov rax, 0xffffffffffffffff
mov ecx, edi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140076390
cmp rcx, rax
jb 0x140076340
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsp + 0x68]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret

Function at 0x1400764a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x580
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x370]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
lea rdx, [0x1401b54f8]
lea rcx, [rsp + 0x370]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x4c]
mov r8, rsi
lea rdx, [0x1401b5508]
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x140076569
test ax, ax
je 0x14007659f
cmp cx, cx
jne 0x140076569
cmp ax, cx
jne 0x140076569
cmp word [rsp + 0x50], 0
je 0x14007659f
test byte [rsp + 0x20], 0x10
mov rdx, rbx
je 0x140076582
lea rcx, [rsp + 0x160]
call fcn.1400764a0
jmp 0x14007659f
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x14007659f
lea rcx, [rsp + 0x160]
call fcn.1400760b0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140076510
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140076670
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x40
mov rbp, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140076756
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rcx, rsi
xor r8d, r8d
mov qword [rsp + 0x58], rdi
mov rdx, rbp
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140076743
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140076743
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14007671c
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x14007670d
dec eax
or eax, 0xffffff00
inc eax
mov ecx, ebx
inc ebx
mov byte [rcx + rdi], al
mov ecx, dword [rsp + 0x68]
cmp ebx, ecx
jb 0x1400766f7
mov dword [rsp + 0x28], ecx
mov r9d, 3
mov rcx, rsi
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x1400767d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
sub rsp, 0x258
mov rbp, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007695a
mov qword [rsp + 0x270], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x288]
mov dword [rsp + 0x288], 0x208
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140076949
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x140076870
test rax, rax
je 0x14007691f
mov qword [rsp + 0x278], rdi
mov rcx, rbx
mov qword [rsp + 0x250], r14
lea r14, str.abcdef012345789
nop dword [rax]
lea rdi, [rsp + 0x40]
mov edx, 0x80
lea rdi, [rdi + rcx*2]
movzx ecx, word [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
je 0x1400768e8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x1400768d0
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
inc ebx
lea rdx, [rsp + 0x40]
mov ecx, ebx
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140076900
cmp rcx, rax
jb 0x1400768a0
mov r14, qword [rsp + 0x250]
mov rdi, qword [rsp + 0x278]
mov eax, dword [rsp + 0x288]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x270]
add rsp, 0x258
pop rbp
pop rbx
ret
Function at 0x140076970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
mov eax, 0x2048
call fcn.14019ec20
sub rsp, rax
mov rbp, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140076acc
mov qword [rsp + 0x2060], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
xor edx, edx
mov r8d, 0x1ffe
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x2078]
mov dword [rsp + 0x2078], 0x1ffe
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140076abb
mov eax, dword [rsp + 0x2078]
test eax, eax
je 0x140076a98
mov qword [rsp + 0x2068], rdi
mov qword [rsp + 0x2040], r14
lea r14, str.abcdef012345789
nop dword [rax]
mov eax, ebx
lea rdi, [rsp + 0x40]
movzx ecx, word [rdi + rax*2]
lea rdi, [rdi + rax*2]
mov edx, 0x80
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
je 0x140076a7b
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x140076a60
dec rcx
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
mov eax, dword [rsp + 0x2078]
inc ebx
cmp ebx, eax
jb 0x140076a30
mov r14, qword [rsp + 0x2040]
mov rdi, qword [rsp + 0x2068]
mov dword [rsp + 0x28], eax
mov r9d, 7
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2060]
add rsp, 0x2048
pop rbp
pop rbx
ret