joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e864
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x20], rax
and qword [rsp + 0x40], 0
lea rax, str.MaximumLogSize
mov qword [rsp + 0x50], rax
lea rax, str.AuditLogRetentionPeriod
mov qword [rsp + 0x60], rax
lea rax, str.RetentionDays
mov qword [rsp + 0x70], rax
lea rax, str.RestrictGuestAccess
mov qword [rbp - 0x80], rax
lea rax, str.AuditSystemEvents
mov qword [rbp - 0x70], rax
lea rax, str.AuditLogonEvents
mov qword [rbp - 0x60], rax
lea rax, str.AuditObjectAccess
mov qword [rbp - 0x50], rax
lea rax, str.AuditPrivilegeUse
mov qword [rbp - 0x40], rax
lea rax, str.AuditPolicyChange
mov qword [rbp - 0x30], rax
lea rax, str.AuditAccountManage
mov qword [rbp - 0x20], rax
lea rax, str.AuditProcessTracking
mov qword [rbp - 0x10], rax
lea rax, str.AuditDSAccess
mov qword [rbp], rax
lea rax, str.AuditAccountLogon
mov qword [rbp + 0x10], rax
mov r12, r9
mov dword [rsp + 0x58], 0x90
mov rsi, r8
mov byte [rsp + 0x5c], 0x44
mov r15d, edx
mov dword [rsp + 0x68], 0x9c
mov r14, rcx
mov byte [rsp + 0x6c], 0x44
mov dword [rsp + 0x78], 0xa8
mov byte [rsp + 0x7c], 0x44
mov dword [rbp - 0x78], 0xb4
mov byte [rbp - 0x74], 0x44
mov dword [rbp - 0x68], 0xc0
mov byte [rbp - 0x64], 0x44
mov dword [rbp - 0x58], 0xc4
mov byte [rbp - 0x54], 0x44
mov dword [rbp - 0x48], 0xc8
mov byte [rbp - 0x44], 0x44
mov dword [rbp - 0x38], 0xcc
mov byte [rbp - 0x34], 0x44
mov dword [rbp - 0x28], 0xd0
mov byte [rbp - 0x24], 0x44
mov dword [rbp - 0x18], 0xd4
mov byte [rbp - 0x14], 0x44
mov dword [rbp - 8], 0xd8
mov byte [rbp - 4], 0x44
mov dword [rbp + 8], 0xdc
mov byte [rbp + 0xc], 0x44
mov dword [rbp + 0x18], 0xe0
mov byte [rbp + 0x1c], 0x44
test rcx, rcx
je 0x18003ea99
test r8, r8
je 0x18003ea99
xor ebx, ebx
mov eax, ebx
test ebx, ebx
je 0x18003e9f3
cmp eax, 1
je 0x18003e9ea
lea rdx, [0x18007dde8]
jmp 0x18003e9fa
lea rdx, [0x18007de68]
jmp 0x18003e9fa
lea rdx, [0x18007de08]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r9d, 4
mov rcx, r14
mov dword [rsp + 0x20], r15d
call fcn.180042da0
mov edi, eax
test eax, eax
jne 0x18003ea86
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18004cd24
lea rax, [rsp + 0x58]
lea ecx, [rdi + 4]
add dword [rax], 4
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x18003ea40
inc ebx
cmp ebx, 3
jb 0x18003e9d6
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [rcx + 9]
mov qword [rsp + 0x28], rsi
lea r8, [rbp - 0x70]
lea rdx, [0x18007df08]
mov dword [rsp + 0x20], r15d
mov rcx, r14
call fcn.180042da0
mov edi, eax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.18004cd24
mov eax, edi
jmp 0x18003ea9e
mov eax, 1
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18004dda0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, rcx
xor ebx, ebx
lea rcx, [0x18008b600]
mov qword [rsp + 0x30], rbx
mov r15d, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [0x18008ba00], 1
jne 0x18004df33
cmp dword [0x18008ba10], ebx
jne 0x18004df33
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18000f8e4
test eax, eax
jne 0x18004df33
cmp qword [rsp + 0x30], rbx
je 0x18004df33
mov r9, qword [rsp + 0x30]
lea r8, [0x18007fc80]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov word [rbp + 0x396], bx
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18004df09
test byte [rsp + 0x40], 0x10
jne 0x18004dee2
mov r9, qword [rsp + 0x30]
lea rax, [rsp + 0x6c]
lea r8, str._sSecurityDatabase_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov word [rbp + 0x396], bx
test r15d, r15d
je 0x18004decf
lea rcx, [rbp + 0x190]
call fcn.180011570
test eax, eax
jne 0x18004dee2
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x18004de7e
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test rsi, rsi
je 0x18004df2e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [0x18008b600]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.180002a90
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180050a68
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [0x18008b600]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x18008ba08]
xor ebx, ebx
cmp dword [0x18008ba10], ebx
jne 0x180050a97
test rcx, rcx
je 0x180050b02
mov edx, 1
call qword [sym.imp.ESENT.dll_JetTerm2]
nop dword [rax + rax]
test eax, eax
je 0x180050af5
lea rcx, str.SceSrv
call fcn.18000c6d0
mov rcx, qword [0x18008b8c0]
test rcx, rcx
je 0x180050af5
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov r9d, 0x800006af
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], bx
lea edx, [r8 + 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov qword [0x18008ba08], rbx
mov dword [0x18008ba10], ebx
lea rcx, [0x18008b600]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x180050b24
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x50
mov rcx, qword [0x18008ba08]
xor ebx, ebx
cmp dword [0x18008ba10], ebx
jne 0x180050b40
test rcx, rcx
je 0x180050bab
mov edx, 1
call qword [sym.imp.ESENT.dll_JetTerm2]
nop dword [rax + rax]
test eax, eax
je 0x180050b9e
lea rcx, str.SceSrv
call fcn.18000c6d0
mov rcx, qword [0x18008b8c0]
test rcx, rcx
je 0x180050b9e
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov r9d, 0x800006af
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], bx
lea edx, [r8 + 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov qword [0x18008ba08], rbx
mov dword [0x18008ba10], ebx
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x18005814c
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rdx
mov edi, ecx
mov rcx, r14
lea rdx, [r11 - 0x48]
xor ebx, ebx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x180058258
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r12d, 0x2710
mov esi, dword [rsp + 0x34]
mov ebp, eax
test edi, edi
je 0x1800581c0
mov ecx, dword [rsp + 0x24]
cmp ecx, 4
je 0x180058243
jmp 0x1800581cb
cmp dword [rsp + 0x24], 1
je 0x180058266
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
shr edx, 3
cmp edx, 0x3e8
jae 0x1800581e6
mov edx, 0x3e8
jmp 0x1800581ed
cmp edx, r12d
cmova edx, r12d
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x180058258
cmp dword [rsp + 0x34], esi
jbe 0x180058227
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
jmp 0x1800581a7
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, ebp
cmp eax, dword [rsp + 0x38]
jbe 0x1800581ad
mov ecx, dword [rsp + 0x24]
test edi, edi
je 0x18005824c
cmp ecx, 4
jmp 0x18005824f
cmp ecx, 1
je 0x180058266
mov ebx, 0x41d
jmp 0x180058266
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180002a90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x18005c900
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov dword [rbp + 0x30], 0xf
mov rdi, rcx
test rcx, rcx
jne 0x18005c978
mov rax, qword gs:[0x58]
mov ecx, dword [0x18008b2a0]
mov rdx, qword [rax + rcx*8]
mov eax, pe_nt_image_headers64
mov word [rax + rdx], r15w
mov eax, 0x110
mov word [rax + rdx], r15w
mov eax, 0xb0
mov byte [rax + rdx], r15b
mov eax, 0xd0
mov byte [rax + rdx], r15b
mov eax, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx edx, word [rcx]
test dx, dx
je 0x18005c95e
mov r9, qword [rcx + 8]
test r9, r9
je 0x18005c95e
mov ecx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ebx, pe_nt_image_headers64
mov rsi, qword [rax + rcx*8]
add rbx, rsi
cmp word [rbx], r15w
jne 0x18005c9ce
xorps xmm0, xmm0
lea rdx, [rbp + 0x30]
movups xmmword [rbx], xmm0
mov rcx, rbx
movups xmmword [rbx + 0x10], xmm0
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
nop dword [rax + rax]
movzx edx, word [rdi]
mov r9, qword [rdi + 8]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rbx + rax*2], r15w
jne 0x18005c9d5
movzx r8d, dx
mov rcx, rbx
shr r8, 1
mov rdx, r9
mov dword [rbp + 0x30], eax
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x18005ca0d
movzx eax, word [rdi]
shr eax, 1
cmp dword [rbp + 0x30], eax
je 0x18005c95e
mov eax, 0x110
add rsi, rax
cmp word [rsi], r15w
jne 0x18005cac5
xorps xmm0, xmm0
mov qword [rbp + 0x40], r15
lea r9, [rbp + 0x38]
mov dword [rbp - 0x30], 0x30
mov r8d, 1
mov qword [rbp - 0x28], r15
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x18], r15d
xor ecx, ecx
mov qword [rbp - 0x20], r15
movdqu xmmword [rbp - 0x10], xmm0
call fcn.180062894
test eax, eax
js 0x18005cac5
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x40]
mov edx, 5
call fcn.180062a58
mov rcx, qword [rbp + 0x38]
mov ebx, eax
call fcn.180061aec
test ebx, ebx
js 0x18005cac5
mov rbx, qword [rbp + 0x40]
mov r8, qword [rbx + 8]
test r8, r8
je 0x18005cab6
movzx r9d, word [rbx]
mov edx, 0x105
shr r9, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
movzx eax, word [rbx]
shr rax, 1
add rax, rax
cmp rax, 0x20a
jae 0x18005cb06
mov word [rsi + rax], r15w
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
inc r14
cmp word [rsi + r14*2], r15w
jne 0x18005cac5
movzx r8d, word [rdi]
mov rcx, rsi
mov rdx, qword [rdi + 8]
shr r8, 1
mov dword [rbp + 0x30], r14d
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x18005caff
movzx eax, word [rdi]
shr eax, 1
cmp dword [rbp + 0x30], eax
je 0x18005c95e
xor eax, eax
jmp 0x18005c963
call fcn.180002c68
int3
Function at 0x18005f7ac
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r12d, r12d
mov rdi, r8
mov rbp, rdx
mov ebx, r12d
test rdx, rdx
je 0x18005f950
test r8, r8
je 0x18005f950
mov dword [r8], 1
cmp ecx, 1
jne 0x18005f8bc
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], r12w
jne 0x18005f802
lea eax, [rsi + 5]
xor ecx, ecx
lea rdx, [rax + rax]
mov r15d, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x18005f8b2
mov r9, rbp
lea r8, str._s.
mov edx, r15d
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea eax, [rsi + 4]
mov rcx, r14
lea rdx, [rsp + 0x70]
mov word [r14 + rax*2], r12w
call qword [sym.imp.msvcrt.dll__wfindfirst64]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18005f886
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
bt eax, 0xa
jae 0x18005f889
mov dword [rdi], r12d
cmp rsi, 0xffffffffffffffff
je 0x18005f89e
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__findclose]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x18005f94c
mov ebx, 8
jmp 0x18005f94c
lea eax, [rcx - 4]
test eax, 0xfffffff7
jne 0x18005f94c
lea r9, [rsp + 0x68]
mov r8d, 0x20019
call fcn.18005cd24
mov ebx, eax
test eax, eax
jne 0x18005f94c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r12
xor r9d, r9d
mov qword [rsp + 0x50], r12
xor r8d, r8d
mov qword [rsp + 0x48], r12
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18005f93b
cmp dword [rsp + 0x60], r12d
jne 0x18005f93b
mov dword [rdi], r12d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x18005f955
mov eax, 0x57
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x2b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180062e80
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov dword [rsp + 0x20], 0x105
mov byte [r8], bl
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x180062fd4
test rcx, rcx
je 0x180062fd4
cmp word [rdx], bx
je 0x180062fd4
cmp rcx, 1
jbe 0x180062efc
cmp word [rdx], 0x5c
jne 0x180062efc
cmp word [rdx + 2], 0x5c
jne 0x180062efc
add rsi, 4
sub rdi, 2
jne 0x180062efc
mov ebx, 0xc0000122
jmp 0x180062fd8
mov r15d, ebx
lea r12, str.localhost
lea rbp, [0x180081248]
mov eax, dword [rbp]
cmp rdi, rax
jne 0x180062f2c
mov rcx, qword [r12]
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll__wcsnicmp
test eax, eax
je 0x180062fce
inc r15d
add rbp, 4
add r12, 8
cmp r15d, 2
jb 0x180062f0d
cmp rdi, 0xf
ja 0x180062f7c
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x180062f7c
mov eax, dword [rsp + 0x20]
cmp rdi, rax
jne 0x180062f7c
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sub.msvcrt.dll__wcsnicmp
test eax, eax
je 0x180062fce
cmp word [rsi + rdi*2 - 2], 0x2e
lea rbp, [rdi - 1]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x105
lea rdx, [rsp + 0x30]
mov ecx, 3
cmovne rbp, rdi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x180062fd8
mov eax, dword [rsp + 0x20]
cmp rbp, rax
jne 0x180062fd8
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sub.msvcrt.dll__wcsnicmp
test eax, eax
jne 0x180062fd8
mov byte [r14], 1
jmp 0x180062fd8
mov byte [r8], 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180063004
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
lea rax, [0x180081180]
mov dword [rbp + 0x28], 4
mov qword [rbp - 0x20], rax
xor ebx, ebx
lea rax, str.SYSTEMCurrentControlSetServicesNetlogonParameters
mov qword [rbp - 0x18], rax
mov eax, dword [0x18008ac78]
cmp eax, 0xffffffff
jne 0x180063077
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x30], 1
call qword [sym.imp.ntdll.dll_RtlGetNtProductType]
nop dword [rax + rax]
cmp al, 1
jne 0x180063071
cmp dword [rbp + 0x30], 2
jne 0x180063067
mov dword [0x18008ac78], 1
jmp 0x18006307c
mov eax, ebx
mov dword [0x18008ac78], ebx
jmp 0x180063077
mov eax, dword [0x18008ac78]
cmp eax, 1
jne 0x180063083
mov al, 1
jmp 0x180063127
mov edi, ebx
lea rsi, [rbp - 0x20]
mov rdx, qword [rsi]
lea rax, [rbp - 0x28]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x180063105
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x40]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NeutralizeNt4Emulator
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1800630fc
cmp dword [rbp + 0x38], 4
jne 0x1800630fc
cmp dword [rbp + 0x28], 4
je 0x180063116
mov rcx, qword [rbp - 0x28]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey
inc edi
add rsi, 8
cmp edi, 2
jb 0x180063089
jmp 0x180063125
mov rcx, qword [rbp - 0x28]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey
cmp dword [rbp + 0x40], ebx
setne bl
mov al, bl
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007390
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400073b8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400073de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400073e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007439
test ecx, ecx
jle 0x140007419
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007439
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007439
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140007460
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007482
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007498
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400074b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400074b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400074f2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000758e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000752d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000756e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000758e
cmp rbx, rax
ja 0x140007540
test rbx, rbx
je 0x14000758e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400079f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f9ec0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140007a1d
xor eax, eax
jmp 0x140007b89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007a57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007a57
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140007b89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007b7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007a9a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007ac5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007b81
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007b34
sub eax, 1
je 0x140007b34
cmp eax, 2
jne 0x140007b7c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007b81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007b62
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140007b7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007b81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c0ca0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret