joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100058e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x10005933
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x10005970
sub edi, eax
cmp edi, edx
jbe 0x10005907
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.1000b120
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.10004e30
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x10005969
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005970
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.10004e30
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10005af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov dword [ebp - 4], 0
lea ebx, [esi + 0x94]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x10005b43
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x10005b9b
sub edi, eax
cmp edi, 0x4000
jbe 0x10005b2e
mov edi, 0x4000
push edi
add eax, ecx
push eax
push ebx
call fcn.1000b120
add esp, 0xc
add dword [esi + 0x8c], edi
jmp 0x10005b64
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x10005b94
push 0
lea ecx, [ebp - 8]
push ecx
push 0x4000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005b9b
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.10004e30
mov dword [esi + 0x78], eax
test edi, edi
je 0x10005b9b
cmp edi, 0xffffffff
je 0x10005b9b
push edi
push ebx
mov ecx, esi
call fcn.100053d0
cmp eax, edi
jne 0x10005bac
add dword [ebp - 4], edi
jmp 0x10005b05
mov dword [esi + 0x14], 0x1000000
mov edx, dword [ebp - 4]
pop edi
mov dword [esi + 0x90], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x60000
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006817
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011080]
jne 0x10006821
repz ret
jmp fcn.10007500

Function at 0x1000a27c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10011080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100089ef
and dword [ebp - 0x14], 0
cmp dword [0x10012eb0], 0
mov dword [ebp - 0x18], eax
jne 0x1000a32f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000a3d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000a3d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10012eb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10012eb4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10012eb8], eax
call edi
push eax
call esi
mov dword [0x10012ec0], eax
test eax, eax
je 0x1000a32f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10012ebc], eax
mov eax, dword [0x10012ebc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000a388
cmp dword [0x10012ec0], ecx
je 0x1000a388
push eax
call esi
push dword [0x10012ec0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000a388
test ebx, ebx
je 0x1000a388
call edi
test eax, eax
je 0x1000a37f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000a37f
test byte [ebp - 8], 1
jne 0x1000a388
or dword [ebp + 0x10], 0x200000
jmp 0x1000a3bb
mov eax, dword [0x10012eb4]
cmp eax, dword [ebp - 0x18]
je 0x1000a3bb
push eax
call esi
test eax, eax
je 0x1000a3bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000a3bb
mov eax, dword [0x10012eb8]
cmp eax, dword [ebp - 0x18]
je 0x1000a3bb
push eax
call esi
test eax, eax
je 0x1000a3bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10012eb0]
call esi
test eax, eax
je 0x1000a3d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000a3d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006817
leave
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x5afd6607
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4c5d1c46
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xa1f48b1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6b10553f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4146c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414702
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414702
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414702
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414702
cmp dword [ecx + 0x74], 0xe
jbe 0x414702
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x426ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41fc30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x412015
lea edi, [esi - 0x11015]
push edi
or ebp, 0xffffffff
jmp 0x41fc52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fc59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fc48
mov eax, 1
add ebx, ebx
jne 0x41fc6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fc60
jne 0x41fc7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fc60
xor ecx, ecx
sub eax, 3
jb 0x41fc90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fd02
mov ebp, eax
add ebx, ebx
jne 0x41fc9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fccc
inc ecx
add ebx, ebx
jne 0x41fcb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fcad
jne 0x41fcc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fcad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fcec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fcdd
jmp 0x41fc4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fcec
add edi, ecx
jmp 0x41fc4e
pop esi
mov edi, esi
mov ecx, 0x289
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fd0a
cmp byte [edi], 2
jne 0x41fd0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41fd0f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fd7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x214a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21508]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fd3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2150c]
or eax, eax
je 0x41fd78
mov dword [ebx], eax
add ebx, 4
jmp 0x41fd59
call dword [esi + 0x21510]
popal
jmp 0x401240
Function at 0x403740
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4b2b8c]
mov ecx, dword [0x4afa94]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40384d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4b2b8c], 0x959
jne 0x403833
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e18
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e38
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.004035a0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4074ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445248]
jne 0x4074c4
repz ret
jmp fcn.0040cc48

Function at 0x40d73f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c55
and dword [ebp - 4], 0
cmp dword [0x448918], 0
mov ebx, eax
jne 0x40d7f0
push 0x4024ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d8a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e0
push edi
call esi
test eax, eax
je 0x40d8a1
push eax
call fcn.00409be3
mov dword [esp], 0x4024d0
push edi
mov dword [0x448918], eax
call esi
push eax
call fcn.00409be3
mov dword [esp], 0x4024bc
push edi
mov dword [0x44891c], eax
call esi
push eax
call fcn.00409be3
mov dword [esp], 0x4024a0
push edi
mov dword [0x448920], eax
call esi
push eax
call fcn.00409be3
pop ecx
mov dword [0x448928], eax
test eax, eax
je 0x40d7f0
push 0x402488
push edi
call esi
push eax
call fcn.00409be3
pop ecx
mov dword [0x448924], eax
mov eax, dword [0x448924]
cmp eax, ebx
je 0x40d848
cmp dword [0x448928], ebx
je 0x40d848
push eax
call fcn.00409c5e
push dword [0x448928]
mov esi, eax
call fcn.00409c5e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d848
test edi, edi
je 0x40d848
call esi
test eax, eax
je 0x40d83f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d83f
test byte [ebp - 0xc], 1
jne 0x40d848
or dword [ebp + 0x10], 0x200000
jmp 0x40d881
mov eax, dword [0x44891c]
cmp eax, ebx
je 0x40d881
push eax
call fcn.00409c5e
pop ecx
test eax, eax
je 0x40d881
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d881
mov eax, dword [0x448920]
cmp eax, ebx
je 0x40d881
push eax
call fcn.00409c5e
pop ecx
test eax, eax
je 0x40d881
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448918]
call fcn.00409c5e
pop ecx
test eax, eax
je 0x40d8a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d8a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e03
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401e38
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401e35
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x401e41
add edx, 0x28
cmp edx, esi
jne 0x401e23
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401e3e

