joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c9df0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rsp
sub rsp, 0x88
movdqa xmm3, xmmword [0x140103a80]
movdqa xmm4, xmmword [0x140103a90]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movdqu xmm8, xmmword [rdx]
movaps xmmword [rax - 0x48], xmm9
movdqu xmm9, xmmword [rdx + 0x10]
movaps xmmword [rax - 0x58], xmm10
movdqu xmm10, xmmword [rcx]
movaps xmmword [rax - 0x68], xmm11
movdqu xmm11, xmmword [rcx + 0x10]
movaps xmmword [rax - 0x78], xmm12
xorps xmm8, xmm10
xorps xmm9, xmm11
movaps xmmword [rsp], xmm13
movdqa xmm7, xmm11
movdqa xmm2, xmm10
xorps xmm7, xmm4
movdqa xmm12, xmm9
xorps xmm2, xmm3
movdqa xmm13, xmm8
mov eax, 4
nop dword [rax]
movdqa xmm0, xmm3
movdqa xmm5, xmm2
movdqa xmm1, xmm4
aesenc xmm0, xmm2
movdqa xmm6, xmm0
movdqa xmm2, xmm12
aesenc xmm1, xmm3
movdqa xmm3, xmm13
aesenc xmm2, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm3, xmm12
aesenc xmm0, xmm1
movdqa xmm1, xmm3
aesenc xmm1, xmm2
aesenc xmm5, xmm7
aesenc xmm7, xmm13
movdqa xmm13, xmm4
xorps xmm7, xmm10
movdqa xmm2, xmm7
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm6, xmm5
aesenc xmm13, xmm6
aesenc xmm0, xmm1
aesenc xmm5, xmm7
movdqa xmm7, xmm3
xorps xmm5, xmm11
movdqa xmm1, xmm5
aesenc xmm1, xmm2
movdqa xmm2, xmm4
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm7, xmm13
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm6, xmm5
xorps xmm6, xmm8
movdqa xmm12, xmm6
aesenc xmm13, xmm6
xorps xmm13, xmm9
movdqu xmmword [r8], xmm13
aesenc xmm4, xmm0
aesenc xmm12, xmm1
sub rax, 1
jne 0x1400c9e70
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x30]
movaps xmm11, xmmword [rsp + 0x20]
movaps xmm13, xmmword [rsp]
movdqu xmmword [r8 + 0x10], xmm12
movaps xmm12, xmmword [rsp + 0x10]
movdqu xmmword [r8 + 0x50], xmm7
movaps xmm7, xmmword [rsp + 0x60]
movdqu xmmword [r8 + 0x20], xmm4
movdqu xmmword [r8 + 0x30], xmm3
movdqu xmmword [r8 + 0x40], xmm2
add rsp, 0x88
ret
Function at 0x1400c9fc0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
lea r8, [r8*8]
movaps xmmword [rsp + 0x40], xmm6
lea r9, [r9*8]
movaps xmmword [rsp + 0x30], xmm7
movq xmm0, r9
movaps xmmword [rsp + 0x20], xmm8
movq xmm8, r8
movdqu xmm6, xmmword [rax + 0x30]
mov r8d, 7
movdqu xmm7, xmmword [rax + 0x50]
movdqu xmm4, xmmword [rax + 0x40]
movdqu xmm2, xmmword [rax + 0x20]
movdqu xmm5, xmmword [rax + 0x10]
punpcklqdq xmm8, xmm0
xorps xmm8, xmm6
nop
movdqa xmm0, xmm4
movdqa xmm3, xmm7
aesenc xmm3, xmmword [rax]
xorps xmm3, xmm8
aesenc xmm0, xmm7
movdqa xmm7, xmm0
movdqa xmm0, xmm6
aesenc xmm0, xmm4
movdqa xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm0, xmm6
movdqa xmm6, xmm0
movdqa xmm0, xmm5
aesenc xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rax]
movdqu xmmword [rax], xmm3
aesenc xmm0, xmm5
movdqa xmm5, xmm0
sub r8, 1
jne 0x1400ca020
movdqu xmmword [rax + 0x30], xmm6
movdqu xmmword [rax + 0x50], xmm7
movdqu xmmword [rax + 0x40], xmm4
movdqu xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm0
cmp rdx, 0x10
jne 0x1400ca0ac
xorps xmm2, xmm6
xorps xmm4, xmm7
xorps xmm2, xmm4
xorps xmm3, xmm0
xorps xmm2, xmm3
movdqu xmmword [rcx], xmm2
jmp 0x1400ca0da
cmp rdx, 0x20
jne 0x1400ca0d0
xorps xmm2, xmm0
xorps xmm2, xmm3
movdqu xmmword [rcx], xmm2
movdqu xmm0, xmmword [rax + 0x40]
xorps xmm0, xmmword [rax + 0x50]
xorps xmm0, xmmword [rax + 0x30]
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x1400ca0da
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x1400dda10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400dda55
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400ddaa0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400ddb02
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400ddac0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400ddb43
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401085c0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401085c1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ddb10
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1400ddb60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.14005d3b0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400ddd06
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400ddbf0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400ddc52
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400ddc10
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400ddc93
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401085c0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401085c1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ddc60
mov rcx, qword [rsp + 0x70]
call fcn.14005d3b0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400ddcc2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400e0b6e]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400dde30
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401cd300]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400dde7c
mov eax, 0x1b
jmp 0x1400ddf4e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400ddec0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1400ddf4e
mov rcx, rbp
call fcn.14005d3b0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400ddf2a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400ddf3a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400ddf4c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400df3e0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400ded00
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400ded65
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400ded10
ret

