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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x7ff7a4319970]
cmp byte [rbx + 0x5ba1], 0
jne 0x7ff7a387bce8
cmp dword [rbx + 0x5bc8], 0
je 0x7ff7a387bbad
mov r8d, 0x30d7
lea rdx, [0x7ff7a39b8a90]
lea rcx, [0x7ff7a39bf3f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x7ff7a387bce1
lea rdx, [0x7ff7a39bf488]
mov qword [rsp + 0x40], rdi
call fcn.7ff7a38601c0
mov rdi, rax
test rax, rax
je 0x7ff7a387bcdc
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ucrtbase.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x7ff7a387bcc9
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff7a387bcc9
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x7ff7a387bcc9
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff7a387bcc9
cmp rsi, 0xffffffffffffffff
je 0x7ff7a387bcc9
mov rax, qword [0x7ff7a4319970]
test rax, rax
je 0x7ff7a387bc53
inc dword [rax + 0xf4]
mov rdx, qword [0x7ff7a4319980]
mov rcx, rsi
call qword [0x7ff7a3a45008]
mov rbp, rax
test rax, rax
je 0x7ff7a387bcc9
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x7ff7a387bc8f
call qword [sym.imp.ucrtbase.dll_fclose]
jmp 0x7ff7a387bca5
call qword [sym.imp.ucrtbase.dll_fclose]
test rsi, rsi
je 0x7ff7a387bca5
mov rdx, rsi
mov rcx, rbp
call fcn.7ff7a3864b50
mov rax, qword [0x7ff7a4319970]
test rax, rax
je 0x7ff7a387bcb7
dec dword [rax + 0xf4]
mov rdx, qword [0x7ff7a4319980]
mov rcx, rbp
call qword [0x7ff7a3a45010]
jmp 0x7ff7a387bcd2
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5ba1], 1
movss xmm0, dword [rbx + 0x5ba4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x7ff7a387bd39
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ba4], xmm0
jb 0x7ff7a387bd39
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x7ff7a387bd28
call fcn.7ff7a38707d0
mov dword [rbx + 0x5ba4], 0
add rsp, 0x20
pop rbx
ret
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5ba4], 0
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7a38b9d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov r13d, r9d
mov edi, edx
mov r15, qword [0x7ff7a4319970]
mov qword [rbp - 0x18], r15
mov rax, qword [r15 + 0x3ed0]
mov byte [rax + 0xb0], 1
mov r12, qword [r15 + 0x3ed0]
cmp byte [r12 + 0xb3], 0
jne 0x7ff7a38b9f3c
lea eax, [r8 - 1]
cmp eax, 0x3f
jbe 0x7ff7a38b9e21
mov r8d, 0x13e
lea rdx, [0x7ff7a39d86e0]
lea rcx, [0x7ff7a39d8740]
call qword [sym.imp.ucrtbase.dll__wassert]
mov eax, r13d
movss xmm7, dword [rbp + 0x98]
xorps xmm6, xmm6
and eax, 0x1000000
mov dword [rsp + 0x50], eax
je 0x7ff7a38b9e59
comiss xmm7, xmm6
jae 0x7ff7a38b9e59
mov r8d, pe_nt_image_headers64
lea rdx, [0x7ff7a39d86e0]
lea rcx, [0x7ff7a39d87d8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov ebx, r13d
Function at 0x7ff7a38bdd50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movsxd rsi, edx
mov rdi, rcx
imul rbx, rsi, 0x68
add rbx, qword [rcx + 0x18]
cmp rbx, qword [rcx + 0x18]
jb 0x7ff7a38bdd79
cmp rbx, qword [rcx + 0x20]
jb 0x7ff7a38bdd93
mov r8d, 0x269
lea rdx, [0x7ff7a39b8910]
lea rcx, [0x7ff7a39c13c0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov r9, qword [rdi + 0x188]
mov dword [rdi + 0x7c], esi
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x7ff7a38bddb2
addss xmm0, dword [rdi + 0x94]
lea rsi, [r9 + 0xf8]
movss dword [rsi], xmm0
movss xmm1, dword [rdi + 0xc8]
addss xmm1, dword [rdi + 0x84]
movss dword [r9 + 0x110], xmm0
subss xmm0, dword [r9 + 0x18]
movss dword [r9 + 0xfc], xmm1
subss xmm0, dword [r9 + 0x13c]
movss dword [r9 + 0x140], xmm0
mov eax, dword [rdi + 0x90]
mov dword [r9 + 0x130], eax
movsx eax, byte [rbx + 0x62]
mov dword [r9 + 0x150], eax
movss dword [r9 + 0x214], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x210], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x218], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1b4], eax
cmp byte [rbx + 0x5a], 0
jne 0x7ff7a38bde4d
maxss xmm1, dword [rdi + 0x88]
movss dword [r9 + 0xfc], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r9 + 0xb3], al
cmp byte [rbx + 0x60], 0
je 0x7ff7a38bde73
mov rax, qword [0x7ff7a4319970]
xor ecx, ecx
mov dword [rax + 0x476c], ecx
mov dword [rax + 0x4774], ecx
test dword [rdi + 4], 0x100000
je 0x7ff7a38bde87
mov r8d, 2
jmp 0x7ff7a38bdf07
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x290]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x290]
mov rcx, qword [rdi + 0x1a0]
call fcn.7ff7a38ae0f0
mov rdi, qword [0x7ff7a4319970]
cmp byte [rdi + 0x5c38], 0
je 0x7ff7a38bdf4c
cmp byte [rbx + 0x60], 0
jne 0x7ff7a38bdf4c
xor r8d, r8d
lea rdx, [0x7ff7a39d98d8]
mov rcx, rsi
call fcn.7ff7a3865330
mov dword [rdi + 0x5c68], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff7a390c960
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub rsp, 0x468
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x7ff7a390ca5d
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetShortPathNameW]
test eax, eax
je 0x7ff7a390ca5d
lea rdx, [0x7ff7a39df628]
lea rcx, [rsp + 0x240]
call qword [sym.imp.kernel32.dll_lstrcpyW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.kernel32.dll_lstrcatW]
lea rdx, [0x7ff7a39df638]
lea rcx, [rsp + 0x240]
call qword [sym.imp.kernel32.dll_lstrcatW]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff7a39df648]
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x7ff7a390ca5d
mov qword [rsp + 0x460], rbx
lea r9, [rsp + 0x240]
xor ebx, ebx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.shell32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
mov eax, ebx
mov rbx, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.7ff7a3937cf0
add rsp, 0x468
ret
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.7ff7a3937cf0
add rsp, 0x468
ret

Function at 0x7ff7a390d260
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff7a390d333
cmp byte [rcx + 0x71], 0
je 0x7ff7a390d333
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff7a390d32f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.msvcp140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x7ff7a390d2f4
sub eax, 1
je 0x7ff7a390d2f8
cmp eax, 2
jne 0x7ff7a390d32f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7a3937cf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff7a390d326
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff7a390d32f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff7a390d2dc
xor al, al
jmp 0x7ff7a390d2dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7a3937cf0
add rsp, 0x60
pop rbx
ret
Function at 0x7ff7a3911330
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x7ff7a3911373
mov rcx, qword [rdx]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
dec eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
cmp eax, 0x102
ja 0x7ff7a39113c9
mov qword [rbx + 0x18], rsi
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff7a39113b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.7ff7a3814400
jmp 0x7ff7a39113d4
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, rdi
call fcn.7ff7a380aaf0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.7ff7a3937cf0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x7ff7a39208d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r9
mov rcx, qword [rcx + 0x68]
mov rbp, r8
mov rdi, rdx
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.ucrtbase.dll__ftelli64]
mov rcx, qword [rbx + 0x68]
add rdi, qword [rcx + 0x78]
js 0x7ff7a392093c
cmp rax, rdi
je 0x7ff7a3920921
mov rcx, qword [rcx + 0x70]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ucrtbase.dll__fseeki64]
test eax, eax
jne 0x7ff7a392093c
mov r9, qword [rbx + 0x68]
mov r8, rsi
mov edx, 1
mov rcx, rbp
mov r9, qword [r9 + 0x70]
call qword [sym.imp.ucrtbase.dll_fwrite]
jmp 0x7ff7a3920945
mov dword [rbx + 0x1c], 0x16
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x7ff7a3929a00
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rdx
movzx r9d, cx
movabs rax, 0x79baa6bb6398b6f7
shr ecx, 0x10
mul r8
mov rax, r8
mov rbx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x15b0
sub r8, rax
test r10, r10
jne 0x7ff7a3929a48
lea eax, [r10 + 1]
mov rbx, qword [rsp + 8]
ret
test rbx, rbx
je 0x7ff7a3929b1c
xor edx, edx
cmp r8, 7
jbe 0x7ff7a3929aca
lea r11d, [rdx + 7]
nop dword [rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
mov eax, r11d
cmp rax, r8
jb 0x7ff7a3929a60
mov eax, edx
cmp rax, r8
jae 0x7ff7a3929ae7
movzx eax, byte [r10]
inc edx
add r9d, eax
inc r10
add ecx, r9d
mov eax, edx
cmp rax, r8
jb 0x7ff7a3929ad1
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub rbx, r8
mov r8d, 0x15b0
jne 0x7ff7a3929a51
mov rbx, qword [rsp + 8]
shl ecx, 0x10
lea eax, [r9 + rcx]
ret

Function at 0x7ff7a3929e50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x7ff7a39e1a00]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x7ff7a3929ec9
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x7ff7a3929e70
test r8, r8
je 0x7ff7a3929eed
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x7ff7a3929ed0
not ecx
mov eax, ecx
ret
Function at 0x7ff7a3935fc0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x7ff7a39e2b40]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff7a3935ffa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff7a3935fff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff7a3936048
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff7a39e2a40]
cmp byte [rcx + rax], 0
je 0x7ff7a3936048
dec r8
sub rdx, 1
jne 0x7ff7a393602e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff7a3939298
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff7a39392e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff7a39392e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff7a39392e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff7a39392e2
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff7a39392e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff7a39392e4
xor al, al
add rsp, 0x28
ret
Function at 0x7ff7a393b2e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, 0x35
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x7ff7a3a00148]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x7ff7a393b319
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.ucrtbase.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.ucrtbase.dll_ceil
movsd xmm6, qword [0x7ff7a3a13fc8]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x7ff7a393b453
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x7ff7a393b3cc
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x7ff7a393b390
jmp 0x7ff7a393b3db
cmp eax, 0x270
jb 0x7ff7a393b3db
mov rcx, rbx
call fcn.7ff7a393cad0
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x7ff7a393b42d
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x7ff7a393b375
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x7ff7a393cad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x7ff7a393caf0
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x7ff7a393cb40
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x7ff7a393daf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x20
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x7ff7a3a002b8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x7ff7a393db9f
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rdx, [0x7ff7a3a002e8]
jmp 0x7ff7a393dc67
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x7ff7a3a00308]
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jne 0x7ff7a393dc55
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x7ff7a393dc55
shr ecx, 1
je 0x7ff7a393dc13
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x7ff7a393dc09
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x7ff7a393dc00
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, [0x7ff7a3a00340]
lea rcx, [rsp + 0x2d0]
call fcn.7ff7a393d980
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.7ff7a393d5e0
jmp 0x7ff7a393dc6f
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rdx, [0x7ff7a3a00320]
mov rcx, rax
call fcn.7ff7a393dc90
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.7ff7a3937cf0
add rsp, 0xae0
pop rbx
ret
Function at 0x7ff7a393dd70
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x7ff7a3a003a0]
xor edi, edi
movups xmm0, xmmword [0x7ff7a3a00378]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x7ff7a3a003a4]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x7ff7a3a00388]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x7ff7a3a00398]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7a393de74
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x7ff7a393de28
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x7ff7a393de97
inc ax
mov word [rsp + 0x6a], ax
jmp 0x7ff7a393de43
cmp eax, 0xe7
jne 0x7ff7a393de97
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_WaitNamedPipeW]
test eax, eax
je 0x7ff7a393de97
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x7ff7a393de08
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.7ff7a3937cf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x7ff7a393de79

Function at 0x7ff7a393dea0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x7ff7a393dec0
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x7ff7a393deb6
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x7ff7a393deb6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.kernel32.dll_PeekNamedPipe]
test eax, eax
je 0x7ff7a393df4b
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x7ff7a393df60
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.kernel32.dll_ReadFile]
cmp eax, 1
jne 0x7ff7a393df34
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.7ff7a393dce0
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x7ff7a393df70
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x7ff7a393df86
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x7ff7a393df93
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x7ff7a393df8b
test rdx, rdx
je 0x7ff7a393df8b
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_WriteFile]
cmp eax, 1
jne 0x7ff7a393dfca
cmp dword [rsp + 0x50], edi
jne 0x7ff7a393dfca
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret