joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400569b0
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 [0x140099098]
test ecx, ecx
je 0x1400569e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400569f9
cmp qword [rax + 8], 0
je 0x1400569f9
add rax, 0x10
jmp 0x140056ac1
lea rcx, [0x140099080]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400569d0
mov ecx, dword [0x140099098]
test ecx, ecx
je 0x140056aa2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140056abf
mov rdi, rax
test rax, rax
jne 0x140056a6b
mov rax, qword [0x1400d7de8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.140001ab0
test rax, rax
je 0x140056ad8
mov rdi, rax
lea rax, [0x140099080]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140099098]
test ecx, ecx
je 0x140056ac8
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x140056a8b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x140056a8b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x140056a8d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x140056ac1
lea rcx, [0x140099080]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140056a18
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140099080]
call fcn.14004c2a0
mov ecx, eax
jmp 0x140056a63
mov ecx, 8
mov edx, 0x20
call fcn.1400735c0
int3
Function at 0x140056af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400990b8]
test ecx, ecx
je 0x140056bf2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140056b22
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140056bec
mov ecx, dword [0x1400990b8]
test ecx, ecx
je 0x140056c14
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140056c31
mov rdi, rax
test rax, rax
jne 0x140056b98
mov rax, qword [0x1400d7de8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001ab0
test rax, rax
je 0x140056c50
mov rdi, rax
lea rax, [0x1400990a0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400990b8]
test ecx, ecx
je 0x140056c3d
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x140056bb2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140056bb4
mov rax, qword [rsi + 8]
jmp 0x140056bb4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140056bec
test rcx, rcx
je 0x140056bec
lock dec qword [rcx]
jne 0x140056bec
lea rcx, [rsp + 0x30]
call fcn.14000d070
add rdi, 0x10
jmp 0x140056c33
lea rcx, [0x1400990a0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140056b14
jmp 0x140056b22
lea rcx, [0x1400990a0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140056b41
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400990a0]
call fcn.14004c2a0
mov ecx, eax
jmp 0x140056b90
mov ecx, 8
mov edx, 0x18
call fcn.1400735c0
int3

Function at 0x140056c60
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 [0x1400990d8]
test ecx, ecx
je 0x140056c8f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140056ca8
cmp byte [rax + 8], 0
je 0x140056ca8
add rax, 9
jmp 0x140056d50
lea rcx, [0x1400990c0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140056c80
mov ecx, dword [0x1400990d8]
test ecx, ecx
je 0x140056d31
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140056d4e
mov rdi, rax
test rax, rax
jne 0x140056d0e
mov rax, qword [0x1400d7de8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001ab0
test rax, rax
je 0x140056d67
mov rdi, rax
lea rax, [0x1400990c0]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400990d8]
test ecx, ecx
je 0x140056d57
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x140056d24
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x140056d50
lea rcx, [0x1400990c0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140056cc3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400990c0]
call fcn.14004c2a0
mov ecx, eax
jmp 0x140056d06
mov ecx, 8
mov edx, 0x10
call fcn.1400735c0
int3
Function at 0x140056d80
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 [0x1400990f8]
test ecx, ecx
je 0x140056daf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140056dc8
cmp byte [rax + 8], 0
je 0x140056dc8
add rax, 9
jmp 0x140056e70
lea rcx, [0x1400990e0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140056da0
mov ecx, dword [0x1400990f8]
test ecx, ecx
je 0x140056e51
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140056e6e
mov rdi, rax
test rax, rax
jne 0x140056e2e
mov rax, qword [0x1400d7de8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001ab0
test rax, rax
je 0x140056e87
mov rdi, rax
lea rax, [0x1400990e0]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400990f8]
test ecx, ecx
je 0x140056e77
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x140056e44
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x140056e70
lea rcx, [0x1400990e0]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140056de3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400990e0]
call fcn.14004c2a0
mov ecx, eax
jmp 0x140056e26
mov ecx, 8
mov edx, 0x10
call fcn.1400735c0
int3

Function at 0x140057020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140099138]
test ecx, ecx
je 0x140057122
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140057052
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005711c
mov ecx, dword [0x140099138]
test ecx, ecx
je 0x140057144
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140057161
mov rdi, rax
test rax, rax
jne 0x1400570c8
mov rax, qword [0x1400d7de8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001ab0
test rax, rax
je 0x140057180
mov rdi, rax
lea rax, [0x140099120]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140099138]
test ecx, ecx
je 0x14005716d
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400570e2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x1400570e4
mov rax, qword [rsi + 8]
jmp 0x1400570e4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005711c
test rcx, rcx
je 0x14005711c
lock dec qword [rcx]
jne 0x14005711c
lea rcx, [rsp + 0x30]
call fcn.14000d020
add rdi, 0x10
jmp 0x140057163
lea rcx, [0x140099120]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140057044
jmp 0x140057052
lea rcx, [0x140099120]
call fcn.14004c2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140057071
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140099120]
call fcn.14004c2a0
mov ecx, eax
jmp 0x1400570c0
mov ecx, 8
mov edx, 0x18
call fcn.1400735c0
int3
Function at 0x14008bd60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14008bdda
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14008bdd0
cmp r11, r10
ja 0x14008be65
cmp r10, rdx
ja 0x14008be77
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14008bdd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14008bdb0
jmp 0x14008be47
ja 0x14008bdda
mov r11, r10
cmp rax, r8
jne 0x14008bd82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14008be4b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14008be20
mov r8, r10
sub ecx, r9d
jns 0x14008be3e
jmp 0x14008be4d
cmp r10, rdx
je 0x14008be59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14008be4d
xor al, 1
cmp r8, rdx
jne 0x14008be00
jmp 0x14008be4d
xor eax, eax
jmp 0x14008be4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400cce68]
call fcn.140082770
lea r8, [0x1400cce80]
mov rcx, r11
mov rdx, r10
call fcn.140088f40
lea r8, [0x1400cce80]
mov rcx, r10
call fcn.140088ec0
int3

