joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000cb93
cmp byte [rcx + 0x71], 0
je 0x14000cb93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000cb8f
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 0x14000cb54
sub eax, 1
je 0x14000cb58
cmp eax, 2
jne 0x14000cb8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dd00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000cb86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000cb8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000cb3c
xor al, al
jmp 0x14000cb3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dd00
add rsp, 0x60
pop rbx
ret
Function at 0x14000dbc8
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000dc02
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000dc07
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 0x14000dc50
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400108b0]
cmp byte [rcx + rax], 0
je 0x14000dc50
dec r8
sub rdx, 1
jne 0x14000dc36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000e994
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14004bcc8], rbx
je 0x14003ec07
cmp rax, rbx
jne 0x14003ebfa
mov ebx, 1
mov esi, ebx
jmp 0x14003ec0c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003ebdf
mov ebx, 1
mov eax, dword [0x14004bcd0]
cmp eax, ebx
jne 0x14003ec24
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003ec90
mov eax, dword [0x14004bcd0]
test eax, eax
jne 0x14003ec85
mov dword [0x14004bcd0], ebx
lea r15, [0x140042308]
lea rdi, [0x1400422f0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003ec77
test eax, eax
jne 0x14003ec7b
cmp qword [rdi], r14
je 0x14003ec6c
mov rax, qword [rdi]
mov rcx, qword [0x1400422b0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003ec4e
test eax, eax
je 0x14003ec8b
mov eax, 0xff
jmp 0x14003ede6
mov dword [0x14004b284], ebx
mov edi, 0x1f
mov eax, dword [0x14004bcd0]
cmp eax, ebx
jne 0x14003ecb7
lea rdx, [0x1400422e8]
lea rcx, [0x1400422b8]
call sub.msvcrt.dll__initterm
mov dword [0x14004bcd0], 2
test esi, esi
jne 0x14003ecc5
mov rax, r14
xchg qword [0x14004bcc8], rax
cmp qword [0x14004bce8], r14
je 0x14003ecf8
lea rcx, [0x14004bce8]
call fcn.14003f1f0
test eax, eax
je 0x14003ecf8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004bce8]
mov r9, qword [0x1400422b0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003ed11
mov eax, 0xff
jmp 0x14003ede6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14003ed97
test ax, ax
je 0x14003ed2c
test edx, edx
jne 0x14003ed97
sub ax, bx
cmp ax, di
ja 0x14003ed42
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14003ed2c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400020b4
mov dword [0x14004b280], eax
cmp dword [0x14004b2a0], r14d
jne 0x14003ed80
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004b284], r14d
jne 0x14003ed95
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004b280]
jmp 0x14003ede6
cmp ax, 0x22
jne 0x14003edab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003ed1a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401be000
add rsp, 0x28
jmp 0x14003eba0
Function at 0x7ff668bf2f80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbx, r8d
mov rdi, r9
mov eax, ebx
mov rsi, rdx
and eax, 0x80000007
jge 0x7ff668bf2fa8
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
jne 0x7ff668bf301a
mov rcx, rbx
mov qword [rsp + 0x30], r14
mov dword [r9], ebx
call fcn.7ff668cb8f4c
mov r9, rax
test ebx, ebx
jle 0x7ff668bf2fe0
mov rdx, rax
sub rsi, rax
mov r8, rbx
nop dword [rax]
movzx ecx, byte [rsi + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x7ff668bf2fd0
cmp ebx, dword [rdi]
jge 0x7ff668bf3002
lea rcx, [rbx + rax]
lea rdx, [rcx - 1]
nop dword [rax]
movzx eax, byte [rdx]
lea rcx, [rcx + 1]
xor al, 0xcc
inc ebx
mov byte [rcx - 1], al
cmp ebx, dword [rdi]
jl 0x7ff668bf2ff0
mov r14, qword [rsp + 0x30]
mov rax, r9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x7ff668ce9168]
mov dword [rsp + 0x50], 8
lea rcx, [rsp + 0x50]
call sub.vcruntime140.dll__CxxThrowException
int3
Function at 0x7ff668bf3040
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rbx, r9
mov byte [0x7ff668cf5528], 0
mov qword [rsp + 0x48], rbx
call fcn.7ff668bf2f80
mov r9, rax
mov qword [rsp + 0x38], rax
movzx ecx, byte [rax]
mov byte [0x7ff668cf5534], cl
movzx ecx, byte [rax + 1]
mov byte [0x7ff668cf5535], cl
movzx ecx, byte [rax + 2]
mov byte [0x7ff668cf5536], cl
movzx ecx, byte [rax + 3]
mov byte [0x7ff668cf5537], cl
movzx ecx, byte [rax + 4]
mov byte [0x7ff668cf5538], cl
movzx ecx, byte [rax + 5]
mov byte [0x7ff668cf5539], cl
movzx ecx, byte [rax + 6]
mov byte [0x7ff668cf553a], cl
movzx eax, byte [rax + 7]
mov byte [0x7ff668cf553b], al
mov eax, 8
mov ecx, dword [rbx]
mov dword [rsp + 0x30], eax
cmp ecx, eax
jle 0x7ff668bf31f9
mov qword [rsp + 0x90], rbp
lea rdx, [r9 + 0xa]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x40], rdx
nop
movzx ebx, byte [rdx - 2]
lea rcx, [0x7ff668cf5528]
movzx edi, byte [rdx - 1]
mov r8d, eax
movzx esi, byte [rdx]
movzx ebp, byte [rdx + 1]
movzx r14d, byte [rdx + 2]
movzx r15d, byte [rdx + 3]
movzx r12d, byte [rdx + 4]
movzx r13d, byte [rdx + 5]
mov rdx, r9
call fcn.7ff668bf3280
movzx eax, byte [0x7ff668cf5534]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
xor byte [rdx - 2], al
movzx eax, byte [0x7ff668cf5535]
mov byte [0x7ff668cf5534], bl
xor byte [rdx - 1], al
movzx eax, byte [0x7ff668cf5536]
mov rbx, qword [rsp + 0x48]
mov byte [0x7ff668cf5535], dil
xor byte [rdx], al
movzx eax, byte [0x7ff668cf5537]
mov byte [0x7ff668cf5536], sil
xor byte [rdx + 1], al
movzx eax, byte [0x7ff668cf5538]
mov byte [0x7ff668cf5537], bpl
xor byte [rdx + 2], al
movzx eax, byte [0x7ff668cf5539]
mov byte [0x7ff668cf5538], r14b
xor byte [rdx + 3], al
movzx eax, byte [0x7ff668cf553a]
mov byte [0x7ff668cf5539], r15b
xor byte [rdx + 4], al
movzx eax, byte [0x7ff668cf553b]
mov byte [0x7ff668cf553a], r12b
xor byte [rdx + 5], al
add rdx, 8
mov eax, dword [rsp + 0x30]
add eax, 8
mov byte [0x7ff668cf553b], r13b
mov ecx, dword [rbx]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x40], rdx
cmp eax, ecx
jl 0x7ff668bf30f0
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x90]
movsxd rax, ecx
lea rdx, [r9 - 1]
movzx r10d, byte [rax + r9 - 1]
movsxd rax, ecx
add rdx, rax
nop dword [rax]
movsxd r8, ecx
lea rdx, [rdx - 1]
dec ecx
cmp byte [rdx], r10b
je 0x7ff668bf3210
lea eax, [rcx - 8]
lea rcx, [r8 - 9]
mov dword [rbx], eax
call fcn.7ff668cb8f4c
xor r8d, r8d
mov rdi, rax
mov rax, qword [rsp + 0x38]
cmp dword [rbx], r8d
jle 0x7ff668bf3264
mov r9, rax
mov rcx, rdi
sub r9, rdi
nop word [rax + rax]
movzx edx, byte [r9 + rcx + 8]
inc r8d
mov byte [rcx], dl
lea rcx, [rcx + 1]
cmp r8d, dword [rbx]
jl 0x7ff668bf3250
mov rcx, rax
call fcn.7ff668cb8f00
mov rax, rdi
add rsp, 0x78
pop rdi
pop rbx
ret
Function at 0x7ff668bf3840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [0x7ff668cf552c]
lea rdi, [0x7ff668bf0000]
xor eax, dword [0x7ff668ceef60]
mov ebx, 8
mov r10d, dword [0x7ff668cf5530]
lea r11d, [rbx - 6]
nop dword [rax]
mov r9d, eax
shr rax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0xff390]
add r8d, dword [rdi + rax*4 + 0xfeb60]
mov eax, r9d
shr rax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xff790]
add r8d, dword [rdi + rax*4 + 0xfe760]
lea eax, [r11 - 1]
xor r8d, dword [rdi + rax*4 + 0xfef60]
xor r8d, r10d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov ecx, r8d
shr rcx, 0x18
mov r10d, r8d
mov eax, dword [rdi + rdx*4 + 0xff390]
add eax, dword [rdi + rcx*4 + 0xfeb60]
mov ecx, r8d
shr rcx, 8
movzx edx, cl
movzx ecx, r8b
xor eax, dword [rdi + rdx*4 + 0xff790]
add eax, dword [rdi + rcx*4 + 0xfe760]
mov ecx, r11d
add r11d, 2
xor eax, dword [rdi + rcx*4 + 0xfef60]
xor eax, r9d
sub rbx, 1
jne 0x7ff668bf3870
xor r10d, dword [0x7ff668ceefa4]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [0x7ff668cf552c], r10d
mov dword [0x7ff668cf5530], eax
ret

Function at 0x7ff668bf70a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x7ff668bf70fd
lea rbx, [0x7ff668cd2550]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x7ff668bf70e4
cmp r10, 2
jb 0x7ff668bf70e4
cmp byte [r9], r8b
jne 0x7ff668bf70e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x7ff668bf70c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x7ff668bf713f
lea rbx, [0x7ff668cd2550]
cmp r8b, 0x23
jne 0x7ff668bf7123
cmp byte [r9], r8b
jne 0x7ff668bf7123
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x7ff668bf7110
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x7ff668bf7280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x7ff668bf729a
mov qword [r8], 0
lea rdx, [0x7ff668cd232c]
call fcn.7ff668bf7150
mov rbx, rax
test rax, rax
jne 0x7ff668bf72ba
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.ucrtbase.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x7ff668bf73a5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff668bf73a5
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x7ff668bf73a5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff668bf73a5
cmp rdi, 0xffffffffffffffff
je 0x7ff668bf73a5
mov rax, qword [0x7ff668cf5450]
test rax, rax
je 0x7ff668bf7336
inc dword [rax + 0x3b0]
mov rdx, qword [0x7ff668cf5440]
mov rcx, rdi
call sub.ucrtbase.dll_malloc
mov rsi, rax
test rax, rax
je 0x7ff668bf73a5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x7ff668bf7392
call qword [sym.imp.ucrtbase.dll_fclose]
mov rax, qword [0x7ff668cf5450]
test rax, rax
je 0x7ff668bf7381
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff668cf5440]
mov rcx, rsi
call sub.ucrtbase.dll_free
jmp 0x7ff668bf73ae
call qword [sym.imp.ucrtbase.dll_fclose]
test r14, r14
je 0x7ff668bf73a0
mov qword [r14], rdi
mov rax, rsi
jmp 0x7ff668bf73b0
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x7ff668c02570
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x7ff668cf5450]
mov edi, edx
cmp byte [rbx + 0x1f75], 0
jne 0x7ff668c025d0
cmp byte [rbx + 0x1f76], 0
jne 0x7ff668c025d0
mov r9d, dword [rbx + 0x3054]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.7ff668bf6f90
test dil, 1
je 0x7ff668c026ee
jmp 0x7ff668c02658
movss xmm1, dword [rbx + 0x1610]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3054]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x7ff668cda130]
mulss xmm1, dword [0x7ff668cda124]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d08], rax
mov dword [rbx + 0x1cf4], 1
movss dword [rbx + 0x1d00], xmm0
movss dword [rbx + 0x1d04], xmm1
movss xmm0, dword [rbx + 0x166c]
mulss xmm0, dword [0x7ff668cd9fac]
or dword [rbx + 0x1cf0], 0x41
movss dword [rbx + 0x1d50], xmm0
call fcn.7ff668bf6f90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x7ff668c026a8
lea r11, [0x7ff668cd2550]
cmp r9b, 0x23
jne 0x7ff668c0268b
cmp byte [r8], r9b
jne 0x7ff668c0268b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x7ff668c02678
not ecx
call fcn.7ff668bfcd40
test rax, rax
je 0x7ff668c026ee
cmp byte [rax + 0x8e], 0
je 0x7ff668c026ee
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3054]
mov edx, 0x10
mov r9d, dword [rbx + 0x3054]
call fcn.7ff668bf6f90
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.7ff668bff390
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.7ff668cb8ee0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x7ff668c068a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x7ff668c06947
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x7ff668c068fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.7ff668c084d0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.7ff668bf7700
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3108]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x7ff668cf5448]
cmovne rcx, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x7ff668c0694f
mov rcx, rbx
call fcn.7ff668bf7700
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff668c221a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
xor r9d, r9d
mov r11d, edx
mov rbx, rcx
mov ecx, edx
and r11d, 7
je 0x7ff668c22209
mov r8d, dword [rbx + 0x14]
cmp edx, r11d
jge 0x7ff668c221f7
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x7ff668c221d4
mov eax, r9d
jmp 0x7ff668c221df
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
mov eax, ecx
mov ecx, edx
add edx, 8
shl eax, cl
or eax, r8d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r8d, eax
cmp edx, 0x18
jle 0x7ff668c221c7
mov ecx, r11d
shr r8d, cl
sub edx, r11d
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x10], edx
mov ecx, edx
test edx, edx
jle 0x7ff668c2223e
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x7ff668c22220
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x7ff668c2226f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop
cmp rax, r8
jb 0x7ff668c22259
xor dl, dl
jmp 0x7ff668c22262
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x7ff668c22250
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov qword [rsp + 0x38], rsi
mov eax, r8d
mov qword [rsp + 0x40], rdi
xor eax, 0xffff
mov qword [rsp + 0x48], r14
cmp ecx, eax
jne 0x7ff668c22333
mov rdx, qword [rbx]
mov esi, r8d
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 8]
ja 0x7ff668c22333
mov rdi, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x28]
lea rax, [r8 + rdi]
cmp rax, rcx
jbe 0x7ff668c2231a
cmp dword [rbx + 0x30], 0
je 0x7ff668c22333
sub edi, dword [rbx + 0x20]
sub ecx, dword [rbx + 0x20]
lea edx, [rdi + r8]
cmp edx, ecx
jle 0x7ff668c222ed
lea eax, [rcx + rcx]
mov ecx, eax
cmp edx, eax
jg 0x7ff668c222e4
movsxd r14, ecx
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call qword [sym.imp.ucrtbase.dll_realloc]
test rax, rax
je 0x7ff668c22333
mov rdx, qword [rbx]
movsxd rdi, edi
add rdi, rax
mov qword [rbx + 0x20], rax
add rax, r14
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x28], rax
mov r8, rsi
mov rcx, rdi
call sub.vcruntime140.dll_memcpy
add qword [rbx], rsi
mov eax, 1
add qword [rbx + 0x18], rsi
jmp 0x7ff668c22335
xor eax, eax
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x7ff668c39b40
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegDeleteKeyA]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x7ff668c3c110
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x13d0
call fcn.7ff668cb9b10
sub rsp, rax
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.msvcp140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
lea eax, [rsi + 1]
nop dword [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x34], edx
inc rax
cmp rax, 0x270
jb 0x7ff668c3c170
mov dword [rsp + 0x30], 0x270
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov dword [rsp + 0x20], 1
mov edi, 0xa
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.7ff668c4d150
mov ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
cmp eax, 0x4210842
jae 0x7ff668c3c1c0
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
movsxd rax, ecx
movzx r9d, word [r14 + rax*2]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x7ff668c3c231
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x7ff668c3c225
mov rax, qword [rbx]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x7ff668c3c239
mov rcx, rbx
call fcn.7ff668c43970
sub rdi, 1
jne 0x7ff668c3c1c0
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.7ff668cb8ee0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x7ff668c3f070
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x7ff668cf3888]
test rcx, rcx
je 0x7ff668c3f201
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
nop
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x7ff668cf3a48]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x7ff668cf3848]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x7ff668cf3948]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
jne 0x7ff668c3f12e
mov rcx, qword [0x7ff668cf38c8]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
jne 0x7ff668c3f12e
mov rcx, qword [0x7ff668cf3a08]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
jne 0x7ff668c3f12e
mov rcx, qword [0x7ff668cf3a88]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x7ff668c3f1d5
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x7ff668c3f1b7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x7ff668c3f1b7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x7ff668c3f1b2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x7ff668c3f190
cmp r8d, 0xa52bcaf9
je 0x7ff668c3f1bc
test r9d, r9d
jne 0x7ff668c3f170
mov rax, qword [rax]
jmp 0x7ff668c3f140
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
mov rcx, qword [0x7ff668cf39c8]
test rcx, rcx
je 0x7ff668c3f1f7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x7ff668cf3888]
test rcx, rcx
jne 0x7ff668c3f090
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3