joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013390
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14005e060]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400134a3
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400134a3
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x140013408
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x1400134b0
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x140013491
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x140013491
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14001346a
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x140013486
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140013ad0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x140013420
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x1400134b0
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018650
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140014a50
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x14005e060]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140014ade
nop dword [rax]
test rbx, rbx
je 0x140014aa6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140014a90
test eax, eax
jns 0x140014aff
test rbx, rbx
je 0x140014b04
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140014bf5
test rbx, rbx
jne 0x140014b0b
xor eax, eax
jmp 0x140014bf5
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x140014bd5
mov esi, edi
lea rdx, [rbx + 0x30]
imul rax, rsi, 0x128
mov qword [rsp + 0x28], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], bpl
jne 0x140014b54
lea rcx, [rsp + 0x28]
call fcn.1400099c0
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x140014b74
mov rdx, qword [r14]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.1400214d8
test eax, eax
je 0x140014c0b
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140014bcb
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014bc6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c66
call fcn.140018670
inc edi
cmp edi, dword [rbx]
jb 0x140014b22
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140018650
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
imul rax, rsi, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140014c61
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c5c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c66
call fcn.140018670
mov rax, rdi
jmp 0x140014be8
call fcn.140022050
int3
Function at 0x1400168e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14005e060]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140016928
movzx eax, r14w
jmp 0x140016a5e
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140016964
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140016964
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x140016a5e
cmp qword [rcx + 0x80], r14
je 0x140016a5b
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400169a2
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400169cb
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.140022adc
cmp ax, di
je 0x140016a5b
movzx edi, si
jmp 0x140016a5b
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14003d368]
test eax, eax
je 0x140016a20
sub eax, 1
je 0x140016a20
cmp eax, 2
jne 0x140016a5b
movzx ecx, word [rbp + 7]
jmp 0x1400169ae
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x140016a4a
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14002120c
cmp r14, rax
jne 0x140016a5b
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x140016a5e
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140018650
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001f144
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400222c0
or eax, 0xffffffff
jmp 0x14001f166
xor eax, eax
add rsp, 0x28
ret

Function at 0x140026bb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400269e0
Function at 0x14002d328
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002d04e
call fcn.140022330
mov dword [rax], 0x16
call fcn.140022030
jmp 0x14002d199
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002d199
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002d199
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002d07d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002d199
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002d091
call fcn.14002e374
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14002d0a1
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14002d0a4
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140029f2c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14002f3dc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002d187
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002d135
mov rcx, rbx
call fcn.140029f2c
cmp eax, 0xffffffff
je 0x14002d120
mov rcx, rbx
call fcn.140029f2c
cmp eax, 0xfffffffe
je 0x14002d120
mov rcx, rbx
call fcn.140029f2c
movsxd rdi, eax
lea r14, [0x1400608e0]
mov rcx, rbx
sar rdi, 6
call fcn.140029f2c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002d127
lea rdx, [0x14005e280]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002d135
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002d159
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002d159
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002d159
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14002d177
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14002d182
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14002d19e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14002d018
Function at 0x140003070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400042b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400042b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400030e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003210
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000312b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400031b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003110
mov rcx, rbx
call fcn.140003b30
mov rdi, rax
test rax, rax
je 0x140003232
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003217
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400031ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400031c0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400031ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003070
nop dword [rax]
xor esi, esi
jmp 0x140003138
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003070
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003070
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400037a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400037fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400037f3
test rsi, rsi
je 0x1400037f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400037d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003b30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400069f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003bad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003ba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b50
add rax, 0x28
cmp rax, r9
jne 0x140003b90
xor eax, eax
ret

