joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a49
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4287fc
call fcn.00410ccc
sub esp, 0x2c
mov eax, dword [ecx + 0x500]
cmp dword [eax + 0x34c], 0
jne 0x404b0c
add eax, 0x35c
push eax
lea eax, [ebp - 0x14]
push 0x4345e0
push eax
call fcn.0041f064
and dword [ebp - 4], 0
push str.TotRecSched.exe_
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041eff0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041ede8
lea ecx, [ebp - 0x38]
call fcn.00405040
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004061ac
push 0
push 0x20006
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004050b2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
push str.TotalRecorderScheduler
call fcn.0040566d
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004061fe
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004061dc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00405079
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40547e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4289f3
call fcn.00410ccc
sub esp, 0x118
mov eax, dword [0x436704]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x20]
pop ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405255
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x4054d4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041eb5d
mov dword [ebp - 0x18], ebx
jmp 0x4055ae
cmp dword [ebp - 0x1c], ebx
je 0x40554a
cmp dword [ebp + 0x14], edi
je 0x4054e4
cmp dword [ebp - 0x1c], 2
je 0x405526
mov eax, dword [0x436704]
mov dword [ebp + 0x10], eax
push dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 0x10]
push dword [esi + 0xc]
push 0x68
push eax
call fcn.0041dabd
add esp, 0x14
push edi
push 0x40000030
push dword [ebp + 0x10]
call fcn.00424b88
lea ecx, [ebp + 0x10]
mov dword [esi + 8], ebx
mov byte [ebp - 4], bl
call fcn.0041ede8
jmp 0x405596
mov edi, 0x104
lea eax, [ebp - 0x124]
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x405555
cmp eax, edi
ja 0x40555f
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ef25
jmp 0x405596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x405562
push 0x7a
pop edi
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.ExpandEnvironmentStrings__s_s___s_
push eax
call fcn.004065bb
push dword [eax]
mov byte [ebp - 4], 3
push edi
call fcn.0040bc53
add esp, 0x1c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0041ede8
mov dword [esi + 8], ebx
push dword [ebp - 0x14]
call fcn.0041f2af
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041eb5d
mov dword [ebp - 0x18], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40566d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x428a44
call fcn.00410ccc
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 1
xor ebx, ebx
cmp dword [esi + 4], ebx
pop edi
mov dword [esi + 8], edi
je 0x405776
push dword [ebp + 0xc]
call fcn.00411260
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push edi
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
cmp edi, ebx
je 0x405773
push str.RegSetValueEx_
lea ecx, [ebp - 0x20]
call fcn.0041ee56
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041eff0
add esi, 0x10
mov byte [ebp - 4], 1
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ef8a
push 0x43487c
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.0041eff0
push dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041eff0
push 0x4342a8
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0041eff0
push dword [eax]
mov byte [ebp - 4], 5
push edi
call fcn.0040bc53
pop ecx
mov byte [ebp - 4], 4
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0041ede8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041ede8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041ede8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ede8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041ede8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041ede8
jmp 0x405776
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x405787
Capabilities:
Set registry value

Disassembly:
mov eax, 0x428a80
call fcn.00410ccc
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40588b
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x405887
push str.RegSetValueEx_
lea ecx, [ebp - 0x24]
call fcn.0041ee56
push dword [esi + 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041eff0
add esi, 0x10
mov byte [ebp - 4], 1
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ef8a
push 0x43487c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.0041eff0
push dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041eff0
push 0x4342a8
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.0041eff0
push dword [eax]
mov byte [ebp - 4], 5
push edi
call fcn.0040bc53
pop ecx
mov byte [ebp - 4], 4
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0041ede8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0041ede8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0041ede8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041ede8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041ede8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ede8
jmp 0x40588b
and dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40589b
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x428abc
call fcn.00410ccc
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x4059a4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
je 0x4059a0
cmp edi, 2
jne 0x4058e1
cmp dword [ebp + 0xc], 0
je 0x4059a4
push str.RegDeleteValue_
lea ecx, [ebp - 0x20]
call fcn.0041ee56
push dword [esi + 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041eff0
add esi, 0x10
mov byte [ebp - 4], 1
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ef8a
push 0x43487c
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.0041eff0
push dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041eff0
push 0x4342a8
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0041eff0
push dword [eax]
mov byte [ebp - 4], 5
push edi
call fcn.0040bc53
pop ecx
mov byte [ebp - 4], 4
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0041ede8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041ede8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041ede8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ede8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041ede8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041ede8
jmp 0x4059a4
and dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4061fe
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x428c00
call fcn.00410ccc
sub esp, 0x70
mov eax, dword [0x436704]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x40622f
cmp eax, 0xffffffff
je 0x40622f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
pop edi
lea eax, [ebp - 0x7c]
push 0x44
push ebx
push eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], edi
call fcn.00410eb0
lea eax, [ebp - 0x28]
or byte [ebp - 0x1f], 0xff
push eax
push edi
push 0xffffffffffffffff
push 0x22
push 0x20
mov dword [ebp - 0x7c], 0x44
push dword [ebp + 8]
mov dword [ebp - 0x50], edi
mov word [ebp - 0x4c], 6
call fcn.00409724
add esp, 0x24
lea ecx, [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0041d252
push ebx
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00406e36
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041eed5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ede8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0041ede8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x10]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40630d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 8]
push str.CreateProcess__s_
push eax
call fcn.004065bb
push dword [eax]
mov byte [ebp - 4], 3
push esi
call fcn.0040bc53
add esp, 0x14
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0041ede8
jmp 0x40631f
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406950
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x428cef
call fcn.00410ccc
sub esp, 0x10
mov eax, dword [0x436704]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0x20019
push ebx
push str.http_shellopencommand
push 0x80000000
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4069ee
lea eax, [ebp - 0x14]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x4069e4
cmp dword [ebp - 0x14], ebx
jbe 0x4069e4
push dword [ebp - 0x14]
call fcn.0041f286
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4069d9
push edi
lea ecx, [ebp - 0x10]
call fcn.0041ef25
cmp edi, ebx
je 0x4069e4
push edi
call fcn.0041f2af
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jle 0x406a87
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041f20d
push 0x22
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0041d702
cmp esi, ebx
jl 0x406a44
cmp eax, ebx
jl 0x406a44
cmp esi, eax
je 0x406a87
sub eax, esi
lea ecx, [ebp - 0x10]
dec eax
inc esi
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041d578
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041eed5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
jmp 0x406a82
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041d702
cmp eax, ebx
jle 0x406a87
push eax
push 0x20
lea ecx, [ebp - 0x10]
call fcn.0041f21b
cmp eax, ebx
jle 0x406a87
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d68a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041eed5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0041ede8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041eb5d
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406ab6
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x428d14
call fcn.00410ccc
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
je 0x406b0b
lea eax, [ebp + 0x10]
push eax
call fcn.00406950
pop ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], ebx
je 0x406aff
push 1
push ebx
push dword [ebp + 8]
push eax
push ebx
push ebx
call esi
cmp eax, 0x20
jbe 0x406aff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
jmp 0x406b84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0041ede8
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push ebx
call esi
mov edi, eax
push edi
call fcn.004068df
cmp eax, ebx
pop ecx
je 0x406b89
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x406b89
cmp byte [esi], bl
je 0x406b89
mov ecx, dword [0x436704]
mov dword [ebp - 0x10], ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
call fcn.004085df
add esp, 0x1c
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push edi
push dword [ebp + 8]
push esi
push eax
call fcn.0041db06
add esp, 0x14
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041ede8
push ebx
push 0x30
push dword [ebp - 0x10]
call fcn.00424b88
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40890a
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x428f20
call fcn.00410ccc
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [0x436704]
mov dword [ebp + 0xc], ecx
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 4], esi
jne 0x40895c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4089dd
cmp eax, 3
je 0x4089dd
cmp eax, 0x7b
je 0x4089dd
push edi
push str.GetFileAttributes
jmp 0x4089c8
test al, 1
je 0x4089a2
push edi
lea eax, [ebp + 0xc]
push dword [ebp + 0x10]
push eax
call fcn.0041daaa
add esp, 0xc
push esi
push 0x24
push dword [ebp + 0xc]
call fcn.00424b88
cmp eax, 6
je 0x408984
push 3
jmp 0x4089dc
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4089a2
push edi
push str.SetFileAttributes
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4089c8
cmp dword [ebp + 0x14], esi
je 0x4089da
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4089dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4089da
cmp eax, 0x20
je 0x4089da
push edi
push str.DeleteFile
push eax
push 1
push dword [ebp + 8]
call fcn.00409a6a
add esp, 0x14
push 4
jmp 0x4089dc
push 2
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041ede8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x409c54
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00411260
mov ebx, dword [ebp + 8]
mov esi, eax
push ebx
call fcn.0040992e
cmp esi, dword [ebp + 0x10]
pop ecx
pop ecx
jb 0x409c8c
push 0
push str.BaRe_ExpandSz
push 0x57
push 1
push ebx
call fcn.00409a6a
add esp, 0x14
push 1
jmp 0x409cc6
lea edi, [esi + 1]
push edi
call fcn.00410f08
mov esi, eax
pop ecx
test esi, esi
jne 0x409cc9
push eax
push str.malloc
push 0xe
push 1
push ebx
call fcn.00409a6a
add esp, 0x14
add ebx, 0x148
push edi
push 0x434db8
push ebx
call fcn.00411908
add esp, 0xc
push 0xe
pop eax
jmp 0x409d21
push dword [ebp + 0xc]
push esi
call fcn.00411110
pop ecx
pop ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00410dc4
cmp ebx, dword [ebp + 0x10]
pop ecx
jbe 0x409cfb
push 0x7a
jmp 0x409d09
test ebx, ebx
jbe 0x409d03
xor edi, edi
jmp 0x409d1f
test edi, edi
jne 0x409d0a
push 1
pop edi
push 0
push str.ExpandEnvironmentStrings
push edi
push 1
push dword [ebp + 8]
call fcn.00409a6a
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409d26
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x409d3d
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x409d40
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x1c]
mov dword [ebp - 4], ebx
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x409d67
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040992e
cmp dword [ebp + 0x10], ebx
pop ecx
je 0x409d83
push ebx
push str.RegQueryValueEx
push dword [ebp + 0x10]
push 1
jmp 0x409da7
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x409db0
cmp eax, dword [ebp - 4]
je 0x409db0
cmp eax, 0x19be22d3
jne 0x409da2
cmp dword [ebp - 4], 1
je 0x409db0
cmp dword [ebp - 4], 2
je 0x409db0
push ebx
push ebx
push ebx
push 3
push esi
call fcn.00409a6a
add esp, 0x14
cmp dword [esi], ebx
jne 0x409e07
mov edx, dword [ebp + 0x1c]
cmp edx, ebx
je 0x409e03
mov eax, dword [ebp - 8]
cmp eax, 1
jb 0x409e03
cmp dword [ebp - 4], 1
je 0x409dd5
cmp dword [ebp - 4], 7
je 0x409dd5
cmp dword [ebp - 4], 2
jne 0x409e03
mov ecx, dword [ebp + 0x20]
dec eax
mov ecx, dword [ecx]
cmp eax, ecx
jb 0x409de1
mov eax, ecx
mov byte [eax + edx], bl
cmp dword [ebp - 4], 2
jne 0x409e03
cmp dword [ebp + 0x24], 0x19be22d3
jne 0x409e03
push dword [ebp - 8]
push edx
push esi
call fcn.00409c54
add esp, 0xc
mov dword [ebp + 0x10], eax
cmp dword [esi], ebx
je 0x409e16
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00409e1d
add esp, 0xc
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret
Function at 0x409f62
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call fcn.0040992e
test esi, esi
pop ecx
je 0x409faf
push 0
push str.RegSetValueEx
push esi
push 1
push dword [ebp + 0xc]
call fcn.00409a6a
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409e1d
add esp, 0x20
mov eax, esi
pop esi
pop ebp
ret

Function at 0x409fb4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov esi, eax
call fcn.0040992e
test esi, esi
pop ecx
je 0x409ff6
push 0
push str.RegDeleteValue
push esi
push 1
push dword [ebp + 0xc]
call fcn.00409a6a
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409e1d
add esp, 0x20
mov eax, esi
pop esi
pop ebp
ret

Function at 0x409ffb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 0xc]
mov esi, eax
call fcn.0040992e
test esi, esi
pop ecx
je 0x40a060
push 0x100
lea eax, [ebp - 0x100]
push dword [ebp + 8]
push eax
call fcn.00411e70
push dword [ebp + 0x14]
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push eax
call fcn.00409b2a
lea eax, [ebp - 0x100]
push eax
push str.RegDeleteKey
push esi
push 1
push dword [ebp + 0xc]
call fcn.00409a6a
add esp, 0x2c
mov eax, esi
pop esi
leave
ret

Function at 0x40a41c
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
push 0x12
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00410eb0
add esp, 0xc
mov eax, 0x2b11
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x20]
pop ebx
mov word [ebp - 0x12], 8
push esi
push esi
push esi
push eax
lea eax, [ebp - 8]
push 0xffffffffffffffff
push eax
mov word [ebp - 0x20], bx
mov word [ebp - 0x1e], bx
mov word [ebp - 0x14], bx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
mov edi, 0x2001
jne 0x40a492
push 8
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.WINMM.dll_waveInMessage]
test eax, eax
jne 0x40a489
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.WINMM.dll_waveInClose]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
jne 0x40a4c6
push 8
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.WINMM.dll_waveOutMessage]
test eax, eax
jne 0x40a4bd
inc dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a7e3
Capabilities:
Check os version

Disassembly:
push esi
push str.UserPlayback
push str.UserRecord
mov esi, dword [esp + 0x10]
push str.PreferredOnly
push str.Playback
push str.Record
push str.SoftwareMicrosoftMultimediaSound_Mapper
push 0x80000001
push dword [esp + 0x28]
push esi
call fcn.0040a202
add esp, 0x24
cmp dword [esi], 0
pop esi
jne 0x40a823
jmp fcn.0040a3a9
ret
Function at 0x40be27
Capabilities:
Get common file path

Disassembly:
mov eax, 0x429214
call fcn.00410ccc
sub esp, 0x108
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp eax, 2
push edi
mov dword [ebp - 0x10], ecx
jne 0x40be4c
mov ebx, str.CSIDL_PROGRAMS
jmp 0x40be72
cmp eax, 0x17
jne 0x40be58
mov ebx, str.CSIDL_COMMON_PROGRAMS
jmp 0x40be72
test eax, eax
jne 0x40be63
mov ebx, str.CSIDL_DESKTOP
jmp 0x40be72
cmp eax, 0x19
mov ebx, str.CSIDL_COMMON_DESKTOPDIRECTORY
je 0x40be72
mov ebx, 0x434d28
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
test esi, esi
je 0x40bead
push ebx
lea eax, [ebp + 8]
push str.SHGetSpecialFolderLocation__s_
push eax
call fcn.004065bb
push dword [eax]
and dword [ebp - 4], 0
push esi
call fcn.0040bc53
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x40bf0d
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x384]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test esi, esi
jne 0x40bf16
push ebx
lea eax, [ebp + 0x10]
push str.SHGetPathFromIDList__s_
push eax
call fcn.004065bb
push dword [eax]
mov dword [ebp - 4], 1
push edi
call fcn.0040bc53
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0041ede8
xor eax, eax
jmp 0x40bf28
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push eax
call fcn.0041ef25
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc