joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40815b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x4177f0], esi
je 0x4082d6
cmp dword [ebp + 0x1c], esi
je 0x408195
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4081af
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4082f7
mov esi, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, eax
inc ebx
cmp dword [ebp + 0xc], 3
jne 0x4081dc
push esi
call fcn.0040cf9b
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x408203
cmp dword [ebp + 0xc], 2
jne 0x40822d
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x408200
push esi
call edi
push esi
lea ebx, [ebx + eax + 1]
call edi
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4081eb
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x414044]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x4082f7
cmp dword [ebp + 0xc], 4
jne 0x408203
xor ebx, ebx
mov edi, esi
and byte [ebp + 0x1b], bl
cmp byte [esi], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], esi
je 0x408203
movsx eax, byte [edi]
push eax
call fcn.0040d031
mov byte [edi], al
cmp dword [0x41521c], 1
pop ecx
jle 0x408268
movsx eax, al
push 4
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x408277
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x408285
mov al, byte [edi]
cmp al, 0x41
jl 0x4082c7
cmp al, 0x46
jg 0x4082c7
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x4082b3
cmp al, 0x39
movsx eax, al
jg 0x408299
sub eax, 0x30
jmp 0x40829c
sub eax, 0x37
mov cl, byte [ebp + 0x1b]
shl cl, 4
or cl, al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
inc ebx
and dword [ebp + 0x10], 0
mov byte [eax], cl
jmp 0x4082c7
cmp al, 0x39
jg 0x4082bb
sub al, 0x30
jmp 0x4082bd
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x408244
jmp 0x408203
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x4082f7
cmp dword [ebp + 8], esi
jne 0x4082f7
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop esi
pop ebp
ret
Function at 0x40a308
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [0x417838], ebx
push esi
push edi
je 0x40a506
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
push dword [0x414058]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a506
lea eax, [ebp - 0xc]
mov esi, 0x100
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a4fd
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x40a386
lea eax, [ebp - 0x10c]
push eax
call fcn.0040d026
pop ecx
jmp 0x40a3a4
cmp dword [ebp - 8], edi
je 0x40a39e
cmp dword [ebp - 8], 3
jne 0x40a4fd
cmp dword [ebp - 0xc], edi
jne 0x40a4fd
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jle 0x40a4fd
cmp dword [0x4178c0], ebx
je 0x40a3b7
dec eax
jmp 0x40a3ba
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x40a3c2
xor eax, eax
cmp eax, ebx
jne 0x40a4d7
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x26
push dword [0x417bd4]
call fcn.0040b454
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push dword [0x4178a4]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x27
push dword [0x417bd4]
call fcn.0040b454
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push dword [0x4178a4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x417858], ebx
mov esi, 0x3ed
jne 0x40a4be
cmp dword [0x417cd0], ebx
jne 0x40a4be
cmp dword [0x417880], ebx
je 0x40a447
mov edi, esi
jmp 0x40a4c1
cmp dword [0x417bd0], ebx
je 0x40a45d
push 0x19
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x4177c8]
push 0x68
push dword [0x417bd4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x417bd0], ebx
mov edi, eax
je 0x40a495
push ebx
push 0x96
push 0x19
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp edi, eax
jne 0x40a4a1
mov dword [0x417cd0], eax
cmp edi, 0x3ef
jne 0x40a4b0
mov edi, esi
mov dword [0x417880], eax
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40a4c1
push 7
pop edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
cmp edi, esi
sete al
inc eax
jmp 0x40a508
cmp eax, 1
jl 0x40a4fd
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push edi
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
jmp 0x40a508
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a50d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2a
push edi
call fcn.0040c57a
pop ecx
test eax, eax
pop ecx
jne 0x40a562
push 0x3f
push edi
call fcn.0040c57a
pop ecx
test eax, eax
pop ecx
jne 0x40a562
push edi
call fcn.0040a67e
cmp dword [ebp + 0x10], 0
pop ecx
je 0x40a676
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x40a676
push edi
push eax
call fcn.0040bbe6
pop ecx
jmp 0x40a675
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp eax, 3
jl 0x40a5e6
lea eax, [eax + edi - 3]
push 0x4146e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a5e6
push edi
call esi
cmp eax, 4
jl 0x40a5df
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40a5df
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40a5df
push dword [0x417888]
push edi
call ebx
test eax, eax
jne 0x40a5e6
xor eax, eax
jmp 0x40a679
lea eax, [ebp - 0x104]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call esi
lea esi, [ebp + eax - 0x105]
lea eax, [ebp - 0x104]
cmp esi, eax
jbe 0x40a618
cmp byte [esi], 0x5c
je 0x40a61d
dec esi
jmp 0x40a606
cmp byte [esi], 0x5c
jne 0x40a61e
inc esi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x104]
push 7
push eax
call fcn.0040af95
add esp, 0xc
test eax, eax
jne 0x40a669
test byte [ebp - 0x24c], 0x10
jne 0x40a65a
lea eax, [ebp - 0x34c]
push eax
push esi
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.0040a67e
pop ecx
lea eax, [ebp - 0x34c]
push eax
call fcn.0040afd7
pop ecx
jmp 0x40a636
lea eax, [ebp - 0x34c]
push eax
call fcn.0040b014
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a70e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push edi
lea eax, [ebp - 0x358]
push 0x104
push eax
call fcn.0040cd2e
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
push dword [ebp + 8]
push dword [0x4178a4]
call esi
mov ebx, dword [ebp + 0xc]
push ebx
push dword [0x4178a4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x4178a4]
push 0x3ef
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040a11c
push dword [0x4178a4]
call fcn.0040984e
add esp, 0xc
lea eax, [ebp - 0x154]
push ebx
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040bdf6
pop ecx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x40a79e
and byte [eax - 1], 0
xor edi, edi
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.0040b02b
lea eax, [ebp - 0x154]
push eax
call fcn.0040cca8
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebx - 3]
cmp eax, ebx
jae 0x40a7cd
mov eax, ebx
push 0x4141d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ebx
jne 0x40a865
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0040b02b
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push edi
push eax
call fcn.0040ce50
add esp, 0x14
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], esi
push eax
je 0x40a81f
push str._s__REGSERVER
jmp 0x40a824
push str._s__UNREGSERVER
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x558]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a8e0
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a8e0
call fcn.0040b1e0
test eax, eax
pop ecx
je 0x40a8e0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OLE32.DLL
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x40a8e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
test eax, eax
je 0x40a8c7
push 0
call eax
test eax, eax
jne 0x40a8c7
push ebx
call edi
mov edi, eax
test edi, edi
je 0x40a8c7
cmp dword [ebp + 0x10], 0
mov eax, str.DllRegisterServer
jne 0x40a8b6
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
test eax, eax
je 0x40a8c0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 8]
call esi
test eax, eax
je 0x40a8d7
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x358]
push eax
call fcn.0040cca8
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a8f2
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4177f0], esi
je 0x40aaf2
lea eax, [ebp - 4]
mov edi, str.SoftwareBorlandDatabase_Engine
push eax
push 0x1f
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aaf2
lea eax, [ebp - 8]
mov ebx, 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, str.UseCount
mov dword [ebp - 8], ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aae9
cmp dword [ebp - 0xc], 1
jne 0x40a970
lea eax, [ebp - 0x110]
push eax
call fcn.0040d026
pop ecx
jmp 0x40a990
cmp dword [ebp - 0xc], 4
je 0x40a98a
cmp dword [ebp - 0xc], 3
jne 0x40aaf2
cmp dword [ebp - 8], 4
jne 0x40aaf2
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x40aaac
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a9fa
lea eax, [ebp - 0x310]
push ebx
push eax
push 0x1c
push dword [0x417bd4]
call fcn.0040b454
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x19
push dword [0x417bd4]
call fcn.0040b454
add esp, 0x20
lea eax, [ebp - 0x210]
push 2
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x40aa04
jmp 0x40a9fd
push 5
pop eax
cmp eax, 5
je 0x40aa0c
jmp 0x40a999
push 1
pop eax
jmp 0x40aaf4
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.0040aaf9
push 2
push str.SoftwareBorlandBLW32
call fcn.0040aaf9
add esp, 0x10
lea eax, [ebp - 4]
mov edi, str.SoftwareBorland
push eax
push 0x1f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aaf2
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40aaa5
mov dword [ebp - 8], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x40aaf2
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40aaf2
push dword [ebp - 4]
call esi
jmp 0x40aaf2
jle 0x40aaf2
dec eax
push eax
lea eax, [ebp - 0x110]
push 0x414484
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaf9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x190]
push 0x4140ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4177f0], ebx
lea esi, [ebp + eax - 0x18f]
je 0x40aba0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40abcd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0xc]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40abcd
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040aaf9
pop ecx
pop ecx
jmp 0x40abd4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40abcd
push 0x100
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 8]
mov esi, eax
jmp 0x40ab87
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x40ab10
cmp dword [0x4177f0], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x40abfe
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x414030]
jmp 0x40ac03
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x40ac77
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.0040af72
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x417838], 0
je 0x40acb3
test esi, esi
jne 0x40acb3
mov eax, dword [0x417ccc]
test eax, eax
je 0x40acb3
push esi
push edi
push 1
push 0x10
call eax
mov eax, esi
pop edi
pop esi
ret
Function at 0x40af72
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x40af81
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40b1ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x40b1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040b02b
cmp dword [0x4177f0], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40b27c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40b27c
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x5a4d
jne 0x40b274
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
push 0
push dword [ebp - 8]
push ebx
call edi
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x4550
jne 0x40b274
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40b454
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push str.Msg_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [0x417c08]
push dword [ebp + 0x14]
push ebx
push 0x41484c
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x40b4b7
cmp eax, 1
jne 0x40b4b7
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret
push edi
push 0x7c
push ebx
call fcn.0040c57a
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40b502
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x41483c
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.0040c57a
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40b4cf
pop esi
push 0x7e
push ebx
call fcn.0040c57a
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40b4b1
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040c57a
pop ecx
pop ecx
jmp 0x40b50d
Function at 0x40b520
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40b572
push esi
push edi
push 0x10020
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40b56d
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b824
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x4177d0]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x417c08]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x417600
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40b88a
push edi
call fcn.0040bf28
pop ecx
mov dword [0x4177d8], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x417c08]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x417c08]
mov byte [0x41782c], al
push 8
push str.Font_Character_Size
push esi
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push ebx
mov byte [0x417890], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x4178f0], eax
call esi
pop edi
pop esi
mov dword [0x4178f4], eax
pop ebx
leave
ret
Function at 0x40bbe6
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40bc15
push dword [ebp + 8]
call fcn.0040a67e
pop ecx
jmp 0x40bdac
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040bdb1
pop ecx
lea eax, [ebp - 0x300]
pop ecx
push 0
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40bc39
push ebx
jmp 0x40bc0a
push 1
pop edi
push dword [ebp + 8]
mov dword [0x417840], edi
call fcn.0040a67e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040b02b
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0040b02b
mov eax, dword [0x4177f0]
add esp, 0x10
cmp eax, 2
jne 0x40bcb7
lea eax, [ebp - 0x200]
push str.WININIT.INI
push eax
lea eax, [ebp - 0x100]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40bdac
cmp eax, edi
jne 0x40bcd8
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
jmp 0x40bdac
lea eax, [ebp - 0x100]
push eax
call fcn.0040bdf6
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push str.del__s_r_nrename__s__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40bd45
lea eax, [ebp - 0x100]
push 0x4140ec
push eax
call ebx
lea eax, [ebp - 0x100]
push str._MSSETUP.BAT
push eax
call ebx
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bd7a
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x40bd84
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x40bdac
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret