joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008760
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x1400be108]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0x800
mov r15d, 1
test rsi, rsi
je 0x140008863
test rdi, rdi
je 0x140008863
lea rax, [rsp + 0x48]
mov dword [rsp + 0x30], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, 0xffffffff80000001
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008840
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008835
cmp dword [rsp + 0x30], r15d
movzx ebx, bl
cmove ebx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140008863
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008850
test rax, rax
jne 0x1400088fa
mov dword [rsp + 0x40], 0x800
test rsi, rsi
je 0x1400088f8
test rdi, rdi
je 0x1400088f8
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], 0
mov rdx, rsi
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400088fa
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400088eb
cmp dword [rsp + 0x34], r15d
movzx ebx, bl
cmove ebx, r15d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400088fa
xor bl, bl
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__long_long___int64__]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14001bd80
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x880
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008960
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov dword [r11 + 8], r9d
mov r14d, r9d
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov r15d, 1
test rcx, rcx
je 0x140008a33
test rdx, rdx
je 0x140008a33
lea rax, [r11 - 0x38]
mov dword [r11 + 0x20], r15d
mov rdx, rcx
mov qword [r11 - 0x48], rax
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x38], 0
mov r9d, r15d
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008a10
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008a05
cmp dword [rsp + 0x88], r15d
movzx ebx, bl
cmove ebx, r15d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140008a33
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x140008a20
test rcx, rcx
jne 0x140008ac7
mov dword [rsp + 0x70], r14d
test rbp, rbp
je 0x140008adb
test rsi, rsi
je 0x140008adb
lea rax, [rsp + 0x30]
mov dword [rsp + 0x88], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov rdx, rbp
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008ac7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008abc
cmp dword [rsp + 0x88], r15d
movzx ebx, bl
cmove ebx, r15d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140008af0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov rdi, rdx
test rcx, rcx
je 0x140008ba1
test rdx, rdx
je 0x140008ba1
xor edx, edx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
xor bl, bl
mov dword [rsp + 0x20], edx
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008b93
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx ebx, bl
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor al, al
add rsp, 0x50
pop rdi
ret
Function at 0x140008bb0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
mov esi, r9d
mov rbp, r8
mov rdi, rdx
test rcx, rcx
je 0x140008c66
test rdx, rdx
je 0x140008c66
xor edx, edx
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x18], rdx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rdx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
xor bl, bl
mov dword [rsp + 0x20], edx
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008c4e
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, rdi
mov esi, 1
mov qword [rsp + 0x20], rbp
mov r9d, esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
movzx ebx, bl
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rbp, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140008c80
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x1400be108]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x50], r8
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QString::toWCharArray_wchar_t____ptr64_const___ptr64]
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x208
jae 0x140008d9f
xor edx, edx
mov word [rsp + rcx + 0x60], dx
lea r14d, [rax*2 + 2]
test rsi, rsi
je 0x140008d73
test rbp, rbp
je 0x140008d73
xor bl, bl
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008d75
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov esi, 1
mov r9d, esi
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008d75
xor bl, bl
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001bd80
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14001bed4
nop
int3
Function at 0x14001cfd0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14001d00d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14001c068
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001d10c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14001c068
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x14001d080
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140002ce0
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14001d14b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001d14b
call fcn.14001bc64
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14001d132
mov rcx, r14
call fcn.14001bc64
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x14000f050
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x14000f090
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14000f1b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f207
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.14000f210
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000f1f7
mov qword [rsi], rdi
call fcn.14003bd20
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.14005b0a0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140010ba0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm13
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
lea r8, [rdx - 0x40]
lea r11, [rcx + 0x40]
mov eax, 0x40
cmp r8, rax
jb 0x140010ced
add rdx, 0xffffffffffffff80
mov r9, rdx
and r9, 0xffffffffffffffc0
mov r10, r9
sub r10, 0xffffffffffffff80
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140198920]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm9, 0
movdqa xmm12, xmm3
pclmulqdq xmm12, xmm9, 0
movdqa xmm11, xmm2
pclmulqdq xmm11, xmm9, 0
movdqa xmm10, xmm1
pclmulqdq xmm10, xmm9, 0
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm0, xmmword [r11]
pxor xmm0, xmm6
pxor xmm0, xmm4
movdqu xmm3, xmmword [r11 + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [r11 + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [r11 + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add r8, 0xffffffffffffffc0
add r11, 0x40
cmp r8, 0x3f
ja 0x140010c38
sub rdx, r9
add rcx, r10
mov r8, rdx
mov r11, rcx
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140198930]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp r8, 0x10
jb 0x140010d7d
movdqu xmm1, xmmword [r11]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm1
pxor xmm0, xmm2
add r11, 0x10
add r8, 0xfffffffffffffff0
cmp r8, 0xf
ja 0x140010d52
movdqa xmm1, xmmword [0x140198930]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pmovzxdq xmm1, xmm0
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm0
pmovzxdq xmm0, xmm2
pclmulqdq xmm0, xmmword [0x140198940], 0x10
pmovzxdq xmm0, xmm0
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x140012a20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8d, 0x20
call fcn.140178ec0
mov edi, 6
cmp eax, 0x20
jne 0x140012ae4
mov ecx, dword [rsi + 8]
mov rdi, qword [sym.imp.WS2_32.dll_ntohl]
call rdi
mov dword [rsi + 8], eax
mov ecx, dword [rsi + 0xc]
call rdi
mov dword [rsi + 0xc], eax
mov ecx, dword [rsi + 0x10]
call rdi
mov dword [rsi + 0x10], eax
mov ecx, dword [rsi + 0x14]
call rdi
mov dword [rsi + 0x14], eax
mov ecx, dword [rsi + 0x18]
call rdi
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x1c]
call rdi
mov dword [rsi + 0x1c], eax
lea rdx, [rsp + 0x28]
mov ecx, ebx
call fcn.140177260
mov edi, 6
test eax, eax
jne 0x140012ae4
movabs rax, 0x303146464944424d
mov edi, 8
cmp qword [rsi], rax
jne 0x140012ae4
movsxd rax, dword [rsp + 0x3c]
cmp rax, 0x20
jb 0x140012ae4
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x140012ae4
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x140012ae4
mov ecx, dword [rsi + 0x1c]
cmp rax, rcx
jb 0x140012ae4
setne al
movzx edi, al
shl edi, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140012b00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov r12, r8
mov ebx, edx
mov rdi, rcx
mov r13d, dword [rcx + 8]
mov ebp, dword [rcx + 0x18]
add ebp, dword [rcx + 0x14]
add ebp, dword [rcx + 0x1c]
mov rcx, rbp
call fcn.14005c170
test rax, rax
je 0x140012b65
mov r14, rax
add r13, r12
mov rsi, rax
test ebp, ebp
je 0x140012b6c
mov ecx, ebx
mov rdx, rsi
mov r8d, ebp
call fcn.140178ec0
test eax, eax
js 0x140012b8d
sub ebp, eax
movsxd rcx, eax
add rsi, rcx
test eax, eax
jne 0x140012b3e
test ebp, ebp
je 0x140012b3e
jmp 0x140012b86
mov ebx, 1
jmp 0x140012b9a
mov eax, dword [rdi + 0x14]
mov ecx, 0xaaaaaaab
imul rcx, rax
shr rcx, 0x23
shl ecx, 2
lea ecx, [rcx + rcx*2]
cmp eax, ecx
je 0x140012bad
mov ebx, 8
jmp 0x140012b92
mov ebx, 6
mov rcx, r14
call fcn.14005c1d0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
je 0x140012ced
mov dword [rsp + 0x24], r15d
mov rbp, r14
add rbp, rax
mov eax, dword [rdi + 0x18]
add rax, rbp
mov ecx, dword [rdi + 0x1c]
add rcx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r12
mov r15, r12
mov qword [rsp + 0x40], rax
mov rdi, rax
mov qword [rsp + 0x28], rbp
mov r12, r14
mov ecx, dword [r12]
mov rax, qword [sym.imp.WS2_32.dll_ntohl]
mov rsi, rax
call rax
mov dword [r12], eax
mov ecx, dword [r12 + 4]
call rsi
mov dword [r12 + 4], eax
mov ecx, dword [r12 + 8]
call rsi
mov dword [r12 + 8], eax
mov eax, dword [r12]
mov rcx, r13
sub rcx, r15
cmp rcx, rax
jb 0x140012b86
mov rcx, qword [rsp + 0x40]
sub rcx, rbp
cmp rcx, rax
jb 0x140012b86
test eax, eax
je 0x140012c55
xor eax, eax
mov cl, byte [r15 + rax]
add byte [rbp + rax], cl
inc rax
mov r8d, dword [r12]
cmp rax, r8
jb 0x140012c3f
jmp 0x140012c58
xor r8d, r8d
mov ecx, dword [rsp + 0x24]
mov rdx, rbp
call fcn.14017bd00
mov ebx, 7
cmp eax, dword [r12]
jne 0x140012b92
mov esi, eax
mov r8d, dword [r12 + 4]
mov rax, qword [rsp + 0x38]
sub rax, rdi
cmp rax, r8
jb 0x140012b86
mov ecx, dword [rsp + 0x24]
mov rdx, rdi
call fcn.14017bd00
cmp eax, dword [r12 + 4]
jne 0x140012b92
mov edx, esi
add r15, rdx
movsxd rcx, dword [r12 + 8]
mov rbx, qword [rsp + 0x30]
sub rbx, r15
cmp rbx, rcx
jg 0x140012b86
mov rbx, r13
sub rbx, r15
cmp rbx, rcx
jl 0x140012b86
add rbp, rdx
mov eax, eax
add rdi, rax
add r15, rcx
add r12, 0xc
xor ebx, ebx
cmp r12, qword [rsp + 0x28]
jb 0x140012be9
jmp 0x140012b92
xor ebx, ebx
jmp 0x140012b92
Function at 0x140012d00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r15, r8
mov rbp, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
xor esi, esi
mov rcx, rdx
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.14017c970
cmp eax, 1
sbb esi, esi
not esi
or esi, dword [rbx]
js 0x140012d85
lea rdx, [rsp + 0x70]
mov ecx, esi
call fcn.140012a20
mov r12d, 0xffffffff
xor r14d, r14d
test eax, eax
je 0x140012d8f
mov edi, eax
mov ebx, 0xffffffff
jmp 0x140012eae
mov edi, 6
jmp 0x140012ed5
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov rcx, rbp
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.14017c970
mov ebx, dword [rsp + 0x38]
cmp eax, 1
mov ebp, 0
sbb ebp, ebp
not ebp
or ebp, ebx
js 0x140012e96
lea rdx, [rsp + 0x38]
mov ecx, ebp
call fcn.140177260
mov r12d, 0xffffffff
mov edi, 6
test eax, eax
jne 0x140012eab
mov r13d, dword [rsp + 0x4c]
cmp r13d, dword [rsp + 0x78]
jne 0x140012e9f
mov rcx, r13
call fcn.14005c170
test rax, rax
je 0x140012ea6
mov r14, rax
mov ecx, ebp
mov rdx, rax
mov r8d, r13d
call fcn.140178ec0
cmp eax, dword [rsp + 0x78]
jne 0x140012eae
mov ebp, eax
call fcn.14007a530
movsxd rdx, ebp
mov rcx, r14
call fcn.14007a500
not eax
cmp dword [rsp + 0x7c], eax
jne 0x140012efb
lea r12, [rsp + 0x6c]
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], 0
xor ebp, ebp
mov rcx, r15
mov edx, 0x8301
mov r8d, 0x40
xor r9d, r9d
call fcn.14017c970
mov r12d, dword [r12]
cmp eax, 1
sbb ebp, ebp
not ebp
or ebp, r12d
js 0x140012f02
lea rcx, [rsp + 0x70]
mov edx, esi
mov r8, r14
mov r9d, ebp
call fcn.140012b00
mov edi, eax
jmp 0x140012eae
mov edi, 6
mov ebx, ebp
jmp 0x140012eae
mov edi, 8
jmp 0x140012eab
mov edi, 1
xor r14d, r14d
mov rcx, r14
call fcn.14005c1d0
mov ecx, esi
call fcn.140174d20
test ebx, ebx
js 0x140012ec8
mov ecx, ebx
call fcn.140174d20
test r12d, r12d
js 0x140012ed5
mov ecx, r12d
call fcn.140174d20
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14014ac50
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 4
jmp 0x140012eae
mov r12d, ebp
jmp 0x140012eae
Function at 0x1400143e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r15, r9
mov rsi, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0xf
mov rcx, r8
jbe 0x14001441c
mov rcx, qword [rsi]
movabs rbp, 0xcbf29ce484222325
test rax, rax
je 0x14001444f
xor edx, edx
movabs rbx, 0x100000001b3
movzx edi, byte [rcx + rdx]
xor rdi, rbp
imul rdi, rbx
inc rdx
mov rbp, rdi
cmp rax, rdx
jne 0x140014437
jmp 0x140014452
mov rdi, rbp
and rdi, qword [r12 + 0x30]
lea rbp, [rdi + rdi]
mov rbx, qword [r12 + 8]
mov rcx, qword [r12 + 0x18]
mov rax, rdi
shl rax, 4
mov rax, qword [rcx + rax]
cmp rax, rbx
je 0x140014488
lea rdx, [rbp*8]
or rdx, 8
mov rcx, qword [rcx + rdx]
mov rbx, qword [rcx]
cmp rax, rbx
je 0x1400144b4
lea r13, [r12 + 8]
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, rsi
call fcn.140013430
test al, al
jne 0x140014506
mov rax, qword [r12 + 0x18]
mov rax, qword [rax + rbp*8]
cmp rax, rbx
jne 0x140014492
mov rcx, qword [r15]
cmp rcx, rax
je 0x1400144e9
mov rdx, qword [r15 + 8]
mov qword [rdx], rcx
mov rdx, qword [rcx + 8]
mov qword [rdx], rax
mov rdx, qword [rax + 8]
mov qword [rdx], r15
mov rdx, qword [rax + 8]
mov rbp, qword [rcx + 8]
mov qword [rax + 8], rbp
mov rax, qword [r15 + 8]
mov qword [rcx + 8], rax
mov qword [r15 + 8], rdx
mov rcx, r12
mov rdx, r15
mov r8, rbx
mov r9, rdi
call fcn.140014210
mov rcx, r12
call fcn.140014270
mov al, 1
jmp 0x14001451b
lea rdx, [rsp + 0x28]
mov rcx, r13
mov r8, r15
call fcn.140014310
xor eax, eax
mov r15, rbx
mov qword [r14], r15
mov byte [r14 + 8], al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14014ac50
mov rax, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400274e0
Capabilities:
Get session information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1400275ae
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rcx, [rsp + 0x4c]
mov dword [rcx], 0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, eax
mov r8d, 0x18
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400275ae
mov rbx, qword [rsp + 0x50]
mov ecx, 0x30
call fcn.14014a810
mov rdi, rax
lea rdx, [0x140028970]
lea r8, [0x14000e510]
mov rcx, rax
call fcn.14002b360
lea rax, [0x140196dc0]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rbx
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
call fcn.14002b3b0
mov rcx, rbx
call fcn.14002b3f0
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140088dc0
cmp dword [rsp + 0x4c], 0xd7
ja 0x1400275b7
mov qword [rsi], 0
jmp 0x1400275cb
mov qword [rsi], 0
jmp 0x1400275d5
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0xc8]
mov rcx, rsi
call fcn.14005d450
lea rcx, [rsp + 0x40]
call fcn.140088df0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret