joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052e50
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x18
call fcn.1401f7b18
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14004ed60
mov rbx, rax
mov qword [rax], rdi
lea rdx, [rax + 0x10]
lea rcx, [rax + 8]
call fcn.140051190
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1401af240]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140052ec5
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140052f10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.tmp.
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140052fed
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140018bb0
test al, al
jne 0x140052fc9
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140052fb0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140018f50
nop
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x460
pop rbx
ret
mov ecx, 0x80004005
call fcn.140019300
int3
Function at 0x140058e30
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, r8
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x40], r8
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x28]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x140058e7f
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x140058ea3
call fcn.140019590
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x140059048
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
lea rcx, str._bak
mov rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140058ed2
mov r15, qword [r15 + 0x28]
movsxd r14, dword [r15 - 0x10]
lea ebp, [r14 + rdi]
test ebp, ebp
js 0x140059053
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, ebp
or eax, ecx
jge 0x140058f12
mov edx, ebp
lea rcx, [rsp + 0x38]
call fcn.140018ea0
mov rbx, qword [rsp + 0x38]
add r14, r14
je 0x140058f48
test rbx, rbx
je 0x140058f38
mov r8, r14
mov rcx, rbx
test r15, r15
je 0x140058f31
mov rdx, r15
call fcn.14022e460
jmp 0x140058f48
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
movsxd r8, edi
add r8, r8
lea rcx, [r14 + rbx]
je 0x140058f77
test rcx, rcx
jne 0x140058f6b
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x140058f77
lea rdx, str._bak
call fcn.14022e460
cmp ebp, dword [rbx - 0xc]
jg 0x140059053
mov dword [rbx - 0x10], ebp
movsxd rax, ebp
xor ecx, ecx
mov word [rbx + rax*2], cx
mov rcx, qword [r13]
test rcx, rcx
je 0x140058f9e
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058fca
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rbx, qword [r12]
cmp qword [r13], 0
je 0x140059009
test rbx, rbx
je 0x140059009
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14005902b
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov eax, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3
mov ecx, 0x80070057
call fcn.140019300
int3
Function at 0x14005b990
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movsxd rbx, r8d
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], 0x67452301
mov r8d, ebx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0xefcdab89
mov r15, rdx
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
call fcn.14002bb20
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14002bc30
mov rax, qword [rsp + 0x80]
and rbx, 0xfffffffffffffffb
mov rbp, rax
shr rbx, 2
shr rbp, 0x20
mov r12d, eax
mov r13d, eax
or ebp, 1
or r12d, 1
shr rax, 0x20
add ebp, 0x13db0000
add r12d, 0x69fb0000
or r13d, 1
or eax, 1
xorps xmm0, xmm0
mov r14d, esi
mov ecx, esi
movups xmmword [rdi], xmm0
test rbx, rbx
je 0x14005bbeb
nop dword [rax + rax]
test cl, 1
je 0x14005bb2e
mov r10d, esi
mov r11d, r14d
add esi, dword [r15 + rcx*4]
mov edx, esi
imul esi, ebp
shr edx, 0x10
imul r8d, edx, 0x3ce8ec25
sub esi, r8d
mov edx, esi
shr edx, 0x10
imul r8d, edx, 0x2232e0f1
imul edx, esi, 0x59c3af2d
sub edx, r8d
mov esi, edx
shr edx, 0x10
imul r9d, edx, 0x35bd1ec9
imul edx, esi, 0x1ec90001
add r9d, edx
mov dword [rdi], r9d
lea edx, [r9 + r10]
add dword [rdi + 4], edx
mov r9d, dword [r15 + rcx*4]
add r9d, r14d
imul r9d, eax
imul r10d, r9d, 0x16f50000
mov edx, r9d
shr edx, 0x10
imul r8d, edx, 0x5d8be90b
sub r10d, r8d
imul r9d, r10d, 0x96ff0000
mov edx, r10d
shr edx, 0x10
imul r8d, edx, 0x2c7c6901
sub r9d, r8d
mov edx, r9d
shr edx, 0x10
imul r14d, edx, 0x7c932b89
imul edx, r9d, 0x2b890000
add r14d, edx
mov edx, r14d
shr edx, 0x10
imul r8d, edx, 0x405b6097
imul edx, r14d, 0x9f690000
sub edx, r8d
mov dword [rdi + 8], edx
add edx, r11d
add dword [rdi + 0xc], edx
jmp 0x14005bbdf
mov r10d, dword [rdi]
add r10d, dword [r15 + rcx*4]
mov edx, r10d
imul r10d, r12d
shr edx, 0x10
imul r8d, edx, 0x10fa9605
sub r10d, r8d
mov edx, r10d
shr edx, 0x10
imul r9d, edx, 0x689b6b9f
imul edx, r10d, 0x79f8a395
add r9d, edx
imul esi, r9d, 0xea970001
mov edx, r9d
mov r9d, dword [rdi + 8]
add r9d, dword [r15 + rcx*4]
shr edx, 0x10
imul r8d, edx, 0x3c101569
imul r9d, r13d
sub esi, r8d
mov edx, r9d
imul r9d, r9d, 0xb1110000
shr edx, 0x10
imul r8d, edx, 0x30674eef
sub r9d, r8d
imul r10d, r9d, 0x5b9f0000
mov edx, r9d
shr edx, 0x10
imul r8d, edx, 0x78f7a461
sub r10d, r8d
mov edx, r10d
shr edx, 0x10
imul r8d, edx, 0x12ceb96d
imul edx, r10d, 0x46930000
sub r8d, edx
mov edx, r8d
shr edx, 0x10
imul r14d, edx, 0x257e1d83
imul edx, r8d, 0x1d830000
add r14d, edx
inc rcx
cmp rcx, rbx
jb 0x14005ba60
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005bc20
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x31], rcx
xor edi, edi
mov dword [rbp - 0x35], edi
movdqa xmm0, xmmword [0x1402b4630]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [0x1402b4650]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x1402b4660]
movdqa xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1402b45e0]
movdqa xmmword [rbp + 7], xmm1
mov byte [rbp + 0x17], dil
mov ebx, edi
xor eax, eax
mov word [rbp + 0x27], ax
mov byte [rbp + 0x29], al
mov dword [rbp - 0x39], edi
lea r14d, [rdi + 8]
mov qword [rcx], rax
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14005be63
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsi], rax
mov dword [rbp - 0x35], 1
mov ecx, edi
nop dword [rax]
dec r14
movzx eax, byte [r13]
mov byte [rbp + rcx + 0x27], al
inc ebx
inc rcx
lea r13, [r13 + 1]
movzx edx, byte [rbp + 0x29]
movzx r15d, byte [rbp + 0x28]
movzx r12d, byte [rbp + 0x27]
cmp rcx, 3
jne 0x14005bd74
movzx eax, r12b
shr al, 2
mov byte [rbp - 0x39], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rbp - 0x38], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rbp - 0x37], cl
movzx eax, dl
and al, 0x3f
mov byte [rbp - 0x36], al
mov rbx, rdi
nop dword [rax]
movzx eax, byte [rbp + rbx - 0x39]
movsx edx, byte [rbp + rax - 0x29]
mov rcx, rsi
call fcn.14002a010
inc rbx
cmp rbx, 4
jl 0x14005bd50
mov ebx, edi
mov rcx, rdi
movzx edx, byte [rbp + 0x29]
test r14, r14
jne 0x14005bce0
test ebx, ebx
je 0x14005be33
movsxd rax, ebx
cmp rax, 3
jge 0x14005bdb0
jae 0x14005be6e
mov byte [rbp + rax + 0x27], 0
inc rax
cmp rax, 3
jl 0x14005bd8e
movzx edx, byte [rbp + 0x29]
movzx r15d, byte [rbp + 0x28]
movzx r12d, byte [rbp + 0x27]
movzx eax, r12b
shr al, 2
mov byte [rbp - 0x39], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rbp - 0x38], r12b
and r15b, 0xf
shl r15b, 2
shr dl, 6
add r15b, dl
mov byte [rbp - 0x37], r15b
lea eax, [rbx + 1]
movsxd r14, eax
test eax, eax
jle 0x14005be0a
nop dword [rax]
movzx eax, byte [rbp + rdi - 0x39]
movsx edx, byte [rbp + rax - 0x29]
mov rcx, rsi
call fcn.14002a010
inc rdi
cmp rdi, r14
jl 0x14005bdf0
cmp ebx, 3
jge 0x14005be33
mov ecx, 3
sub ecx, ebx
mov ebx, ecx
nop dword [rax + rax]
mov edx, 0x3d
mov rcx, rsi
call fcn.14002a010
sub rbx, 1
jne 0x14005be20
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3
call fcn.1401f7974
int3
Function at 0x14005fa80
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1050
call fcn.14022c7f0
sub rsp, rax
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1001
call fcn.14022eb00
mov rcx, rdi
call fcn.140029c90
xor esi, esi
nop dword [rax]
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x20], esi
test rcx, rcx
je 0x14005fb90
xor r9d, r9d
mov dword [rsp + 0x24], esi
xor r8d, r8d
lea rdx, [rsp + 0x24]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x14005fb88
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14005fb80
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14005fb79
cmp rax, 0x1001
jae 0x14005fbc0
mov byte [rsp + rax + 0x30], sil
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x30]
inc r8
cmp byte [rax + r8], sil
jne 0x14005fb41
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14002b980
mov ecx, dword [rbx + 0xac]
test ecx, ecx
je 0x14005fad0
mov rax, qword [rdi]
cmp dword [rax - 0x10], ecx
jl 0x14005fad0
mov dword [rbx], 0xbad70021
jmp 0x14005fb96
mov eax, 1
jmp 0x14005fb9b
mov dword [rbx], 0xbad70014
jmp 0x14005fb96
mov dword [rbx], 0xbad70013
jmp 0x14005fb96
mov dword [rbx], 0xbad70004
mov dword [rbx + 4], esi
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401f7974
int3
Function at 0x14005fbd0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1040
call fcn.14022c7f0
sub rsp, rax
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
call fcn.14022eb00
xor esi, esi
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x20], esi
test rcx, rcx
je 0x14005fcaf
xor r9d, r9d
mov dword [rsp + 0x24], esi
xor r8d, r8d
lea rdx, [rsp + 0x24]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x14005fca7
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14005fc9f
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x14005fc98
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, ecx
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test eax, eax
je 0x14005fc90
cmp dword [rbx + 0xac], esi
jge 0x14005fc14
mov dword [rbx], 0xbad70021
jmp 0x14005fcb5
mov dword [rbx], 0xbad70020
jmp 0x14005fcb5
mov eax, 1
jmp 0x14005fcba
mov dword [rbx], 0xbad70014
jmp 0x14005fcb5
mov dword [rbx], 0xbad70013
jmp 0x14005fcb5
mov dword [rbx], 0xbad70004
mov dword [rbx + 4], esi
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140064a20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r8
mov rbp, rdx
mov r14, rcx
mov rbx, 0xffffffffffffffff
test r9, r9
je 0x140064a68
mov r8, rbx
inc r8
cmp word [r9 + r8*2], 0
jne 0x140064a52
mov rdx, r9
mov rcx, r15
call fcn.140018f50
mov rcx, qword [r14]
test rcx, rcx
jne 0x140064a77
xor eax, eax
jmp 0x140064b40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x140064b39
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140064ac7
cmp ecx, 7
jne 0x140064b39
add rdx, 2
mov qword [rsp + 0x48], rdi
mov ecx, 1
cmovb rdx, rbx
call fcn.14020cf94
mov rdi, rax
test rax, rax
je 0x140064b34
mov rcx, qword [r14]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140064b2c
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140064b10
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.140018f50
mov esi, 1
mov rcx, rdi
call fcn.140207144
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x58
pop r15
pop r14
pop rbp
pop rbx
ret

