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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x1400410e3
xor eax, eax
test eax, eax
jne 0x1400410e3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140041130
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140041148
xor eax, eax
test eax, eax
jne 0x140041148
cmp qword [rsp + 0x60], 0
je 0x140041166
mov dword [rsp + 0x34], 1
jmp 0x14004116e
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140041184
mov eax, 0xd
jmp 0x1400411c6
xor eax, eax
test eax, eax
jne 0x140041154
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x1400411d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x1400411e3
xor eax, eax
test eax, eax
jne 0x1400411e3
cmp qword [rsp + 0x70], 0
je 0x140041201
mov dword [rsp + 0x48], 1
jmp 0x140041209
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140041222
mov eax, 0xd
jmp 0x1400412a3
xor eax, eax
test eax, eax
jne 0x1400411ef
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
lea rax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x14004123a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x140045e47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140065840]
jne 0x14004381a
rol rcx, 0x10
test cx, 0xffff
jne 0x140043816
repz ret
ror rcx, 0x10
jmp 0x140045da0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140068190]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140068288]
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 0x140045e25
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, [0x140068190]
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 0x140045e47
mov rax, qword [rsp + 0x88]
mov qword [0x140068288], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140068228], rax
mov rax, qword [0x140068288]
mov qword [0x140068100], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140068210], rax
mov dword [0x1400680f0], 0xc0000409
mov dword [0x1400680f4], 1
mov rax, qword [0x140065840]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140065848]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140068188], eax
mov ecx, 1
call fcn.140048d4c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14005d2c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140068188], 0
jne 0x140045ece
mov ecx, 1
call fcn.140048d4c
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 0x14004c0e8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14004f2f0
nop
cmp dword [0x140068730], 1
je 0x14004c094
mov dword [0x14006872c], 1
mov byte [0x140068728], r12b
test ebx, ebx
jne 0x14004c080
mov rcx, qword [0x140069390]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14004c06d
mov rcx, qword [0x140069388]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14004c00c
call fcn.140048634
cmp qword [rdi], rax
jne 0x14004c00c
jmp 0x14004bff2
cmp rdi, rsi
jb 0x14004c06d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140048634
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140069390]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140069388]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14004c04b
cmp r13, rax
je 0x14004c06b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14004bff2
lea rdx, [0x140058898]
lea rcx, [0x140058880]
call fcn.14004be3c
lea rdx, [0x1400588a8]
lea rcx, [0x1400588a0]
call fcn.14004be3c
nop
test r12d, r12d
je 0x14004c0a3
mov ecx, 8
call fcn.14004f1f0
test r12d, r12d
jne 0x14004c0ce
mov dword [0x140068730], 1
lea ecx, [r12 + 8]
call fcn.14004f1f0
mov ecx, r15d
call fcn.14004bdd0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14004bf5c

