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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ed2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push esi
push edi
mov ecx, 0xa
mov esi, str.SOFTWARECW_MiniGnet_pppoeSetupInfo_
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x37
xor eax, eax
lea edi, [ebp - 0xf8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x80000002
push 0
push str.SetupInfoRegPath
lea eax, [ebp - 0x128]
push eax
call fcn.00408ec2
add esp, 0x10
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x130]
call fcn.00401900
push eax
lea edx, [ebp - 0x120]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 0x14], 0
je 0x406705
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x41873c
lea edx, [ebp - 0x120]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x120]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x40673f
xor eax, eax
jmp 0x406781
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], 0
je 0x40677c
xor eax, eax
jmp 0x406781
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406791
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push str.SOFTWARECW_MiniGnet_pppoe2_
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push str.systemset_
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp + 0x10], 0
je 0x4067fb
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x4067fb
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x208]
call fcn.0041153e
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
call fcn.00401900
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40685f
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x218]
jmp 0x406907
mov dword [ebp - 0x20c], 0x1f4
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
je 0x4068c6
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x21c]
jmp 0x406907
cmp dword [ebp - 0x20c], 0
jne 0x4068d6
mov byte [ebp - 0x204], 0
lea ecx, [ebp - 0x204]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041153e
mov dword [ebp - 0x220], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x406bf1
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x80
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406c2f
Capabilities:
Check if file exists
Delete file
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412f6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406c62
mov eax, 1
jmp 0x406ce3
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406ccd
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._UNINSTALL_DeleteFile__s_error:_d
lea ecx, [ebp - 0x14]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0
mov edx, dword [ebp + 8]
push edx
push 0x2001
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x406cf1
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp + 8]
push edx
push 0x2001
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406e63
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406e99
xor eax, eax
jmp 0x406eb5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
cmp eax, 2
jne 0x406eb0
xor eax, eax
jmp 0x406eb5
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406eb9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x406ee4
xor eax, eax
jmp 0x406f6f
cmp dword [ebp - 0x90], 4
jne 0x406f06
cmp dword [ebp - 0x8c], 0
je 0x406eff
cmp dword [ebp - 0x8c], 0xa
jne 0x406f06
mov eax, 1
jmp 0x406f6f
cmp dword [ebp - 0x90], 5
jne 0x406f1f
cmp dword [ebp - 0x8c], 0
jne 0x406f1f
mov eax, 2
jmp 0x406f6f
cmp dword [ebp - 0x90], 4
jne 0x406f38
cmp dword [ebp - 0x8c], 0x5a
jne 0x406f38
mov eax, 3
jmp 0x406f6f
cmp dword [ebp - 0x90], 5
jne 0x406f5a
cmp dword [ebp - 0x8c], 1
je 0x406f53
cmp dword [ebp - 0x8c], 2
jne 0x406f5a
mov eax, 4
jmp 0x406f6f
cmp dword [ebp - 0x90], 6
jne 0x406f6a
mov eax, 4
jmp 0x406f6f
mov eax, 4
mov esp, ebp
pop ebp
ret
Function at 0x408ec2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413197
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
mov dword [ebp - 0x32c], 0
push 0x418cd4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
jne 0x408f0b
mov dword [ebp + 0x10], str.SOFTWARECW_Mini_tem
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x324]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x408f82
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041154a
mov eax, dword [ebp - 0x32c]
or al, 1
mov dword [ebp - 0x32c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x409030
mov dword [ebp - 0x10], 0x1ff
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], 0
je 0x408feb
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041154a
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x409030
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041153e
push 0xa
push 0x7c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041154a
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4095cc
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4095f0
xor eax, eax
jmp 0x40963d
mov ecx, dword [ebp + 8]
push ecx
push 0x4096cd
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409629
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 8], eax
jmp 0x409630
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x40974f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41320b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push edi
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x4097b7
xor eax, eax
jmp 0x40990f
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4098f8
push 0x418ebc
lea edx, [ebp - 0x140]
push edx
mov ecx, 0x419598
call fcn.00402dbb
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::TrimRight
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x140]
call fcn.00403820
test eax, eax
je 0x40983a
cmp dword [ebp + 8], 0
je 0x4098e4
cmp dword [ebp + 8], 0
je 0x409857
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp + 8]
jne 0x409857
mov dword [ebp - 0x10], 1
jmp 0x4098e4
lea ecx, [ebp - 0x140]
call fcn.00403820
test eax, eax
jne 0x4098c9
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x140]
call fcn.00401900
push eax
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4098ba
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString
jmp 0x4098e4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x13c]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40983a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString
jmp 0x4098ff
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a135
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4132c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push edi
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x40a19d
xor eax, eax
jmp 0x40a31a
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a303
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push str.PROGRAM_FILENAME
lea edx, [ebp - 0x148]
push edx
mov ecx, 0x419598
call fcn.00402dbb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::MakeLower
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x140]
call fcn.0041153e
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x148]
call fcn.00401900
push eax
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x144], 0
jl 0x40a26e
push 0
mov edx, dword [ebp - 0x14c]
push edx
call fcn.004095cc
mov dword [ebp - 0x10], 1
push str.APSearchClient.exe
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.00401900
push eax
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jl 0x40a2b6
push 0
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004095cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a20a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString
jmp 0x40a30a
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40af92
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0x419170
mov dword [ebp - 0x14], str.CW_Mini
mov dword [ebp - 0xc], 0
mov ecx, 8
mov esi, str.SOFTWAREChinaNetPPPOESetupInfo_
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x38
xor eax, eax
lea edi, [ebp - 0xfa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x40b023
lea ecx, [ebp - 0x124]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x11c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b023
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x40b061
or eax, 0xffffffff
jmp 0x40b13c
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
je 0x40b099
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x120], eax
jmp 0x40b10c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x230], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x128], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40b10c
lea edx, [ebp - 0x11c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x40b11c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
je 0x40b139
cmp dword [ebp - 0x120], 0
je 0x40b139
mov eax, 0xfffffffe
jmp 0x40b13c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b520
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b59e
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp + 8]
neg edx
sbb edx, edx
and edx, 2
mov dword [ebp - 0xc], edx
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40812c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x677b80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x677b84]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_QueryPerformanceCounter
push 0
push 0xf4240
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005deac4
call fcn.005deae7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x408187
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jne 0x408199
cmp eax, dword [ebp - 0x10]
jb 0x40817e
jmp 0x40819b
jl 0x40817e
mov esp, ebp
pop ebp
ret

Function at 0x41a3a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push 1
mov dx, word [0x72ea40]
lea eax, [esp + 4]
push eax
push edx
call sub.WINIO32.DLL_Ordinal_2
mov ecx, dword [esp]
mov eax, dword [0x72ea44]
and ecx, eax
jne 0x41a3f5
push 0x32
call sub.KERNEL32.DLL_Sleep
push 1
lea edx, [esp + 4]
push edx
mov cx, word [0x72ea40]
push ecx
call sub.WINIO32.DLL_Ordinal_2
mov eax, dword [esp]
mov edx, dword [0x72ea44]
and eax, edx
jne 0x41a3f5
mov al, 1
pop edx
ret
push 1
lea edx, [esp + 4]
push edx
push 0x2a0
call sub.WINIO32.DLL_Ordinal_2
test byte [esp], 0x40
jne 0x41a42e
push 0x32
call sub.KERNEL32.DLL_Sleep
push 1
lea ecx, [esp + 4]
push ecx
push 0x2a0
call sub.WINIO32.DLL_Ordinal_2
test byte [esp], 0x40
jne 0x41a42e
mov al, 1
pop edx
ret
push 0x74
call sub.USER32.DLL_GetAsyncKeyState
test al, al
je 0x41a43d
mov al, 1
pop edx
ret
xor eax, eax
pop edx
ret

Function at 0x41a444
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push 1
mov dx, word [0x72ea34]
lea eax, [esp + 4]
push eax
push edx
call sub.WINIO32.DLL_Ordinal_2
mov ecx, dword [esp]
mov eax, dword [0x72ea38]
and ecx, eax
jne 0x41a4a4
push 0x1e
call sub.KERNEL32.DLL_Sleep
push 1
lea edx, [esp + 4]
push edx
mov cx, word [0x72ea34]
push ecx
call sub.WINIO32.DLL_Ordinal_2
mov eax, dword [esp]
mov edx, dword [0x72ea38]
and eax, edx
jne 0x41a4a4
mov ecx, dword [0x67846c]
test ecx, ecx
jle 0x41a4a0
mov eax, dword [0x72eaf4]
mov byte [eax + 0x34], 1
mov al, 1
pop edx
ret
push 0x1b
call sub.USER32.DLL_GetAsyncKeyState
test al, al
je 0x41a4c7
mov edx, dword [0x67846c]
test edx, edx
jle 0x41a4c3
mov ecx, dword [0x72eaf4]
mov byte [ecx + 0x34], 1
mov al, 1
pop edx
ret
xor eax, eax
pop edx
ret