Function at 0x140064b60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x140064bc5
test rbx, rbx
je 0x140064bc5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi]
mov r9d, 1
add eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140064bc5
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140064be0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x50], r14
mov rbx, qword [rcx]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064c34
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140064cb1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064c6c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140064d6c
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], 0x105
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140064d4f
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140064be0
test eax, eax
je 0x140064d6c
mov dword [rsp + 0x58], 0x105
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140064d00
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064d5f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140064d71
mov ebx, r14d
jmp 0x140064d82
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, r14d
test eax, eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064d92
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov qword [rsp + 0x50], r14
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140064dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [r8], r9d
lea rax, [rsp + 0x34]
mov rcx, qword [rcx]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rbx, r8
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140064e31
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x50
pop rbx
ret
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x50
pop rbx
ret

Function at 0x140064e50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x48
ret
Function at 0x140065920
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140065b1f
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov rcx, qword [rdi]
sub rcx, 0x18
call fcn.140019180
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 1]
mov r8d, 0x20019
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140064eb0
test eax, eax
jne 0x140065a01
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400659e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400659f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], r14
jmp 0x140065adb
mov dword [rbp - 0x28], r14d
mov dword [rbp - 0x18], 4
mov dword [rbp - 0x10], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rbx, qword [rbp - 0x20]
mov rdx, rbx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140065aa2
mov esi, dword [rbp - 0x28]
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140065a6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140065a79
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], r14
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140065a9e
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov eax, esi
jmp 0x140065afe
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140065ac8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140065ad7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], r14
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140065afc
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3