joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007ce50
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov ebp, dword [rsp + 0x150]
lea r12, [rsp + 0x60]
mov rbx, rcx
mov rsi, rdx
mov rcx, r9
mov rdx, r12
mov edi, r8d
call fcn.14007fed0
test eax, eax
jne 0x14007cf3a
cmp qword [rbx + 0x68], 0
jne 0x14007d013
test byte [rbx + 0x59], 0x20
jne 0x14007cef8
cmp ebp, 0x10
je 0x14007cf90
cmp ebp, 0x1c
jne 0x14007d009
mov r13, qword [0x140234290]
mov rcx, qword [rbx + 0x70]
mov dword [rsp + 0x5c], 0
movzx eax, word [r13]
cmp rcx, 0xffffffffffffffff
je 0x14007cfc0
cmp word [r13], 0x17
je 0x14007cf60
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007cfa0
or dword [rbx + 0x58], 0x2000
mov rcx, qword [rbx + 0x70]
mov rdx, rsi
mov dword [rsp + 0x30], ebp
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov edx, eax
mov eax, dword [rsp + 0x5c]
test edx, edx
jne 0x14007cf50
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605f0
jmp 0x14007cf3a
lea r9, [rsp + 0x5c]
mov r8d, 0x1b
mov edx, 0x29
or dword [rbx + 0x58], 0x400000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x14007cedc
mov r13, qword [0x140234280]
jmp 0x14007ceb5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
je 0x14007cef8
mov ecx, r14d
call fcn.1400605f0
jmp 0x14007cf3a
movzx ecx, ax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007cfa0
mov rcx, qword [rbx + 8]
movzx r9d, word [r13]
mov r8, rax
mov rdx, rbx
call fcn.14007b600
mov r14d, eax
test eax, eax
jne 0x14007cffe
mov rcx, qword [rbx + 0x70]
jmp 0x14007ced0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007cfb1
mov eax, 0xfffff019
jmp 0x14007cf3a
mov eax, 0xfffff008
jmp 0x14007cf3a
Function at 0x14007d310
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x14007d460
test rdx, rdx
je 0x14007d460
lea rdi, [rsp + 0x40]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14007d418
cmp eax, 0x104
ja 0x14007d467
mov edx, eax
xor ecx, ecx
mov word [rsp + rdx*2 + 0x40], cx
lea edx, [rax - 1]
cmp word [rsp + rdx*2 + 0x40], 0x5c
je 0x14007d438
xor edx, edx
mov r9d, 0xffffffff
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007d418
mov rdx, qword [rbx]
mov ecx, edx
cmp edx, eax
jl 0x14007d46e
cmp rdx, 0x7fffffff
mov eax, 0x7fffffff
mov r8, rdi
mov qword [rsp + 0x38], 0
cmova ecx, eax
mov qword [rsp + 0x20], rsi
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
call rbp
test eax, eax
je 0x14007d418
sub eax, 1
cdqe
mov qword [rbx], rax
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605f0
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 3
je 0x14007d450
xor eax, eax
mov word [rsp + rdx*2 + 0x40], ax
jmp 0x14007d371
cmp word [rsp + 0x42], 0x3a
jne 0x14007d43d
jmp 0x14007d371
mov eax, 0xfffff019
jmp 0x14007d408
mov eax, 0xfffff01a
jmp 0x14007d408
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x14007d408
Function at 0x14007d480
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov r8, rcx
test rcx, rcx
je 0x14007d5bf
lea rbx, [rsp + 0x40]
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14007d568
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14007d588
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14007d588
cmp rax, 0x104
ja 0x14007d5c6
cmp word [rsp + rax*2 + 0x3e], 0x5c
lea rdx, [rax - 1]
je 0x14007d598
cmp rax, 1
jbe 0x14007d558
cmp word [rsp + 0x42], 0x3a
jne 0x14007d558
movzx eax, word [rsp + 0x40]
lea edx, [rax - 0x41]
cmp dx, 0x19
jbe 0x14007d52f
lea edx, [rax - 0x61]
cmp dx, 0x19
ja 0x14007d558
sub eax, 0x20
mov edx, 0x3d
mov word [rsp + 0x3a], ax
lea rcx, [rsp + 0x38]
mov word [rsp + 0x38], dx
mov rdx, rbx
mov dword [rsp + 0x3c], 0x3a
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14007d588
xor eax, eax
add rsp, 0x250
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
je 0x14007d5b8
call fcn.1400605f0
add rsp, 0x250
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x14007d575
cmp rax, 3
je 0x14007d50d
xor ecx, ecx
mov rax, rdx
mov word [rsp + rdx*2 + 0x40], cx
jmp 0x14007d507
mov eax, 0xfffff020
jmp 0x14007d57a
mov eax, 0xfffff019
jmp 0x14007d57a
mov eax, 0xfffff01a
jmp 0x14007d57a

Function at 0x14007d5e0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, eax
mov rax, 0xffffffffffffffff
test edx, edx
je 0x14007d609
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x14007d610
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, eax
mov rax, 0xffffffffffffffff
test edx, edx
je 0x14007d639
mov rax, qword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x14007d650
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x260
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 2
mov esi, eax
mov dword [rsp + 0x20], 0x238
lea rdi, [rsp + 0x20]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14007d69f
jmp 0x14007d6c0
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14007d6c0
cmp dword [rsp + 0x28], esi
jne 0x14007d690
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x260
pop rbx
pop rsi
pop rdi
ret
mov esi, 0xffffffff
jmp 0x14007d6a9
Function at 0x14007e450
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x14007e598
test rdx, rdx
je 0x14007e598
cmp qword [rdx], 0
je 0x14007e598
lea rdi, [rsp + 0x40]
mov ecx, 0x105
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
je 0x14007e550
cmp rax, 0x105
ja 0x14007e5aa
cmp word [rsp + rax*2 + 0x3e], 0x5c
lea rdx, [rax - 1]
je 0x14007e570
xor edx, edx
mov r9d, 0xffffffff
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007e550
mov rdx, qword [rbx]
mov eax, eax
cmp rdx, rax
jb 0x14007e5a0
mov dword [rsp + 0x28], edx
mov r9d, 0xffffffff
xor edx, edx
mov r8, rdi
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rsi
call rbp
test eax, eax
je 0x14007e550
sub eax, 1
mov qword [rbx], rax
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605f0
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp rax, 3
je 0x14007e588
xor eax, eax
mov word [rsp + rdx*2 + 0x40], ax
jmp 0x14007e4b7
cmp word [rsp + 0x42], 0x3a
jne 0x14007e576
jmp 0x14007e4b7
mov eax, 0xfffff019
jmp 0x14007e53e
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x14007e53e
mov eax, 0xfffff01a
jmp 0x14007e53e
Function at 0x14007eb00
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rbx, rcx
test rcx, rcx
je 0x14007ec7a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14007ec10
lea rsi, [rsp + 0x34]
lea rdi, [rsp + 0x250]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], 0x104
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x14007eb98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x14007ec70
mov ecx, ebx
call fcn.1400605f0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0x101
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14007ec30
mov qword [rbx + 0x18], 0
lea r8, [rbx + 0x18]
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14007e600
test eax, eax
jne 0x14007eb85
mov qword [rbx], 0
mov r8, rbx
mov edx, 0xffffffff
mov rcx, rbp
call fcn.14007e600
test eax, eax
jne 0x14007ec50
mov qword [rbx + 0x10], 0
mov qword [rbx + 8], 0xffffffffffffffff
jmp 0x14007eb85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605f0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
je 0x14007ec70
call fcn.1400605f0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x2c], eax
call fcn.140082d30
mov eax, dword [rsp + 0x2c]
jmp 0x14007eb85
mov eax, 0xfffff027
jmp 0x14007eb85
mov eax, 0xfffff019
jmp 0x14007eb85
Function at 0x14007eca0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10058
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400c97d0
sub rsp, rax
test rdx, rdx
mov rsi, rdx
mov rdi, r8
sete al
test r8, r8
sete dl
or al, dl
jne 0x14007ee00
test rcx, rcx
je 0x14007ee00
cmp qword [r8], 0
je 0x14007ee00
lea r8, [rsp + 0x48]
mov edx, 0xffffffff
call fcn.14007ea20
mov ebx, eax
test eax, eax
je 0x14007ed10
mov eax, ebx
add rsp, 0x10058
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r13, qword [rsp + 0x48]
lea r12, [rsp + 0x50]
mov r8d, 0x7fff
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, r13
mov ebp, eax
call fcn.140082d30
test ebp, ebp
jne 0x14007ed60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0xcb
je 0x14007ee0a
call fcn.1400605f0
mov ebx, eax
jmp 0x14007ecf7
xor edx, edx
mov r9d, 0xffffffff
mov r8, r12
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007edf0
mov rdx, qword [rdi]
mov eax, eax
cmp rdx, rax
jb 0x14007ee14
mov dword [rsp + 0x28], edx
mov r9d, 0xffffffff
xor edx, edx
mov r8, r12
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rsi
call rbp
test eax, eax
je 0x14007edf0
sub eax, 1
mov qword [rdi], rax
jmp 0x14007ecf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x14007ed4d
mov ebx, 0xfffff019
jmp 0x14007ecf7
mov ebx, 0xfffff026
jmp 0x14007ecf7
mov qword [rdi], rax
mov ebx, 0xfffff024
jmp 0x14007ecf7
Function at 0x14007f580
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x468
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14007f791
xor edx, edx
lea r8, [0x140274f80]
lea rcx, str.0.0.0.0
call fcn.140084020
test eax, eax
jne 0x140211cf0
xor edx, edx
lea r8, [0x140274f60]
lea rcx, [0x1402277c3]
call fcn.140084070
test eax, eax
jne 0x140211cf0
mov rsi, qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007f6f0
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007f77d
test byte [rsp + 0x1e2], 2
je 0x14007f6d0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14007f769
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007f720
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007f77d
test byte [rsp + 0x1e2], 2
je 0x14007f6e0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14007f769
add rsp, 0x468
pop rbx
pop rsi
ret
mov dword [0x140274f94], 1
jmp 0x14007f643
mov dword [0x140274f90], 1
jmp 0x14007f6b2
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x273c
jle 0x14007f748
sub eax, 0x273e
cmp eax, 1
jbe 0x14007f655
call rbx
lea rdx, str.socket
mov ecx, eax
call fcn.140060590
nop
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x273c
jle 0x14007f758
sub eax, 0x273e
cmp eax, 1
ja 0x14007f70e
add rsp, 0x468
pop rbx
pop rsi
ret
cmp eax, 0x273a
jg 0x14007f655
jmp 0x14007f70e
cmp eax, 0x273a
jle 0x14007f70e
add rsp, 0x468
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.140060590
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.140060590
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140060590
nop

