joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001002d
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x100100a2
push esi
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1001009e
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10010094
cmp dword [ebp - 0x20], 0x10
je 0x10010084
cmp dword [ebp - 0x20], 0x20
jne 0x10010094
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
push ebx
call edi
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4

Function at 0x10011098
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x1001225e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x400
push edi
mov esi, edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp + 0x10], 0
pop ecx
mov ebx, eax
jne 0x10012281
mov dword [ebp + 0x10], 0x10078b14
test ebx, ebx
je 0x100122d4
push dword [ebp + 0x18]
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x100122be
push ebx
call fcn.10052200
cmp esi, edi
pop ecx
jb 0x100122af
add esi, esi
jmp 0x100122b1
add esi, edi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10012285
test ebx, ebx
je 0x100122d4
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.100036ad
push ebx
call fcn.10052200
pop ecx
jmp 0x100122df
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.100036ad
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10013b47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x103
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10013bc6
cmp eax, esi
ja 0x10013bc6
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
je 0x10013b99
push 0x10071574
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.10013bcb
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push str.wininit.ini
push eax
push str._s_s
push esi
push edi
call fcn.10001f81
add esp, 0x14
and byte [edi + esi - 1], 0
push 1
pop eax
pop edi
jmp 0x10013bc8
xor eax, eax
pop esi
leave
ret
Function at 0x10013c4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov dl, byte [0x10078b14]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x14f]
mov byte [ebp - 0x150], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x253]
mov byte [ebp - 0x254], dl
rep stosd dword es:[edi], eax
and dword [ebp - 8], 0
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x150]
mov dword [ebp - 0x4c], str.smss.exe
push eax
mov dword [ebp - 0x48], str.csrss.exe
mov dword [ebp - 0x44], str.winlogon.exe
mov dword [ebp - 0x40], str.services.exe
mov dword [ebp - 0x3c], str.svchost.exe
mov dword [ebp - 0x38], str.spoolsv.exe
mov dword [ebp - 0x34], str.rundll32.exe
mov dword [ebp - 0x30], str.regsvr32.exe
mov dword [ebp - 0x2c], str.shdocvw.dll
mov dword [ebp - 0x28], str.Shell32.dll
mov dword [ebp - 0x24], str.Oleaut32.dll
mov dword [ebp - 0x20], str.Actxprxy.dll
mov dword [ebp - 0x1c], str.Mshtml.dll
mov dword [ebp - 0x18], str.Urlmon.dll
mov dword [ebp - 0x14], str.Msjava.dll
mov dword [ebp - 0x10], str.Browseui.dll
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edi, [ebp - 0x4c]
mov ebx, 0x103
push dword [edi]
lea eax, [ebp - 0x150]
push eax
push 0x10070058
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.10001f81
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call esi
add esp, 0x1c
test eax, eax
je 0x10013db6
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 0x10
jb 0x10013d20
lea eax, [ebp - 0x150]
push 0x104
push eax
mov dword [ebp - 0xc], str.Explorer.EXE
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
and dword [ebp - 4], 0
lea edi, [ebp - 0xc]
push dword [edi]
lea eax, [ebp - 0x150]
push eax
push 0x10070058
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.10001f81
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call esi
add esp, 0x1c
test eax, eax
je 0x10013db6
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 1
jb 0x10013d7a
jmp 0x10013dbd
mov dword [ebp - 8], 1
cmp dword [0x10078b18], 0
jne 0x10013e26
mov al, byte [0x10078b14]
push 0x40
mov byte [ebp - 0x358], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x150]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x150]
push eax
push str._sRundll32.exe
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.10001f81
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push eax
call esi
add esp, 0x18
test eax, eax
jne 0x10013e26
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013e2e
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10013f69
cmp dword [ebp + 0xc], esi
je 0x10013f69
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, esi
pop ecx
je 0x10013f69
push str..dll
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10013f69
mov dl, byte [0x10078b14]
push edi
mov ecx, 0x81
lea edi, [ebp - 0x35f]
mov byte [ebp - 0x360], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
push 0x208
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x360]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x158]
push eax
push str.regsvr32.exe__u__s__s
lea eax, [ebp - 0x360]
push 0x207
push eax
call fcn.10001f81
add esp, 0x10
lea eax, [ebp - 0x10]
or dword [ebp - 0x28], 1
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x360]
push esi
push eax
push esi
mov word [ebp - 0x24], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10013f69
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10013f59
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
leave
ret

Function at 0x10013f6c
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call fcn.1001a0a4
pop ecx
ret
Function at 0x10014647
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x10054076
call fcn.10052270
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x1005da14
mov dword [ebp - 0x14], esi
mov dword [esi + 8], edi
mov dword [esi + 4], 0x1005d594
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], edi
mov byte [esi + 0xc], al
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov al, byte [ebp - 0xd]
mov byte [ebp - 4], 1
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov al, byte [ebp - 0xd]
mov byte [ebp - 4], 2
mov byte [esi + 0x30], al
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.100502d0
lea eax, [esi + 0x64]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 4], 5
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi], 0x1005d9f4
mov dword [esi + 4], 0x1005d9f0
mov dword [esi + 0x2c], 0x11170
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10016177
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100161b3
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x10016165
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x7c], eax
pop esi
pop ecx
ret

Function at 0x10016a16
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 0xc]
push edi
and byte [ebx], 0
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x10016a48
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x10016a4c
xor eax, eax
jmp 0x10016aaa
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10016a9f
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x10071574
push edi
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016c6d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x10016ca1
push 1
pop eax
cmp dword [ebp - 0x8c], eax
jae 0x10016ca3
xor eax, eax
leave
ret

Function at 0x10016ca5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x10016ce5
cmp dword [ebp - 0x90], 5
jne 0x10016ce5
cmp dword [ebp - 0x8c], 0
jne 0x10016ce5
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10016ce9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x10016d2f
cmp dword [ebp - 0x90], 5
jne 0x10016d2f
cmp dword [ebp - 0x8c], 0
push 1
pop eax
je 0x10016d31
cmp dword [ebp - 0x8c], eax
je 0x10016d31
xor eax, eax
leave
ret

Function at 0x10016d33
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x90], 6
sete al
leave
ret

Function at 0x10016e6c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x104
call fcn.1000bfd2
test eax, eax
je 0x10016ec3
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10016efb
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call sub.MSVCRT.dll_strlen
mov dword [ebp - 4], eax
add eax, esi
pop ecx
cmp byte [eax - 1], 0x5c
je 0x10016ef5
mov byte [eax], 0x5c
mov eax, dword [ebp - 4]
and byte [eax + esi + 1], 0
push 1
pop eax
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x10016f6a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x104
call fcn.1000bfd2
test eax, eax
je 0x10016fc2
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10016ffa
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x10070ee4
push eax
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
push esi
call sub.MSVCRT.dll_strlen
mov dword [ebp - 4], eax
lea eax, [eax + esi - 1]
add esp, 0x14
cmp byte [eax], 0x5c
jne 0x10016ff5
and byte [eax], 0
push 1
pop eax
jmp 0x10016ffc
xor eax, eax
pop esi
leave
ret

Function at 0x100170f5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x100171ae
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x100171ae
push esi
xor esi, esi
cmp eax, 0x10000
mov byte [edi], bl
je 0x1001719a
cmp eax, 0x20000
je 0x10017193
cmp eax, 0x40000
je 0x1001718c
cmp eax, 0x80000
je 0x10017172
cmp eax, 0x100000
jne 0x1001719f
push 0x104
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1001719f
lea esi, [ebp - 0x104]
jmp 0x1001719f
push 0x104
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 0x23
jmp 0x10017158
mov esi, 0x10078d24
jmp 0x1001719f
mov esi, 0x10078c20
jmp 0x1001719f
mov esi, 0x10078b1c
push esi
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
pop esi
jmp 0x100171b0
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x10017230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x10]
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x10017293
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10017c9e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100542a8
call fcn.10052270
sub esp, 0x54
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.100034da
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100034da
mov eax, dword [0x10070040]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov dword [ebp + 8], eax
push 0xe
mov byte [ebp - 4], 3
and dword [ebp - 0x60], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push str._e__
push eax
call fcn.10018353
push 0x10072a10
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.10018299
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100164a2
push 0x10072a0c
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 6
push eax
call fcn.10018299
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.10003640
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.1000349d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.1000349d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.1000349d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.1000349d
mov eax, dword [ebp + 8]
and dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x54], str.open
mov dword [ebp - 0x50], str.regedit.exe
mov dword [ebp - 0x44], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test esi, esi
je 0x10017dc4
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1000349d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10017e06
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100542d4
call fcn.10052270
sub esp, 0x48
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.100034da
mov eax, dword [0x10070040]
and dword [ebp - 4], 0
mov dword [ebp + 8], eax
push 0xe
mov byte [ebp - 4], 1
and dword [ebp - 0x54], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push str._s__
push eax
call fcn.10018353
push 0x10072a0c
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.10018299
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.10003640
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.1000349d
mov eax, dword [ebp + 8]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x44], str.regedit.exe
mov dword [ebp - 0x38], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test esi, esi
je 0x10017ed9
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10017f03
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dl, byte [0x10078b14]
push ebx
push edi
mov dword [ebp - 4], ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5c
push dword [ebp + 0xc]
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x10018017
push esi
mov esi, 0x104
push 0
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [0x10078af4]
call fcn.10016dbe
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push str._sLSP
lea eax, [ebp - 0x108]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
push str._sLSP_s
lea eax, [ebp - 0x108]
push esi
push eax
call edi
lea eax, [ebp - 0x108]
push eax
call fcn.10016b34
add esp, 0x18
test eax, eax
jne 0x10018014
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call fcn.100181b1
lea eax, [ebp - 0x20c]
push eax
push str._sLSPLSP.ini
lea eax, [ebp - 0x108]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10072a24
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x1001801d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov dl, byte [0x10078b14]
push esi
push edi
mov dword [ebp - 8], ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], dl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [ebp - 0x314]
push esi
push eax
push dword [0x10078af4]
mov dword [ebp - 4], 1
call fcn.10016dbe
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
push str._sLSPLSP.ini
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x10072a24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, esi
ja 0x10018194
test eax, eax
je 0x10018194
lea ecx, [ebp - 0x210]
lea eax, [ebp - 0x210]
test ecx, ecx
je 0x1001818f
push ebx
push 0x3d
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x1001818e
inc ebx
push ebx
call fcn.10016b34
test eax, eax
pop ecx
jne 0x1001817b
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x1001817b
inc eax
push eax
lea eax, [ebp - 0x314]
push eax
push str._sLSP_s
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call fcn.10016b34
add esp, 0x18
test eax, eax
je 0x1001817b
cmp dword [ebp - 4], 0
je 0x10018177
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.100181b1
test eax, eax
je 0x10018177
mov dword [ebp - 4], 1
jmp 0x1001817b
and dword [ebp - 4], 0
push ebx
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
pop ecx
test eax, eax
jne 0x100180f9
pop ebx
mov eax, dword [ebp - 4]
jmp 0x10018196
xor eax, eax
pop edi
pop esi
leave
ret