Function at 0x1400dff2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dff76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400dff76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400dff76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400dff76
cmp dword [rcx + 0x84], 0xe
jbe 0x1400dff76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400dff78
xor al, al
add rsp, 0x28
ret
Function at 0x1400e01c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1401088d0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e0202
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e0207
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e0250
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e0250
dec r8
sub rdx, 1
jne 0x1400e0236
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180001000
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0x6578652e646d63
mov qword [rsp + 0x20], rax
cmp edx, 1
je 0x18000103e
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180001070
add rsp, 0x38
ret
mov edx, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180001730
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180001837
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000182c
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18000182c
mov dword [rsp + 0x50], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + rax + 0x54], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x5c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x18000182c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x18000181c
mov dword [rsp + 0x30], 1
jmp 0x180001824
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x78
ret

Function at 0x180001a70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x5c]
mov ecx, dword [rsp + 0x80]
call fcn.180001d60
test eax, eax
je 0x180001b83
cmp dword [rsp + 0x5c], 0
je 0x180001abd
lea rax, str..pipe_avyduebvpbofaqsnyfu
mov qword [rsp + 0x50], rax
jmp 0x180001ac9
lea rax, str..pipe_avyduebvvuueandrlvb
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x180001b83
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001b68
movzx eax, byte [rsp + 0x58]
cmp eax, 0x4d
jne 0x180001b68
mov dword [rsp + 0x40], 1
jmp 0x180001b70
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x78
ret
Function at 0x180001e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180001f68
mov dword [rsp + 0x60], 0
jmp 0x180001ece
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x60], eax
jae 0x180001f68
mov dword [rsp + 0x70], 0x64
mov dword [rsp + 0x6c], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001f63
cmp dword [rsp + 0x74], 4
jne 0x180001f63
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x170]
call fcn.180001d00
test eax, eax
jne 0x180001f63
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x170]
call fcn.180001be0
jmp 0x180001ec4
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x168
ret
Function at 0x1800022c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000249f
mov eax, dword [rsp + 0x1a0]
inc eax
mov eax, eax
mov qword [rsp + 0x78], rax
mov eax, 2
mov rcx, qword [rsp + 0x78]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180009b00
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
jmp 0x1800023ab
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x60], eax
jae 0x18000245f
mov dword [rsp + 0x98], 0x64
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x94], eax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x18000245a
cmp dword [rsp + 0x9c], 1
jne 0x18000245a
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
call fcn.1800026d0
test eax, eax
jne 0x18000245a
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
call fcn.180002510
jmp 0x1800023a1
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.180009af8
cmp qword [rsp + 0x70], 0
jne 0x180002489
mov qword [rsp + 0x88], 0
jmp 0x18000249f
mov qword [rsp + 0x68], 0x8123
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x188
ret

Function at 0x180002810
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x180021a90], 0
jne 0x18000284a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180002b40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180021a90], rax
add rsp, 0x38
ret

Function at 0x180002b10
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
cmp qword [0x180021a90], 0
je 0x180002b38
xor edx, edx
mov rcx, qword [0x180021a90]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [0x180021a90], 0
add rsp, 0x28
ret
Function at 0x180005ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005ba3
mov eax, 1
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x7277
je 0x180005b22
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x7273
je 0x180005b22
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x7268
jne 0x180005b26
xor al, al
jmp 0x180005ba5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8d, 0x200
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180005ba3
mov eax, 0x7277
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov eax, 1
imul rax, rax, 0x42
mov rcx, qword [rsp + 0x30]
lea rdx, [0x180005c90]
mov qword [rcx + rax], rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x58
ret

Function at 0x180005bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005c76
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8d, 0x200
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180005c76
mov eax, 1
imul rax, rax, 0x40
mov ecx, 0x1f0e
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax], cx
mov eax, 1
imul rax, rax, 0x42
mov rcx, qword [rsp + 0x30]
movabs rdx, 0xb821cd09b4000eba
mov qword [rcx + rax], rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x38]
mov r8d, 0x200
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180009ba0
add rsp, 0x58
ret