Function at 0x140003bb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003bcf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003bd8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003bcf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003c70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140015f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, r8d
mov r10, rdx
and eax, 1
xor r8d, r8d
neg rax
mov r9, rcx
mov qword [rsp + 8], rax
cmp qword [rcx], r8
jbe 0x140015fe0
nop dword [rax]
mov rcx, qword [r9 + 8]
mov rax, qword [r10 + 8]
mov rdx, qword [rcx + r8*8]
xor rdx, qword [rax + r8*8]
mov rcx, qword [rsp + 8]
mov rax, qword [r9 + 8]
and rcx, rdx
xor qword [rax + r8*8], rcx
mov rax, qword [r10 + 8]
xor qword [rax + r8*8], rcx
inc r8
cmp r8, qword [r9]
jb 0x140015fb0
ret
Function at 0x1400167d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rsi, rcx
mov ecx, 1
lea rax, [rbx*4 + 0x3f]
shr rax, 6
cmp rax, rcx
cmova rcx, rax
call fcn.140017260
xor edi, edi
mov r11, rax
test rbx, rbx
je 0x14001689c
mov rsi, qword [rsi]
dec rsi
add rsi, rbx
nop word [rax + rax]
movsx r9, byte [rsi]
lea rsi, [rsi - 1]
mov rcx, rdi
mov r10d, 0x66
sub r10, r9
shr rcx, 4
mov edx, 0x46
sub rdx, r9
lea rax, [r9 - 0x61]
or r10, rax
lea rax, [r9 - 0x57]
xor rax, r9
shr r10, 0x3f
dec r10
and r10, rax
mov rax, qword [r11 + 8]
xor r10, r9
lea r8, [rax + rcx*8]
movzx ecx, dil
lea rax, [r9 - 0x41]
and cl, 0xf
or rdx, rax
shl cl, 2
shr rdx, 0x3f
lea rax, [r9 - 7]
dec rdx
xor rax, r10
and rdx, rax
inc rdi
xor rdx, r10
and edx, 0xf
shl rdx, cl
or qword [r8], rdx
cmp rdi, rbx
jb 0x140016820
mov rax, r11
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140018410
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
je 0x140018458
mov r10, r8
movzx r9d, byte [r10 + rcx - 1]
dec r10
xor r9, 0x30
mov rax, r10
dec r9
xor rax, rsi
shr r9, 0x3f
dec r9
and r9, rax
xor rsi, r9
test r10, r10
jne 0x140018430
xor r11d, r11d
test rbx, rbx
je 0x1400184c8
mov rcx, r11
mov r9, rsi
shr r9, cl
mov r10d, 1
and r9b, 1
shl r10, cl
neg r9b
cmp r10, rbx
jae 0x1400184b7
lea rax, [r10 + rdi]
nop dword [rax]
nop word [rax + rax]
mov r8, rax
sub r8, r10
movzx edx, byte [r8]
movzx ecx, dl
xor cl, byte [rax]
and cl, r9b
xor dl, cl
mov byte [r8], dl
xor byte [rax], cl
inc rax
mov rcx, rax
sub rcx, rdi
cmp rcx, rbx
jb 0x140018490
inc r11
mov rax, rbx
mov rcx, r11
shr rax, cl
test rax, rax
jne 0x140018460
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14001cf90
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x38
mov rbx, rcx
call fcn.140003490
cmp byte [rax], 0
je 0x14001cfb5
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.14006c6e0
mov edx, 0x39
mov rcx, rbx
call fcn.140003460
test al, al
je 0x14001cfd0
add rsp, 0x20
pop rbx
jmp fcn.140082be0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14001d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
mov edx, r8d
call fcn.140073910
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140089360
Function at 0x1400213c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov edx, r9d
mov rcx, r8
mov rbx, r8
call fcn.1400034c0
test eax, eax
je 0x14002144e
sub eax, 1
je 0x140021445
sub eax, 1
je 0x14002143c
cmp eax, 1
jne 0x14002144e
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call fcn.140003490
mov rdx, rax
lea rcx, str.custom:
xor r8d, r8d
call fcn.14006c590
mov r8, rax
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140089f10
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140011ff0
lea r8, str.explicit
jmp 0x140021455
lea r8, str.implicit
jmp 0x140021455
lea r8, str.none
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140089f10

Function at 0x140021470
Capabilities:
Set registry value

