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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140080000
test eax, eax
js 0x14008123e
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14008108d
lea r8, [rbx + 8]
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop word [rax + rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140081040
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x14008123c
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x140000000]
mov r8d, dword [r10 + 0xe]
lea r10, [r10 + 0x10]
mov eax, r8d
inc r11d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 - 1]
mov r9d, dword [rdi + rdx*4 + 0xd9600]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0xd8e00]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0xd8a00]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 3]
xor r9d, dword [rdi + rcx*4 + 0xd9200]
movzx edx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 4]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov r8d, dword [rdi + rdx*4 + 0xd8e00]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd9200]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0xd9600]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 7]
xor r8d, dword [rdi + rcx*4 + 0xd8a00]
movzx edx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 8]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xd8e00]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd9200]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0xd9600]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0xd8a00]
movzx edx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0xd8e00]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd9200]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xd9600]
movzx ecx, byte [rdi + rax*4 + 0xd9a00]
xor r8d, dword [rdi + rcx*4 + 0xd8a00]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1400810b0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400837a0
Capabilities:
Hash data with md5

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
add rcx, 4
call fcn.1400572a0
mov dword [rdi + 4], 0x67452301
mov dword [rdi + 8], 0xefcdab89
mov dword [rdi + 0xc], 0x98badcfe
mov dword [rdi + 0x10], 0x10325476
lea rax, [rdi + 0xa0]
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 0x10
jb 0x14008381e
mov rax, qword [rax]
mov byte [rax], bl
lea rax, [rdi + 0xc0]
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 0x10
jb 0x14008383d
mov rax, qword [rax]
mov byte [rax], 0
mov word [rdi], 0x101
mov qword [rsp + 0x80], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], 0
movzx eax, byte [0x1400d85f8]
neg al
sbb r8, r8
and r8d, 3
lea rdx, [0x1400d85f8]
lea rcx, [rsp + 0x68]
call fcn.14000a2b0
nop
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], 0
xor r8d, r8d
lea rdx, [0x1400d85c6]
lea rcx, [rsp + 0x20]
call fcn.14000a2b0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140083570
nop
mov rax, qword [rsp + 0x80]
cmp rax, 0x10
jb 0x140083913
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14008390d
test cl, 0x1f
je 0x1400838e0
call fcn.140058db4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400838ef
call fcn.140058db4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400838fe
call fcn.140058db4
int3
cmp rcx, 0x27
jbe 0x14008390a
call fcn.140058db4
int3
mov rcx, rax
call fcn.1400518d0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x140089100
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov esi, r8d
mov rbx, rcx
call fcn.140087040
lea edi, [rsi + rsi]
cmp dword [rbx + 0x1c], edi
jae 0x140089156
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008913c
call fcn.140051bb0
and edi, 0xfffff000
lea eax, [rdi + 0x1000]
mov ecx, eax
mov dword [rbx + 0x1c], eax
call fcn.1400521cc
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x1c]
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.1400572a0
xor edi, edi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [rbx + 0x24], edi
cmp esi, 3
jb 0x14008920d
nop word [rax + rax]
mov r10d, dword [rbx + 0x24]
add r10, qword [rbx + 0x10]
mov edx, edi
add edi, 3
add rdx, qword [rbx + 8]
movzx eax, word [rdx]
movzx r11d, byte [rdx + 2]
movzx r8d, al
mov word [rsp + 0x20], ax
movzx edx, r11b
movzx ecx, byte [rsp + 0x21]
and r11b, 0x3f
shl al, 4
movzx r9d, cl
shr r9b, 4
or r9b, al
shr dl, 6
shr r8b, 2
and r9b, 0x3f
movzx eax, r8b
shl cl, 2
or dl, cl
and dl, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r10], al
movzx eax, r9b
movzx eax, byte [rax + rbp]
mov byte [r10 + 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r10 + 2], al
movzx eax, r11b
movzx eax, byte [rax + rbp]
mov byte [r10 + 3], al
lea eax, [rdi + 3]
add dword [rbx + 0x24], 4
cmp eax, esi
jbe 0x140089180
cmp esi, edi
jbe 0x1400892cd
xor eax, eax
mov edx, edi
add rdx, qword [rbx + 8]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
movzx eax, sil
sub al, dil
sub esi, edi
mov r8d, esi
mov byte [rsp + 0x24], al
call fcn.140056c00
mov r11d, dword [rbx + 0x24]
add r11, qword [rbx + 0x10]
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
movzx r10d, cl
movzx r8d, byte [rsp + 0x22]
movzx r9d, al
shl al, 4
movzx edx, r8b
shr r10b, 4
and r8b, 0x3f
or r10b, al
shr dl, 6
shl cl, 2
and r10b, 0x3f
or dl, cl
shr r9b, 2
movzx ecx, byte [rsp + 0x24]
and dl, 0x3f
movzx eax, r9b
movzx eax, byte [rax + rbp]
mov byte [r11], al
movzx eax, r10b
movzx eax, byte [rax + rbp]
mov byte [r11 + 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r11 + 2], al
movzx eax, r8b
movzx eax, byte [rax + rbp]
mov byte [r11 + 3], al
sub ecx, 1
je 0x1400892bf
cmp ecx, 1
je 0x1400892c4
jmp 0x1400892c9
mov byte [r11 + 2], 0x3d
mov byte [r11 + 3], 0x3d
add dword [rbx + 0x24], 4
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008a270
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x18], 0x10
mov rdi, r8
mov rsi, rdx
mov dword [rsp + 0x30], 0
jb 0x14008a297
mov rdx, qword [rdx]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14008a2f7
cmp qword [rdi + 0x18], 0x10
mov dword [rsp + 0x34], 4
jb 0x14008a2cf
mov rdx, qword [rdi]
jmp 0x14008a2d2
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x30]
mov rcx, rsi
call fcn.140009920
mov rcx, rdi
call fcn.140009920
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14008c070
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r9
mov r14, r8
mov rsi, rcx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], r8
mov qword [rbp + 7], r9
xor r15d, r15d
mov dword [rbp - 0x35], r15d
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], r15
cmp qword [rcx + 0x18], 0x10
jb 0x14008c0d6
mov rax, qword [rcx]
jmp 0x14008c0d9
mov rax, rsi
mov byte [rax], 0
mov dword [rbp - 0x35], 1
cmp qword [r8 + 0x18], 0x10
jb 0x14008c0ef
mov rdx, qword [r8]
jmp 0x14008c0f2
mov rdx, r14
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14008c242
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov dword [rbp - 0x39], r15d
cmp qword [rdi + 0x18], 0x10
jb 0x14008c135
mov rdx, qword [rdi]
jmp 0x14008c138
mov rdx, rdi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14008c1ea
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x14008c1ea
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.14000b550
cmp qword [rdi + 0x18], 0x10
jb 0x14008c180
mov rdx, qword [rdi]
jmp 0x14008c183
mov rdx, rdi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x29]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14008c1ee
mov r8, qword [rbp - 0x21]
dec r8
mov qword [rbp + 0x27], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x1f], r15
mov byte [rbp + 0xf], al
cmp rbx, r8
je 0x14008c1d3
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.14000a2b0
lea rdx, [rbp + 0xf]
mov rcx, rsi
call fcn.1400099b0
lea rcx, [rbp + 0xf]
call fcn.140009920
jmp 0x14008c1ee
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14008c242
mov rax, qword [rbp - 0x19]
sub rax, rbx
cmp rax, 0x1000
jb 0x14008c23a
test bl, 0x1f
je 0x14008c20d
call fcn.140058db4
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14008c21c
call fcn.140058db4
int3
sub rbx, rax
cmp rbx, 8
jae 0x14008c22b
call fcn.140058db4
int3
cmp rbx, 0x27
jbe 0x14008c237
call fcn.140058db4
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400518d0
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, r14
call fcn.140009920
nop
mov rcx, rdi
call fcn.140009920
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008e000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov esi, r8d
mov rdi, rcx
xor eax, eax
mov rdx, rcx
nop dword [rax]
nop word [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, 0x100
jl 0x14008e030
xor r11d, r11d
movzx ebp, sil
xor r8b, r8b
lea r14, [rcx + 0xff]
mov r10d, 0xff
lea r15, str.refgdfbfghjuyujk
nop dword [rax]
xor ebx, ebx
mov r9d, 1
cmp r10d, r9d
jbe 0x14008e080
nop dword [rax]
lea r9d, [r9*2 + 1]
cmp r9d, r10d
jb 0x14008e070
nop dword [rax]
movzx ecx, r8b
movzx r8d, byte [rcx + rdi]
add r8b, byte [r11 + r15]
inc r11d
cmp r11d, ebp
jb 0x14008e09b
xor r11d, r11d
add r8b, sil
movzx eax, r8b
inc ebx
and eax, r9d
cmp ebx, 0xb
jbe 0x14008e0b0
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x14008e080
movzx edx, byte [r14]
movzx ecx, al
movzx eax, byte [rcx + rdi]
mov byte [r14], al
dec r14
mov byte [rcx + rdi], dl
sub r10d, 1
jne 0x14008e060
movzx eax, byte [rdi + 1]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov byte [rdi + 0x100], al
movzx eax, byte [rdi + 3]
mov byte [rdi + 0x101], al
movzx eax, byte [rdi + 5]
mov byte [rdi + 0x102], al
movzx eax, byte [rdi + 7]
mov byte [rdi + 0x103], al
movzx eax, r8b
movzx ecx, byte [rax + rdi]
mov rax, rdi
mov byte [rdi + 0x104], cl
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x14009a430
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, edx
mov dword [rsp + 0x30], 0x130
mov rbp, rcx
lea rdx, [rsp + 0x30]
xor r15d, r15d
mov rcx, r9
mov ebx, r15d
mov rdi, r9
mov r14, r8
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x14009a4d4
lea rdx, [rsp + 0x5c]
mov rcx, rbp
call fcn.14005ed64
test eax, eax
jne 0x14009a4c1
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rsp + 0x20]
cmp eax, 0x3e8
ja 0x14009a4b5
cmp eax, esi
jne 0x14009a4c1
mov eax, dword [rsp + 0x38]
mov ebx, 1
mov dword [r14], eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x14009a481
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009b930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, [0x1400db770]
lea rcx, [rsp + 0x40]
call fcn.14008f000
mov rbx, rax
lea r8, [0x1400db16c]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14000cb80
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000cc70
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rbp, [0x1400de840]
sub eax, 1
jg 0x14009b9ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14009b9c6
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14009b9ca
call r8
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14009ba06
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14009ba03
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14009ba06
call r8
mov dword [rsp + 0x88], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14009ba8b
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400db19c]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x88], 0
setne dil
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14009bad4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14009bad0
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14009bad4
call r8
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14009bb0f
mov rax, qword [rdx]
mov rcx, qword [rax]
mov r8, qword [rcx + 8]
cmp rcx, rbp
jne 0x14009bb09
mov rcx, qword [rax + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14009bb0f
mov rcx, rax
call r8
movzx eax, dil
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009bb20
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, r8
lea rax, [r11 + 0x10]
mov r14, rdx
mov qword [r11 - 0x58], rax
mov rdx, qword [rdx]
xor edi, edi
xor r8d, r8d
mov qword [r11 + 0x10], rdi
mov r9d, 0x20206
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14009bba9
mov r8, qword [rsi]
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], 4
lea rdx, [0x1400dae0f]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x88]
jmp 0x14009bc31
mov rdx, qword [r14]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14009bc39
mov r8, qword [rsi]
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
lea rdx, [0x1400dae2e]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
sete dil
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rbp, [0x1400de840]
sub eax, 1
jg 0x14009bc7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14009bccf
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14009bcc0
mov r8, qword [rdx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
cmp rcx, rbp
jne 0x14009bcd4
mov rcx, qword [r8 + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, dil
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, dil
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call r8
jmp 0x14009bc7e
mov rcx, r8
call rax
jmp 0x14009bcc0
Function at 0x14009e3f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov dword [rbp - 0x2b], 0x6c6c642e
xor ebx, ebx
mov dword [rbp - 0x30], 0x6c64746e
lea rcx, [rbp - 0x30]
mov byte [rbp - 0x27], bl
mov byte [rbp - 0x2c], WSAGetLastError
mov dword [rbp - 0x20], 0x6554744e
mov dword [rbp - 0x1c], 0x6e696d72
mov dword [rbp - 0x16], 0x6f725065
mov word [rbp - 0xf], reloc.WS2_32.dll_WSAStartup
mov word [rbp - 0x12], 0x6563
mov word [rbp - 0x18], 0x7461
mov byte [rbp - 0x10], reloc.WS2_32.dll_WSAStartup
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14009e48e
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f1cd0], rax
test rax, rax
je 0x14009e48e
xor edx, edx
mov rcx, rdi
call rax
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret

Function at 0x14009f670
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14009f710
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14009f705
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [0x1400f1cf8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400518f0
add rsp, 0x68
ret
Function at 0x14009ffe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, r9
mov qword [rsp + 0x70], 0
mov rsi, r8
lea rax, [rsp + 0x70]
mov r14, rdx
mov qword [rsp + 0x20], rax
mov rdx, qword [rdx]
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400a0073
mov r8, qword [rsi]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400dae6e]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], 4
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
sete dil
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rbp, [0x1400de840]
sub eax, 1
jg 0x1400a00b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x1400a0109
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a00fa
mov r8, qword [rdx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
cmp rcx, rbp
jne 0x1400a010e
mov rcx, qword [r8 + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, dil
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, dil
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call r8
jmp 0x1400a00b8
mov rcx, r8
call rax
jmp 0x1400a00fa