joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ae7d18e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x3ae7d19b0
jb 0x3ae7d1a0f
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 1
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 2
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 2
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 4
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 4
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 8
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 8
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x10
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x10
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x20
call dbg._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x20
call dbg._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x40
call dbg._expand_key_256a
jmp 0x3ae7d1a7d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call dbg._expand_key_192a
aeskeygenassist xmm1, xmm2, 2
call dbg._expand_key_192b
aeskeygenassist xmm1, xmm2, 4
call dbg._expand_key_192a
aeskeygenassist xmm1, xmm2, 8
call dbg._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x10
call dbg._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x20
call dbg._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x40
call dbg._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x80
call dbg._expand_key_192b
jmp 0x3ae7d1a7d
aeskeygenassist xmm1, xmm0, 1
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 2
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 4
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 8
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x10
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x20
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x40
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x80
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x1b
call dbg._expand_key_128
aeskeygenassist xmm1, xmm0, 0x36
call dbg._expand_key_128
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x3ae7d1a8a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x3ae7d29a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3ae7d2bbf
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x3ae7d2ad0
nop dword [rax + rax]
cmp rdx, 0x40
ja 0x3ae7d2bb1
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rbx, rdx
je 0x3ae7d2a42
mov rax, rdx
mov rcx, rsi
call dbg.runtime.memmove
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
cmp rdx, 0x40
jne 0x3ae7d2aac
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call dbg.crypto/md5.block
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
cmp rcx, rsi
jb 0x3ae7d2ba9
sub rdi, rsi
mov rdx, rcx
sub rcx, rsi
mov r8, rdi
neg rdi
sar rdi, 0x3f
and rsi, rdi
add rbx, rsi
jmp 0x3ae7d2ad6
mov rdx, rcx
mov r8, rdi
cmp rcx, 0x40
jl 0x3ae7d2b55
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and rcx, 0xffffffffffffffc0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
call dbg.crypto/md5.block
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov rcx, qword [rsp + 0x30]
and rax, rcx
and rax, 0xffffffffffffffc0
mov rbx, qword [rsp + 0x40]
add rbx, rax
sub rcx, rdx
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
test rcx, rcx
je 0x3ae7d2b98
cmp rcx, 0x40
mov esi, 0x40
cmovl rsi, rcx
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x3ae7d2b94
mov qword [rsp + 0x38], rsi
mov rax, rdi
mov rcx, rsi
nop dword [rax + rax]
call dbg.runtime.memmove
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rax, rsi
call dbg.runtime.panicSliceB
mov rax, rdx
mov ecx, 0x40
call dbg.runtime.panicSliceB
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp dbg.crypto/md5.(*digest).Write
Function at 0x3ae7d39e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3ae7d3ae6
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rsi
test r8, r8
je 0x3ae7d3a62
cmp rdi, r8
jb 0x3ae7d3ad8
cmp rsi, rbx
je 0x3ae7d3a45
nop
mov rdx, rbx
lea rdi, [rsi + r8]
lea rdi, [rdi - 1]
cmp rdi, rbx
jb 0x3ae7d3a42
mov rdi, rsi
lea r9, [rdx + r8]
lea r9, [r9 - 1]
cmp r9, rsi
jae 0x3ae7d3ac5
mov rbx, rdx
mov rsi, rdi
jmp 0x3ae7d3a45
mov rbx, rdx
movzx edx, byte [rax + 0x400]
movzx edi, byte [rax + 0x401]
lea r9, [r8 - 1]
cmp rcx, r9
jbe 0x3ae7d3abd
xor ecx, ecx
nop
jmp 0x3ae7d3aa1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
movzx r9d, byte [rsi + rcx]
inc edx
movzx r10d, dl
mov r11d, dword [rax + r10*4]
add edi, r11d
movzx r12d, dil
mov r13d, dword [rax + r12*4]
mov dword [rax + r10*4], r13d
mov dword [rax + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rax + r10*4]
mov byte [rbx + rcx], r9b
inc rcx
cmp r8, rcx
jg 0x3ae7d3a6c
mov byte [rax + 0x400], dl
mov byte [rax + 0x401], dil
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, r9
call dbg.runtime.panicIndex
lea rax, [0x3ae842140]
lea rbx, [0x3aeafe5a0]
call dbg.runtime.gopanic
mov rcx, r8
mov rdx, rdi
nop
call dbg.runtime.panicSliceAcap
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp dbg.crypto/rc4.(*Cipher).XORKeyStream

Function at 0x3ae801250
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x3aed7c790], rax
je 0x3ae801285
lea rcx, [0x3aed7c7a0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
lea r9, [rax + 0x60]
mov r8d, 0x3d
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop dword [rax]

Function at 0x3ae8013e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sym._cgo_maybe_run_preinit
lea rcx, [0x3aed7c7a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x3aed7c7a0]
mov dword [0x3aed7c788], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x3aed7c790]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x3ae801423
add rsp, 0x28
ret
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_signal_runtime_initialization_complete._n
lea r9, [rax + 0x60]
mov r8d, 0x3b
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop word [rax + rax]
Function at 0x3ae801550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sym.malloc
test rax, rax
je 0x3ae80158a
mov rdx, qword [rbx]
mov rcx, rax
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp dbg._cgo_sys_thread_start
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
lea r9, [rax + 0x60]
mov r8d, 0x2b
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x3ae801610
Capabilities:
Create thread

Disassembly:
mov rdx, rcx
lea rcx, [dbg.threadentry]
jmp sym._cgo_beginthread

Function at 0x3ae801800
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 dword [rax]

Function at 0x3ae801870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3aed7c834]
test esi, esi
mov rbx, rcx
jle 0x3ae8019a0
mov rax, qword [0x3aed7c838]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3ae8018bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3ae801945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3ae8018a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x3ae8019c2
mov rax, qword [0x3aed7c838]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3aed7c838]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3ae8019a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3ae80193e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3ae801950
add dword [0x3aed7c834], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x3aed7c838]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3ae80193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x3ae8018c8
mov rax, qword [0x3aed7c838]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x3ae801d40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3aed7c860]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3aed7c840]
test rbx, rbx
je 0x3ae801d9c
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 0x3ae801d93
test rsi, rsi
je 0x3ae801d93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3ae801d78
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 0x3ae801fb0
Capabilities:
Parse pe header

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

Function at 0x3ae801fe0
Capabilities:
Enumerate pe sections

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

Function at 0x3ae802030
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x3aed1e310]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3ae8020f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3ae8020f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3ae8020f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3ae80214d
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]
cmp rcx, r8
mov rdx, r8
jb 0x3ae802144
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3ae8020f0
add rax, 0x28
cmp rax, r9
jne 0x3ae802130
xor eax, eax
ret
Function at 0x3ae802150
Capabilities:
Parse pe header

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

Function at 0x3ae802190
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3aed1e310]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3ae8021b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3ae8021b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3ae8021b0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x3ae802200
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3ae8021f7
test rcx, rcx
je 0x3ae8021b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3ae8021e8
xor eax, eax
ret

Function at 0x3ae802210
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x3aed1e310]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3ae802302
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3ae802310
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3ae802302
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3ae802302
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x3ae802302
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]
cmp rax, r9
mov r8, r9
jb 0x3ae802365
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3ae802378
add rdx, 0x28
cmp rdx, r10
jne 0x3ae802350
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3ae802387
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3ae802397
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3ae80236e
test ecx, ecx
jg 0x3ae802380
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001454
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov rax, qword [0x140022970]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov r15, r8
movsxd rsi, r9d
mov r14, rdx
mov r8d, 0x100
lea rdx, [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x460]
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor r12d, r12d
mov ebx, eax
test eax, eax
je 0x1400015ac
mov edx, ebx
lea ecx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [rsp + 0x20]
lea rcx, [rbp + 0x460]
mov r9, rax
mov r8d, ebx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400015a3
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
mov rax, qword [rsp + 0x28]
lea rdx, str.StringFileInfo_04x_04x_
lea rcx, [rbp + 0x360]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call qword [sym.imp.USER32.dll_wsprintfW]
test rsi, rsi
jle 0x1400015a3
mov ebx, r12d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x200
lea rdx, [rbp + 0x360]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.14000c8bc
mov rdx, qword [rbx + r15]
lea rcx, [rsp + 0x40]
call fcn.14000c8bc
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rsp + 0x50]
mov word [rax], r12w
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [rbx + r15 + 8]
mov rcx, r14
mov r8, qword [rsp + 0x30]
test eax, eax
jne 0x140001593
lea r8, str._error_
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
add rbx, 0x10
sub rsi, 1
jne 0x14000152a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.14000bee0
add rsp, 0x770
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400016fc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
or rbx, 0xffffffffffffffff
mov rcx, qword [0x140022840]
cmp rcx, rbx
je 0x140001754
and qword [rsp + 0x20], 0
lea r8d, [rdx + rdx]
mov rdx, rdi
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140022840]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea r8d, [rbx + 5]
lea rdx, [0x140018ee0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140028650]
test rcx, rcx
je 0x1400017d0
cmp dword [0x140028690], 0
je 0x1400017d0
mov eax, dword [0x14002868c]
cmp eax, 0x800
jb 0x14000179b
and dword [0x14002868c], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x184
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140028650]
mov eax, dword [0x14002868c]
inc eax
mov r9, rdi
xor r8d, r8d
mov dword [0x14002868c], eax
mov edx, 0x180
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140028650]
xor r9d, r9d
mov edx, 0x115
mov rbx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001e8c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140022970]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [0x140022840]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x140001ec9
cmp rax, 0xffffffffffffffff
mov ecx, ebx
sete cl
test ecx, ecx
je 0x140001fef
cmp rax, 0xffffffffffffffff
jne 0x14000200d
mov eax, dword [0x140018e40]
lea rcx, [rbp - 2]
movsd xmm0, qword [str.acclog]
xor edx, edx
mov dword [rbp - 8], eax
mov r8d, 0x1fa
movzx eax, word [0x140018e44]
mov word [rbp - 4], ax
movsd qword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
mov rax, qword [0x140028678]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, str.Text_Files__.txt_
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x80], rax
lea rax, str.Save_AccEvent_Log
mov qword [rbp - 0x58], rax
lea rax, [0x140018ed8]
mov qword [rbp - 0x48], rax
mov dword [rsp + 0x50], 0x98
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x78], 0x104
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x50], 0x806
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x140001fe6
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x44]
mov dword [rsp + 0x40], 0xfeff
mov rcx, rax
mov qword [0x140022840], rax
mov r8d, 2
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x140022840]
jmp 0x140002009
cmp rax, 0xffffffffffffffff
je 0x14000200d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rax, 0xffffffffffffffff
mov qword [0x140022840], rax
cmp rax, 0xffffffffffffffff
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14000bee0
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rbp
ret