Disassembly:
movzx eax, r8b
xor r8d, r8d
test al, al
setne r8b
jmp fcn.140089ed0
Function at 0x14003e4a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx r11d, byte [rcx]
xor edi, edi
movzx ebx, byte [rcx + 1]
mov rbp, rdx
test r8d, r8d
jle 0x14003e50d
nop word [rax + rax]
inc r11b
movzx r10d, r11b
movzx r9d, byte [r10 + rcx + 2]
add bl, r9b
movzx edx, bl
movzx eax, byte [rdx + rcx + 2]
mov byte [r10 + rcx + 2], al
mov byte [rdx + rcx + 2], r9b
movzx edx, byte [r10 + rcx + 2]
add rdx, r9
movzx eax, dl
movzx edx, byte [rax + rcx + 2]
xor byte [rdi + rbp], dl
inc edi
cmp edi, r8d
jl 0x14003e4d0
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov byte [rcx + 1], bl
mov rbx, qword [rsp + 8]
mov byte [rcx], r11b
ret
Function at 0x14003f180
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
imul r8d, r8d, 0x3e8
mov eax, 0x10624dd3
mov r12d, edx
mov esi, 1
mov r14, r9
mov r13d, ecx
mov ebx, esi
mul r8d
mov r15d, edx
shr r15d, 6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbp, qword [rsp + 0x110]
mov r8d, esi
mov r9d, dword [rsp + 0xe0]
mov edi, eax
mov rax, qword [rsp + 0x108]
mov edx, r12d
mov qword [rsp + 0x48], rbp
mov ecx, r13d
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x100]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0xf8]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0xf0]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x20], eax
movaps xmmword [rsp + 0x80], xmm0
call fcn.14003f0a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, r15d
jae 0x14003f349
nop word [rax + rax]
mov eax, ebx
mov edi, ebx
not eax
cmp esi, eax
ja 0x14003f349
xor edx, edx
mov rcx, rbp
call fcn.14006d1b0
add ebx, esi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [rsp + 0xe0]
mov r8d, ebx
mov edi, eax
mov qword [rsp + 0x48], rbp
mov rax, qword [rsp + 0x108]
mov edx, r12d
mov ecx, r13d
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x100]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax]
mov rax, qword [rsp + 0xf8]
movaps xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0xf0]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x20], eax
movaps xmmword [rsp + 0x80], xmm1
call fcn.14003f0a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, r15d
jb 0x14003f280
lea r11, [rsp + 0x90]
mov dword [r14], ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140042660
Capabilities:
Encrypt data using blowfish

Disassembly:
mov dword [rcx + 0x1000], 0x243f6a88
lea r8, [0x1400c0310]
mov dword [rcx + 0x1004], 0x85a308d3
lea r9, [0x1400c0710]
mov dword [rcx + 0x1008], 0x13198a2e
lea r10, [0x1400c0b10]
mov dword [rcx + 0x100c], 0x3707344
lea r11, [0x1400c0f10]
mov dword [rcx + 0x1010], 0xa4093822
lea rax, [rcx + 0x800]
mov dword [rcx + 0x1014], 0x299f31d0
sub r8, rcx
mov dword [rcx + 0x1018], 0x82efa98
sub r9, rcx
mov dword [rcx + 0x101c], 0xec4e6c89
sub r10, rcx
mov dword [rcx + 0x1020], 0x452821e6
sub r11, rcx
mov dword [rcx + 0x1024], 0x38d01377
mov edx, 0x100
mov dword [rcx + 0x1028], 0xbe5466cf
mov dword [rcx + 0x102c], 0x34e90c6c
mov dword [rcx + 0x1030], 0xc0ac29b7
mov dword [rcx + 0x1034], 0xc97c50dd
mov dword [rcx + 0x1038], 0x3f84d5b5
mov dword [rcx + 0x103c], 0xb5470917
mov dword [rcx + 0x1040], 0x9216d5d9
mov dword [rcx + 0x1044], 0x8979fb1b
nop dword [rax + rax]
mov ecx, dword [r8 + rax - 0x800]
mov dword [rax - 0x800], ecx
mov ecx, dword [r9 + rax - 0x800]
mov dword [rax - 0x400], ecx
mov ecx, dword [r10 + rax - 0x800]
mov dword [rax], ecx
mov ecx, dword [r11 + rax - 0x800]
mov dword [rax + 0x400], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140042750
ret