joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x45e108
push 8
push edi
call section..text
add esp, 8
mov edx, 8
shl eax, 0x18
mov dword [esi], eax
mov ebx, eax
mov ecx, ebx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebx, eax
jne 0x401051
push 0x20
push eax
mov dword [esi], ebx
call section..text
mov dword [esi], eax
add esp, 8
add esi, 4
inc edi
cmp esi, 0x45e504
jle 0x40103a
pop edi
pop esi
pop ebx
ret

Function at 0x401090
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4010c9
push ebx
push edi
lea edi, [eax]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x45e108]
xor edx, eax
inc ecx
dec edi
mov dword [esi], edx
jne 0x4010a5
pop edi
pop ebx
mov eax, dword [esi]
pop esi
not eax
ret

Function at 0x4010d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 4
call fcn.0043178d
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x18]
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [ebx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401116
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0x100
call fcn.0043178d
mov esi, eax
add esp, 4
test esi, esi
jne 0x401141
mov ecx, dword [esp + 0x1c]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push 0x100
push esi
push edi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401184
mov eax, dword [esp + 0x1c]
push edi
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004317b6
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
jbe 0x4011a9
push ebx
push eax
push esi
call fcn.00401090
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x100
push esi
push edi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x401186
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
push esi
mov dword [eax], edx
call fcn.004317b6
push ebx
call fcn.004317b6
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4034a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30c
xor al, al
push esi
mov esi, dword [esp + 0x324]
mov byte [esp + 0x108], al
mov byte [esp + 0x20c], al
mov byte [esp + 4], al
mov eax, dword [esp + 0x318]
push edi
mov edi, dword [esp + 0x324]
push esi
push eax
push edi
lea ecx, [esp + 0x118]
push str._s_d_s
push ecx
call fcn.0042018d
mov edx, dword [esp + 0x334]
push esi
push edx
push edi
lea eax, [esp + 0x230]
push str._s_d_s
push eax
call fcn.0042018d
mov ecx, dword [esp + 0x354]
mov esi, dword [esp + 0x340]
add esp, 0x28
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push ecx
push 0x64
push edx
push 0x45e508
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
push 0x46778c
lea edx, [esp + 0x214]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
mov eax, 1
pop esi
add esp, 0x30c
ret

Function at 0x403560
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
push 0x46778c
push 0
push str.Filecount
push str.FileUpdate
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x320]
mov ebp, eax
push edi
lea eax, [esp + 0x118]
push str.File_dName
push eax
call fcn.0042018d
mov ebx, dword [esp + 0x330]
add esp, 0xc
lea ecx, [esp + 0x218]
lea edx, [esp + 0x114]
push ebx
push 0x104
push ecx
push 0x45e508
push edx
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x218]
push 0x46778c
push eax
call fcn.00406230
mov esi, eax
add esp, 8
test esi, esi
jne 0x40361a
lea ecx, [esp + 0x10]
lea esi, [ebp + 1]
push 0xa
push ecx
push esi
call fcn.0042037a
add esp, 0xc
lea edx, [esp + 0x10]
push 0x46778c
push edx
push str.Filecount
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
push str.name
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.Source
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.Dest
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
add esp, 0x48
push ebx
push str.back
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.ReplaceType
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.ReplaceSuccAction
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
add esp, 0x48
push ebx
push str.ReplaceFailAction
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.DownLoadOption
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.UpdateOption
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
add esp, 0x48
push ebx
push str.Action
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.Module
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
push ebx
push str.Flag
push str.File
push esi
push edi
push str.FileUpdate
call fcn.004034a0
add esp, 0x48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
Function at 0x403e80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x310
push ebp
mov ebp, dword [esp + 0x318]
push edi
push ebp
push 0
push str.RunCmdCount
push str.BeginAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x320]
inc eax
cmp edi, eax
mov dword [esp + 8], eax
jge 0x403f9d
push esi
push edi
lea eax, [esp + 0x118]
push 0x44b2c0
push eax
call fcn.0042018d
add esp, 0xc
lea ecx, [esp + 0x114]
push ebp
push ecx
push str.LastActionseq
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
lea edx, [esp + 0x21c]
push str.Cmd_d
push edx
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x218]
mov byte [esp + 0x10], 0
push ebp
push 0x104
push eax
push 0x45e508
push ecx
push str.BeginAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
push edx
call fcn.00405520
add esp, 4
mov esi, 0x45e508
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403f5e
test cl, cl
je 0x403f5a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403f5e
add eax, 2
add esi, 2
test cl, cl
jne 0x403f3a
xor eax, eax
jmp 0x403f63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f81
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004054d0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x403eb7
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0x310
ret
pop edi
mov eax, 1
pop ebp
add esp, 0x310
ret
Function at 0x404880
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push edi
xor ebx, ebx
push ebp
push ebx
push str.RunCmdCount
push str.SuccAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x220]
inc eax
cmp edi, eax
mov dword [esp + 0xc], eax
jge 0x4049a0
push esi
lea eax, [esp + 0x14]
push 0xa
push eax
push edi
mov byte [esp + 0x124], bl
mov byte [esp + 0x20], bl
call fcn.0042037a
add esp, 0xc
lea ecx, [esp + 0x14]
push ebp
push ecx
push str.LastActionseq
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
lea edx, [esp + 0x11c]
push str.Cmd_d
push edx
mov byte [esp + 0x20], bl
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push ebp
push 0x104
push eax
push 0x45e508
push ecx
push str.SuccAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
call fcn.00405520
add esp, 4
mov esi, 0x45e508
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404961
cmp cl, bl
je 0x40495d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404961
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40493d
xor eax, eax
jmp 0x404966
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404983
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004054d0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4048b9
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x4049b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push edi
xor ebx, ebx
push ebp
push ebx
push str.RunCmdCount
push str.FailAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x220]
inc eax
cmp edi, eax
mov dword [esp + 0xc], eax
jge 0x404ad0
push esi
lea eax, [esp + 0x14]
push 0xa
push eax
push edi
mov byte [esp + 0x124], bl
mov byte [esp + 0x20], bl
call fcn.0042037a
add esp, 0xc
lea ecx, [esp + 0x14]
push ebp
push ecx
push str.LastActionseq
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
lea edx, [esp + 0x11c]
push str.Cmd_d
push edx
mov byte [esp + 0x20], bl
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push ebp
push 0x104
push eax
push 0x45e508
push ecx
push str.FailAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
call fcn.00405520
add esp, 4
mov esi, 0x45e508
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404a91
cmp cl, bl
je 0x404a8d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404a91
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404a6d
xor eax, eax
jmp 0x404a96
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404ab3
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004054d0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4049e9
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x404ae0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push edi
xor ebx, ebx
push ebp
push ebx
push str.RunCmdCount
push str.ExitAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x220]
inc eax
cmp edi, eax
mov dword [esp + 0xc], eax
jge 0x404c00
push esi
lea eax, [esp + 0x14]
push 0xa
push eax
push edi
mov byte [esp + 0x124], bl
mov byte [esp + 0x20], bl
call fcn.0042037a
add esp, 0xc
lea ecx, [esp + 0x14]
push ebp
push ecx
push str.LastActionseq
push str.Common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
lea edx, [esp + 0x11c]
push str.Cmd_d
push edx
mov byte [esp + 0x20], bl
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push ebp
push 0x104
push eax
push 0x45e508
push ecx
push str.ExitAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
call fcn.00405520
add esp, 4
mov esi, 0x45e508
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404bc1
cmp cl, bl
je 0x404bbd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404bc1
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404b9d
xor eax, eax
jmp 0x404bc6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404be3
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004054d0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x404b19
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x405070
Capabilities:
Delete file
Get common file path
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43d21b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x73c
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.00417ea7
mov edi, dword [esp + 0x758]
xor ebx, ebx
push edi
push ebx
push str.Filecount
push str.FileUpdate
mov dword [esp + 0x760], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, 1
inc eax
cmp eax, ebp
mov dword [esp + 0xc], eax
jbe 0x4052d7
push esi
push ebp
lea eax, [esp + 0x340]
push str.File_dBack
push eax
mov byte [esp + 0x348], bl
mov byte [esp + 0x550], bl
mov byte [esp + 0x654], bl
mov byte [esp + 0x140], bl
mov byte [esp + 0x244], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x44c], bl
call fcn.0042018d
push ebp
lea ecx, [esp + 0x554]
push str.File_dName
push ecx
call fcn.0042018d
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x648]
lea eax, [esp + 0x544]
push edi
push 0x104
push edx
push 0x45e508
push eax
push str.FileUpdate
call esi
push edi
lea ecx, [esp + 0x34]
push 0x104
push ecx
lea edx, [esp + 0x348]
push 0x45e508
push edx
push str.FileUpdate
call esi
mov esi, 0x45e508
lea eax, [esp + 0x30]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405197
cmp cl, bl
je 0x405193
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405197
add eax, 2
add esi, 2
cmp cl, bl
jne 0x405173
xor eax, eax
jmp 0x40519c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4052c9
lea eax, [esp + 0x30]
push eax
call fcn.00405520
add esp, 4
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00417f6a
test eax, eax
je 0x4052c9
lea edx, [esp + 0x440]
push ebx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00405310
lea ecx, [esp + 0x654]
lea edx, [esp + 0x44c]
push ecx
push edx
lea eax, [esp + 0x148]
push 0x44b5dc
push eax
call fcn.0042018d
add esp, 0x1c
lea ecx, [esp + 0x134]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00417f6a
test eax, eax
je 0x40528b
lea edx, [esp + 0x238]
lea eax, [esp + 0x440]
push edx
push ebx
push 0x44bdf4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x238]
push ecx
call esi
lea edx, [esp + 0x238]
lea eax, [esp + 0x134]
push edx
push eax
call fcn.0042049b
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0042049b
add esp, 0x10
lea eax, [esp + 0x238]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x238]
push ecx
call esi
jmp 0x4052a0
lea edx, [esp + 0x134]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0042049b
add esp, 8
lea ecx, [esp + 0x134]
push ecx
call fcn.00406b20
add esp, 4
lea edx, [esp + 0x33c]
push edi
push 0x45e508
push edx
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x4050cc
pop esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x750], 0xffffffff
call fcn.00417ee4
mov ecx, dword [esp + 0x748]
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x748
ret
Function at 0x405450
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40546f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4054b9
xor eax, eax
add esp, 0x14
ret
push 0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x4054d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret
Function at 0x4057b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405817
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004202d1
add esp, 8
test eax, eax
jne 0x405817
mov eax, dword [esp + 0x18]
push eax
push 0
push 1
call esi
test eax, eax
jne 0x405828
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40582d
jmp 0x4057df
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x405850
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4058cd
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004202d1
add esp, 8
test eax, eax
jne 0x4058cd
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call esi
test eax, eax
je 0x4058cd
push 0
push eax
call ebx
test eax, eax
jne 0x4058de
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4058f7
jmp 0x40588c
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x405be0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43d2c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
mov eax, dword [0x45c464]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], ebx
call fcn.00417ea7
mov esi, dword [esp + 0x34c]
mov byte [esp + 0x344], 1
cmp esi, ebx
je 0x405ccc
push 0x467994
lea ecx, [esp + 0x138]
push 0x44be50
push ecx
call fcn.0042018d
add esp, 0xc
lea edx, [esp + 0x134]
lea ecx, [esp + 0xc]
push edx
call fcn.004357a3
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0043538f
call fcn.00406140
push esi
push 0x467994
lea ecx, [esp + 0x244]
push 0x44b5dc
push ecx
call fcn.0042018d
lea edx, [esp + 0x148]
lea eax, [esp + 0x24c]
push edx
push eax
call dword [0x45e510]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x4c]
push ecx
push str._sversion.ini
push edx
call fcn.0042018d
add esp, 0x28
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push ebx
push eax
call fcn.00417f6a
cmp eax, ebx
jne 0x405cf4
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], bl
call fcn.00417ee4
lea ecx, [esp + 0xc]
mov dword [esp + 0x344], 0xffffffff
call fcn.0043561a
xor eax, eax
jmp 0x405d52
lea ecx, [esp + 0x30]
push ecx
push ebx
push str.Filecount
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 1
lea edi, [eax + 1]
cmp edi, esi
jbe 0x405d29
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00403560
add esp, 8
inc esi
cmp esi, edi
jb 0x405d16
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], bl
call fcn.00417ee4
lea ecx, [esp + 0xc]
mov dword [esp + 0x344], 0xffffffff
call fcn.0043561a
mov eax, 1
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x33c
ret
Function at 0x405d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x244
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._regedit.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405ddb
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x244
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or ecx, 0xffffffff
mov edi, 0x44be58
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44be54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x258]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004054d0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x244
ret

Function at 0x405ed0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov edi, dword [esp + 0x150]
mov esi, 0x45e508
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405f0f
test cl, cl
je 0x405f0b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405f0f
add eax, 2
add esi, 2
test cl, cl
jne 0x405ee7
xor eax, eax
jmp 0x405f14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405f22
pop edi
pop esi
pop ebx
add esp, 0x140
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405f42
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x140
ret