joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072fb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40748b
lea eax, [ebp - 4]
push eax
push 0x4104f8
push 1
push ebx
push 0x410378
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x407485
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4107d8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x40747c
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.004072b4
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004072b4
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004072b4
mov esi, eax
push esi
call fcn.0040c18e
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [edx + 0x44]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004072b4
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004072b4
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040c18e
mov ecx, dword [ebp - 4]
add esp, 0x14
and eax, 7
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004072b4
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040c18e
add esp, 0xc
cmp al, bl
je 0x407439
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004072b4
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp + 8]
call fcn.0040bc1a
mov eax, dword [ebp - 8]
pop ecx
lea edx, [ebp - 0x418]
push ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
leave
ret
Function at 0x407a6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x413650], esi
je 0x407bea
cmp dword [ebp + 0x1c], esi
je 0x407aa9
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 0x407ac3
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 0x407c0b
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 0x407af0
push esi
call fcn.0040c103
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x407b17
cmp dword [ebp + 0xc], 2
jne 0x407b41
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x407b14
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 0x407aff
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 0x407c0b
cmp dword [ebp + 0xc], 4
jne 0x407b17
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 0x407b17
movsx eax, byte [edi]
push eax
call fcn.0040beb8
mov byte [edi], al
cmp dword [0x4130bc], 1
pop ecx
jle 0x407b7c
movsx eax, al
push 4
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x407b8b
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x407b99
mov al, byte [edi]
cmp al, 0x41
jl 0x407bdb
cmp al, 0x46
jg 0x407bdb
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x407bc7
cmp al, 0x39
movsx eax, al
jg 0x407bad
sub eax, 0x30
jmp 0x407bb0
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 0x407bdb
cmp al, 0x39
jg 0x407bcf
sub al, 0x30
jmp 0x407bd1
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x407b58
jmp 0x407b17
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x407c0b
cmp dword [ebp + 8], esi
jne 0x407c0b
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 0x40910b
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 ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x4092bd
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
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 0x4092bd
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x4092bd
mov eax, dword [0x4136d8]
test eax, eax
je 0x40918a
push eax
push ebx
call esi
test eax, eax
je 0x4092bd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x100]
push str..
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push 0x17
push eax
call fcn.0040a58c
add esp, 0xc
test eax, eax
jne 0x4092a7
mov ebx, 0x4120e0
test byte [ebp - 0x248], 0x10
je 0x409249
cmp byte [ebp - 0x348], 0x2e
je 0x409292
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call fcn.0040910b
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x100]
sub ecx, 4
and byte [eax + ecx], 0
lea eax, [ebp - 0x100]
push eax
call fcn.0040a28d
pop ecx
jmp 0x409292
cmp dword [ebp + 0xc], 0
je 0x409292
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0040a569
lea eax, [ebp - 0x100]
push eax
call fcn.0040a2ce
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
call fcn.0040a5ce
test eax, eax
pop ecx
je 0x4091d3
lea eax, [ebp - 0x348]
push eax
call fcn.0040a60b
push dword [ebp + 8]
call fcn.0040a28d
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409952
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 [0x41368c], ebx
push esi
push edi
je 0x409b50
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 0x409b50
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 0x409b47
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x4099d0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c18e
pop ecx
jmp 0x4099ee
cmp dword [ebp - 8], edi
je 0x4099e8
cmp dword [ebp - 8], 3
jne 0x409b47
cmp dword [ebp - 0xc], edi
jne 0x409b47
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jle 0x409b47
cmp dword [0x413710], ebx
je 0x409a01
dec eax
jmp 0x409a04
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x409a0c
xor eax, eax
cmp eax, ebx
jne 0x409b21
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x26
push dword [0x413a30]
call fcn.0040aa2b
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push dword [0x4136f4]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x27
push dword [0x413a30]
call fcn.0040aa2b
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push dword [0x4136f4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x4136ac], ebx
mov esi, 0x3ed
jne 0x409b08
cmp dword [0x413b30], ebx
jne 0x409b08
cmp dword [0x4136d0], ebx
je 0x409a91
mov edi, esi
jmp 0x409b0b
cmp dword [0x413a2c], ebx
je 0x409aa7
push 0x19
push dword [0x413630]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x413630]
push 0x68
push dword [0x413a30]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x413a2c], ebx
mov edi, eax
je 0x409adf
push ebx
push 0x96
push 0x19
push dword [0x413630]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp edi, eax
jne 0x409aeb
mov dword [0x413b30], eax
cmp edi, 0x3ef
jne 0x409afa
mov edi, esi
mov dword [0x4136d0], eax
push dword [0x413630]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x409b0b
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 0x409b52
cmp eax, 1
jl 0x409b47
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 0x409b52
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b57
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.0040bc63
pop ecx
test eax, eax
pop ecx
jne 0x409bac
push 0x3f
push ebx
call fcn.0040bc63
pop ecx
test eax, eax
pop ecx
jne 0x409bac
push ebx
call fcn.00409cc8
cmp dword [ebp + 0x10], 0
pop ecx
je 0x409cc0
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x409cc0
push ebx
push eax
call fcn.0040b146
pop ecx
jmp 0x409cbf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp eax, 3
jl 0x409c30
lea eax, [eax + ebx - 3]
push 0x412658
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x409c30
push ebx
call edi
cmp eax, 4
jl 0x409c29
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 0x409c29
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 0x409c29
push dword [0x4136d8]
push ebx
call esi
test eax, eax
jne 0x409c30
xor eax, eax
jmp 0x409cc3
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 0x409c62
cmp byte [esi], 0x5c
je 0x409c67
dec esi
jmp 0x409c50
cmp byte [esi], 0x5c
jne 0x409c68
inc esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push 7
push eax
call fcn.0040a58c
add esp, 0xc
test eax, eax
jne 0x409cb3
test byte [ebp - 0x248], 0x10
jne 0x409ca4
lea eax, [ebp - 0x348]
push eax
push esi
call ebx
lea eax, [ebp - 0x100]
push eax
call fcn.00409cc8
pop ecx
lea eax, [ebp - 0x348]
push eax
call fcn.0040a5ce
pop ecx
jmp 0x409c80
lea eax, [ebp - 0x348]
push eax
call fcn.0040a60b
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409d58
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 [0x4136f4]
call esi
mov edi, dword [ebp + 0xc]
push edi
push dword [0x4136f4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x4136f4]
push 0x3ef
push dword [0x413630]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00409766
push dword [0x4136f4]
call fcn.00408f82
add esp, 0xc
lea eax, [ebp - 0x154]
push edi
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040b356
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x409dd6
mov byte [eax - 1], bl
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0040a622
lea eax, [ebp - 0x154]
push eax
call fcn.0040bcbe
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi - 3]
cmp eax, edi
jae 0x409e03
mov eax, edi
push 0x412150
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edi
jne 0x409e88
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040a622
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.0040be60
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 0x409f03
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x409f03
call fcn.0040a7d7
test eax, eax
pop ecx
je 0x409f03
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OLE32.DLL
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x409f03
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
cmp eax, ebx
je 0x409eea
push ebx
call eax
test eax, eax
jne 0x409eea
push dword [ebp + 0xc]
call edi
mov edi, eax
cmp edi, ebx
je 0x409eea
cmp dword [ebp + 0x10], ebx
mov eax, str.DllRegisterServer
jne 0x409ed9
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
cmp eax, ebx
je 0x409ee3
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x409efa
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409f08
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 [0x413650], esi
je 0x40a108
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 0x40a108
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 0x40a0ff
cmp dword [ebp - 0xc], 1
jne 0x409f86
lea eax, [ebp - 0x110]
push eax
call fcn.0040c18e
pop ecx
jmp 0x409fa6
cmp dword [ebp - 0xc], 4
je 0x409fa0
cmp dword [ebp - 0xc], 3
jne 0x40a108
cmp dword [ebp - 8], 4
jne 0x40a108
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x40a0c2
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a010
lea eax, [ebp - 0x310]
push ebx
push eax
push 0x1c
push dword [0x413a30]
call fcn.0040aa2b
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x19
push dword [0x413a30]
call fcn.0040aa2b
add esp, 0x20
lea eax, [ebp - 0x210]
push 2
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x413630]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x40a01a
jmp 0x40a013
push 5
pop eax
cmp eax, 5
je 0x40a022
jmp 0x409faf
push 1
pop eax
jmp 0x40a10a
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.0040a10f
push 2
push str.SoftwareBorlandBLW32
call fcn.0040a10f
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 0x40a108
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 0x40a0bb
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 0x40a108
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40a108
push dword [ebp - 4]
call esi
jmp 0x40a108
jle 0x40a108
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 0x40a10f
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 [0x413650], ebx
lea esi, [ebp + eax - 0x18f]
je 0x40a1b6
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 0x40a1e3
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 0x40a1e3
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040a10f
pop ecx
pop ecx
jmp 0x40a1ea
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a1e3
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 0x40a19d
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x40a126
cmp dword [0x413650], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x40a214
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x412030]
jmp 0x40a219
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x40a28d
Capabilities:
Delete directory

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

Disassembly:
cmp dword [esp + 8], 0
jne 0x40a578
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 0x40a7c1
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 0x40a7d7
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.0040a622
cmp dword [0x413650], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40a873
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40a873
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 0x40a86b
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 0x40a86b
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 0x40aa2b
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 [0x413a5c]
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 0x40aa8e
cmp eax, 1
jne 0x40aa8e
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.0040bc63
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40aad9
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.0040bc63
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40aaa6
pop esi
push 0x7e
push ebx
call fcn.0040bc63
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40aa88
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040bc63
pop ecx
pop ecx
jmp 0x40aae4
Function at 0x40aaf7
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 0x40ab49
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 0x40ab44
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 0x40adfb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x413638]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x413a5c]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x413470
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40ae61
push edi
call fcn.0040b488
pop ecx
mov dword [0x41363c], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x413a5c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x413a5c]
mov byte [0x413684], 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 [0x4136e0], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x413740], eax
call esi
pop edi
pop esi
mov dword [0x413744], eax
pop ebx
leave
ret