joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008df10
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008df58
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008df2a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400a0a90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400a0ac0
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400a0b10
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400a0ae0
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xffffffff
jne 0x1400a0b30
call rbp
mov r12, rbp
cmp dword [rax], 4
je 0x1400a0ae0
call r12
lea rdx, str.random_device_could_not_be_read
mov ecx, dword [rax]
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x1400a0b1f

Function at 0x1400d1550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
call sym.__cxa_get_globals
mov rcx, qword [rax]
add dword [rax + 8], 1
test rcx, rcx
je sym.__cxa_rethrow.cold
movabs rdx, 0xb8b1aabcbcd4d500
add rdx, qword [rcx + 0x50]
cmp rdx, 1
jbe 0x1400d159d
xor edx, edx
mov qword [rax], rdx
lea rbx, [rcx + 0x50]
mov rcx, rbx
call dbg._Unwind_Resume_or_Rethrow
mov rcx, rbx
call sym.__cxa_begin_catch
nop
jmp sym.__cxa_rethrow.cold
neg dword [rcx + 0x28]
jmp 0x1400d1583

Function at 0x1400d1950
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [str.PW_r_]
mov rcx, qword [rax]
call method.__cxxabiv1.__unexpected_void______
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400d1970
Capabilities:
Write file on windows

Disassembly:
call method.std.terminate__
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400d1980
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400d19fc
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400d19ea
Function at 0x1400d3090
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400d5a20]
movabs rsi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400d5a38], 0
movups xmmword [0x1400d5a28], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400d3145
jmp 0x1400d31ef
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400d31a0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1400d3130
cmp qword [rbx + 7], r12
jne 0x1400d3130
cmp byte [rbx + 0xf], 0x2e
jne 0x1400d3130
add rbx, 0x10
lea rdi, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400d318a
mov rcx, qword [rdi + 8]
mov r8, rbp
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400d3194
cmp byte [rbx + rbp], 0x3d
je 0x1400d3225
add rdi, 0x18
cmp r13, rdi
jne 0x1400d316f
jmp 0x1400d3130
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400d5a38], rbx
jne 0x1400d31ff
lea rcx, [sym.__tcf_0_5]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400d5a38], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400d5a30], rax
test rax, rax
je 0x1400d325c
xor edx, edx
mov qword [0x1400d5a28], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400d31d7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rbp + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400d324c
test dl, dl
jne 0x1400d3130
test eax, eax
js 0x1400d3130
mov dword [rdi + 0x10], eax
jmp 0x1400d3130
xor ecx, ecx
mov qword [0x1400d5a38], rcx
jmp 0x1400d31d7
Function at 0x140001320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
sub rsp, 0x20
mov edx, 6
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001365
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_n
call section..text
mov eax, 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov dword [rax], 0x2ab8
mov word [rax + 4], 0xc300
call rdi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Result:
mov ebx, eax
call section..text
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140001260]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001af8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b42
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b44
xor al, al
add rsp, 0x28
ret
Function at 0x1400029e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002a32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002a32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002a32
cmp dword [rcx + 0x84], 0xe
jbe 0x140002a32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002a34
xor al, al
add rsp, 0x28
ret
Function at 0x14000f6e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000f705
cmp rax, rcx
je 0x14000f70b
cmp rdx, 4
jae 0x14000f70f
xor eax, eax
xor r8d, r8d
jmp 0x14000f7a0
pop rbp
jmp fcn.1400076c0
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140032570]
movdqa xmm3, xmmword [0x140032550]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000f730
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000f7b7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000f7a0
pop rbp
ret
Function at 0x140019f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x140019fac
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 8], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x14001a050
nop dword [rax + rax]
cmp rdx, r12
je 0x14001a117
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x14001a07a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x14001a070
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x14001a098
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x14001a07a
jmp 0x14001a0a8
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x14001a086
jmp 0x14001a0e0
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x14001a0e0
xor r13b, 1
mov r14d, esi
test si, si
je 0x140019fc0
jmp 0x14001a050
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x14001a07a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x14001a086
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x14001a0f7
test r13b, 1
je 0x14001a113
mov r13b, 1
mov r14w, 0x3b
cmp rdi, qword [rbp - 0x18]
jne 0x140019fa0
lea rcx, [rbp - 0x18]
call fcn.140018970
mov rax, qword [rbp - 0x10]
jmp 0x140019fa0
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x14001a15d
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.1400173a0
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp - 0x18], 0
jne 0x14001a175
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
cmp qword [rbp - 0x18], 0
invalid
je 0x14001a14c
mov r8, qword [rbp - 0x10]
Function at 0x14001a1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14001a261
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14001a261
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14001a261
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x14001a33c
cmp byte [rdx], 0xed
jne 0x14001a345
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x14001a345
cmp rbx, 3
jb 0x14001a2a1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x14001a42f
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x140032600]
cmp rcx, 3
jbe 0x14001a461
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x14001a3d3
test rdi, rdi
je 0x14001a3d0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x14001a368
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x14001a3d0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x14001a360
cmp r10b, 0xe0
jb 0x14001a34e
cmp r10b, 0xed
jne 0x14001a39f
cmp r8, rax
je 0x14001a3d0
lea r8, [r9 + 2]
cmp r8, rax
je 0x14001a3d0
cmp byte [r9 + 1], 0x9f
ja 0x14001a3cc
add r9, 3
mov r8, r9
invalid
jmp 0x14001a360
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
enter 0xffffffffffff8041, 0xfffffffffffffffa
invalid
jb 0x14001a360
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x14001a360
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x14001a402
add rcx, rbx
mov r8, rdi
mov eax, edi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140030b30
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001a3db
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.140030b30
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x14001a2c0
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.140030b30
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x14001a31e

Function at 0x14001a8b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov esi, ecx
Function at 0x14001b470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsp
Function at 0x140026250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.140019350
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x14002629d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x1400262ce
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.140026160
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x140026355
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14002633a
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x1400262fe
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x140026327
cmp qword [rax + 0x10], 0x11
jb 0x140026318
mov r8, qword [r8 - 8]
mov rcx, qword [0x14008e1d8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14008e1d8]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140026374
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x140026347
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x140026347
mov rcx, qword [0x14008e1d8]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
Function at 0x14002b220
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14002b314
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14002b2da
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14002b295
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x14002b2ac
jmp 0x14002b2b9
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x14002b2b9
cmp eax, 0x3e5
jne 0x14002b2ca
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14002b2bd
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14002b2bf
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.140030b30
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14002b251
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140030dd0
int3

Function at 0x14002fa74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14002fabe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002fabe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002fabe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002fabe
cmp dword [rcx + 0x84], 0xe
jbe 0x14002fabe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002fac0
xor al, al
add rsp, 0x28
ret
Function at 0x1809ed058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809ed1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1809ed089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809ed06f
add dl, dl
jne 0x1809ed096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809ed0f6
xor eax, eax
add dl, dl
jne 0x1809ed0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809ed1ad
add dl, dl
jne 0x1809ed0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809ed0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809ed0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809ed0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809ed0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1809ed07e
mov eax, 1
add dl, dl
jne 0x1809ed106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809ed113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809ed0fb
sub eax, ebx
mov ebx, 1
jne 0x1809ed14c
mov ecx, 1
add dl, dl
jne 0x1809ed12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809ed13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809ed123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809ed07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1809ed168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809ed175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809ed15d
cmp eax, 0x7d00
jae 0x1809ed19b
cmp eax, 0x500
jb 0x1809ed196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809ed07e
cmp eax, 0x7f
ja 0x1809ed19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809ed07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809ed1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1809ed07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003408
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x140003438
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x14000341a
mov rax, r8
ret
Function at 0x140009c08
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x14015c6c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov ebx, 0x7f00
and dword [rbp - 0x25], 0
mov edx, ebx
and dword [rbp - 0x19], 0
xor ecx, ecx
and dword [rbp - 0x15], 0
and qword [rbp - 0x11], 0
mov dword [rbp - 0x29], 0x50
mov qword [rbp - 0x21], rax
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, ebx
xor ecx, ecx
mov qword [rbp - 9], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
xorps xmm0, xmm0
lea rdi, str.AfxFN
mov edx, ebx
mov qword [rbp - 1], rax
xor ecx, ecx
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp + 0x1f], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp + 0x27]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_RegisterClassExA]
and qword [rsp + 0x58], 0
mov r9d, 0x80000000
mov rax, qword [rbp - 0x11]
mov r8, rdi
mov qword [rsp + 0x50], rax
mov rdx, rdi
and qword [rsp + 0x48], 0
xor ecx, ecx
and qword [rsp + 0x40], 0
mov eax, dword [rbp + 0x33]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x2f]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x2b]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x27]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, 0xffffffec
mov r8d, 0x800a0
mov rcx, rax
mov qword [0x14015d8e8], rax
call qword [sym.imp.USER32.dll_SetWindowLongA]
movdqa xmm0, xmmword [0x140100f40]
lea rdx, [rbp + 0x37]
mov rcx, qword [0x14015d8e8]
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x14015d8e8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14015d8e8]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14015d8e8]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x14015d8e8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400f9650
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret