joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800693f0
Capabilities:
Compute adler32 checksum

Disassembly:
mov r8d, r8d
jmp 0x180069400
mov r9d, ecx
mov r10, rdx
shr r9d, 0x10
movzx ecx, cx
cmp r8, 1
jne 0x180069444
movzx edx, byte [rdx]
add edx, ecx
cmp edx, 0xfff1
lea r8d, [rdx - 0xfff1]
cmovb r8d, edx
lea eax, [r8 + r9]
cmp eax, 0xfff1
lea ecx, [rax - 0xfff1]
cmovb ecx, eax
shl ecx, 0x10
or ecx, r8d
mov eax, ecx
ret
test rdx, rdx
jne 0x18006944d
lea eax, [rdx + 1]
ret
cmp r8, 0x10
jae 0x18006949c
test r8, r8
je 0x180069473
nop dword [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x180069460
cmp ecx, 0xfff1
lea r8d, [rcx - 0xfff1]
mov eax, 0x80078071
cmovb r8d, ecx
mul r9d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r9d
shl eax, 0x10
or eax, r8d
ret
cmp r8, 0x15b0
jb 0x180069577
mov r11, r8
movabs rax, 0x79baa6bb6398b6f7
mul r8
sub r11, rdx
shr r11, 1
add r11, rdx
shr r11, 0xc
imul rax, r11, 0xffffffffffffea50
add r8, rax
mov edx, 0x2b6
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
add edx, 0xffffffff
jne 0x1800694e0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
sub r11, 1
jne 0x1800694d0
test r8, r8
je 0x180069629
cmp r8, 8
jb 0x1800695f0
mov rdx, r8
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r8, rax
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
sub rdx, 1
jne 0x180069590
test r8, r8
je 0x180069603
nop
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x1800695f0
mov eax, 0x80078071
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
shl r9d, 0x10
or r9d, ecx
mov eax, r9d
ret

Function at 0x18006ef30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18006ef58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18006ef58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18014fa90
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.1800037e0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.180003830
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000239e
mov dword [rax + 0xa8], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14ee020
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14ee02d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14ee03d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14ee025
lea eax, [rcx + 1]
jmp 0x14ee04b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14ee05e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14ee044
sub eax, 3
jb 0x14ee07e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14ee0cd
sar eax, 1
movsxd rbp, eax
jb 0x14ee0b4
jmp 0x14ee08c
add ebx, ebx
jne 0x14ee08a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14ee0b4
inc ecx
add ebx, ebx
jne 0x14ee09a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14ee0b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14ee0ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14ee09c
add ecx, 2
jmp 0x14ee0b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.014edfe2
jmp 0x14ee02d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10ca000]
mov eax, dword [rdi]
or eax, eax
je 0x14ee129
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10ee000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14ee0d9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14ee123
mov qword [rbx], rax
add rbx, 8
jmp 0x14ee0f9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14ee16d
cmp al, 0xef
ja 0x14ee155
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14ee135
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14ee144
mov eax, dword [rdi]
add rdi, 4
jmp 0x14ee144
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14ee1c1
sub rsp, 0xffffffffffffff80
jmp 0x46bee0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00492960]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00492970]
mov dword [rax], 1
mov rax, qword [0x00492980]
mov dword [rax], 1
mov rax, qword [0x00492950]
mov dword [rax], 1
mov rax, qword [0x00492840]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00492940]
mov dword [0x00495008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00492900]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004927f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rdx, section..rdata
lea rcx, str.Dulce.exe
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401584
lea rcx, str.Error_ao_abir_o_arquivo
call sym.perror
jmp 0x4015c0
mov eax, dword [0x00491ae0]
mov edx, eax
mov rax, qword [rbp - 8]
mov r9, rax
mov r8, rdx
mov edx, 1
lea rcx, [0x0040ece0]
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
lea rcx, str.start_Dulce.exe
call sym.system
nop
add rsp, 0x30
pop rbp
ret
Function at 0x401e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00495624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401fb8
mov rax, qword [0x00495628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401e7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401e60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401fed
mov rax, qword [0x00495628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00495628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401fd0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401efe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f60
add dword [0x00495624], 1
cmp edi, 8
jae 0x401f33
test dil, 4
jne 0x401fa4
test edi, edi
je 0x401f28
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401fbf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401f28
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401f4c
jmp 0x401f28
add rsi, qword [0x00495628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401f28
xor esi, esi
jmp 0x401e87
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401f28
mov rax, qword [0x00495628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402740
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00495900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004958e0]
test rbx, rbx
je 0x402794
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40278b
test rsi, rsi
je 0x40278b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402770
lea rcx, [0x00495900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4029d0
Capabilities:
Parse pe header

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

Function at 0x4029f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a31
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402a28
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402a33
add rax, 0x28
cmp rax, r9
jne 0x402a14
xor eax, eax
ret

Function at 0x402ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00492840]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402b3d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b3d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402b3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402b34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b3f
add rax, 0x28
cmp rax, r9
jne 0x402b20
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00492840]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402c60
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c58
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402cbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402cb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402cc4
add rax, 0x28
cmp rax, r9
jne 0x402ca0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00492840]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402d4e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d4e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402d4e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402d4e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402d45
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402d55
add rcx, 0x28
cmp rcx, rax
jne 0x402d30
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d68
jmp 0x402d4e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402d76
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402d4e
test r9d, r9d
jg 0x402d60
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402fe0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001f6b8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movdqa xmmword [rsp + 0x50], xmm8
movdqa xmmword [rsp + 0x40], xmm7
movdqa xmmword [rsp + 0x30], xmm6
cmp qword [rcx + 0x18], 0
je 0x14001f724
mov rsi, r8
mov rdi, rdx
test r8, r8
je 0x14001f72b
movabs rax, 0xcbf29ce484222325
xor r8d, r8d
movabs rdx, 0x100000001b3
movzx r9d, byte [rdi + r8]
xor rax, r9
imul rax, rdx
inc r8
cmp rsi, r8
jne 0x14001f704
xor rax, 0xff
imul rax, rdx
jmp 0x14001f735
xor ecx, ecx
jmp 0x14001f7ea
movabs rax, 0xaf64724c8602eb6e
mov rbx, qword [rcx]
mov r14, qword [rcx + 8]
mov r15, r14
and r15, rax
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
lea r13, [rbx - 0x58]
pcmpeqd xmm7, xmm7
xor eax, eax
mov qword [rsp + 0x28], rax
movdqu xmm8, xmmword [rbx + r15]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb ecx, xmm0
test cx, cx
je 0x14001f7b4
bsf eax, ecx
lea r12d, [rcx - 1]
and r12d, ecx
add rax, r15
and rax, r14
neg rax
imul rbp, rax, 0x58
mov r8, qword [r13 + rbp + 8]
mov r9, qword [r13 + rbp + 0x10]
mov rcx, rdi
mov rdx, rsi
call fcn.14002bbd2
mov ecx, r12d
test al, al
je 0x14001f77a
jmp 0x14001f7dc
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
jne 0x14001f816
mov rax, qword [rsp + 0x28]
add r15, rax
add r15, 0x10
add rax, 0x10
mov qword [rsp + 0x28], rax
and r15, r14
jmp 0x14001f767
add rbx, rbp
lea rcx, [rbx - 0x58]
test rbx, rbx
cmove rcx, rbx
lea rax, [rcx + 0x18]
test rcx, rcx
cmove rax, rcx
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14001f7df
Function at 0x140020dd6
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140020e0c
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140020e14
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140020e19
xor r10d, r10d
jmp 0x140020ec7
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140020e3c
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140020e53
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140020e73
add r11, r8
jmp 0x140020f97
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140020f3b
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140020ee9
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140020f4d
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x140020f53
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140020f79
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140020f93
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400219e9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movdqa xmmword [rsp + 0x100], xmm8
movdqa xmmword [rsp + 0xf0], xmm7
movdqa xmmword [rsp + 0xe0], xmm6
mov rbx, r8
mov rsi, rcx
mov qword [rsp + 0x20], 2
lea r9, str.::C:UsersTropic.cargo_registry_srcindex.crates.io_6f17d22bba15001flog4rs_1.3.0_srclib.rs
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.140093cb0
mov qword [rdi + 0x68], 0
mov qword [rdi + 0x70], rbx
mov word [rdi + 0x78], 1
pcmpeqd xmm6, xmm6
movabs rbp, 0x100000001b3
mov r14, qword [rsp + 0xa8]
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140021010
cmp qword [rsp + 0x48], 0
je 0x140021a9c
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xc8]
add r14, rcx
sub r15, rcx
mov qword [rsp + 0xc8], rax
jmp 0x140021af2
cmp byte [rsp + 0xd9], 0
jne 0x140021c0a
mov byte [rsp + 0xd9], 1
cmp byte [rsp + 0xd8], 0
je 0x140021ace
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xd0]
jmp 0x140021ae7
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xd0]
cmp r15, r14
je 0x140021c0a
sub r15, r14
add r14, qword [rsp + 0xa8]
cmp qword [rsi + 0x38], 0
je 0x140021c0a
movabs rax, 0xaf64724c8602eb6e
test r15, r15
je 0x140021b36
xor ecx, ecx
movabs rax, 0xcbf29ce484222325
movzx edx, byte [r14 + rcx]
xor rax, rdx
imul rax, rbp
inc rcx
cmp r15, rcx
jne 0x140021b18
xor rax, 0xff
imul rax, rbp
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x40], rsi
mov rbx, qword [rsi + 0x28]
mov r12, rbx
and r12, rax
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm7, xmm0, 0
lea rdi, [rcx - 0x58]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
movdqu xmm8, xmmword [rcx + r12]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm7
pmovmskb ecx, xmm0
test cx, cx
je 0x140021bbc
bsf eax, ecx
lea r13d, [rcx - 1]
and r13d, ecx
add rax, r12
and rax, rbx
neg rax
imul rsi, rax, 0x58
mov r8, qword [rdi + rsi + 8]
mov r9, qword [rdi + rsi + 0x10]
mov rcx, r14
mov rdx, r15
call fcn.14002bbd2
mov ecx, r13d
test al, al
je 0x140021b82
jmp 0x140021be9
pcmpeqb xmm8, xmm6
pmovmskb eax, xmm8
test eax, eax
jne 0x140021c05
mov rax, qword [rsp + 0x30]
add r12, rax
add r12, 0x10
add rax, 0x10
mov qword [rsp + 0x30], rax
and r12, rbx
mov rcx, qword [rsp + 0x38]
jmp 0x140021b6f
mov rax, qword [rsp + 0x38]
add rsi, rax
add rsi, 0xffffffffffffffc0
cmp byte [rsp + 0xd9], 0
je 0x140021a5b
jmp 0x140021c0a
mov rsi, qword [rsp + 0x40]
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140026f7f
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
lea r9, [rbp - 8]
mov qword [r9], 0
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140026fc0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140026ff1
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1400795e0
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret