joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b330
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, edx
cmp edx, 0x100
je 0x14000b36a
cmp edx, 0x200
je 0x14000b36a
movsd xmm0, qword [0x1400b90c8]
jmp 0x14000b497
mov ecx, reloc.WS2_32.dll_send
movaps xmmword [rsp + 0x260], xmm7
call fcn.140001bf0
lea rcx, [rsp + 0x48]
or ebx, 0x20019
xorpd xmm7, xmm7
mov qword [rsp + 0x20], rcx
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000b487
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x290], rdi
xor edi, edi
movaps xmmword [rsp + 0x270], xmm6
movapd xmm6, xmm7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x200
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000b466
nop dword [rax]
inc ebx
cmp dword [rsp + 0x40], 3
jne 0x14000b417
lea rcx, [rsp + 0x50]
call fcn.140086bf4
movapd xmm6, xmm0
movsd xmm0, qword [0x1400eea80]
comisd xmm0, xmm6
jbe 0x14000b42f
comisd xmm6, xmm7
jbe 0x14000b42f
movapd xmm7, xmm6
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000b400
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x290]
movaps xmm6, xmmword [rsp + 0x270]
movapd xmm0, xmm7
jmp 0x14000b48f
movsd xmm0, qword [0x1400b90c8]
movaps xmm7, xmmword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140083f40
add rsp, 0x280
pop rbx
ret

Function at 0x14000f1c0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
lea r8, [rsp + 0x20]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx eax, byte [rsp + 0x21]
movzx ecx, byte [rsp + 0x25]
movzx r11d, byte [rsp + 0x20]
shl r11, 8
add r11, rax
movzx eax, byte [rsp + 0x22]
shl r11, 8
add r11, rax
movzx eax, byte [rsp + 0x23]
shl r11, 8
add r11, rax
movzx eax, byte [rsp + 0x24]
shl r11, 8
add rax, r11
shl rax, 8
add rax, rcx
movzx ecx, byte [rsp + 0x26]
shl rax, 8
add rax, rcx
movzx ecx, byte [rsp + 0x27]
shl rax, 8
add rax, rcx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140083f40
add rsp, 0x38
ret
Function at 0x14000f260
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rsi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rsi, rcx
mov ecx, 8
call fcn.1400830d8
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000f2d8
mov qword [rax], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
setne al
test al, al
jne 0x14000f2da
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
jmp 0x14000f2da
xor ebx, ebx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x18], 0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

Function at 0x14000f760
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
jne 0x14000f790
lea rdx, [0x1400eff18]
lea rcx, [rsp + 0x20]
call fcn.140082b8c
lea rdx, [0x1400e8c70]
lea rcx, [rsp + 0x20]
call fcn.140083174
int3
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x14000f7b8
nop dword [rax + rax]
movzx eax, byte [r8]
inc ecx
inc rdx
xor byte [rdx - 1], al
inc r8
cmp ecx, dword [r9 + 0x3d0]
jl 0x14000f7a0
add rsp, 0x48
ret
Function at 0x140012c40
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
cmp r9d, 0x3f
mov edi, r9d
movzx ebp, dl
mov rsi, rcx
jle 0x140012c61
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
movsd xmm1, qword [0x1400b8160]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], r12
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
mov eax, r9d
cdq
movapd xmm0, xmm1
sub eax, edx
sar eax, 1
movaps xmmword [rsp + 0x30], xmm8
movaps xmmword [rsp + 0x20], xmm9
mov edx, eax
js 0x140012ca3
mov ecx, eax
jmp 0x140012ca7
mov ecx, eax
neg ecx
movsd xmm3, qword [0x1400b80a0]
movapd xmm2, xmm3
test cl, 1
je 0x140012cbc
mulsd xmm2, xmm0
shr ecx, 1
je 0x140012cc6
mulsd xmm0, xmm0
jmp 0x140012cb3
test eax, eax
jns 0x140012cd4
movapd xmm0, xmm3
divsd xmm0, xmm2
jmp 0x140012cd8
movapd xmm0, xmm2
movsd xmm6, qword [0x1400b8158]
xor eax, eax
movabs r12, 0x8000000000000000
comisd xmm0, xmm6
jbe 0x140012cff
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140012cff
mov rax, r12
cvttsd2si rcx, xmm0
add rcx, rax
imul rcx, r8
test edx, edx
js 0x140012d13
mov eax, edx
jmp 0x140012d17
mov eax, edx
neg eax
movapd xmm0, xmm3
nop dword [rax + rax]
test al, 1
je 0x140012d28
mulsd xmm0, xmm1
shr eax, 1
je 0x140012d32
mulsd xmm1, xmm1
jmp 0x140012d20
test edx, edx
jns 0x140012d3c
divsd xmm3, xmm0
jmp 0x140012d40
movapd xmm3, xmm0
xor edx, edx
comisd xmm3, xmm6
jbe 0x140012d55
subsd xmm3, xmm6
comisd xmm3, xmm6
jae 0x140012d55
mov rdx, r12
movsd xmm0, qword [0x1400b8d98]
cvttsd2si rax, xmm3
pxor xmm8, xmm8
add rax, rdx
sub rax, 1
cvtsi2sd xmm8, rax
jns 0x140012d7a
addsd xmm8, xmm0
pxor xmm7, xmm7
cvtsi2sd xmm7, rcx
test rcx, rcx
jns 0x140012d8c
addsd xmm7, xmm0
movsd xmm9, qword [0x1400b8978]
nop word [rax + rax]
mov rcx, qword [rsi]
lea r8, [rsp + 0x98]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx eax, byte [rsp + 0x99]
movzx r11d, byte [rsp + 0x98]
pxor xmm0, xmm0
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x9a]
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x9b]
shl r11d, 8
add eax, r11d
cvtsi2sd xmm0, rax
xor eax, eax
divsd xmm0, xmm9
mulsd xmm0, xmm8
addsd xmm0, xmm7
comisd xmm0, xmm6
jbe 0x140012e18
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140012e18
mov rax, r12
cvttsd2si rbx, xmm0
mov r9d, edi
movzx r8d, bpl
mov rcx, rsi
add rbx, rax
mov rdx, rbx
call fcn.140011df0
test al, al
je 0x140012da0
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
mov r12, qword [rsp + 0x88]
mov rax, rbx
mov rbx, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016cb0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x104
call fcn.1400817c0
mov ecx, 1
mov rbx, rax
call fcn.140001bf0
mov edx, 0x104
mov r8, rax
mov rcx, rbx
call fcn.140085350
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_DoEnvironmentSubstA]
mov ecx, 2
call fcn.140001bf0
mov edx, 0x104
mov rcx, rbx
mov r8, rax
call fcn.1400852c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400185e0
Capabilities:
Get mac address on windows

Disassembly:
push rbp
push r12
sub rsp, 0x28
mov r12, rcx
mov ecx, 0x2c0
mov dword [rsp + 0x48], 0x2c0
call fcn.140084ebc
mov rbp, rax
test rax, rax
je 0x1400187d5
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x14001862f
mov rcx, rbp
call fcn.140084154
mov ecx, dword [rsp + 0x48]
call fcn.140084ebc
mov rbp, rax
lea rdx, [rsp + 0x48]
mov rcx, rbp
mov qword [rsp + 0x58], rsi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1400187c3
mov rsi, rbp
test rbp, rbp
je 0x1400187d0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rdi
nop
cmp dword [rsi + reloc.OLEAUT32.dll_OleTranslateColor], 6
jne 0x1400187ad
cmp dword [rsi + 0x194], 6
jb 0x1400187ad
mov eax, dword [rsi + 0x1a0]
lea rdx, [rsp + 0x50]
mov rcx, r12
mov dword [rsp + 0x50], eax
call fcn.140016f00
mov ecx, 1
mov rdi, qword [rax]
movzx eax, byte [rsi + 0x198]
lea ebx, [rax + rax*4 + 0x3c]
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx ebx, byte [rsi + 0x199]
mov ecx, 1
add ebx, 0x3f
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx ebx, byte [rsi + 0x19a]
mov ecx, 1
add ebx, 7
call fcn.1400830d8
mov rcx, rdi
imul ebx, ebx
shr ebx, 4
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx eax, byte [rsi + 0x19b]
mov ecx, 1
lea ebx, [rax + rax*4 + 0x3c]
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx ebx, byte [rsi + 0x19c]
mov ecx, 1
add ebx, 0x3f
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx ebx, byte [rsi + 0x19d]
mov ecx, 1
add ebx, 7
call fcn.1400830d8
mov rcx, rdi
imul ebx, ebx
shr ebx, 4
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx r11d, byte [rsi + 0x19a]
mov ecx, 1
lea ebx, [r11 + r11*4 + 0x3c]
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
movzx ebx, byte [rsi + 0x19b]
mov ecx, 1
add ebx, 0x3f
call fcn.1400830d8
mov rcx, rdi
mov rdx, rax
mov byte [rax], bl
call fcn.140013e20
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140018660
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
test rbp, rbp
je 0x1400187d0
mov rcx, rbp
call fcn.140084154
mov rsi, qword [rsp + 0x58]
add rsp, 0x28
pop r12
pop rbp
ret
Function at 0x140033e10
Capabilities:
Get mac address on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov ecx, 0x40
call fcn.1400830d8
mov qword [rsp + 0x78], rax
xor r12d, r12d
test rax, rax
je 0x140033e50
mov rcx, rax
call fcn.1400335b0
mov rbp, rax
jmp 0x140033e53
mov rbp, r12
mov dword [rsp + 0x70], 0x2c0
mov ecx, 0x2c0
call fcn.140084ebc
mov rdi, rax
test rax, rax
je 0x140034071
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x140033e97
mov rcx, rdi
call fcn.140084154
mov ecx, dword [rsp + 0x70]
call fcn.140084ebc
mov rdi, rax
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x14003406e
test rdi, rdi
je 0x14003406e
nop word [rax + rax]
cmp dword [rdi + reloc.OLEAUT32.dll_OleTranslateColor], 6
jne 0x140034062
cmp dword [rdi + 0x194], 6
jb 0x140034062
mov ecx, 0x20
call fcn.1400830d8
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140033f20
mov rcx, rax
call fcn.14000f260
mov dword [rsi], 2
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400830d8
test rax, rax
je 0x140033f17
mov qword [rax], r12
mov dword [rax + 8], r12d
jmp 0x140033f1a
mov rax, r12
mov qword [rsi + 0x10], rax
jmp 0x140033f23
mov rsi, r12
movzx ebx, byte [rdi + 0x198]
add ebx, 7
mov ecx, 1
call fcn.1400830d8
imul ebx, ebx
shr ebx, 4
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx eax, byte [rdi + 0x199]
lea ebx, [rax + rax*4 + 0x3c]
mov ecx, 1
call fcn.1400830d8
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx ebx, byte [rdi + 0x19a]
add ebx, 0x3f
mov ecx, 1
call fcn.1400830d8
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx ebx, byte [rdi + 0x19b]
add ebx, 7
mov ecx, 1
call fcn.1400830d8
imul ebx, ebx
shr ebx, 4
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx r11d, byte [rdi + 0x19c]
lea ebx, [r11 + r11*4 + 0x3c]
mov ecx, 1
call fcn.1400830d8
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx ebx, byte [rdi + 0x19d]
add ebx, 0x3f
mov ecx, 1
call fcn.1400830d8
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx ebx, byte [rdi + 0x198]
add ebx, 0x3f
mov ecx, 1
call fcn.1400830d8
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
movzx ebx, byte [rdi + 0x199]
add ebx, 7
mov ecx, 1
call fcn.1400830d8
imul ebx, ebx
shr ebx, 4
mov byte [rax], bl
mov rdx, rax
mov rcx, rsi
call fcn.140013e20
mov eax, dword [rdi + 0x1a0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.1400155e0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140033ec0
mov rax, rbp
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140039610
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400f00a8]
test rcx, rcx
jne 0x14003963f
call fcn.140085854
movsd xmm0, qword [0x1400b9b20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x1400b9b18]
jmp 0x140039692
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx eax, byte [rsp + 0x31]
movzx r11d, byte [rsp + 0x30]
movsd xmm0, qword [0x1400b9b10]
pxor xmm1, xmm1
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x32]
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x33]
shl r11d, 8
add eax, r11d
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1400b8978]
comisd xmm0, xmm1
jbe 0x1400396a2
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400396b0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400f0470]
test rcx, rcx
jne 0x1400396d7
call fcn.140085854
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x1400b9b18]
jmp 0x140039722
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx eax, byte [rsp + 0x31]
movzx r11d, byte [rsp + 0x30]
pxor xmm1, xmm1
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x32]
shl r11d, 8
add r11d, eax
movzx eax, byte [rsp + 0x33]
shl r11d, 8
add eax, r11d
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1400b8978]
movsd xmm0, qword [0x1400b9b28]
comisd xmm0, xmm1
jbe 0x14003973a
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004b5d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1400f0758], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14004b62b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004b61b
lea rdx, [0x1400bbaa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400f0758], 1
mov qword [0x1400f0750], rax
jmp 0x14004b632
mov rax, qword [0x1400f0750]
mov byte [0x1400f0758], 1
jmp 0x14004b632
mov rax, qword [0x1400f0750]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14004b651
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_RegDeleteKeyA]

