joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000205a0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov rax, r8
mov r10, rcx
cmp rdx, r9
jbe 0x1000205df
movzx r8d, byte [r9 + r10]
shl rax, 4
inc r9
add r8, rax
movabs rax, 0xf000000000000000
mov rcx, r8
and rcx, rax
mov rax, rcx
shr rax, 0x38
xor rax, rcx
xor rax, r8
cmp r9, rdx
jb 0x1000205ae
repz ret

Function at 0x1000209a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov edx, 0x104
mov rbx, rcx
mov word [rcx + 0x206], di
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
jne 0x100020a07
call fcn.10001e9f0
mov ebx, eax
mov rcx, qword [0x10002d220]
lea rdx, [0x10002d220]
cmp rcx, rdx
je 0x100020a03
test byte [rcx + 0x1c], 1
je 0x100020a03
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x17]
lea r8, [0x100001928]
mov r9d, eax
call fcn.10000f078
mov eax, ebx
jmp 0x100020a47
cmp word [rbx + 0x206], di
je 0x100020a45
mov rcx, qword [0x10002d220]
lea rdx, [0x10002d220]
cmp rcx, rdx
je 0x100020a3e
test byte [rcx + 0x1c], 1
je 0x100020a3e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001928]
mov edx, 0x18
call fcn.10000f054
mov eax, 0x80004005
jmp 0x100020a47
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100020bac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp rax, rdx
je 0x100020bd5
mov eax, 0x80070057
jmp 0x100020c5b
mov r8d, edx
jmp 0x100020bf5
mov eax, dword [rsp + 0x48]
cmp eax, ebx
je 0x100020c59
test eax, eax
je 0x100020c52
cmp eax, ebx
ja 0x100020c52
sub ebx, eax
mov rcx, rsi
add rdi, rax
mov r8d, ebx
and qword [rsp + 0x20], 0
and dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100020bda
call fcn.10001e9f0
mov ebx, eax
test ebx, ebx
jns 0x100020c59
mov rcx, qword [0x10002d220]
lea rax, [0x10002d220]
cmp rcx, rax
je 0x100020c4e
test byte [rcx + 0x1c], 1
je 0x100020c4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001928]
mov edx, 0x29
mov r9d, ebx
call fcn.10000f078
mov eax, ebx
jmp 0x100020c5b
mov ebx, 0x8000ffff
jmp 0x100020c19
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x100020c74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100020cd3
call fcn.10001e9f0
mov ebx, eax
cmp eax, 0x80070002
je 0x100020ccf
mov rcx, qword [0x10002d220]
lea rax, [0x10002d220]
cmp rcx, rax
je 0x100020ccf
test byte [rcx + 0x1c], 1
je 0x100020ccf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001928]
mov edx, 0x35
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.1000206c0
mov eax, ebx
jmp 0x100020d11
test al, 0x10
je 0x100020d0f
mov rcx, qword [0x10002d220]
lea rax, [0x10002d220]
cmp rcx, rax
je 0x100020d08
test byte [rcx + 0x1c], 1
je 0x100020d08
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001928]
mov edx, 0x36
mov r9, rdi
call fcn.100012638
mov eax, 0x800700b7
jmp 0x100020d11
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x100020d24
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov r11d, eax
cmp eax, edx
jne 0x100020d98
call fcn.10001e9f0
mov ebx, eax
mov rcx, qword [0x10002d220]
lea rax, [0x10002d220]
cmp rcx, rax
je 0x100020d94
test byte [rcx + 0x1c], 1
je 0x100020d94
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001928]
mov edx, 0x39
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.1000206c0
mov eax, ebx
jmp 0x100020dba
cmp r11d, ebx
ja 0x100020dae
lea eax, [r11 - 1]
cmp word [rdi + rax*2], dx
je 0x100020db5
mov eax, 0x8000ffff
jmp 0x100020dba
cmp ebx, edx
jbe 0x100020db5
mov word [rdi], dx
mov qword [rsi], r11
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1000246ec
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100024750
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
jne 0x100024752
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100024743
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x100024752
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10002472d
xor ecx, ecx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x100025018
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100025065
cmp rcx, 0xffffffffffffffff
je 0x100025065
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002505d
cmp dword [rcx + 0x3c], edx
jl 0x10002505d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10002505d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100025065
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400249d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400249f0
test al, 1
je 0x140024a81
test al, 2
jne 0x140024a9b
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14000af10
test rax, rax
je 0x140024a4a
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x140024a4a
mov r8, qword [rax + 0x10]
call fcn.140007660
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x140024ab5
jne 0x140024a77
mov rcx, qword [rbp + 0x20]
call fcn.140024540
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14004acc0]
mov edx, 0x23
call fcn.140047b50
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14004ad00]
mov edx, 0x25
call fcn.140047b50
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.140043830]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x14004ad48]
lea rcx, [rbp - 0x58]
call fcn.140047aa0
ud2

Function at 0x140024e70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14002c0d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14002c160
jmp 0x14002c14f
jae 0x14002c220
cmp r8, 0x201
jae 0x14002c160
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14002c1b8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002c18f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140046fd0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14002c1e1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002c288
mov r8d, r14d
cmp r15, r8
jne 0x14002c140
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002c2ab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002c14f
jmp 0x14002c160
cmp rsi, r8
jb 0x14002c2c5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14002e130
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14002c271
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140007660
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14002c259
jmp 0x14002c271
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140047b50
jmp 0x14002c2da
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140047fe0
ud2
Function at 0x140033d90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140050260]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140033dd4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140033e3a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140033e71
test eax, eax
js 0x140033e4b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140033e64
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1400502c8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002ded0
mov rcx, rax
call fcn.140029fa0
mov ecx, 7
int 0x29
ud2

Function at 0x140034790
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400347c8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400347e0
nop
add rsp, 0x38
ret

Function at 0x1400347e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140034823
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002ce70]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140047aa0
ud2
Function at 0x140034e70
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140065181]
mov ecx, 0x10
mov edx, 8
call fcn.140007650
test rax, rax
je 0x140034f4f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140034fe0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140034f41
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140034f18
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140007660
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140007660
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140047960
ud2
Function at 0x1400428e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004295a
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 0x140042950
cmp r11, r10
ja 0x1400429f3
cmp r10, rdx
ja 0x140042a07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140042952
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140042930
jmp 0x1400429c7
ja 0x14004295a
mov r11, r10
cmp rax, r8
jne 0x140042902
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400429cb
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 0x1400429a0
mov r8, r10
sub ecx, r9d
jns 0x1400429be
jmp 0x1400429cd
cmp r10, rdx
je 0x1400429d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400429cd
xor al, 1
cmp r8, rdx
jne 0x140042980
jmp 0x1400429cd
xor eax, eax
jmp 0x1400429cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140052af9]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140047b50
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140048060
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140047fe0
ud2

Function at 0x14004462c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140044676
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140044676
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140044676
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140044676
cmp dword [rcx + 0x84], 0xe
jbe 0x140044676
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140044678
xor al, al
add rsp, 0x28
ret
Function at 0x140046990
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400469f1
mov rdi, rax
lea rdx, [0x14004e216]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400469f1
mov rsi, rax
lea rdx, [0x14004e224]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400469f1
mov rdi, rax
xor ebx, ebx
jmp 0x140046a77
lea rcx, [0x14004e1b0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140046aeb
mov rsi, rax
lea rdx, [0x14004e1ba]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140046aeb
mov rdi, rax
lea rdx, [0x14004e1cd]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140046aeb
mov rbx, rax
lea rdx, [0x14004e1e1]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140046aeb
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x140046aeb
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x140065181]
mov ecx, 0x18
mov edx, 8
call fcn.140007650
test rax, rax
je 0x140046af2
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x140065198], rcx
je 0x140046adf
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x140046ac8
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140007660
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.140046950
jmp 0x140046b09
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.140047960
ud2
Function at 0x14001c0e0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140027590
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400491b0]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r12, r8
mov qword [rsp + 0x38], r8
mov r15, rdx
mov qword [rsp + 0x40], rdx

Function at 0x14001dd20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14001dd4e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14001f980
cmp byte [0x14004de30], 0
jne 0x14001dd99
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001dd89
lea rdx, [0x140038b20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004de30], 1
mov qword [0x14004de28], rax
jmp 0x14001dda0
mov rax, qword [0x14004de28]
mov byte [0x14004de30], 1
jmp 0x14001dda0
mov rax, qword [0x14004de28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001ddbf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001f9f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001fa0f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001fa0f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14001fa0f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
add byte [rax], al
add byte [rax], al
add byte [rdi], al
lock add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
Function at 0x14001f6e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400491b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.14001eb10
mov ebx, eax
test eax, eax
jne 0x14001f807
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001f7e1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001f6e0
mov ebx, eax
test eax, eax
jne 0x14001f807
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001f790
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001f7f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.14001dd20
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001f817
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400275f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f980
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14001dd4e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14001f980
cmp byte [0x14004de30], 0
jne 0x14001dd99
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001dd89
lea rdx, [0x140038b20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004de30], 1
mov qword [0x14004de28], rax
jmp 0x14001dda0
mov rax, qword [0x14004de28]
mov byte [0x14004de30], 1
jmp 0x14001dda0
mov rax, qword [0x14004de28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001ddbf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001f9f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001fa0f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001fa0f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14001fa0f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
add byte [rax], al
add byte [rax], al
add byte [rdi], al
lock add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid