joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021a30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140021bab
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140016770
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140021b74
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rbp
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140021af0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140021b63
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x140021b29
mov r10, qword [rdx]
cmp r10, rax
je 0x140021b23
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140021b63
cmp r8, rdx
je 0x140021b3f
nop
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x140021b85
cmp r8, rdx
jne 0x140021b30
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140021ac1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140021b63
lea rcx, str.invalid_hash_bucket_count
call fcn.1400c8fe4
int3
Function at 0x1400256c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rdx + 0x18]
mov r14, qword [rcx + 0x90]
cmp rsi, r14
jl 0x1400257d8
movabs rax, 0xd6bf94d5e57a42bd
imul rsi
add rdx, rsi
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x70], rdx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm1
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x68], eax
lea rdx, [rdi + 0x68]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.140013310
nop
lea rcx, [rdi + 0x98]
movzx r8d, byte [rdi + 0x1c8]
lea rdx, [rsp + 0x78]
call fcn.140012d20
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140025d70
mov rcx, qword [rax]
mov qword [rdi + 0x90], rcx
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x1400257d8
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400257d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400257d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
xor edx, edx
mov r8d, 0x120
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x50], 0
lea r15, vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rbp - 0x60], r15
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0xfa
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x60]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r9, qword [rdi + 0xa0]
test r9, r9
je 0x140025848
mov rbx, qword [rbp - 0x50]
mov r8, rbx
mov edx, 1
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x1400258c8
cmp rsi, r14
jl 0x140025860
cmp word [rdi + 0x1ca], 0
jbe 0x140025860
mov rcx, rdi
call fcn.140025b10
nop
mov qword [rbp - 0x60], r15
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x58]
cmp rcx, rax
je 0x1400258a2
mov rdx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002589d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002589d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400c7da0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0xa8]
lea rcx, [rsp + 0x78]
call fcn.14000f720
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x20]
call fcn.14001b620
nop
mov edx, ebx
mov rcx, rax
call fcn.14000f5c0
int3
Function at 0x140025b10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, rcx
lea rdx, [rcx + 0xa8]
lea rcx, [rsp + 0x60]
call fcn.140007cb0
nop
lea rbx, [rbp + 0x1d0]
mov rcx, qword [rbx]
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
test rcx, rcx
je 0x140025c6c
mov rax, qword [rbx + 0x10]
inc rax
xor edx, edx
div rcx
cmp rdx, qword [rbx + 8]
jne 0x140025c6c
mov rax, qword [rbp + 0x1d8]
shl rax, 5
add rax, qword [rbp + 0x1f0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rax, qword [rbx + 8]
inc rax
xor edx, edx
div qword [rbx]
mov qword [rbx + 8], rdx
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x140025c1c
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x140025d1c
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140025c6c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025c5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025c5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
cmp qword [rbx], 0
jbe 0x140025caf
mov rcx, qword [rdi]
shl rcx, 5
add rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x60]
call fcn.140007c20
mov rcx, qword [rbx]
mov rax, qword [rdi]
inc rax
xor edx, edx
div rcx
mov qword [rdi], rdx
mov rax, qword [r14]
cmp rdx, rax
jne 0x140025caf
inc rax
xor edx, edx
div rcx
mov qword [r14], rdx
inc qword [rbx + 0x18]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140025cef
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025cea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025cea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c7da0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140025e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000f720
nop
mov r8, rax
lea rdx, str.Failed_removing_daily_file
lea rcx, [rsp + 0x80]
call fcn.14001b620
nop
mov edx, ebx
mov rcx, rax
call fcn.14000f5c0
int3
Function at 0x140032d40
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor bl, bl
xor r15d, r15d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp qword [rcx + 0x10], r15
je 0x140032f28
cmp qword [rdx + 0x10], r15
je 0x140032f28
cmp qword [rdx + 0x18], 0xf
mov rcx, rdx
mov qword [rsp + 0x50], r12
jbe 0x140032d8f
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r12d, eax
test eax, eax
je 0x140032f23
mov ecx, r12d
mov qword [rsp + 0x58], rbp
lea rdx, [0x1400ea010]
call fcn.1400c83b8
mov rbp, rax
test rax, rax
je 0x140032efd
cmp qword [rdi + 0x18], 0xf
jbe 0x140032dcf
mov rdi, qword [rdi]
mov edx, dword [rsp + 0x40]
mov r9, rbp
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140032ee8
lea r9, [rsp + 0x44]
mov rcx, rbp
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140032ee8
mov rax, qword [rsp + 0x30]
lea rdx, [0x1400ea010]
mov ecx, dword [rax]
movzx edi, cx
shr ecx, 0x10
shl edi, 0x10
or edi, ecx
mov ecx, 0x80
call fcn.1400c83b8
mov r15, rax
test rax, rax
je 0x140032ee8
cmp qword [r14 + 0x18], 0xf
jbe 0x140032e45
mov r14, qword [r14]
mov r9d, edi
mov qword [rsp + 0x20], r14
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, r15
call fcn.140032ce0
lea r9, [rsp + 0x44]
mov rdx, r15
lea r8, [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140032edc
mov r9, qword [rsp + 0x38]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140032e90
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140032ed1
mov rdi, rsi
cmp rax, 0xf
jbe 0x140032eaf
mov rdi, qword [rsi]
mov r8, rbx
mov qword [rsi + 0x10], rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
mov rcx, rbp
mov bl, 1
call fcn.1400c7dfc
jmp 0x140032ef5
mov rdx, rbx
mov rcx, rsi
call fcn.14001cb80
mov rcx, rbp
mov bl, 1
call fcn.1400c7dfc
jmp 0x140032ef5
mov rcx, rbp
call fcn.1400c7dfc
test r15, r15
je 0x140032efd
mov rcx, r15
call fcn.1400c7dfc
mov rbp, qword [rsp + 0x58]
movzx eax, bl
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c7da0
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, bl
jmp 0x140032f05
movzx eax, bl
jmp 0x140032f0a
Function at 0x140035260
Capabilities:
Create process on windows
Create thread
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x210
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0x200], rax
xor edi, edi
mov dword [rsp + 0xe8], edi
mov ebx, edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0xe0], ebx
mov word [rsp + 0xe4], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400352f9
lea r8, [rsp + 0xe8]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140035301
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035316
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x68], rdi
test ebx, ebx
jne 0x14003545e
cmp dword [rsp + 0xe8], 0
jne 0x14003541c
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14003543b
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
mov qword [rsp + 0xd4], rax
mov dword [rsp + 0xdc], eax
lea rax, str.runas
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0xa0], 0xa
mov dword [rsp + 0x74], 0x40
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140035405
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x14003543b
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [fcn.140035260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x14003543b
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140035418
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14003543d
lea rdx, str.Running_as_administrator_
lea rcx, [0x140115f20]
call fcn.140008d10
mov rcx, rax
call fcn.140008fc0
mov al, 1
jmp 0x14003543d
xor al, al
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400c7da0
mov rbx, qword [rsp + 0x220]
add rsp, 0x210
pop rdi
ret
mov dword [rsp + 0x60], ebx
lea rdx, [0x14010b4e8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005ba60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14005baf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14005baf6
mov dword [rsp + 0x20], Ordinal_46
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005bb1a
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400c7da0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.1400026f0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14005bbd0
lea rdx, [0x14010ab00]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14005bfd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140115838]
mov rax, qword gs:[0x58]
mov edx, reloc.WS2_32.dll_sendto
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140114630], ecx
jg 0x14005c0af
mov eax, ebx
cmp rbx, rax
jne 0x14005c071
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14005c071
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x140114628]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14005c0f2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400c7da0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1400026f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14005bbd0
lea rdx, [0x14010ab00]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140114630]
call fcn.1400c7ee0
cmp dword [0x140114630], 0xffffffff
jne 0x14005c01c
lea rcx, [0x140114628]
call fcn.14005ba60
lea rcx, [0x1400d2220]
call fcn.1400c8190
nop
lea rcx, [0x140114630]
call fcn.1400c7e74
jmp 0x14005c01c
lea rdx, [0x1400d6dc0]
lea rcx, [rsp + 0x20]
call fcn.1400026f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14005bbd0
lea rdx, [0x14010ab00]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400606c0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400606f7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1400606e0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400607e8
sub rcx, r10
cmp r9, 8
jb 0x1400607c9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140060750
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400607e8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400607d0
test r8d, r8d
sete al
ret
Function at 0x1400607f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140060986
cmp r9, 4
jb 0x14006082a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140060811
xor r11d, r11d
test r9, r9
je 0x140060986
cmp r9, 8
jb 0x14006095d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14006085c
cmp r10, r8
jae 0x14006095d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140060871
cmp r10, rdx
jae 0x14006095d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140060917
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400608b0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14006094f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140060930
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140060986
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140060970
add rsp, 8
ret
Function at 0x140071390
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140071472
call fcn.140089a80
test al, al
jne 0x140071472
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1400713c2
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.140094690
test rax, rax
je 0x140071407
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.140094690
mov rsi, rax
test rax, rax
je 0x140071407
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14007143b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140085c30
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140071420
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14007f5a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaaf], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14007f66b
cmp qword [rcx + 0x278], 0
je 0x14007f61e
mov qword [rsp + 0x40], rbx
call fcn.14006ba10
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14006c040
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.14006c040
mov rbx, qword [rsp + 0x40]
jmp 0x14007f66b
mov ecx, esi
test edx, edx
je 0x14007f62e
sub ecx, 1
je 0x14007f62e
cmp ecx, 1
jne 0x14007f66b
mov r9, qword [rdi + 0x1e8]
lea rax, [0x1400dc320]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140083560
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret