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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x4136b0], esi
je 0x407c12
cmp dword [ebp + 0x1c], esi
je 0x407ad1
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 + 0x412030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x407aeb
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x412030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x407c33
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 0x407b18
push esi
call fcn.0040c2f3
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x407b3f
cmp dword [ebp + 0xc], 2
jne 0x407b69
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x407b3c
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 0x407b27
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x412044]
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 0x407c33
cmp dword [ebp + 0xc], 4
jne 0x407b3f
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 0x407b3f
movsx eax, byte [edi]
push eax
call fcn.0040c0a8
mov byte [edi], al
cmp dword [0x41311c], 1
pop ecx
jle 0x407ba4
movsx eax, al
push 4
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x407bb3
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x407bc1
mov al, byte [edi]
cmp al, 0x41
jl 0x407c03
cmp al, 0x46
jg 0x407c03
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x407bef
cmp al, 0x39
movsx eax, al
jg 0x407bd5
sub eax, 0x30
jmp 0x407bd8
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 0x407c03
cmp al, 0x39
jg 0x407bf7
sub al, 0x30
jmp 0x407bf9
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x407b80
jmp 0x407b3f
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x407c33
cmp dword [ebp + 8], esi
jne 0x407c33
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 0x4091af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call edi
mov ebx, str..
lea eax, [ebp - 0x548]
push ebx
push eax
call edi
lea eax, [ebp - 0x200]
push 0x2a
push eax
call fcn.0040be4c
pop ecx
test eax, eax
pop ecx
jne 0x409204
lea eax, [ebp - 0x200]
push 0x3f
push eax
call fcn.0040be4c
pop ecx
test eax, eax
pop ecx
je 0x40922b
lea eax, [ebp - 0x200]
push eax
call fcn.0040b53f
pop ecx
lea ecx, [ebp - 0x200]
cmp eax, ecx
jbe 0x40922b
lea esi, [eax - 1]
lea eax, [ebp - 0x548]
push esi
push eax
call edi
and byte [esi], 0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x40942f
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x40942f
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x40942f
mov eax, dword [0x413738]
test eax, eax
je 0x4092b6
push eax
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x40942f
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x100]
push 0x17
push eax
call fcn.0040a6fe
add esp, 0xc
mov ebx, 0x4120e0
test eax, eax
jne 0x409363
test byte [ebp - 0x348], 0x10
je 0x409354
cmp byte [ebp - 0x448], 0x2e
je 0x409354
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call fcn.004091af
pop ecx
pop ecx
lea eax, [ebp - 0x448]
push eax
call fcn.0040a740
pop ecx
jmp 0x4092f3
lea eax, [ebp - 0x448]
push eax
call fcn.0040a77d
cmp dword [ebp + 0xc], 0
pop ecx
je 0x409422
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x100]
push 7
push eax
call fcn.0040a6fe
add esp, 0xc
test eax, eax
jne 0x409415
test byte [ebp - 0x348], 0x10
jne 0x409406
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0040a6db
lea eax, [ebp - 0x100]
push eax
call fcn.0040a440
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
call fcn.0040a740
pop ecx
jmp 0x4093b2
lea eax, [ebp - 0x448]
push eax
call fcn.0040a77d
pop ecx
lea eax, [ebp - 0x200]
push eax
call fcn.0040a3ff
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409ac4
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 [0x4136ec], ebx
push esi
push edi
je 0x409cc2
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
push dword [0x412058]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409cc2
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 0x409cb9
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x409b42
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c37e
pop ecx
jmp 0x409b60
cmp dword [ebp - 8], edi
je 0x409b5a
cmp dword [ebp - 8], 3
jne 0x409cb9
cmp dword [ebp - 0xc], edi
jne 0x409cb9
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jle 0x409cb9
cmp dword [0x413770], ebx
je 0x409b73
dec eax
jmp 0x409b76
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x409b7e
xor eax, eax
cmp eax, ebx
jne 0x409c93
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x26
push dword [0x413a90]
call fcn.0040ab9d
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push dword [0x413754]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x27
push dword [0x413a90]
call fcn.0040ab9d
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push dword [0x413754]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x41370c], ebx
mov esi, 0x3ed
jne 0x409c7a
cmp dword [0x413b90], ebx
jne 0x409c7a
cmp dword [0x413730], ebx
je 0x409c03
mov edi, esi
jmp 0x409c7d
cmp dword [0x413a8c], ebx
je 0x409c19
push 0x19
push dword [0x413690]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x413690]
push 0x68
push dword [0x413a90]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x413a8c], ebx
mov edi, eax
je 0x409c51
push ebx
push 0x96
push 0x19
push dword [0x413690]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp edi, eax
jne 0x409c5d
mov dword [0x413b90], eax
cmp edi, 0x3ef
jne 0x409c6c
mov edi, esi
mov dword [0x413730], eax
push dword [0x413690]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x409c7d
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 0x409cc4
cmp eax, 1
jl 0x409cb9
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 0x409cc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409cc9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2a
push ebx
call fcn.0040be4c
pop ecx
test eax, eax
pop ecx
jne 0x409d1e
push 0x3f
push ebx
call fcn.0040be4c
pop ecx
test eax, eax
pop ecx
jne 0x409d1e
push ebx
call fcn.00409e3a
cmp dword [ebp + 0x10], 0
pop ecx
je 0x409e32
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x409e32
push ebx
push eax
call fcn.0040b32f
pop ecx
jmp 0x409e31
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp eax, 3
jl 0x409da2
lea eax, [eax + ebx - 3]
push 0x412658
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x409da2
push ebx
call edi
cmp eax, 4
jl 0x409d9b
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x409d9b
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x409d9b
push dword [0x413738]
push ebx
call esi
test eax, eax
jne 0x409da2
xor eax, eax
jmp 0x409e35
lea eax, [ebp - 0x100]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call ebx
lea eax, [ebp - 0x100]
push eax
call edi
lea esi, [ebp + eax - 0x101]
lea eax, [ebp - 0x100]
cmp esi, eax
jbe 0x409dd4
cmp byte [esi], 0x5c
je 0x409dd9
dec esi
jmp 0x409dc2
cmp byte [esi], 0x5c
jne 0x409dda
inc esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push 7
push eax
call fcn.0040a6fe
add esp, 0xc
test eax, eax
jne 0x409e25
test byte [ebp - 0x248], 0x10
jne 0x409e16
lea eax, [ebp - 0x348]
push eax
push esi
call ebx
lea eax, [ebp - 0x100]
push eax
call fcn.00409e3a
pop ecx
lea eax, [ebp - 0x348]
push eax
call fcn.0040a740
pop ecx
jmp 0x409df2
lea eax, [ebp - 0x348]
push eax
call fcn.0040a77d
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409eca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
push dword [0x413754]
call esi
mov edi, dword [ebp + 0xc]
push edi
push dword [0x413754]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x413754]
push 0x3ef
push dword [0x413690]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004098d8
push dword [0x413754]
call fcn.00409026
add esp, 0xc
lea eax, [ebp - 0x154]
push edi
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040b53f
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x409f48
mov byte [eax - 1], bl
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0040a794
lea eax, [ebp - 0x154]
push eax
call fcn.0040bea8
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi - 3]
cmp eax, edi
jae 0x409f75
mov eax, edi
push 0x412150
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edi
jne 0x409ffa
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040a794
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.0040c050
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x454]
push str._s__UNREGSERVER
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x454]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a075
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a075
call fcn.0040a949
test eax, eax
pop ecx
je 0x40a075
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OLE32.DLL
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40a075
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
cmp eax, ebx
je 0x40a05c
push ebx
call eax
test eax, eax
jne 0x40a05c
push dword [ebp + 0xc]
call edi
mov edi, eax
cmp edi, ebx
je 0x40a05c
cmp dword [ebp + 0x10], ebx
mov eax, str.DllRegisterServer
jne 0x40a04b
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
cmp eax, ebx
je 0x40a055
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x40a06c
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a07a
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 [0x4136b0], esi
je 0x40a27a
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 0x40a27a
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 0x40a271
cmp dword [ebp - 0xc], 1
jne 0x40a0f8
lea eax, [ebp - 0x110]
push eax
call fcn.0040c37e
pop ecx
jmp 0x40a118
cmp dword [ebp - 0xc], 4
je 0x40a112
cmp dword [ebp - 0xc], 3
jne 0x40a27a
cmp dword [ebp - 8], 4
jne 0x40a27a
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x40a234
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a182
lea eax, [ebp - 0x310]
push ebx
push eax
push 0x1c
push dword [0x413a90]
call fcn.0040ab9d
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x19
push dword [0x413a90]
call fcn.0040ab9d
add esp, 0x20
lea eax, [ebp - 0x210]
push 2
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x413690]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x40a18c
jmp 0x40a185
push 5
pop eax
cmp eax, 5
je 0x40a194
jmp 0x40a121
push 1
pop eax
jmp 0x40a27c
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.0040a281
push 2
push str.SoftwareBorlandBLW32
call fcn.0040a281
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 0x40a27a
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 0x40a22d
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 0x40a27a
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40a27a
push dword [ebp - 4]
call esi
jmp 0x40a27a
jle 0x40a27a
dec eax
push eax
lea eax, [ebp - 0x110]
push 0x412434
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 0x40a281
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 0x4120e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4136b0], ebx
lea esi, [ebp + eax - 0x18f]
je 0x40a328
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x412030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a355
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 0x40a355
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040a281
pop ecx
pop ecx
jmp 0x40a35c
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a355
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 0x40a30f
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x40a298
cmp dword [0x4136b0], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x40a386
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x412030]
jmp 0x40a38b
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x40a3ff
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.0040a6db
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 [0x4136ec], 0
je 0x40a43b
test esi, esi
jne 0x40a43b
mov eax, dword [0x413b8c]
test eax, eax
je 0x40a43b
push esi
push edi
push 1
push 0x10
call eax
mov eax, esi
pop edi
pop esi
ret
Function at 0x40a6db
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x40a6ea
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 0x40a933
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 0x40a949
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.0040a794
cmp dword [0x4136b0], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40a9e5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40a9e5
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 0x40a9dd
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 0x40a9dd
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 0x40ab9d
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 [0x413abc]
push dword [ebp + 0x14]
push ebx
push 0x4127ac
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x40ac00
cmp eax, 1
jne 0x40ac00
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.0040be4c
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40ac4b
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 0x41279c
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.0040be4c
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40ac18
pop esi
push 0x7e
push ebx
call fcn.0040be4c
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40abfa
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040be4c
pop ecx
pop ecx
jmp 0x40ac56
Function at 0x40ac69
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 0x40acbb
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 0x40acb6
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 0x40af6d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x413698]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x413abc]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x4134d0
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40afd3
push edi
call fcn.0040b671
pop ecx
mov dword [0x41369c], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x413abc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x413abc]
mov byte [0x4136e4], 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 [0x413740], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x4137a0], eax
call esi
pop edi
pop esi
mov dword [0x4137a4], eax
pop ebx
leave
ret