joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005a90
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x180005ac5
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
lea rdx, str.KuaiZipDrive
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005b03
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180005b5d
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x180005b76
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005bc8
lea rdx, str.KuaiZipDrive
mov rcx, rbp
call fcn.180005e70
mov rcx, qword [rsi + 0x10]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180005bab
mov rcx, qword [rsi + 0x10]
lea r8d, [rax + 4]
xor edx, edx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x180005e70
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x180005eb7
mov eax, 0x80004005
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
lea rdx, str.KuaiZipDrive
mov r8d, 0x2c
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180005eed
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180006012
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000602a
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x180005ffc
cmp eax, 3
jne 0x180005f8a
nop word [rax + rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000602a
cmp dword [rsp + 0x34], 1
je 0x180005ffc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000602a
cmp dword [rsp + 0x34], 3
je 0x180005f30
mov ebx, 1
lea r8, [rsp + 0x30]
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180005ffe
cmp dword [rsp + 0x34], ebx
je 0x180005ffc
nop dword [rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000602a
cmp dword [rsp + 0x34], ebx
je 0x180005ffc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000602a
cmp dword [rsp + 0x34], ebx
jne 0x180005fb0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ebx, 0x80004005
jmp 0x180005ffe
Function at 0x1800063d0
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
lea rax, str.2B99178A_21A2_4176_8D32_81DA708CFD0A_FileMap
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x19644
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180006428
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
cmp eax, 0xb7
jne 0x180006430
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180006428
xor edx, edx
mov r8d, 0x19644
mov rcx, rax
call fcn.18000b250
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180009b50
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
cmp dword [rcx + 0x70], 2
mov rdi, rcx
jne 0x180009b81
xor eax, eax
jmp 0x180009c1e
mov dword [rcx + 0x70], ebx
movabs rax, 0x5c003a0020
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 0x68]
movzx ecx, word [rax]
mov word [rsp + 0x40], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x180009bc4
cmp eax, 5
je 0x180009bbb
mov ebx, 0x80004005
jmp 0x180009c1c
mov dword [rdi + 0x70], 4
jmp 0x180009c1c
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x50], bx
call fcn.18000b250
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, 5
mov edx, 3
test eax, eax
cmovne ecx, edx
mov dword [rdi + 0x70], ecx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000a170
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x18000bd3b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001f090]
jne 0x18000a18a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000a186
repz ret
ror rcx, 0x10
jmp 0x18000bc94
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180020af0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180020be8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000bd19
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180020af0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000bd3b
mov rax, qword [rsp + 0x88]
mov qword [0x180020be8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180020b88], rax
mov rax, qword [0x180020be8]
mov qword [0x180020a60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180020b70], rax
mov dword [0x180020a50], 0xc0000409
mov dword [0x180020a54], 1
mov rax, qword [0x18001f090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001f098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180020ae8], eax
mov ecx, 1
call fcn.18000c49c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180017788]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180020ae8], 0
jne 0x18000bdc2
mov ecx, 1
call fcn.18000c49c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18000f64c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000f4c0
Function at 0x180013138
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18000c4ac
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800217b0], rbx
jne 0x18001323e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180013313
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180013313
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800217b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800217b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800217c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800217d0], rax
test rax, rax
je 0x180013235
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800217c8], rax
jmp 0x180013245
mov rax, qword [0x1800217c8]
jmp 0x18001324c
mov rax, qword [0x1800217c8]
mov r11, qword [0x1800217d0]
cmp rax, rdi
je 0x1800132b4
cmp r11, rdi
je 0x1800132b4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800217d0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800132b4
test rax, rax
je 0x1800132b4
call rsi
test rax, rax
je 0x1800132ae
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800132ae
test byte [rsp + 0x38], 1
jne 0x1800132b4
bts ebp, 0x15
jmp 0x1800132f2
mov rcx, qword [0x1800217b8]
cmp rcx, rdi
je 0x1800132f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800132f2
call rax
mov rbx, rax
test rax, rax
je 0x1800132f2
mov rcx, qword [0x1800217c0]
cmp rcx, rdi
je 0x1800132f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800132f2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800217b0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180013313
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180013315
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400013dc
Capabilities:
Accept command line arguments

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 r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r15d, ebx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x140001596
lea r12d, [rbx + 2]
movzx ecx, word [rax]
cmp cx, 0x20
je 0x140001429
cmp cx, 9
jne 0x14000142e
add rax, r12
jmp 0x14000141a
test cx, cx
je 0x140001596
test cx, cx
je 0x14000145b
inc r15d
mov rcx, rax
call fcn.1400015d4
movzx ecx, word [rax]
cmp cx, 0x20
je 0x140001456
cmp cx, 9
jne 0x140001437
add rax, r12
jmp 0x140001447
movsxd rcx, r15d
mov eax, 8
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.140006544
mov rsi, rax
test rax, rax
je 0x140001586
mov rdi, r14
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x140001488
inc rdi
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.140006544
mov r14, rax
test rax, rax
je 0x14000157e
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.140001350
test eax, eax
js 0x1400015b8
mov r8d, ebx
mov rax, r14
mov r9, rsi
cmp word [rax], bx
je 0x14000150a
mov qword [r9], rax
mov rcx, rax
add r9, 8
inc r8d
call fcn.1400015d4
test rax, rax
je 0x14000150a
cmp word [rax], bx
je 0x140001505
mov word [rax], bx
add rax, r12
cmp word [rax], 0x20
je 0x1400014f6
cmp word [rax], 9
je 0x1400014f6
test rax, rax
jne 0x1400014d2
movsxd rbp, r8d
test r8d, r8d
jle 0x14000154c
mov rdi, rbx
mov r12d, 0x22
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], r12w
jne 0x140001544
add rcx, 2
mov edx, r12d
mov qword [rsi + rdi*8], rcx
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x140001544
mov word [rax], bx
inc rdi
cmp rdi, rbp
jl 0x14000151b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
nop dword [rax + rax]
mov r8d, 3
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.MSDTCTM.dll_Ordinal_4]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call fcn.140006584
mov rcx, rsi
call fcn.140006584
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140001598
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov ecx, eax
call fcn.140001788
lea rcx, str.failed_in_TracedStringCchCopyW
call fcn.140001d9c
int3
Function at 0x140001b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x98
call sub.msvcrt.dll_memset
test rbx, rbx
jne 0x140001c0c
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
nop dword [rax + rax]
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
and dword [rsp + 0x48], ebx
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [fcn.140001b90]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0xc00000e5
mov dword [rsp + 0x34], 1
lea rcx, str.GenerateErrorDumps
call fcn.140001ce0
test eax, eax
je 0x140001c8f
mov rcx, qword [0x14000f700]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
test eax, eax
jne 0x140001c43
lea r8d, [rax + 0x7f]
lea rcx, str.ResetEvent_fails_in_CEventSem::Reset__
call fcn.140002548
xor r8d, r8d
lea rcx, [0x140001eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
nop dword [rax + rax]
test eax, eax
je 0x140001c8f
mov rcx, qword [0x14000f700]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObjectEx]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140001c8f
mov r8d, 0x74
lea rcx, str.WaitForSingleObjectEx_fails_in_CEventSem::Wait__
call fcn.140002548
mov rdx, qword [rbx + 8]
mov r8d, 1
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlReportException]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x5a0
pop rbp
ret

Function at 0x140001ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
and dword [rbp + 0x20], 0
lea rdx, str.SoftwareMicrosoftMSDTC
and dword [rbp + 0x18], 0
mov rbx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
mov dword [rbp + 0x28], 4
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140001d72
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140001d6e
cmp dword [rbp + 0x20], 4
je 0x140001d72
and dword [rbp + 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140001d87
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rbp + 0x18]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140002c44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x14000d3b8]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x50]
xor r14d, r14d
mov rdi, r8
mov word [r8], r14w
lea r8, str.not_loaded
lea edx, [r14 + 0x32]
call fcn.140001350
mov rsi, qword [rbp + 0x60]
lea rcx, str.comsvcs.dll
mov word [rsi], r14w
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002e35
xor r9d, r9d
lea edx, [r14 + 0x10]
lea r8d, [r14 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
je 0x140002e35
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x140002e35
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov r9, rax
test rax, rax
je 0x140002e35
movzx r8d, word [rax]
mov ecx, r8d
shr ecx, 1
add ecx, r8d
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140002d2c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400073b0
sub rsp, rax
mov rdx, r9
lea rbx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 0x10]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x140002da8
mov rax, qword [rbp + 0x10]
lea r9, [0x140008080]
mov ecx, r14d
movzx edx, word [rax]
mov rax, r9
cmp dx, word [rax]
je 0x140002d90
inc ecx
add rax, 0x10
cmp ecx, 0x27
jb 0x140002d7e
jmp 0x140002da8
mov r8d, ecx
mov edx, 5
add r8, r8
mov rcx, rdi
mov r8, qword [r9 + r8*8 + 8]
call fcn.140001350
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x140008c1c]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x140002e35
mov r10, qword [rbp + 8]
mov r9d, dword [r10 + 8]
cmp r9d, 0xffffffff
je 0x140002e11
movzx r8d, word [r10 + 0xe]
mov edx, 0x32
movzx eax, word [r10 + 0xc]
mov rcx, qword [rbp + 0x50]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
movzx r10d, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], r10d
call fcn.140001a2c
mov r10, qword [rbp + 8]
test byte [r10 + 0x1c], 1
lea rax, [0x140009950]
lea r8, [0x140009958]
mov edx, 5
cmovne r8, rax
mov rcx, rsi
call fcn.140001350
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140006960
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140002f28
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r15
sub rsp, 0x50
mov eax, edx
movzx ebp, cx
shr eax, 0x1e
mov r15d, 1
mov esi, edx
cmp eax, r15d
jbe 0x140002f6c
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x140002f71
cmp eax, 3
jne 0x140002f67
movzx ebx, r15w
jmp 0x140002f71
mov ebx, r15d
jmp 0x140002f71
mov ebx, 4
mov rax, qword [0x14000f3d0]
test rax, rax
je 0x140002ff3
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
call qword [0x140008920]
test eax, eax
js 0x140002ff3
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140002ff3
and qword [rsp + 0x40], 0
mov r8d, ebp
mov r9, qword [rsp + 0x98]
mov rcx, rdi
mov rax, qword [rdi]
mov qword [rsp + 0x38], r9
mov r9d, esi
and dword [rsp + 0x30], 0
movzx edx, bx
mov rax, qword [rax + 0x18]
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], 0
call qword [0x140008920]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140008920]
jmp 0x14000305c
lea rdx, str.COM
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000305c
and qword [rsp + 0x40], 0
mov r9d, esi
mov rcx, qword [rsp + 0x98]
movzx r8d, bp
mov qword [rsp + 0x38], rcx
movzx edx, bx
and dword [rsp + 0x30], 0
mov rcx, rax
mov word [rsp + 0x28], r15w
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
Function at 0x1400030f8
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x14000d3b8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5a0]
call sub.msvcrt.dll_memset
mov edi, 0x20a
lea rcx, [rbp + 0x390]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x180]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov edi, r15d
call sub.msvcrt.dll_memset
mov r9, r14
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.dmp
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.140001a2c
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x140003221
inc edi
cmp word [rbp + 0x390], r15w
je 0x1400031f5
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jle 0x140003209
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x390]
call fcn.140001350
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400031cd
cmp edi, esi
jb 0x1400032d8
lea rax, [rbp + 0x390]
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140001a2c
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400032d8
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140001954
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x1400032ed
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140006960
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret