joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044a82
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x140044b46
lea rcx, [0x14004fcd2]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x140044b46
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14003f7c3
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x140044b55
mov qword [rdi], 2
mov rcx, rsi
call fcn.14003f747
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140045f00
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.140046ca0
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.140046ca0
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 0x140045f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400561b4]
mov rbx, rcx
test esi, esi
jle 0x1400460a0
mov rax, qword [0x1400561b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140045fbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140046045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140045fa0
mov rcx, rbx
call fcn.1400469c0
mov rdi, rax
test rax, rax
je 0x1400460c2
mov rax, qword [0x1400561b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140046b00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400561b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400460a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14004603e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140046050
add dword [0x1400561b4], 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 [0x1400561b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004603e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140045f00
nop dword [rax]
xor esi, esi
jmp 0x140045fc8
mov rax, qword [0x1400561b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140045f00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140045f00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140046630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140056220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140056200]
test rbx, rbx
je 0x14004668c
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 0x140046683
test rsi, rsi
je 0x140046683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140046668
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 0x1400469c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140050990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400469e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400469e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400469e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140046a3d
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 0x140046a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400469e0
add rax, 0x28
cmp rax, r9
jne 0x140046a20
xor eax, eax
ret

Function at 0x140046a40
Capabilities:
Parse pe header

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

Function at 0x140046b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140050990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140046b1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140046b28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140691a50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140691a5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140691a6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140691a55
lea eax, [rcx + 1]
jmp 0x140691a7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140691a8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140691a74
sub eax, 3
jb 0x140691aae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140691afd
sar eax, 1
movsxd rbp, eax
jb 0x140691ae4
jmp 0x140691abc
add ebx, ebx
jne 0x140691aba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140691ae4
inc ecx
add ebx, ebx
jne 0x140691aca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140691ae4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140691add
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140691acc
add ecx, 2
jmp 0x140691ae9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140691a12
jmp 0x140691a5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x136e00
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140691b49
cmp rsi, rcx
jae 0x140691b51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140691b30
cmp al, 0x8f
ja 0x140691b30
cmp byte [rsi - 2], 0xf
je 0x140691b36
sub al, 0xe8
cmp al, 1
ja 0x140691b1a
cmp rsi, rcx
jae 0x140691b51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140691b20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140691b51
lodsb al, byte [rsi]
jmp 0x140691b30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x68d000]
mov eax, dword [rdi]
or eax, eax
je 0x140691bae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x69c28c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140691b5e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140691ba8
mov qword [rbx], rax
add rbx, 8
jmp 0x140691b7e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140691c06
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x14001ba40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14001bc5d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1401ab440]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x14001bab0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1401ab450]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x14001bbda
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x14001bbb0
movdqa xmm1, xmmword [0x1401ab450]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1401ab460], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x14001bc7b
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.14001b5f0
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14001ca00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x828
mov ecx, dword [0x1401aa018]
test ecx, ecx
je 0x14001ca33
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14001ca4c
cmp qword [rax + 8], 0
je 0x14001ca4c
add rax, 0x10
jmp 0x14001cc47
lea rcx, section..data
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14001ca23
mov ecx, dword [0x1401aa018]
test ecx, ecx
je 0x14001cc28
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14001cc45
mov rsi, rax
test rax, rax
jne 0x14001cabc
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x14001cc6a
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401aa018]
test ecx, ecx
je 0x14001cc6c
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [0x14024d030]
cmp rax, 3
jne 0x14001cc54
mov rdi, qword [0x14024d038]
lock inc qword [rdi]
jle 0x14001cc6a
mov eax, 0x60
movups xmm0, xmmword [0x1401bb928]
movups xmm1, xmmword [0x1401bb918]
nop word cs:[rax + rax]
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x14001cb00
movzx eax, byte [0x14024d119]
mov edx, 0x980
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x14001cc6a
mov r14, rax
and r14, 0xffffffffffffff80
lea rbx, [r14 + 0x80]
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [r14 + 0x890], xmm0
mov qword [r14 + 0x8a0], 1
mov qword [r14 + 0x8a8], 0
mov qword [r14 + 0x900], 0
mov rcx, qword [0x14024d038]
mov rax, qword [rcx + 0x200]
nop word cs:[rax + rax]
mov qword [rbx], rax
lock cmpxchg qword [rcx + 0x200], rbx
jne 0x14001cbd0
lea rax, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rbx
je 0x14001cc47
mov rdx, qword [rcx + 0x820]
lea r8, [rdx - 1]
mov qword [rcx + 0x820], r8
cmp qword [rcx + 0x818], 0
jne 0x14001cc47
cmp rdx, 1
jne 0x14001cc47
mov rsi, rax
call fcn.14001bf30
mov rax, rsi
jmp 0x14001cc47
lea rcx, section..data
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14001ca6b
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14001c360
mov rdi, qword [0x14024d038]
lock inc qword [rdi]
jg 0x14001cade
ud2
lea rcx, section..data
call fcn.14008d860
mov ecx, eax
jmp 0x14001cab4
Function at 0x140027320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x140027350
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140027369
cmp qword [rax + 8], 0
je 0x140027369
add rax, 0x10
jmp 0x140027425
lea rcx, str.PA_b_
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140027340
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x140027406
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140027423
test rax, rax
jne 0x1400273d5
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140027442
lea rcx, str.PA_b_
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x14002742c
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400273ef
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400273f1
mov rcx, qword [rsi + 8]
jmp 0x1400273f1
xor ecx, ecx
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x140027425
lea rcx, str.PA_b_
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140027388
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.PA_b_
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x1400273c7
ud2
Function at 0x140031cd0
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov al, 1
test rdx, rdx
je 0x140031dde
movzx r9d, byte [rcx]
mov r10, qword [r8]
movzx r10d, byte [r10]
not r10b
test r9b, r10b
jne 0x140031dde
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x140031de4
mov r8, qword [r8 + 8]
xor byte [r8], r9b
mov r11d, 1
cmp r10, 1
je 0x140031dd8
lea rbx, [rdx - 1]
lea rdi, [r10 - 2]
cmp rbx, rdi
mov rsi, rdi
cmovb rsi, rbx
lea r9, [r8 + 1]
inc rsi
cmp rsi, 0x10
jbe 0x140031dae
cmp rbx, rdi
cmovb rdi, rbx
lea rbx, [rcx + rdi]
add rbx, 2
cmp r9, rbx
jae 0x140031d5e
add rdi, r8
add rdi, 2
lea rbx, [rcx + 1]
cmp rbx, rdi
jb 0x140031dae
mov r11d, esi
and r11d, 0xf
mov r14d, 0x10
cmovne r14, r11
mov rdi, rsi
sub rdi, r14
lea rbx, [r9 + rdi]
neg r14
lea r11, [rsi + r14]
inc r11
xor esi, esi
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + rsi + 1]
movups xmm1, xmmword [r9 + rsi]
xorps xmm1, xmm0
movups xmmword [r9 + rsi], xmm1
add rsi, 0x10
cmp rdi, rsi
jne 0x140031d90
mov r9, rbx
add r8, r10
nop word cs:[rax + rax]
cmp rdx, r11
je 0x140031dde
movzx r10d, byte [rcx + r11]
xor byte [r9], r10b
inc r11
inc r9
cmp r9, r8
jne 0x140031dc0
cmp r11, rdx
setne al
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x140035450
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx + 8], r8
jne 0x140035505
mov rsi, r8
test r8, r8
je 0x140035505
mov rdi, rdx
mov rbx, qword [rcx]
xor eax, eax
cmp rsi, 4
jb 0x1400354d0
mov rdx, rdi
sub rdx, rbx
cmp rdx, 0x20
jb 0x1400354d0
mov rax, rsi
and rax, 0xfffffffffffffffc
xor edx, edx
pcmpeqd xmm0, xmm0
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbx + rdx*8]
movdqu xmm2, xmmword [rbx + rdx*8 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rdi + rdx*8], xmm1
movdqu xmmword [rdi + rdx*8 + 0x10], xmm2
add rdx, 4
cmp rax, rdx
jne 0x1400354a0
cmp rax, rsi
je 0x14003554e
mov r8, rsi
mov rdx, rax
and r8, 3
je 0x1400354f7
mov r9, rax
nop
lea rdx, [r9 + 1]
mov r10, qword [rbx + r9*8]
not r10
mov qword [rdi + r9*8], r10
mov r9, rdx
dec r8
jne 0x1400354e0
sub rax, rsi
cmp rax, 0xfffffffffffffffc
jbe 0x140035510
test rsi, rsi
jne 0x14003554e
ud2
mov rax, qword [rbx + rdx*8]
not rax
mov qword [rdi + rdx*8], rax
mov rax, qword [rbx + rdx*8 + 8]
not rax
mov qword [rdi + rdx*8 + 8], rax
mov rax, qword [rbx + rdx*8 + 0x10]
not rax
mov qword [rdi + rdx*8 + 0x10], rax
mov rax, qword [rbx + rdx*8 + 0x18]
not rax
mov qword [rdi + rdx*8 + 0x18], rax
lea rax, [rdx + 4]
mov rdx, rax
cmp rsi, rax
jne 0x140035510
or byte [rdi], 1
mov r14, rsi
shl r14, 6
sub r14, qword [rcx + 0x20]
je 0x140035596
mov rax, qword [rdi + rsi*8 - 8]
mov ecx, r14d
shl rax, cl
shr rax, cl
mov qword [rdi + rsi*8 - 8], rax
cmp r14, 1
adc r14, 0
nop dword [rax]
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call fcn.140196ef0
dec r14
jne 0x140035580
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140047370
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test r8, r8
je case.0x140045caf.34
pop rdx
mov rsi, r8
mov rdi, rdx
mov r14d, 0xffffffff
jmp 0x140047398
add rdi, rbx
sub rsi, rbx
je case.0x140045caf.34
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
add al, byte [rax]
add byte [rax], al
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x140047390
mov ebp, eax
mov rcx, rdi
mov ecx, edi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
jbe 0x14004735b
or al, 0
test al, al
jne 0x140047390
test ebp, 0x7fffffff
setne al
shr bl, 2
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14006d3a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14006d3e2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14006d3ea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14006d3fb
jmp 0x14006d412
xor r10d, r10d
jmp 0x14006d49d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14006d412
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14006d429
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14006d449
add r11, r8
jmp 0x14006d57b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14006d512
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14006d4c0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14006d530
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14006d542
jmp 0x14006d55d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14006d55d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14006d577
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140082ae0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140082b80
jmp 0x140082b5f
jae 0x140082c2a
cmp r8, 0x201
jae 0x140082b80
mov ebx, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x140082bab
sub r8, r15
sub rsi, r15
cmp rsi, r8
jb 0x140082c09
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov rbx, r15
mov r12, qword [rsp + 0x48]
mov r13, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.kernel32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x140082bd0
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140082cf7
mov r8d, ebp
cmp r13, r8
jne 0x140082b50
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140082d24
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x140082b5f
jmp 0x140082b80
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.14008e490
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140082b8b
cmp rbx, r8
jb 0x140082d24
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.14008b610
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.1400916a0
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x140082c78
lea rdx, str.exe.NULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.140092830
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140088b40
cmp qword [rsp + 0x60], 0
je 0x140082cab
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp qword [rsp + 0x28], 0
je 0x140082ce2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14024d108]
xor edx, edx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000001
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x140082ccf
jmp 0x140082ce2
ud2