joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2bfc90560
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x2bfc9071c
push rbp
mov rbp, rsp
sub rsp, 0x10
mov edx, dword [rax + 0x188]
mov esi, dword [rax + 0x18c]
mov rdi, qword [rax + 0x990]
mov r8d, dword [rax + 0x18c]
cmp r8d, esi
jne 0x2bfc90572
cmp esi, edx
jne 0x2bfc9070a
nop dword [rax]
test rdi, rdi
jne 0x2bfc9070a
test rbx, rbx
jne 0x2bfc905d4
mov qword [rsp + 0x20], rax
nop
call fcn.2bfcb66c0
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x22a8]
test edx, edx
jne 0x2bfc90631
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x2bfc90705
mov rdx, qword [0x2bfd5d308]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x2bfc906f9
mov rdx, qword [0x2bfd5d300]
lea rdx, [rdx + rsi*4]
not r8d
lock and dword [rdx], r8d
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x2bfc906f4
mov rdx, qword [0x2bfd5d2e8]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x2bfc906e9
mov rcx, qword [0x2bfd5d2e0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], r8d
mov rcx, qword [0x2bfd5e950]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x2bfd5e950], rax
nop
mov edx, 1
lea rsi, [0x2bfd5e958]
lock xadd dword [rsi], edx
nop
mov rdx, qword [rcx + 0x1230]
shr rdx, 0x3d
test dl, dl
jne 0x2bfc906d8
movabs rdx, 0x1fffffffffffffff
and rdx, rbx
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1230], rdx
mov rax, rbx
add rsp, 0x10
pop rbp
ret
lea rax, [0x2bfce61ac]
mov ebx, 0x28
call fcn.2bfcadd20
mov rax, rsi
mov rcx, rdx
call fcn.2bfcb4d80
call fcn.2bfc7f220
mov rax, rsi
mov rcx, rdx
nop
call fcn.2bfcb4d80
call fcn.2bfc7f220
lea rax, [0x2bfce57cb]
mov ebx, 0x23
call fcn.2bfcadd20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.2bfcb2ae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.2bfc90560
Function at 0x2bfc949e0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, r14
test rcx, rcx
je 0x2bfc94a28
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x2bfc94a28
mov qword [rsp + 0x68], rcx
nop
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
jmp 0x2bfc94a38
mov eax, 1
add rsp, 0x70
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov rcx, qword [0x2bfcc7700]
lea rdx, [rsp + 0x58]
mov rbx, qword [rax + 0xf8]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.2bfc7e060
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop
test rax, rax
je 0x2bfc94b11
mov rcx, qword [rsp + 0x58]
mov rdx, qword [0x2bfcc7708]
mov rbx, qword [rsp + 0x60]
mov rsi, rbx
lea rdi, [rsp + 0x50]
mov r8, qword [rsi + 0xf8]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.2bfc7e2e0
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rax
ja 0x2bfc94b11
cmp qword [rcx + 8], rax
ja 0x2bfc94a33
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x2bfca7500
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x2bfca75a3
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.2bfca3e40
nop
test bl, bl
je 0x2bfca759d
mov qword [rsp + 0x18], rax
lea rcx, [0x2bfca75e0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.2bfcb29c0
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.2bfcb2ae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.2bfca7500

Function at 0x2bfcafe40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x2bfcaffb7
movzx edx, byte [rax]
test edx, edx
jne 0x2bfcafe74
nop dword [rax]
test r8b, r8b
jne 0x2bfcafe74
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x2bfcafe87
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x2bfcaff77
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x2bfcaff65
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x2bfcaff57
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x2bfcafedd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x2bfcaff20
mov eax, 1
cmp rax, rbx
ja 0x2bfcaff0b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.2bfcb4e40
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x2bfcaff4f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x2bfcaff13
mov rcx, r11
mov eax, r12d
jmp 0x2bfcafee2
mov rcx, rbx
call fcn.2bfcb4d80
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.2bfcb4d80
mov eax, r8d
mov rcx, rbx
call fcn.2bfcb4e40
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x2bfcaffad
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x2bfcaff70
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x2bfcafe8d
mov eax, edx
mov rcx, rbx
call fcn.2bfcb4d80
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.2bfcb4d80
nop
int3
Function at 0x2bfcb1400
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x2bfcb14af
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x2bfca1500]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.2bfcb29c0
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.2bfcb2ae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.2bfcb1400
Function at 0x2bfcbda20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x2bfcbdaea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.2bfc52d80
xorps xmm15, xmm15
mov r14, qword [0x2bfda22a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x2bfcbdacf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x2bfcd2a40]
xor ebx, ebx
mov rcx, rdx
call fcn.2bfcae8a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.2bfcbdd80
inc rbx
cmp rcx, rbx
jae 0x2bfcbdabe
mov edi, 1
lea rsi, [0x2bfcd2a40]
call fcn.2bfcae980
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x2bfcfef18]
lea rsi, [0x2bfcfec28]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.2bfcb2ae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.2bfcbda20