Function at 0x1400882b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test dl, dl
jne 0x1400882e8
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov rax, rsi
mov r8d, 0x3000
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rax, [rcx - 1]
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r9d, 0x40
and rax, 0xffffffffffe00000
mov r8d, 0x20003000
lea rdx, [rax + 0x200000]
call rsi
test rax, rax
je 0x1400882c4
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400883c0
Capabilities:
Manipulate user privileges

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x1400883d8
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call fcn.140088180
mov edx, eax
mov eax, 1
test edx, edx
je 0x140088400
mov byte [0x140275360], al
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140088428
xor eax, eax
jmp 0x1400883e8
lea rsi, [rsp + 0x50]
mov edx, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x140088488
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0x20], rsi
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400883e8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov edx, 1
mov rbx, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14008841d
pxor xmm0, xmm0
xor ecx, ecx
lea r9, [rsp + 0x38]
mov rdx, rsi
mov r8d, 0xf0fff
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x140088500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1400883e8
lea rsi, str.SeLockMemoryPrivilege
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea edx, [rax + 1]
movzx ecx, ax
mov eax, edx
mov rdx, qword [rbx]
shl eax, 0x10
or eax, ecx
mov rcx, qword [rsp + 0x38]
movd xmm0, eax
psllw xmm0, 1
movd dword [rsp + 0x40], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140088558
call sub.ADVAPI32.dll_LsaClose
jmp 0x1400884ef
call sub.ADVAPI32.dll_LsaClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140088180
test eax, eax
setne al
jmp 0x1400883e8
Function at 0x14009e6a0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x14009e79c
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x14009e783
mov eax, 0x101
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movabs r9, 0x3c6ef372fe94f82b
mov word [rsp + 2], ax
and rdi, 0xfffffffffffffff8
mov eax, ecx
movabs r10, 0xa54ff53a5f1d36f1
sub eax, edi
mov byte [rsp + 1], 0
movdqa xmm0, xmmword [0x14022b8e0]
mov dword [rsp + 4], 0
mov qword [rsp + 8], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r8 + 0x10], r9
xor eax, eax
movabs r9, 0x510e527fade682d1
mov qword [r8 + 0x18], r10
movabs r10, 0x9b05688c2b3e6c1f
mov qword [r8 + 0x20], r9
pxor xmm0, xmmword [rsp]
movabs r9, 0x1f83d9abfb41bd6b
mov qword [r8 + 0x28], r10
movabs r10, 0x5be0cd19137e2179
mov qword [r8 + 0x30], r9
mov qword [r8 + 0x38], r10
mov dword [r8 + 0xe4], edx
movups xmmword [r8], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x14009e794
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x14009e77d
Function at 0x1400a03b0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12, rdx
lea rax, [r8 + 1]
mov rsi, rcx
mov rbx, r8
movabs rdx, 0x5851f42d4c957f2d
lea r13, [rcx + 0x20]
lea rdi, [rsp + 0x20]
imul rax, rdx
lea rbp, [rcx + 0xc3e0]
movabs rdx, 0x810a978a59f5a1fc
xor rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0xa77099df38c2d846
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x8126b91cbf22495c
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x9237efb9ceaaec0c
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rdx, 0x2f2a56746ce62d78
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x84853bf7b62ce54e
xor rax, rdx
mov qword [rsp + 0x58], rax
nop word [rax + rax]
and ebx, 0x3fffff
mov rdx, r13
mov rcx, rdi
add r13, 0x1878
shl rbx, 6
add rbx, qword [rsi]
prefetchnta byte [rbx]
call fcn.1400a23a0
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [r13 - 0x64]
mov rbx, qword [rsp + rax*8 + 0x20]
cmp rbp, r13
jne 0x1400a0470
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
movups xmmword [r12], xmm0
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x20], xmm2
movups xmmword [r12 + 0x30], xmm3
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400afce0
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.ntdll.dll
call rsi
mov r12, rax
test rax, rax
je 0x1400afe86
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlGetVersion
mov rcx, rax
call rbx
lea rdx, str.RtlNtStatusToDosError
mov rcx, r12
mov qword [0x140279538], rax
call rbx
mov qword [0x140279530], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtDeviceIoControlFile
mov rcx, r12
call rbx
mov qword [0x140279528], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtQueryInformationFile
mov rcx, r12
call rbx
mov qword [0x140279520], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtSetInformationFile
mov rcx, r12
call rbx
mov qword [0x140279518], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtQueryVolumeInformationFile
mov rcx, r12
call rbx
mov qword [0x140279510], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtQueryDirectoryFile
mov rcx, r12
call rbx
cmp qword [0x140279510], 0
mov qword [0x140279508], rax
je 0x1400afe72
lea rdx, str.NtQuerySystemInformation
mov rcx, r12
call rbx
mov qword [0x140279500], rax
test rax, rax
je 0x1400afe72
lea rdx, str.NtQueryInformationProcess
mov rcx, r12
call rbx
mov qword [0x1402794f8], rax
test rax, rax
je 0x1400afe72
lea rcx, [0x14022d385]
call rsi
mov rcx, rax
test rax, rax
je 0x1400afe86
lea rdx, str.GetQueuedCompletionStatusEx
call rbx
lea rcx, str.powrprof.dll
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1402794f0], rax
call rsi
mov rcx, rax
test rax, rax
je 0x1400afe48
lea rdx, str.PowerRegisterSuspendResumeNotification
call rbx
mov qword [0x1402794e8], rax
lea rcx, str.user32.dll
call rsi
mov rcx, rax
test rax, rax
je 0x1400afe69
lea rdx, str.SetWinEventHook
call rbx
mov qword [0x1402794e0], rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetProcAddress
mov ecx, eax
call fcn.140060590
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetModuleHandleA
mov ecx, eax
call fcn.140060590
nop
nop
nop
nop
nop
nop

Function at 0x1400b2780
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax]
movdqu xmm1, xmmword [rdx + rax]
pxor xmm0, xmm1
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, 0x400
jne 0x1400b2788
ret