joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a700
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 [0x1400b7a38]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14007a744
movzx eax, r14w
jmp 0x14007a87a
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14007a780
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14007a780
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 0x14007a87a
cmp qword [rcx + 0x80], r14
je 0x14007a877
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14007a7be
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 0x14007a7e7
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14006baac
cmp ax, di
je 0x14007a877
movzx edi, si
jmp 0x14007a877
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 [case.0x14002e391.0]
test eax, eax
je 0x14007a83c
sub eax, 1
je 0x14007a83c
cmp eax, 2
jne 0x14007a877
movzx ecx, word [rbp + 7]
jmp 0x14007a7ca
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14007a866
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14005e910
cmp r14, rax
jne 0x14007a877
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x14007a87a
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140077b20
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 0x1400015e0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rbp + 0x80], rax
movdqa xmm1, xmmword [0x1400032e0]
mov dl, 0x1f
movd ecx, xmm1
movdqa xmm0, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8b, 0x12
mov r9b, 0x59
xor dl, cl
psrldq xmm0, 1
xor byte [rsp + 0x32], cl
xor r8b, cl
xor byte [rsp + 0x33], cl
xor r9b, cl
xor byte [rsp + 0x34], cl
mov r10b, 0x41
xor byte [rsp + 0x35], cl
xor r10b, cl
xor byte [rsp + 0x36], cl
mov r11b, 0x45
xor byte [rsp + 0x37], cl
xor r11b, cl
xor byte [rsp + 0x38], cl
mov bl, 0x46
xor byte [rsp + 0x39], cl
xor bl, cl
xor byte [rsp + 0x3a], cl
xor byte [rsp + 0x3b], cl
xor byte [rsp + 0x3c], cl
xor byte [rsp + 0x3d], cl
xor byte [rsp + 0x3e], cl
xor byte [rsp + 0x3f], cl
mov byte [rsp + 0x40], dl
mov dl, 0x20
mov byte [rsp + 0x41], r8b
xor dl, 0x45
movd eax, xmm0
mov r8b, 0x2b
xor r8b, 0x45
mov byte [rsp + 0x42], r9b
xor r9d, r9d
mov byte [rsp + 0x4b], dl
xor al, cl
mov byte [rsp + 0x4c], r8b
mov byte [rsp + 0x31], al
lea r8, [rsp + 0x31]
mov cl, 0x35
mov dword [rsp + 0x28], r9d
xor cl, 0x45
mov byte [rsp + 0x43], r10b
mov al, 0x2a
mov byte [rsp + 0x4a], cl
xor al, 0x45
mov byte [rsp + 0x44], r11b
xor ecx, ecx
mov byte [rsp + 0x49], al
lea rdx, [rsp + 0x49]
mov byte [rsp + 0x45], bl
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x48], 0x45
mov byte [rsp + 0x4d], r9b
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400017c9
lea rdi, str.cs2.exe
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400017c0
nop
xor eax, eax
lea rdx, [rsp + 0x7c]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x140001780
cmp rax, 8
jne 0x140001750
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f40
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001030
xor eax, eax
jmp 0x1400017ce
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001740
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001720
jmp 0x1400017c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140001810
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002198
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, rdx
call fcn.1400d3dc0
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebp, eax
je 0x14001b41a
mov rcx, rdi
call fcn.14001b251
mov r15d, 0x100000
test al, al
je 0x14001b420
mov r15d, 0x101000
lea rbp, [rsp + 0x50]
mov r8d, 0xa0
mov rcx, rbp
mov dl, 0xaa
call fcn.140085d30
mov rcx, rbp
call fcn.1400d2460
mov byte [rbp + 0x22], 1
lea rcx, [rsp + 0x58]
call fcn.1400d2be0
movaps xmm0, xmmword [0x14014df90]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.1400d3ce0
mov rcx, rsi
call fcn.14004f7f0
test al, al
je 0x14001b501
lea rsi, [rsp + 0x38]
mov qword [rsi], 0
mov rcx, rdi
call fcn.14004f810
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14004f810
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r15d
mov rcx, rax
mov rdx, rbp
mov r8, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001b501
mov rsi, qword [rsp + 0x38]
cmp qword [r14], rsi
je 0x14001b51d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14001b553
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14001b4f7
mov qword [r14], rsi
call fcn.14004cb60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001b51d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80004005
cmovne edi, ecx
lea rcx, [rsp + 0x40]
call fcn.14004f710
lea rcx, [rsp + 0x50]
call fcn.1400d24d0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140083c00
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14004cb60
mov rcx, qword [r14]
call fcn.14004fcb0
mov qword [r14], 0
jmp 0x14001b4e5
Function at 0x14001bdd6
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov r15, r9
mov r12, r8
mov r14, rdx
mov rbx, rcx
mov esi, dword [rsp + 0x190]
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [0x14014df90]
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx], xmm6
xor edx, edx
call fcn.140024090
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
jne 0x14001be60
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140024110
lea rcx, [rsp + 0xe0]
mov rdx, rsi
call fcn.14004f740
mov rcx, rsi
call fcn.14004f710
jmp 0x14001be77
lea rdx, [rsp + 0xe0]
mov ecx, esi
call fcn.14001aaec
test eax, eax
js 0x14001c03a
mov rsi, qword [rsp + 0x180]
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0xc0]
mov qword [rdi + 0x10], r13
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.1400d0630
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov rdx, r12
mov r8, r15
mov r9, rsi
call fcn.14001ae83
test eax, eax
js 0x14001bfbb
mov rsi, qword [rsp + 0x188]
lea rdi, [rsp + 0xa0]
mov qword [rdi + 0x10], r13
movaps xmmword [rdi], xmm6
lea rcx, [rsp + 0xc0]
call fcn.1400afb80
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call fcn.14004bfd0
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x40], r13
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
mov rcx, rsi
mov rdx, rdi
call fcn.1400ce760
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.1400cf440
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call fcn.14001b3ca
mov esi, eax
test eax, eax
js 0x14001bfbf
mov r14, qword [rsp + 0x198]
lea rcx, [rsp + 0xc0]
lea rdi, [rsp + 0x30]
mov rdx, rdi
call fcn.1400d0640
mov rcx, rdi
call fcn.14001b795
mov rcx, rdi
call fcn.14004bda0
mov rbx, qword [rsp + 0x48]
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x14001bf84
call fcn.14004cb60
cmp qword [r14], rbx
je 0x14001bfb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14001c03e
cmp rdi, 2
jb 0x14001bfaf
mov qword [r14], rbx
call fcn.14004cb60
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x14001bfc4
mov esi, eax
jmp 0x14001bff2
mov rdi, qword [rsp + 0x48]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14001bfdb
call fcn.14004cb60
mov rcx, rdi
call fcn.14004fcb0
lea rcx, [rsp + 0x50]
call fcn.1400ce980
lea rcx, [rsp + 0xa0]
call fcn.14004bda0
lea rcx, [rsp + 0xc0]
call fcn.1400d0720
lea rcx, [rsp + 0xe0]
call fcn.14004f710
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140083c00
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, eax
jmp 0x14001bfff
call fcn.14004cb60
mov rcx, qword [r14]
call fcn.14004fcb0
mov qword [r14], 0
jmp 0x14001bfa1
Function at 0x1400222c0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, rcx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140049a70
test al, al
je 0x1400223de
call fcn.140049a60
mov rdi, rax
lea r14, [0x14015696e]
mov rcx, rax
mov rdx, r14
call fcn.140049b10
test al, al
jne 0x140022326
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140049b10
test al, al
je 0x1400223de
cmp qword [0x14017f6e8], 0
jne 0x1400224a0
mov rax, qword [0x14017f6f0]
mov qword [0x14017f6e8], rax
mov ecx, 0x20
call fcn.140082758
mov r13, rax
lea rcx, str.vmodule
lea rsi, [rsp + 0x50]
mov qword [rsi], rcx
call fcn.14009d330
mov qword [rsi + 8], rax
lea r12, [rsp + 0x60]
mov rcx, rdi
mov rdx, r12
mov r8, rsi
call fcn.140049c20
lea rsi, [rsp + 0x28]
mov qword [rsi], r14
mov rcx, r14
call fcn.14009d330
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.140049c20
lea r9, [0x14017f6f8]
mov rcx, r13
mov rdx, rbx
mov r8, r12
call fcn.1400d8df0
mov qword [0x14017f6f0], r13
cmp byte [rbx + 0x17], 0
jns 0x1400223cd
mov rcx, qword [rsp + 0x38]
call fcn.140082794
cmp byte [rsp + 0x77], 0
jns 0x1400223de
mov rcx, qword [rsp + 0x60]
call fcn.140082794
mov eax, dword [r15]
mov dword [0x140174ed8], eax
mov bl, 1
test al, 1
je 0x14002247e
mov rcx, qword [0x14017f720]
test rcx, rcx
je 0x140022423
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14017f720], 0
mov rcx, qword [0x14017f700]
test rcx, rcx
jne 0x140022451
and byte [0x140174ed8], 0xfe
jmp 0x14002242f
mov rcx, qword [0x14017f700]
test rcx, rcx
jne 0x140022451
mov ecx, 0x18
call fcn.140082758
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14017f700], rax
mov rdx, qword [r15 + 8]
call fcn.140047e90
cmp dword [r15 + 0x14], 0
jne 0x140022477
mov rcx, qword [0x14017f700]
cmp byte [rcx + 0x17], 0
jns 0x140022471
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400224b0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140083c00
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
Function at 0x140024090
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400240d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400240f1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400240cf
mov qword [rsi], rdi
call fcn.14004cb60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140024107
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004cb60
mov rcx, qword [rsi]
call fcn.14004fcb0
mov qword [rsi], 0
jmp 0x1400240bd
int3