Function at 0x2bfcbea80
Capabilities:
Create thread

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, r8
cmp edx, 1
je 0x2bfcbeaa0
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, 0x18
call sub.msvcrt.dll_malloc
lea r8, [0x2bfcbea50]
xor edx, edx
xor ecx, ecx
mov qword [rax], rbx
mov r9, rax
mov qword [rax + 0x10], rsi
mov dword [rax + 8], 1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x2bfcc3cf0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.2bfcc5210
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2bfcc5210
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2bfcc3d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2bfda6514]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2bfcc3f10
mov rax, qword [0x2bfda6518]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2bfcc3dac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2bfcc3e37
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2bfcc3d90
mov rcx, r12
call fcn.2bfcc4600
mov rbp, rax
test rax, rax
je 0x2bfcc3f6d
mov rax, qword [0x2bfda6518]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.2bfcc4730
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2bfda6518]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2bfcc3f52
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2bfcc3e30
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2bfcc3ec0
add dword [0x2bfda6514], 1
cmp ebx, 8
jae 0x2bfcc3e68
test bl, 4
jne 0x2bfcc3f20
test ebx, ebx
je 0x2bfcc3e59
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2bfcc3f40
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2bfcc3e59
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2bfcc3e9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2bfda6518]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2bfcc3e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2bfcc3cf0
xor edi, edi
jmp 0x2bfcc3db7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2bfcc3e59
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2bfcc3e59
mov rax, qword [0x2bfda6518]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.2bfcc3cf0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2bfcc3cf0
nop
nop dword [rax]
Function at 0x2bfcc4270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2bfda6540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2bfda6520]
test rbx, rbx
je 0x2bfcc42c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2bfcc42bb
test r12, r12
je 0x2bfcc42bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2bfcc42a0
lea rcx, [0x2bfda6540]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2bfcc4600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x2bfd56e20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x2bfcc4679
mov rcx, r10
call fcn.2bfcc44d0
test eax, eax
je 0x2bfcc4679
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x2bfcc4676
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x2bfcc466d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x2bfcc4679
add r8, 0x28
cmp r8, r9
jne 0x2bfcc4658
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1800046d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0xb0
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, r8
mov rdi, rcx
movzx eax, word [r8 + 0x18]
sub ax, 0x2e
mov ecx, 0xffbf
test cx, ax
je 0x1800047ed
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x18000488d
mov eax, 0x41
cmp ax, word [rbx + 0x18]
jne 0x18000488d
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rdi + 0x7c8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x1800047ca
nop
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x4c], 2
mov dword [rsp + 0x50], 2
movsxd r8, ebx
lea r9, [rsp + 0x40]
mov edx, 0x102b
mov rcx, qword [rdi + 0x7c8]
call qword [sym.imp.USER32.dll_SendMessageW]
inc ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rdi + 0x7c8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jl 0x180004750
mov rcx, rdi
call fcn.1800048a0
mov rcx, rdi
call fcn.180004900
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x7c8]
call fcn.18000ade0
nop
lea rax, [rsp + 0x98]
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x98]
call fcn.1800055f0
nop
mov rdx, rax
lea rcx, [rdi + 0x7c8]
call fcn.18000aea0
mov rcx, rdi
call fcn.1800043b0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000488d
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004878
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004878
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x18001aaf0
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x18001ab2d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18001ab40
mov al, 1
jmp 0x18001abee
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001b7c0
test al, al
je 0x18001ab91
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18001ab91
mov bl, 1
jmp 0x18001ab93
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18001abd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001abd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001abd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180021550
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x18001ac10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x18001ac45
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18001acf6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001b7c0
test al, al
je 0x18001ac9e
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18001ace3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001acde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001acde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180021550
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18001b060
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x18001b0a2
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x18001b0ac
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18001b0fc
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18001b0e0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180005a20
mov al, 1
jmp 0x18001b0fe
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180021550
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001c320
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
xor r14b, r14b
mov rcx, rbx
test sil, 4
je 0x18001c395
mov r14b, 1
mov rdx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, qword [rdi + 0x60]
jmp 0x18001c3bf
test sil, 1
je 0x18001c3ab
mov rdx, qword [rdi + 0x70]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, qword [rdi + 0x58]
jmp 0x18001c3bf
mov rdx, qword [rdi + 0x68]
cmp byte [rdi + 0x79], 0
jne 0x18001c39f
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, qword [rdi + 0x50]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbp, rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_Rectangle]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, qword [rdi + 0x48]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkMode]
mov edx, 0x333333
mov eax, 0x999999
test r14b, r14b
cmovne edx, eax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, 0xfffffffe
mov r8d, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_InflateRect]
mov dword [rsp + 0x20], 0x25
lea r9, [rsp + 0x38]
mov r8d, 0xffffffff
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextW]
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180021550
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x18001dc70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18001dce1
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x18001dcc7
cmp eax, 4
jne 0x18001dce1
cmp dword [rsp + 0x28], 0x5a
jb 0x18001dce1
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180021550
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180021550
add rsp, 0x158
ret