Function at 0x14004c0f4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14004bf5c
Function at 0x140052138
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.140048634
xor ebx, ebx
mov rdi, rax
cmp qword [0x140068f80], rbx
jne 0x14005223e
lea rcx, [0x14005ee48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140052313
lea rdx, [0x14005ee38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140052313
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005ee28]
mov rcx, rsi
mov qword [0x140068f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005ee10]
mov rcx, rsi
mov qword [0x140068f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005edf0]
mov rcx, rsi
mov qword [0x140068f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140068fa0], rax
test rax, rax
je 0x140052235
lea rdx, [0x14005edd8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140068f98], rax
jmp 0x140052245
mov rax, qword [0x140068f98]
jmp 0x14005224c
mov rax, qword [0x140068f98]
mov r11, qword [0x140068fa0]
cmp rax, rdi
je 0x1400522b4
cmp r11, rdi
je 0x1400522b4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140068fa0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400522b4
test rax, rax
je 0x1400522b4
call rsi
test rax, rax
je 0x1400522ae
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 0x1400522ae
test byte [rsp + 0x38], 1
jne 0x1400522b4
bts ebp, 0x15
jmp 0x1400522f2
mov rcx, qword [0x140068f88]
cmp rcx, rdi
je 0x1400522f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400522f2
call rax
mov rbx, rax
test rax, rax
je 0x1400522f2
mov rcx, qword [0x140068f90]
cmp rcx, rdi
je 0x1400522f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400522f2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140068f80]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140052313
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140052315
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 0x140055588
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140069128]
test rcx, rcx
jne 0x1400554df
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x1400554d8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14005550a
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x1400554d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x140069128], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14005557d
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14005552d
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x140069128]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005555a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14005557d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140069128]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140055561
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140055464
Function at 0x6da5f900
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da805e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da5fa88
mov rax, qword [0x6da805e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da5f94c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da5f9d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da5f930
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da5fabd
mov rax, qword [0x6da805e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da805e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da5faa0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da5f9ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da5fa30
add dword [0x6da805e4], 1
cmp edi, 8
jae 0x6da5fa03
test dil, 4
jne 0x6da5fa74
test edi, edi
je 0x6da5f9f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da5fa8f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da5f9f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da5fa1c
jmp 0x6da5f9f8
add rsi, qword [0x6da805e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da5f9ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da5f9f8
xor esi, esi
jmp 0x6da5f957
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da5f9f8
mov rax, qword [0x6da805e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da60210
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da808c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da808a0]
test rbx, rbx
je 0x6da60264
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da6025b
test rsi, rsi
je 0x6da6025b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da60240
lea rcx, [0x6da808c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da604a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da604b0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da604c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da60501
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da604f8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da60503
add rax, 0x28
cmp rax, r9
jne 0x6da604e4
xor eax, eax
ret

Function at 0x6da605a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7d1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da6060d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da6060d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da6060d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da60604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da6060f
add rax, 0x28
cmp rax, r9
jne 0x6da605f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da60710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7d1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da60730
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da60728
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da6078d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da60784
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da60794
add rax, 0x28
cmp rax, r9
jne 0x6da60770
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da607b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da7d1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da6081e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da6081e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da6081e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da6081e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da60815
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da60825
add rcx, 0x28
cmp rcx, rax
jne 0x6da60800
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da60838
jmp 0x6da6081e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da60846
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da6081e
test r9d, r9d
jg 0x6da60830
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da60b80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001ed8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001ed8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001ec5
nop
cmp rbx, rcx
jae 0x140001ed8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001eb0
cmp rbx, rcx
jae 0x140001ed8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140001eda
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
call fcn.140001af0
test rax, rax
je 0x14000306a
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov edx, 0x66
lea rcx, [rsp + 0x50]
call fcn.140001ef0
mov rax, qword [rsp + 0x50]
movzx ebx, word [rax]
mov ecx, 0x4f
xor r15d, r15d
sub ebx, ecx
jne 0x140002efb
movzx ebx, word [rax + 2]
sub ebx, 0x4e
jne 0x140002efb
movzx ebx, word [rax + 4]
movzx ecx, r15w
sub ebx, ecx
lea rdx, [rax - 0x18]
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002f19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test ebx, ebx
jne 0x14000304e
call fcn.140001af0
test rax, rax
je 0x14000306a
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx r9d, ax
mov edx, 6
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbp, rax
test rax, rax
je 0x140003027
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003027
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140003027
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rdi
mov ecx, 5
cmp rdi, rdx
jae 0x140003027
movzx eax, word [rdi]
lea rdi, [rdi + rax*2]
add rdi, 2
add ecx, 0xffffffff
jne 0x140002fa6
cmp rdi, rdx
jae 0x140003027
cmp word [rdi], cx
je 0x140003027
test rdi, rdi
je 0x140003027
movzx ebp, word [rdi]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x140002fef
mov edx, ebp
lea rcx, [rsp + 0x58]
call fcn.140002370
mov rbx, qword [rsp + 0x58]
lea r8, [rdi + 2]
movzx r9d, word [rdi]
mov rdx, rbp
mov rcx, rbx
call fcn.140043f34
test eax, eax
je 0x14000301a
cmp eax, 0xc
je 0x140003080
cmp eax, 0x16
je 0x14000305f
cmp eax, 0x22
je 0x14000305f
cmp eax, 0x50
jne 0x140003075
cmp ebp, dword [rbx - 0xc]
jg 0x14000305f
mov dword [rbx - 0x10], ebp
mov word [rbx + rbp*2], r15w
lea r8, [0x140072ae8]
mov rdx, rbx
call fcn.140002a30
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000304e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400019c0
nop
mov ecx, 0x80004005
call fcn.1400019c0
nop
mov ecx, 0x80004005
call fcn.1400019c0
int3
mov ecx, 0x8007000e
call fcn.1400019c0
int3
Function at 0x140003450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14003fa40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], si
jne 0x1400034d0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140004560
nop
lea rdx, str.WindowsPowerShell_v1.0PowerShell.exe
lea rcx, [rsp + 0x40]
call fcn.1400040a0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140003520
mov r8, rbx
mov rcx, rdi
call fcn.140004560
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000357b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003576
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035b6
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003d1d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14004930c
int3