Function at 0x1400241c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400241ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400241f2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140024240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140024215
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140024218
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14002424f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140083c00
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x140024294
cmp byte [rdi + 8], 0
jne 0x140024280
mov rcx, qword [rdi]
jmp 0x140024289
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x140024262
mov rcx, qword [rdi]
jmp 0x14002426b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140024294
mov esi, dword [rsp + 0x24]
jmp 0x140024294
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400d3df0
mov sil, 1
jmp 0x140024229

Function at 0x1400242b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140024347
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140024331
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002430e
mov qword [rsi], rdi
call fcn.14004cb60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14002434b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004cb60
mov rcx, qword [rsi]
call fcn.14004fcb0
mov qword [rsi], 0
jmp 0x1400242fc
mov byte [rsi + 8], 1
int3
Function at 0x140024630
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r13, r9
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov r14, qword [rsp + 0xd0]
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea r12, [rsp + 0x58]
mov byte [r12], 0xaa
mov rsi, qword [rcx]
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a1
call fcn.14004cb40
mov rcx, r12
mov rdx, rbp
mov r8, rsi
mov r9d, 1
call fcn.1400546a0
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rdx, r15
xor r8d, r8d
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, r12
call fcn.1400398c0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140083c00
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140026910
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14017f8a0]
mov ecx, dword [0x14017c9f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002693a
add rsp, 0x28
ret
lea rcx, [0x14017f8a0]
call fcn.1400828b0
cmp dword [0x14017f8a0], 0xffffffff
jne 0x140026935
xorps xmm0, xmm0
movups xmmword [0x14017f890], xmm0
movups xmmword [0x14017f880], xmm0
movups xmmword [0x14017f870], xmm0
lea rcx, [0x14017f870]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14017f8a0]
add rsp, 0x28
jmp fcn.140082948
Function at 0x14002cb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140083ba0
sub rsp, rax
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14017c5d0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14002cbcc
lea rcx, [rsp + 0x2c]
call fcn.140112680
test al, al
je 0x14002cc47
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14002cbae
lea rcx, [rsp + 0x2c]
call fcn.140112680
test al, al
je 0x14002cc4a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14002cc4a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14017c5d0], ecx
je 0x14002cbcc
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14017c5d0]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14002cc44
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140085d30
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400827cc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140085680
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140083c00
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x14002d240
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x14002d28b
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14002d2a3
add rdi, rbx
sub rsi, rbx
jne 0x14002d269
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140083c00
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
call fcn.1400398c0
lea rcx, str.cryptbase.dll
xor edx, edx
mov r8d, 0x1100
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x14002d2d2
int3
lea rdx, [0x14015c276]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14002d2ea
int3
lea rcx, str.bcryptPrimitives.dll
xor edx, edx
mov r8d, 0x1100
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x14002d307
int3
lea rdx, str.ProcessPrng
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
int3
Function at 0x140030b70
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x140030ba2
mov ecx, dword [rdi + 0x2c]
call fcn.140066d50
test rax, rax
je 0x140030c03
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.140066d90
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, qword [rdi + 0x10]
lea rcx, [0x140106910]
cmp rax, rcx
jne 0x140030bf8
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x14015cb90]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x14015cba0]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [0x140192010]
jmp 0x140030be9
mov dword [rsp + 0x20], 0xd2
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_digest_digest.c
xor esi, esi
mov ecx, 0x1d
xor edx, edx
mov r8d, 0x41
call fcn.14011e510
jmp 0x140030bee

Function at 0x140030f80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140184bc0], 0
jne 0x140030fbd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140030fb0
mov dword [rdi], eax
mov dword [0x140184bc8], eax
mov qword [0x140184bc0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140041b40
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 xmm0, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm4, r8d
pxor xmm4, xmm0
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140041c75
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140151990]
nop word cs:[rax + rax]
movdqa xmm6, xmm4
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 xmm0, xmm4
pclmulqdq xmm0, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm4, xmmword [rcx]
pxor xmm4, xmm6
pxor xmm4, xmm0
movdqu xmm3, xmmword [rcx + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [rcx + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [rcx + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140041bd0
movabs rax, 0x1751997d0
movq xmm0, rax
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1401519a0]
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm2
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
cmp rdx, 0x10
jb 0x140041d04
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140041cda
movdqa xmm0, xmmword [0x1401519a0]
pclmulqdq xmm0, xmm4, 1
psrldq xmm4, 8
pxor xmm4, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
pblendw xmm1, xmm4, 3
psrldq xmm4, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm4
pxor xmm1, xmm1
pblendw xmm1, xmm2, 3
pclmulqdq xmm1, xmmword [0x1401519b0], 0x10
pblendw xmm1, xmm0, 0xfc
movabs rax, 0x1db710641
movq xmm0, rax
pclmulqdq xmm0, xmm1, 0
pxor xmm0, xmm2
pextrd eax, xmm0, 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