Function at 0x1400976c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140098550
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.140098550
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 0x140097730
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e5214]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400978c0
mov rax, qword [0x1400e5218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14009777c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140097805
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140097760
mov rcx, rdi
call fcn.140098290
test rax, rax
mov r12, rax
je 0x140097912
mov rax, qword [0x1400e5218]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400983d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e5218]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400978f5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400977fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140097870
add dword [0x1400e5214], 1
cmp ebx, 8
jae 0x140097831
test bl, 4
jne 0x1400978d0
test ebx, ebx
je 0x140097826
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400978e4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140097826
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14009784a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1400e5218]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400977fe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400976c0
xor esi, esi
jmp 0x140097787
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140097826
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140097826
mov rax, qword [0x1400e5218]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400976c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400976c0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140097ee0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e5280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e5260]
test rbx, rbx
je 0x140097f34
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140097f2b
test rsi, rsi
je 0x140097f2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140097f10
lea rcx, [0x1400e5280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140098290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400d7d20]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400982ff
mov rcx, r9
call fcn.140098160
test eax, eax
je 0x1400982ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400982fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400982f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400982ff
add rdx, 0x28
cmp rdx, r9
jne 0x1400982e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14002fed0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6b0
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
lea rax, [rsp + 0x490]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x250
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x5c]
lea rcx, [0x140162e00]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x14002ff6a
add rax, 2
test dx, dx
jne 0x14002ff54
xor eax, eax
jmp 0x14002ff6f
sbb eax, eax
or eax, 1
test eax, eax
je 0x14002ffe8
lea rax, [rsp + 0x5c]
lea rcx, [0x140162e04]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x14002ff98
add rax, 2
test dx, dx
jne 0x14002ff82
xor eax, eax
jmp 0x14002ff9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x14002ffe8
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x14002ffc3
mov rdx, qword [rsp + 0x6c8]
lea rcx, [rsp + 0x280]
call fcn.14002fed0
jmp 0x14002ffe8
mov rdx, qword [rsp + 0x6c8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14002ffe8
lea rcx, [rsp + 0x280]
call fcn.14002f740
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002ff31
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x6b0
pop rdi
ret

Function at 0x140030030
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
call fcn.14002f520
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x3fd
jne 0x1400300e6
call fcn.14002f500
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0x60]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400300ef
jmp 0x140030141
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x140030124
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.14002f4b0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x98
ret
Function at 0x140030160
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400301e1
mov rcx, qword [rsp + 0x80]
call fcn.14002fc10
mov r8, qword [rsp + 0x88]
mov rdx, rax
lea rcx, [0x140162dd8]
call fcn.140030750
jmp 0x1400302f2
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003023b
call fcn.14002f490
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x48]
jmp 0x1400302f2
mov eax, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14003026c
call fcn.14002f4a0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x50]
jmp 0x1400302f2
mov dword [rsp + 0x30], 0
jmp 0x140030280
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], eax
jae 0x1400302ae
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
jmp 0x140030276
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x78
ret
Function at 0x140030310
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140030383
mov rcx, qword [rsp + 0x60]
call fcn.14002fc10
mov r8, qword [rsp + 0x68]
mov rdx, rax
lea rcx, [0x140162db8]
call fcn.140030750
jmp 0x1400303f0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [rsp + 0x40], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x50
pop rdi
ret
Function at 0x1400304c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2080
call fcn.14015a750
sub rsp, rax
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x2098]
mov rcx, qword [rsp + 0x2090]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003054e
mov rcx, qword [rsp + 0x2090]
call fcn.14002fc10
mov r8, qword [rsp + 0x2098]
mov rdx, rax
lea rcx, [0x140162d78]
call fcn.140030750
jmp 0x14003066c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ffe
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x1ffe
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x20a0]
mov rcx, qword [rsp + 0x40]
call fcn.14002fca0
test eax, eax
jne 0x1400305a9
call fcn.14002f4c0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x48]
jmp 0x14003066c
mov dword [rsp + 0x30], 0
jmp 0x1400305bd
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x140030633
mov eax, dword [rsp + 0x30]
movzx ecx, word [rsp + rax*2 + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswxdigit]
test eax, eax
je 0x140030631
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
lea rcx, str.abcdef012345789
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
cmp word [rcx + rdx*2], 0
jne 0x1400305f7
mov rcx, qword [rsp + 0x38]
dec rcx
xor edx, edx
div rcx
mov rax, rdx
lea rcx, str.abcdef012345789
mov edx, dword [rsp + 0x30]
movzx eax, word [rcx + rax*2]
mov word [rsp + rdx*2 + 0x70], ax
jmp 0x1400305b3
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x20a0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x2080
pop rdi
ret