Function at 0x14004b670
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret
Function at 0x14004b6b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x14004b6e3
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, eax
add edi, eax
add rbx, rcx
cmp eax, 1
jne 0x14004b6f2
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x14004bba0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
lea rcx, [r11 + 0x18]
mov rax, rdx
mov qword [r11 - 0x10], rbx
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x30], rbx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
xor edx, edx
mov dword [r11 + 0x18], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x14004bbf2
xor eax, eax
add rsp, 0x60
pop rbx
ret
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x14004bd40
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14004be8c
test rcx, rcx
je 0x14004bdb5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x14004be8c
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14004be61
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14004bd40
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14004be8c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14004be10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004be76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.14004b5d0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x14004be97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140083f40
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052970
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, r8
mov rbx, rcx
cmp rcx, rdx
je 0x140052a44
cmp rcx, r8
je 0x140052a44
mov eax, dword [r8 + 4]
cmp dword [rdx + 4], eax
jb 0x1400529af
mov rdi, rdx
jmp 0x1400529b5
mov rdi, r8
mov rsi, rdx
mov edx, dword [rdi + 4]
call fcn.140010c00
xor r11d, r11d
cmp dword [rsi + 4], r11d
jbe 0x1400529f5
mov r8, r11
nop dword [rax]
mov rcx, qword [rsi + 8]
mov rax, qword [rdi + 8]
mov edx, dword [r8 + rcx]
xor edx, dword [r8 + rax]
mov rax, qword [rbx + 8]
mov dword [r8 + rax], edx
inc r11d
add r8, 4
cmp r11d, dword [rsi + 4]
jb 0x1400529d0
movsxd rdx, r11d
cmp r11d, dword [rdi + 4]
jae 0x140052a1d
shl rdx, 2
mov rax, qword [rdi + 8]
mov rcx, qword [rbx + 8]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
inc r11d
add rdx, 4
cmp r11d, dword [rdi + 4]
jb 0x140052a02
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
test eax, eax
je 0x140052a78
mov rdx, qword [rbx + 8]
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
dec ecx
cmp dword [rdx + rcx*4], 0
jne 0x140052a78
mov dword [rbx + 4], ecx
test ecx, ecx
jne 0x140052a30
jmp 0x140052a78
xor r11d, r11d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x2c], r11d
mov qword [rsp + 0x30], r11
lea rcx, [rsp + 0x28]
call fcn.140052970
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140011c00
nop
mov rcx, qword [rsp + 0x30]
call fcn.140082dfc
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14006ca80
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rbx, rcx
call fcn.14006c1f0
mov rdi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14006cacf
mov rcx, rax
call fcn.14006d230
nop
mov rcx, qword [rdi]
call fcn.140082dfc
mov rcx, rdi
call fcn.140082dfc
xor edx, edx
mov ecx, dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x14006df10
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
cmp qword [r8 + 0x20], 0x10
mov rax, qword [r8 + 0x18]
jb 0x14006df25
mov r8, qword [r8 + 8]
jmp 0x14006df29
add r8, 8
cmp qword [rdx + 0x20], 0x10
jb 0x14006df36
mov rdx, qword [rdx + 8]
jmp 0x14006df3a
add rdx, 8
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x14006df60
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
cmp qword [rdx + 0x20], 0x10
jb 0x14006df76
mov rdx, qword [rdx + 8]
jmp 0x14006df7a
add rdx, 8
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret
Function at 0x140075ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
movsxd rdx, ebx
xor r9d, r9d
add rdx, qword [rdi + 0x28]
sub r8d, ebx
mov rcx, rsi
call sub.WS2_32.dll_recv
test eax, eax
jle 0x140075b06
add ebx, eax
cmp ebx, dword [rdi + 0x10]
jl 0x140075ae0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140075b20
Capabilities:
Send data
Send data on socket

Disassembly:
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x28]
xor r9d, r9d
jmp 0x14008175a
jmp qword [sym.imp.WS2_32.dll_send]