joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a4a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
mov edi, 0x28
test dl, dl
je 0x14000a545
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a4fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a4f0
cmp rcx, 1
jb 0x14000a576
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a513
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000fb50
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a4e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c0a0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f814
int3
Function at 0x14000a600
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a645
xor al, al
jmp 0x14000a692
cmp word [rbx], 0
je 0x14000a65d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a650
cmp word [rsp + 0x30], 0
je 0x14000a68b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a6b3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a670
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c0a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f814
int3
Function at 0x14000b4e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b51b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b50e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b60e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400298b8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140032610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b5ef
test al, 0x10
je 0x14000b5ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b595
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c960
Capabilities:
Parse pe header

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

Function at 0x14000f604
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f673
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f673
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f673
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f673
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f673
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f673
cmp dword [rcx + 0xf8], 0
je 0x14000f673
mov ecx, ebx
call fcn.14000f724
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f500
nop
cmp dword [rbp + 0x20], 0
je 0x14000f6c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f6cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f604

Function at 0x14000f808
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f673
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f673
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f673
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f673
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f673
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f673
cmp dword [rcx + 0xf8], 0
je 0x14000f673
mov ecx, ebx
call fcn.14000f724
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f500
nop
cmp dword [rbp + 0x20], 0
je 0x14000f6c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f6cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f604
Function at 0x140018df4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018e7b
mov rsi, rbx
cmp word [rax], bp
je 0x140018e3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018e24
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018e20
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016624
mov rdi, rax
test rax, rax
je 0x140018e68
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400200d0
mov rbp, rdi
xor ecx, ecx
call fcn.140015648
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0062edd0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0062ede0]
mov dword [rax], 1
mov rax, qword [0x0062edf0]
mov dword [rax], 1
mov rax, qword [0x0062edc0]
mov dword [rax], 1
mov rax, qword [0x0062ec80]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0062edb0]
mov dword [0x0069a008], 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 [0x0062ed70]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0062dc30]
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:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x401581
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x120], xmm6
movaps xmmword [rbp + 0x130], xmm7
movaps xmmword [rbp + 0x140], xmm8
movaps xmmword [rbp + 0x150], xmm9
movaps xmmword [rbp + 0x160], xmm10
movaps xmmword [rbp + 0x170], xmm11
movaps xmmword [rbp + 0x180], xmm12
movaps xmmword [rbp + 0x190], xmm13
movaps xmmword [rbp + 0x1a0], xmm14
movaps xmmword [rbp + 0x1b0], xmm15
mov qword [rbp + 0x210], rcx
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x30], rax
lea rax, [0x0067fdbc]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
lea rbx, [rbp + 0x120]
mov qword [rax], rbx
lea rdx, [0x00401690]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Register
lea rax, [rbp + 0x10]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rbp - 0x58], 0xffffffff
call rax
lea rax, [rbp + 0x11f]
mov rcx, rax
call fcn.00573e90
lea rdx, [rbp + 0x11f]
lea rax, [rbp + 0x10]
mov dword [rbp - 0x58], 1
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x210]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x11f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x4016c1
lea rax, [rbp - 0x60]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
mov rax, qword [rbp + 0x210]
movaps xmm6, xmmword [rbp + 0x120]
movaps xmm7, xmmword [rbp + 0x130]
movaps xmm8, xmmword [rbp + 0x140]
movaps xmm9, xmmword [rbp + 0x150]
movaps xmm10, xmmword [rbp + 0x160]
movaps xmm11, xmmword [rbp + 0x170]
movaps xmm12, xmmword [rbp + 0x180]
movaps xmm13, xmmword [rbp + 0x190]
movaps xmm14, xmmword [rbp + 0x1a0]
movaps xmm15, xmmword [rbp + 0x1b0]
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x425d30
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x425d74
mov r9, qword [rcx + 0x18]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor rax, qword [r9 + rdx*8]
lea edx, [rcx + 1]
cmp rdx, r8
mov rcx, rdx
jb 0x425d43
mov edx, 6
mov ecx, 0x20
nop dword [rax]
mov r8, rax
shr r8, cl
shr ecx, 1
xor rax, r8
sub edx, 1
jne 0x425d60
and eax, 1
ret
xor eax, eax
jmp 0x425d52
Function at 0x42b550
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xa0
lea rax, [sym.__gxx_personality_sj0]
mov qword [rsp + 0x60], rax
lea rax, [0x00689400]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
lea rax, [0x0042b6de]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0xb0], rcx
mov rcx, rax
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x80], rsp
call dbg._Unwind_SjLj_Register
mov rcx, qword [rsp + 0xb8]
call method.CryptoPP::PolynomialMod2.BitCount___const
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
call method.CryptoPP::PolynomialMod2.BitCount___const
mov ecx, dword [rsp + 0x20]
xor edx, edx
mov dword [rsp + 0x38], 0xffffffff
lea r8d, [rcx + rax]
mov rcx, qword [rsp + 0xb0]
call method.CryptoPP::PolynomialMod2.PolynomialMod2_unsigned_long_long__unsigned_long_long_
mov rcx, qword [rsp + 0xc0]
call method.CryptoPP::PolynomialMod2.BitCount___const
sub eax, 1
mov dword [rsp + 0x20], eax
js 0x42b6c0
cdqe
mov qword [rsp + 0x28], rax
jmp 0x42b638
sub dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
sub qword [rsp + 0x28], 1
cmp eax, 0xffffffff
je 0x42b6c0
mov rcx, qword [rsp + 0xb0]
mov edx, 1
mov dword [rsp + 0x38], 1
call method.CryptoPP::PolynomialMod2.operator___unsigned_int_
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
shr rax, 6
cmp qword [rcx + 0x10], rax
jbe 0x42b620
mov rdx, qword [rcx + 0x18]
mov rax, qword [rdx + rax*8]
mov edx, dword [rsp + 0x20]
bt rax, rdx
jae 0x42b620
mov rax, qword [rsp + 0xb8]
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, qword [rsp + 0xb0]
test r8, r8
mov rdx, qword [rax + 0x18]
je 0x42b620
xor eax, eax
nop
mov rcx, qword [r9 + rax*8]
xor qword [rdx + rax*8], rcx
add rax, 1
cmp r8, rax
jne 0x42b6a0
jmp 0x42b620
mov rcx, qword [rsp + 0x98]
call sym._Unwind_SjLj_Unregister
mov rax, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
Function at 0x4415e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp rcx, rdx
mov rsi, rcx
mov rbp, rdx
je 0x4416c0
mov rbx, qword [rdx + 0x18]
mov rdi, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x20]
cmp rdi, rbx
jb 0x441640
xor eax, eax
test rbx, rbx
mov r8, qword [rbp + 0x20]
je 0x441624
mov rcx, qword [r8 + rax*8]
xor qword [rdx + rax*8], rcx
add rax, 1
cmp rax, rbx
jne 0x441613
mov rax, rsi
mov dword [rsi + 0x28], 0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rdi
mov dword [rsp + 0x20], 1
mov r9, rbx
lea rcx, [rcx + 8]
call method.CryptoPP::AllocatorWithCleanup_unsigned_long_long__true_::pointer_CryptoPP::StandardReallocate_unsigned_long_long__CryptoPP.AllocatorWithCleanup_unsigned_long_long__true____CryptoPP::AllocatorWithCleanup_unsigned_long_long__true___unsigned_long_lo
xor r8d, r8d
test rdi, rdi
mov qword [rsi + 0x18], rbx
movabs rdx, 0x1fffffffffffffff
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x10], rdx
mov rdx, qword [rbp + 0x20]
je 0x441691
nop dword [rax]
mov rcx, qword [rdx + r8*8]
xor qword [rax + r8*8], rcx
add r8, 1
cmp rdi, r8
jne 0x441680
lea rcx, [rdi*8]
add rdx, rcx
add rcx, rax
cmp rdx, rcx
je 0x441624
sub rbx, rdi
lea r8, [rbx*8]
call sym.memcpy
jmp 0x441624
lea rdx, [0x0069b0a0]
call fcn.004405d0
jmp 0x441624
Function at 0x4526e0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x452731
cmp r8, 3
jbe 0x452732
lea rax, [r8 - 4]
shr rax, 2
lea r11, [rax*4 + 4]
mov rax, rdx
lea r10, [rcx + r11]
mov r9d, dword [rax]
add rax, 4
xor dword [rcx], r9d
add rcx, 4
cmp rcx, r10
jne 0x452702
add rdx, r11
and r8d, 3
je 0x452731
xor eax, eax
movzx ecx, byte [rdx + rax]
xor byte [r10 + rax], cl
add rax, 1
cmp rax, r8
jb 0x452720
ret
mov r10, rcx
jmp 0x45271e

Function at 0x4527a0
Capabilities:
Encode data using xor

Disassembly:
cmp r8, 7
jbe 0x452830
lea rax, [r8 - 8]
xor r10d, r10d
shr rax, 3
lea r11, [rax*8 + 8]
xor eax, eax
nop
mov r9, qword [rcx + rax]
xor r9, qword [rdx + rax]
add rax, 8
or r10, r9
cmp r11, rax
jne 0x4527c0
mov rax, r10
add rcx, r11
add rdx, r11
shr rax, 0x20
and r8d, 7
or eax, r10d
mov r10d, eax
mov r9d, eax
shr r10d, 8
shr r9d, 0x10
or r10d, r9d
or r10d, eax
shr eax, 0x18
or r10d, eax
movzx r10d, r10b
test r8, r8
je 0x452828
xor r9d, r9d
nop
movzx eax, byte [rcx + r9]
xor al, byte [rdx + r9]
add r9, 1
movzx eax, al
or r10d, eax
cmp r9, r8
jne 0x452810
test r10d, r10d
sete al
ret
xor r10d, r10d
jmp 0x452806
Function at 0x4754f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov r9, qword [0x0062dd90]
lea rcx, [0x0069c280]
lea r10, [rcx + 0x400]
movzx r8d, byte [r9]
add rcx, 4
add r9, 1
lea edx, [r8 + r8]
mov eax, r8d
mov r11d, r8d
shr al, 7
shl r11d, 0x10
movzx eax, al
imul eax, eax, 0x11b
xor eax, edx
mov edx, r8d
shl edx, 8
xor r8d, eax
shl eax, 0x18
or edx, r11d
or edx, r8d
or eax, edx
mov edx, eax
mov dword [rcx - 4], eax
ror edx, 8
mov dword [rcx + 0x3fc], edx
mov edx, eax
rol eax, 8
rol edx, 0x10
mov dword [rcx + 0xbfc], eax
mov dword [rcx + 0x7fc], edx
cmp r10, rcx
jne 0x475505
mov byte [0x0069b271], 1
ret

Function at 0x475570
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
mov r11, qword [0x0062dd80]
lea r10, [0x0069b280]
lea rbx, [r10 + 0x400]
nop word cs:[rax + rax]
movzx r8d, byte [r11]
mov ecx, r8d
mov eax, r8d
sar ecx, 5
shr al, 7
mov edx, ecx
mov r9d, ecx
and ecx, 4
and edx, 1
and r9d, 2
movzx eax, al
imul r9d, r9d, 0x11b
imul edx, edx, 0x11b
imul ecx, ecx, 0x11b
imul eax, eax, 0x11b
xor edx, r9d
lea r9d, [r8*8]
xor edx, r9d
xor edx, ecx
lea ecx, [r8 + r8]
xor eax, ecx
mov ecx, r8d
sar ecx, 6
mov r9d, ecx
and ecx, 2
and r9d, 1
imul ecx, ecx, 0x11b
imul r9d, r9d, 0x11b
xor r9d, ecx
lea ecx, [r8*4]
xor r9d, ecx
mov ecx, r8d
xor ecx, eax
xor r9d, edx
xor ecx, edx
xor edx, r8d
xor r8d, r9d
shl edx, 0x10
shl r8d, 8
xor eax, r9d
or edx, ecx
shl eax, 0x18
or edx, r8d
or eax, edx
mov edx, eax
mov dword [r10], eax
ror edx, 8
add r10, 4
add r11, 1
mov dword [r10 + 0x3fc], edx
mov edx, eax
rol eax, 8
rol edx, 0x10
mov dword [r10 + 0xbfc], eax
mov dword [r10 + 0x7fc], edx
cmp rbx, r10
jne 0x475590
mov byte [0x0069b270], 1
pop rbx
ret
Function at 0x47aa90
Capabilities:
Hash data using sha256

Disassembly:
mov rax, qword [0x00628860]
mov qword [rcx], rax
mov rax, qword [0x00628868]
mov qword [rcx + 8], rax
mov rax, qword [0x00628870]
mov qword [rcx + 0x10], rax
mov rax, qword [0x00628878]
mov qword [rcx + 0x18], rax
ret

Function at 0x47aad0
Capabilities:
Hash data using sha384

Disassembly:
sub rsp, 0x48
movabs rax, 0xcbbb9d5dc1059ed8
mov qword [rcx], rax
movabs rax, 0x629a292a367cd507
mov qword [rcx + 8], rax
movabs rax, 0x9159015a3070dd17
mov qword [rcx + 0x10], rax
movabs rax, 0x152fecd8f70e5939
mov qword [rcx + 0x18], rax
movabs rax, 0x67332667ffc00b31
mov qword [rcx + 0x20], rax
movabs rax, 0x8eb44a8768581511
mov qword [rcx + 0x28], rax
movabs rax, 0xdb0c2e0d64f98fa7
mov qword [rcx + 0x30], rax
movabs rax, 0x47b5481dbefa4fa4
mov qword [rcx + 0x38], rax
add rsp, 0x48
ret

Function at 0x47ab50
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x48
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
add rsp, 0x48
ret
Function at 0x489140
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0069d8a4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4892c8
mov rax, qword [0x0069d8a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x48918c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x489215
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x489170
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4892fd
mov rax, qword [0x0069d8a8]
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 [0x0069d8a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4892e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x48920e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x489270
add dword [0x0069d8a4], 1
cmp edi, 8
jae 0x489243
test dil, 4
jne 0x4892b4
test edi, edi
je 0x489238
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4892cf
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 0x489238
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 0x48925c
jmp 0x489238
add rsi, qword [0x0069d8a8]
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 0x48920e
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 0x489238
xor esi, esi
jmp 0x489197
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x489238
mov rax, qword [0x0069d8a8]
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 0x489a50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0069db80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0069db60]
test rbx, rbx
je 0x489aa4
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 0x489a9b
test rsi, rsi
je 0x489a9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x489a80
lea rcx, [0x0069db80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]