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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r15, r9
mov r13, r8
xor r12d, r12d
mov esi, r12d
mov dword [rax - 0x54], r12d
mov edi, r12d
mov ebx, r12d
cmp dword [r9 + 8], r12d
jle 0x140017f66
movsxd rcx, ebx
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or esi, 1
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x14002e0e0]
jne 0x140017f44
lea rax, [0x14002ef90]
jmp 0x140017f48
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
lea edi, [rdi + rax*2]
add edi, 2
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
cmp ebx, dword [r15 + 8]
jl 0x140017f10
add edi, 2
mov ebx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019928
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400180c0
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, r14
call sub.msvcrt.dll_memset
xor eax, eax
mov ebx, eax
mov dword [rsp + 0x3c], eax
cmp ebx, dword [r15 + 8]
jge 0x14001806c
movsxd rcx, ebx
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or esi, 2
mov dword [rsp + 0x34], esi
xor edx, edx
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov edx, edi
sub edx, r12d
mov ecx, r12d
lea r10, [r14 + rcx*2]
lea r8, [rdx - 1]
xor r11d, r11d
mov r9d, r11d
mov ecx, 0x80070057
cmp r8, 0x7ffffffe
cmova r9d, ecx
mov dword [rsp + 0x38], r9d
test r9d, r9d
js 0x140018025
mov r9, rax
mov rcx, r10
call fcn.140009a30
mov dword [rsp + 0x38], eax
jmp 0x14001802e
test rdx, rdx
je 0x14001802e
mov word [r10], r11w
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x14002e0e0]
jne 0x140018048
lea rax, [0x14002ef90]
jmp 0x14001804c
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
inc eax
add r12d, eax
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
mov dword [rsp + 0x3c], ebx
jmp 0x140017fad
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9d, 7
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov dword [rsp + 0x40], eax
mov rcx, r14
call sub.msvcrt.dll_free
xor eax, eax
mov qword [rsp + 0x48], rax
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.1400145ac
lea rdx, [0x140029e68]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400180f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ef90]
cmp rcx, qword [0x14002e0e0]
mov r10, r8
mov r11, rdx
je 0x140018111
lea rax, [rcx - 0xc]
mov eax, dword [rax + 4]
mov r9d, 2
xor r8d, r8d
mov rdx, r10
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, r11
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1400189c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x140018a00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x140018a40
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
xor ecx, ecx
mov rax, r9
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov r10d, r8d
mov qword [rsp + 0x28], rcx
mov r11, rdx
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, r11
mov edx, r10d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140018b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov edx, r11d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
add rsp, 0x40
pop rbx
ret
Function at 0x140019ac0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14002f6f8], rbx
je 0x140019b27
cmp rax, rbx
jne 0x140019b1a
mov ebx, 1
mov esi, ebx
jmp 0x140019b2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140019aff
mov ebx, 1
mov eax, dword [0x14002f700]
cmp eax, ebx
jne 0x140019b44
mov edi, 0x1f
mov ecx, edi
call fcn.1400c1000
jmp 0x140019bb0
mov eax, dword [0x14002f700]
test eax, eax
jne 0x140019ba5
mov dword [0x14002f700], ebx
lea r15, [0x14001ecc0]
lea rdi, [0x14001eca8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019b97
test eax, eax
jne 0x140019b9b
cmp qword [rdi], r14
je 0x140019b8c
mov rax, qword [rdi]
mov rcx, qword [0x14001ec20]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140019b6e
test eax, eax
je 0x140019bab
mov eax, 0xff
jmp 0x140019d06
mov dword [0x14002efb4], ebx
mov edi, 0x1f
mov eax, dword [0x14002f700]
cmp eax, ebx
jne 0x140019bd7
lea rdx, [0x14001eca0]
lea rcx, [0x14001ec28]
call sub.msvcrt.dll__initterm
mov dword [0x14002f700], 2
test esi, esi
jne 0x140019be5
mov rax, r14
xchg qword [0x14002f6f8], rax
cmp qword [0x14002f718], r14
je 0x140019c18
lea rcx, [0x14002f718]
call fcn.14001a160
test eax, eax
je 0x140019c18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14002f718]
mov r9, qword [0x14001ec20]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140019c31
mov eax, 0xff
jmp 0x140019d06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019cb7
test ax, ax
je 0x140019c4c
test edx, edx
jne 0x140019cb7
sub ax, bx
cmp ax, di
ja 0x140019c62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140019c4c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003f90
mov dword [0x14002efb0], eax
cmp dword [0x14002efd0], r14d
jne 0x140019ca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002efb4], r14d
jne 0x140019cb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002efb0]
jmp 0x140019d06
cmp ax, 0x22
jne 0x140019ccb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140019c3a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14001a1f4
add rsp, 0x28
jmp 0x140019ac0
Function at 0x14001a05c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001a0a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a0a0
cmp dword [rcx + 0x3c], edx
jl 0x14001a0a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001a0a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001a0a8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14001aa80
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001aa8c
push rbx
sub rsp, 0x540
mov rax, qword [0x14002ef78]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14001ab09
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14001ab29
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140019d60
add rsp, 0x540
pop rbx
ret

Function at 0x14001aa8c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001aa8c
push rbx
sub rsp, 0x540
mov rax, qword [0x14002ef78]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14001ab09
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14001ab29
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140019d60
add rsp, 0x540
pop rbx
ret
Function at 0x180001260
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
xor r10d, r10d
movsxd rbp, edx
mov r14, r9
mov r15, r8
mov rsi, rcx
mov edi, r10d
mov ebx, r10d
mov r11d, r10d
test edx, edx
jle 0x1800012b5
mov edx, r10d
lea r12, [0x1800305d0]
movzx eax, byte [rdx + rsi]
cmp al, 0x3d
jne 0x1800012d6
inc ebx
cmp ebx, 2
jle 0x1800012da
mov r10d, 0xffffffee
mov rbx, qword [rsp + 0x20]
test r10d, r10d
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
sete al
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
cmp al, 0x7f
ja 0x1800012af
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x1800012af
cmp cl, 0x40
jae 0x1800012f0
test ebx, ebx
jne 0x1800012af
inc edi
inc r11d
inc rdx
cmp rdx, rbp
jl 0x1800012a0
test edi, edi
je 0x1800012b5
lea eax, [rdi + rdi*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x18000131e
mov dword [r9], eax
mov r10d, 0xfffffff0
jmp 0x1800012b5
mov r9d, 3
mov r8d, r10d
mov ebx, r10d
mov rax, r15
test r11d, r11d
jle 0x180001397
movzx ecx, byte [rsi]
movzx edx, byte [rcx + r12]
mov ecx, r10d
cmp dl, 0x40
sete cl
and edx, 0x3f
sub r9d, ecx
inc ebx
mov ecx, r8d
mov r8d, edx
shl ecx, 6
or r8d, ecx
cmp ebx, 4
jne 0x18000138c
mov ebx, r10d
test r9d, r9d
jle 0x18000136f
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x180001380
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x18000138c
mov byte [rax], r8b
inc rax
dec r11d
inc rsi
test r11d, r11d
jg 0x180001332
sub eax, r15d
mov dword [r14], eax
jmp 0x1800012b5

Function at 0x1800016b0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x68], 0
xor eax, eax
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x1800016ec
mov rdx, qword [rdx]
call fcn.1800026d0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800032a0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea r9, [rcx + 0xb8]
cmp qword [r9 + 0x18], 8
jb 0x1800032f1
mov r9, qword [r9]
mov r8d, edi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
cmp eax, edi
jne 0x18000349d
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rsp + 0x48], xmm0
xor r12d, r12d
mov word [rsp + 0x38], r12w
xor r8d, r8d
lea rdx, [0x180030910]
lea rcx, [rsp + 0x38]
call fcn.180006190
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.180015fb0
mov r8d, edi
lea rdx, [0x180030764]
lea rcx, [rbp - 0x80]
call fcn.180002c70
lea rax, [rbp - 0x80]
mov r9, r15
mov r8, r14
mov qword [rsp + 0x20], rax
cmp byte [rsi + 9], r12b
je 0x18000340d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.180003190
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x1800033b8
lea rcx, [rsp + 0x38]
call fcn.180002a00
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1800033fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800033f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800034c6
call fcn.180013eac
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
jmp 0x180003458
lea rdx, str.ButterflyImage
lea rcx, [rsp + 0x58]
call fcn.18000c860
lea rcx, [rsp + 0x38]
call fcn.180002a00
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsp + 0x48], xmm1
lea rcx, [rsp + 0x38]
movq rdx, xmm0
psrldq xmm1, 8
movq rax, xmm1
cmp rax, 8
cmovae rcx, rdx
call fcn.1800197f0
mov ebx, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18000349d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800034c0
call fcn.180013eac
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.180013fc0
add rsp, 0x890
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.180018734
nop
call fcn.180018734
nop
int3
Function at 0x1800034d0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x888
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0x8e0]
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.180015fb0
lea rax, [r14 + 0xb8]
cmp qword [rax + 0x18], 8
jb 0x18000353f
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x180003580
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180006190
mov dword [rsp + 0x30], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800035ac
mov rax, qword [rbx]
mov r11, rdi
sub r11, rax
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x1800035c8
add rax, 2
test edx, edx
jne 0x1800035b2
test r10d, r10d
jne 0x1800036dc
mov qword [rsp + 0x20], rdi
mov r9, rbp
mov r8, rsi
cmp byte [r14 + 9], r10b
je 0x180003668
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.180003190
mov rdi, rax
cmp rbx, rax
je 0x180003621
mov rcx, rbx
call fcn.180002a00
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1800036dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800036d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003705
jmp 0x1800036d7
lea rdx, str.ButterflyImage
lea rcx, [rsp + 0x48]
call fcn.18000c860
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x18000369e
mov rcx, rbx
call fcn.180002a00
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1800036dc
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1800036dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800036d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800036ff
call fcn.180013eac
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.180013fc0
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.180018734
int3
call fcn.180018734
int3
Function at 0x180004ac0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180015fb0
cmp qword [rdi + 0x50], 8
lea r8, [rdi + 0x38]
jb 0x180004b0e
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x1800309f8]
lea rcx, [rsp + 0x40]
call fcn.180002c70
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180004b3f
lea rcx, [rsp + 0x40]
call fcn.18000acf0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180015fb0
lea r9, str.userconfig.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.180002c70
mov rbx, 0xffffffffffffffff
lea rax, [rbp + 0x360]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004b83
lea rcx, [rdi + 0xb8]
lea rdx, [rbp + 0x360]
call fcn.180006190
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180015fb0
lea r9, str.Config.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x570]
call fcn.180002c70
lea rax, [rbp + 0x570]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180004be0
lea rcx, [rdi + 0xd8]
lea rdx, [rbp + 0x570]
call fcn.180006190
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180015fb0
lea rdx, str.QiXinPath
lea rcx, [rsp + 0x20]
call fcn.18000af90
cmp qword [rax + 0x18], 8
jb 0x180004c2d
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180030a54]
lea rcx, [rbp + 0x150]
call fcn.180002c70
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180004c85
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004c80
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004d24
call fcn.180013eac
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180004ca2
lea rcx, [rbp + 0x150]
call fcn.18000acf0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.180015fb0
lea r9, str.Config.ini
lea r8, [rbp + 0x150]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.180002c70
lea rax, [rbp + 0x780]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004ce0
mov r8, rbx
lea rcx, [rdi + 0xf8]
lea rdx, [rbp + 0x780]
call fcn.180006190
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.180013fc0
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.180018734
int3
Function at 0x180005010
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
xor esi, esi
mov qword [r11 - 0x40], rsi
mov qword [r11 - 0x38], 7
mov word [rsp + 0x28], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x180005060
lea rcx, [rsp + 0x28]
call fcn.180006190
nop
cmp qword [rsp + 0x38], 0
jne 0x1800050a7
lea rdx, [rdi + 0x98]
cmp qword [rdx + 0x18], 8
jb 0x180005090
mov rdx, qword [rdx]
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x180005090
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.180006190
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800050c9
mov ebx, esi
jmp 0x18000514e
lea r8, str.ButflyImg.exe
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.180002cd0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, esi
test eax, eax
setne bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18000513b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005136
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800051b3
call fcn.180013eac
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18000518c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005187
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800051ad
call fcn.180013eac
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180013fc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180018734
nop
call fcn.180018734
nop
int3