joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140a742b4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x140a742b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x140a742b8]
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 [0x140a742b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x140a742b4], 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 [0x140a742b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
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 0x140001808
mov rax, qword [0x140a742b8]
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 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140a74320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140a74300]
test rbx, rbx
je 0x140001ecc
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 eax, eax
jne 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
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 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002110
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 0x14000215d
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 0x140002154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000215f
add rax, 0x28
cmp rax, r9
jne 0x140002140
xor eax, eax
ret

Function at 0x140002160
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400021f0
mov rdx, qword [0x140a71390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400021de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400021de
cmp word [rax + 0x18], 0x20b
jne 0x1400021de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400021f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400021c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400021f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400021c0
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 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140a71390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000227d
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 0x140002274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002220
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140a71390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000229f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000229f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140a71390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400022e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400022e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002327
test rcx, rcx
je 0x1400022e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002318
xor eax, eax
ret
Function at 0x140002340
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140a71390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023a0
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 0x1400023f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002400
add rdx, 0x28
cmp r9, rdx
jne 0x1400023e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140a71390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002432
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 0x140002495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000249e
test ecx, ecx
jg 0x1400024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002e70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002e9d
xor eax, eax
jmp 0x140002fe3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002ed7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002ed7
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 0x140002fe3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002fd6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002f1a
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 0x140002f29
movsx ecx, dil
jmp 0x140002f7d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140002fd6
cmp eax, 1
jle 0x140002f97
cmp eax, 3
jne 0x140002fd6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000d558
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fdb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002fc4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000e100
cmp rsi, rax
jne 0x140002fd6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140002fdb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000d534
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d360
Function at 0x6d8ce860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8ef5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8ce9e8
mov rax, qword [0x6d8ef5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8ce8ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8ce935
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8ce890
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8cea1d
mov rax, qword [0x6d8ef5e8]
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 [0x6d8ef5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8cea00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8ce92e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8ce990
add dword [0x6d8ef5e4], 1
cmp edi, 8
jae 0x6d8ce963
test dil, 4
jne 0x6d8ce9d4
test edi, edi
je 0x6d8ce958
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8ce9ef
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 0x6d8ce958
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 0x6d8ce97c
jmp 0x6d8ce958
add rsi, qword [0x6d8ef5e8]
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 0x6d8ce92e
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 0x6d8ce958
xor esi, esi
jmp 0x6d8ce8b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8ce958
mov rax, qword [0x6d8ef5e8]
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 0x6d8cf170
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8ef8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8ef8a0]
test rbx, rbx
je 0x6d8cf1c4
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 0x6d8cf1bb
test rsi, rsi
je 0x6d8cf1bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8cf1a0
lea rcx, [0x6d8ef8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8cf400
Capabilities:
Parse pe header

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

Function at 0x6d8cf420
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 0x6d8cf461
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 0x6d8cf458
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8cf463
add rax, 0x28
cmp rax, r9
jne 0x6d8cf444
xor eax, eax
ret

Function at 0x6d8cf500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ec1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8cf56d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8cf56d
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 0x6d8cf56d
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 0x6d8cf564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8cf56f
add rax, 0x28
cmp rax, r9
jne 0x6d8cf550
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8cf670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ec1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8cf690
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8cf688
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 0x6d8cf6ed
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 0x6d8cf6e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8cf6f4
add rax, 0x28
cmp rax, r9
jne 0x6d8cf6d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8cf710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8ec1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8cf77e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8cf77e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8cf77e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8cf77e
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 0x6d8cf775
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8cf785
add rcx, 0x28
cmp rcx, rax
jne 0x6d8cf760
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8cf798
jmp 0x6d8cf77e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8cf7a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8cf77e
test r9d, r9d
jg 0x6d8cf790
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8cfb10
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 0x1800331c0
Capabilities:
Check os version
Get common file path

Disassembly:
push rbx
mov eax, 0x1170
call fcn.180170200
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 7
mov word [rdx], ax
mov dword [rsp + 0x28], 1
lea ecx, [rax + 1]
call fcn.18011e374
mov qword [rsp + 0x20], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.18013d260
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180033257
cmp dword [rsp + 0x44], 6
setae cl
mov rax, qword [rsp + 0x20]
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call fcn.180084110
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x160]
call fcn.18013d260
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1800332bb
lea rax, [rsp + 0x160]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800332a0
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.180003950
lea rcx, [rsp + 0x20]
call fcn.180084420
nop
lea rcx, [rsp + 0x20]
call fcn.180083870
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.18011e350
add rsp, 0x1170
pop rbx
ret
Function at 0x18004a4c0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
xor esi, esi
mov dword [rax - 0x38], esi
xorps xmm0, xmm0
movdqu xmmword [rax - 0x18], xmm0
movdqa xmm1, xmmword [0x1801b2840]
movdqu xmmword [rax - 0x18], xmm1
mov word [rax - 0x28], si
lea r8d, [rsi + 0x3f]
lea rdx, str.GlobalRCAV7E47DA93_AF41_4450_90CD_31C78125287D_RTPROTECT_MUTEX
lea rcx, [rax - 0x28]
call fcn.180003950
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18004a576
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a571
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a5b8
call fcn.18011e794
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test rdi, rdi
je 0x18004a5a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.180146964
int3

Function at 0x18004a8c0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor bpl, bpl
mov eax, dword [0x180214408]
test al, 1
jne 0x18004a935
or eax, 1
mov dword [0x180214408], eax
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [0x180214470], xmm0
mov word [0x180214460], bx
lea r8d, [rbx + 0x2f]
lea rdx, str.GlobalRCAVD277DCA8_31E4_4750_8F68_057A8C0F2C93
lea rcx, [0x180214460]
call fcn.180003950
lea rcx, [0x1801863f0]
call fcn.18011e77c
nop
lea rdx, [0x180214460]
lea rcx, [rsp + 0x30]
call fcn.180027f60
mov esi, 1
mov dword [rsp + 0x20], esi
cmp qword [rax + 0x18], 8
jb 0x18004a959
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov ecx, esi
and ecx, 0xfffffffe
mov dword [rsp + 0x20], ecx
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18004a9b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a9ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a9fb
call fcn.18011e794
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bpl
cmp eax, 0xb7
cmove ebx, esi
test rdi, rdi
je 0x18004a9e3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180146964
int3
Function at 0x180053010
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rdx
mov qword [rax - 0x18], rdx
xor ebp, ebp
mov dword [rax - 0x48], ebp
mov eax, dword [0x1802144a0]
lea rsi, [0x180214480]
test al, 1
jne 0x18005308a
or eax, 1
mov dword [0x1802144a0], eax
mov qword [0x180214490], rbp
mov qword [0x180214498], 7
mov word [0x180214480], bp
xor r8d, r8d
lea rdx, [0x18019e818]
mov rcx, rsi
call fcn.180003950
lea rcx, [0x180186720]
call fcn.18011e77c
nop
mov rcx, rsi
call fcn.1800868e0
test al, al
je 0x1800530a6
mov rdx, rsi
mov rcx, rbx
call fcn.180027f60
jmp 0x18005324b
lea rcx, [rsp + 0x28]
call fcn.18002f240
mov rdi, rax
cmp rsi, rax
je 0x1800530e4
mov rcx, rsi
call fcn.1800038d0
movups xmm0, xmmword [rdi]
movups xmmword [0x180214480], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180214490], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x180053126
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180053121
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180053272
call fcn.18011e794
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, rsi
cmp qword [0x180214490], 0
je 0x180053243
lea r8, [0x18020dd30]
lea rcx, [rsp + 0x28]
call fcn.180082bc0
mov rdi, rax
cmp rsi, rax
je 0x18005318f
mov rcx, rsi
call fcn.1800038d0
movups xmm0, xmmword [rdi]
movups xmmword [0x180214480], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180214490], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1800531d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800531cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005326c
call fcn.18011e794
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov edx, 0x10
mov rcx, rsi
call fcn.180082780
mov rcx, rsi
call fcn.1800868e0
test al, al
jne 0x180053205
mov rcx, rsi
call fcn.180086d80
mov rcx, rsi
cmp qword [0x180214498], 8
cmovae rcx, qword [0x180214480]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x180053240
and eax, 0xfffffffd
mov rcx, rsi
cmp qword [0x180214498], 8
cmovae rcx, qword [0x180214480]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, rsi
mov rcx, rbx
call fcn.180027f60
mov dword [rsp + 0x20], 1
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180146964
int3
call fcn.180146964
int3