Function at 0x4022b6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022f5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022f5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022f5
cmp dword [ecx + 0x74], 0xe
jbe 0x4022f5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0xbad0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbad200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbad0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbad0c2
add dl, dl
jne 0xbad0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbad134
xor eax, eax
add dl, dl
jne 0xbad0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbad1d5
add dl, dl
jne 0xbad0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbad108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbad113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbad11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbad12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbad0cd
mov eax, 1
add dl, dl
jne 0xbad142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbad14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbad139
sub eax, ebx
mov ebx, 1
jne 0xbad180
mov ecx, 1
add dl, dl
jne 0xbad166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbad171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbad15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbad0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbad197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbad1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbad18e
cmp eax, 0x7d00
jae 0xbad1c5
cmp eax, 0x500
jb 0xbad1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbad0cd
cmp eax, 0x7f
ja 0xbad1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbad0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbad1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbad0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jne 0x4011f8
mov eax, dword [ebp + 8]
push 0x105
mov dword [0x407b0c], eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, 0x107
push ebx
push 0x42
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
push ebx
push 0x42
mov dword [0x40770c], eax
call esi
push eax
call edi
push ebx
push 0x42
mov dword [0x407708], eax
call esi
push eax
call edi
mov dword [0x407710], eax
lea eax, [ebp - 0x14c]
push str._delis32.ini
push eax
push dword [0x40770c]
call fcn.004016e9
lea eax, [ebp - 0x14c]
push str._INS33IS._MP
push eax
push dword [0x407710]
call fcn.004016e9
lea eax, [ebp - 0x14c]
push str._iserr31.ini
push eax
push dword [0x407708]
call fcn.004016e9
push dword [0x407710]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.ISDEL_MSG_DELDONE32
call esi
push str.ISDEL_MSG_DELENABLE32
mov dword [0x40771c], eax
call esi
push str.ISDEL_MSG_DELEXISTS32
mov dword [0x407714], eax
call esi
mov esi, dword [ebp + 8]
mov edi, str.isdelete
xor ebx, ebx
push edi
push esi
mov dword [0x407718], eax
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], sym._DELIS.EXE_WndProc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4011f8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push ebx
push 1
call esi
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call esi
lea eax, [eax + eax*2]
push 4
cdq
pop ecx
idiv ecx
push eax
push 1
call esi
push 4
cdq
pop ecx
idiv ecx
push eax
push ebx
call esi
push 8
cdq
pop ecx
idiv ecx
push eax
push 0x80c00000
push str.InstallSHIELD_Delete
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
je 0x4011f8
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [0x407b10], eax
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call esi
test eax, eax
je 0x4011bf
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
jmp 0x40119c
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x407710]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
push dword [0x40770c]
call esi
push dword [0x407708]
call esi
push ebx
push ebx
push dword [0x40771c]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x401201
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
mov eax, ecx
push edi
dec eax
je 0x401329
sub eax, 0x10
je 0x401324
sub eax, 5
je 0x4012dc
sub eax, 0xfd
je 0x4012b3
cmp ecx, dword [0x407714]
jne 0x401254
mov eax, dword [ebp + 0x10]
mov dword [0x405020], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x15f90
mov dword [0x407700], eax
jmp 0x40134a
cmp ecx, dword [0x407718]
jne 0x40129e
cmp dword [ebp + 0x14], 0xa4d23f78
jne 0x40129e
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40134a
xor esi, esi
cmp dword [0x4076fc], esi
jne 0x40134a
push 0x832fbc3
push esi
push dword [0x407718]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40134a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x40134c
xor esi, esi
cmp dword [0x407704], esi
jne 0x40134a
push dword [ebp + 8]
mov dword [0x407704], 1
call fcn.00401352
pop ecx
mov dword [0x407704], esi
jmp 0x40134a
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40134a
push 1
pop edi
push dword [0x40770c]
call fcn.004016b2
test eax, eax
je 0x401304
push esi
call fcn.00401420
and edi, eax
inc esi
cmp esi, 0x14
pop ecx
jl 0x4012f5
push dword [0x407710]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
push dword [0x40770c]
call esi
push dword [0x407708]
call esi
jmp 0x40134a
push 1
pop eax
jmp 0x40134c
xor esi, esi
push esi
push 0xbb8
push 0x578
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x40134a
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x401352
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8001
call esi
push str.c:_stopthis.now
call fcn.004016b2
test eax, eax
je 0x401381
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x40141b
xor ebp, ebp
push ebp
call esi
cmp dword [0x405020], ebp
push 1
pop esi
jne 0x4013a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x407700]
jbe 0x401379
mov dword [0x405020], esi
push dword [0x40770c]
call fcn.004016b2
test eax, eax
push ebp
jne 0x4013c3
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
jmp 0x401419
push 0x80
push 2
push ebp
push esi
push 0xc0000000
push dword [0x407710]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
mov dword [0x4076f0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
xor edi, edi
push edi
call fcn.00401420
and ebx, eax
inc edi
cmp edi, 0x14
pop ecx
jl 0x4013ed
cmp ebx, ebp
je 0x40140d
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
push dword [0x407710]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret