joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018e6
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push esi
xor esi, esi
call fcn.00405116
test al, 0xf0
je 0x4019c6
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0040bc20
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x4173e0
push eax
call fcn.0040bc30
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.0040bc30
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040bc20
lea eax, [ebp - 0x208]
push 0x2e
push eax
call fcn.0040bd10
add esp, 0x20
test eax, eax
je 0x401965
push str..000
push eax
call fcn.0040bc20
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x30c]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0040bb40
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401a26
call fcn.00405116
test al, 0xf0
je 0x4019e5
lea eax, [ebp - 0x104]
push 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x401a15
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x401910
jmp 0x401a28
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x514]
push 0x4173c8
push eax
call fcn.0040bb40
lea eax, [ebp - 0x514]
push eax
call fcn.00401a2b
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x401a26
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop esi
leave
ret
Function at 0x401a2b
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
lea eax, [ebp - 0x118]
push dword [ebp + 8]
xor ebx, ebx
push eax
call fcn.0040bc20
lea eax, [ebp - 0x118]
push 0x417400
push eax
call fcn.0040bc30
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x401c2b
push esi
lea eax, [ebp - 0x21c]
push str.wininit.ini
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x21c]
pop ecx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401c28
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, str._rename__r_n
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040bba0
mov edi, eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040bba0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, edi
lea eax, [eax + ecx + 1]
push eax
push esi
push 4
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x401c18
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x401bda
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040c370
pop ecx
cmp eax, esi
pop ecx
je 0x401b92
push 0xa
push eax
call fcn.0040c2b0
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x401b92
inc ebx
push ebx
call fcn.0040bba0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0040bba0
pop ecx
add eax, ebx
push eax
call fcn.0040bf60
lea eax, [ebp - 0x118]
push eax
call fcn.0040bba0
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.0040be60
lea eax, [ebp - 0x118]
push eax
call fcn.0040bba0
add esp, 0x20
add dword [ebp + 8], eax
jmp 0x401bcb
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040bc30
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0040bc30
lea eax, [ebp - 0x14]
push eax
call fcn.0040bba0
mov ebx, eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040bba0
add eax, dword [ebp + 8]
add esp, 0x18
add eax, ebx
mov dword [ebp + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401be9
xor ebx, ebx
cmp ebx, esi
je 0x401c18
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
cmp ebx, esi
je 0x401c18
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop edi
jne 0x401c28
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401c2e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
call fcn.00405116
test al, 0xf0
je 0x401c73
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0040bb40
add esp, 0x10
lea eax, [ebp - 0x104]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
leave
ret
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x401c8e
leave
ret
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push str.NUL_s_s
push eax
call fcn.0040bb40
lea eax, [ebp - 0x30c]
push eax
call fcn.00401a2b
add esp, 0x14
leave
ret

Function at 0x402166
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov dword [esi], 0x413390
lea edi, [esi + 0x18]
xor ebx, ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x4021aa
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x4021aa
mov eax, dword [esi + 0x1c]
add eax, ebx
mov eax, dword [eax + 4]
test eax, eax
jne 0x40219d
mov eax, 0x4132cc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebp
add ebx, 0x10
jmp 0x402179
mov ecx, edi
call fcn.00403f55
push 1
lea ecx, [esi + 8]
call fcn.004016ea
mov dword [esi], 0x413364
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402168
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov dword [esi], 0x413390
lea edi, [esi + 0x18]
xor ebx, ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x4021aa
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x4021aa
mov eax, dword [esi + 0x1c]
add eax, ebx
mov eax, dword [eax + 4]
test eax, eax
jne 0x40219d
mov eax, 0x4132cc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebp
add ebx, 0x10
jmp 0x402179
mov ecx, edi
call fcn.00403f55
push 1
lea ecx, [esi + 8]
call fcn.004016ea
mov dword [esi], 0x413364
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4021e6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push esi
lea eax, [ebp - 0x41c]
push edi
push eax
xor edi, edi
push 0x400
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402283
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x41c]
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402283
xor esi, esi
test dword [ebp + 8], 0xfffffffc
jbe 0x402283
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + esi*4 + 2]
lea eax, [eax + esi*4]
push ecx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x81c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40228e
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
cmp esi, eax
jb 0x402234
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
leave
ret 4
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._u._u._u._u
push dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0040c6ad
mov eax, dword [ebp - 0x10]
add esp, 0x18
xor edx, edx
push 0x10
pop ecx
call fcn.0040c6f0
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
shl ecx, 0x10
or ecx, dword [ebp - 4]
or edx, eax
xor eax, eax
or eax, ecx
or edx, esi
jmp 0x402288
Function at 0x402325
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
push ebx
push esi
push edi
mov esi, str._s_s
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
mov ebx, ecx
push dword [ebp + 8]
push esi
push eax
call fcn.0040bb40
add esp, 0x10
lea eax, [ebp - 0x31c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push eax
call fcn.0040bb40
add esp, 0x10
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.004021e6
mov edi, eax
lea eax, [ebp - 0x31c]
push eax
mov ecx, ebx
mov esi, edx
call fcn.004021e6
mov ecx, edi
and ecx, esi
cmp ecx, 0xffffffff
je 0x4023aa
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x4023aa
cmp esi, edx
jg 0x4023f6
jl 0x4023a0
cmp edi, eax
ja 0x4023f6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004022e1
test eax, eax
je 0x4023ef
lea eax, [ebp - 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.004022e1
test eax, eax
je 0x4023ef
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
jmp 0x4023f2
push 1
pop eax
test eax, eax
je 0x4023a0
call fcn.004051fb
cmp eax, 0x40
jge 0x40241b
lea eax, [ebp - 0x31c]
push 0
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4024ef
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, 0x208
lea eax, [ebp - 0x524]
push edi
push eax
lea eax, [ebp - 0x114]
push eax
call esi
test eax, eax
jne 0x402441
and byte [ebp - 0x524], al
lea eax, [ebp - 0x524]
push 0x417474
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x524]
pop ecx
push edi
push eax
call fcn.0040bba0
pop ecx
lea eax, [ebp + eax - 0x524]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x524]
push 0x4173e0
push eax
call fcn.0040bc30
push dword [ebp + 0x10]
lea eax, [ebp - 0x524]
push eax
call fcn.0040bc30
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4024ad
and byte [ebp - 0x218], al
lea eax, [ebp - 0x218]
push 0x417468
push eax
call fcn.0040bc30
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x524]
push 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040177c
add esp, 0x18
test eax, eax
je 0x4024f7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
test eax, eax
jne 0x4023a0
test byte [ebx + 0x34], 1
je 0x402527
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
je 0x402511
call esi
cmp eax, 5
jne 0x402527
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004018e6
add esp, 0xc
jmp 0x4023a3
xor eax, eax
jmp 0x4023a3
Function at 0x403b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov al, byte [ebp + 0xb]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x18], al
call fcn.004016ea
push dword [ebp + 8]
call fcn.0040bba0
pop ecx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.0040407c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.00404b70
add esp, 0xc
lea ecx, [ebp - 0x18]
push 1
pop edi
push edi
call fcn.004016ea
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0x104
cmp esi, ebx
je 0x403b93
mov byte [esi], bl
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x403b9f
mov eax, 0x4132cc
push edi
push eax
push 0x80000002
lea ecx, [ebp - 4]
call fcn.00403d28
test eax, eax
jne 0x403bf0
cmp esi, ebx
je 0x403bd5
lea eax, [ebp - 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push str.UninstallString
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403bf0
push edi
lea ecx, [ebp - 0x28]
call fcn.004016ea
cmp dword [ebp - 4], ebx
je 0x403bec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x403c09
push edi
lea ecx, [ebp - 0x28]
call fcn.004016ea
cmp dword [ebp - 4], ebx
je 0x403c07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x405116
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4051ad
mov eax, dword [ebp - 0x84]
dec eax
je 0x405178
dec eax
jne 0x4051ad
cmp dword [ebp - 0x90], 5
jae 0x405156
push 0x10
jmp 0x4051ac
ja 0x405171
mov eax, dword [ebp - 0x8c]
cmp eax, 1
ja 0x405171
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov esi, eax
jmp 0x4051ad
mov esi, 0x80
jmp 0x4051ad
cmp dword [ebp - 0x8c], 0xa
jae 0x405185
push 1
jmp 0x4051ac
cmp dword [ebp - 0x8c], 0x5a
jb 0x405192
push 8
jmp 0x4051ac
cmp dword [ebp - 0x8c], 0xa
jne 0x4051aa
cmp word [ebp - 0x88], 0x8ae
jae 0x4051aa
push 2
jmp 0x4051ac
push 4
pop esi
mov eax, esi
pop esi
leave
ret
Function at 0x40530f
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push esi
push edi
call fcn.00405116
test al, 0xf0
je 0x4053a2
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40539c
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeLoadDriverPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40539c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x810]
push 0x800
push eax
push 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40539c
cmp dword [ebp - 0x810], esi
jbe 0x40539c
lea edi, [ebp - 0x80c]
lea eax, [ebp - 0x10]
push 8
push eax
push edi
call fcn.0040ca90
add esp, 0xc
test eax, eax
je 0x4053a2
inc esi
add edi, 0xc
cmp esi, dword [ebp - 0x810]
jb 0x40537d
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x40539e

Function at 0x4053cf
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x405422
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x405422
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x405456
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, ecx
call fcn.004056c7
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.00401000
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.0040647b
lea ecx, [esi + 0x70]
call fcn.004056c7
lea ecx, [esi + 0x90]
mov dword [esi + 0x70], 0x413524
call fcn.004056c7
lea ecx, [esi + 0xac]
mov dword [esi + 0x90], 0x413518
call fcn.004056c7
lea ecx, [esi + 0xc8]
mov dword [esi + 0xac], 0x41350c
call fcn.004063f0
lea eax, [ebp - 0x114]
mov dword [edi], 0x413504
push pe_nt_image_headers32
xor edi, edi
push eax
push 0x65
push edi
mov dword [esi], 0x4134f8
mov dword [esi + 0x8c], edi
mov dword [esi + 0xd4], edi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x40552c
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x405683
call fcn.0040530f
test eax, eax
jne 0x405565
lea eax, [ebp - 0x214]
push pe_nt_image_headers32
push eax
push 0x71
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x114]
push 0x10
push eax
lea eax, [ebp - 0x214]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40551f
cmp dword [0x417620], edi
push 0x64
pop eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jne 0x405582
mov dword [0x417620], edi
lea eax, [esi + 0x1c]
push eax
push 0x4175f0
push 0x41b5c8
call fcn.004061ae
push edi
push eax
push edi
push edi
lea eax, [ebp - 0x114]
push 0xca0000
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, esi
call fcn.00405eeb
test eax, eax
je 0x40551f
mov eax, dword [0x41b5cc]
push 0xc9
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
lea edi, [esi + 4]
push 1
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x41b5cc]
push 0
push 0x10
push 0x10
push 1
push 0xc9
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, ebx
push dword [edi]
call fcn.00405b8f
push 0
lea ecx, [esi + 0x70]
push dword [edi]
call fcn.00405bbc
push 0
lea ecx, [esi + 0x90]
push dword [edi]
call fcn.00405bec
push 0
lea ecx, [esi + 0xac]
push dword [edi]
call fcn.00405c19
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
push 1
sub eax, dword [ebp - 0xc]
mov ecx, edi
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
call fcn.00405f81
push 0
mov ecx, edi
call fcn.00406031
push 5
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
neg ebx
sbb ebx, ebx
lea eax, [esi + 0x4c]
and ebx, eax
mov ecx, esi
push ebx
call fcn.00405b43
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4058c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0xd8
cmp ecx, eax
ja 0x4059da
je 0x4059b1
mov eax, ecx
sub eax, 0x74
je 0x4059a3
dec eax
je 0x405995
sub eax, 0x54
je 0x4059fc
dec eax
jne 0x405a20
lea ecx, [esi + 0x48]
call fcn.00406948
test eax, eax
nop
nop
lea eax, [esi + 0x70]
lea ecx, [esi + 0x74]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.00405b43
push esi
push 0
push 0x405a77
call fcn.0040cb3c
add esp, 0xc
jmp 0x405a20
lea eax, [esi + 0xac]
lea ecx, [esi + 0xb0]
jmp 0x4059ca
lea eax, [esi + 0x90]
lea ecx, [esi + 0x94]
jmp 0x4059ca
mov eax, dword [esi + 0xd4]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x48]
lea ecx, [esi + 0x4c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.00405b43
jmp 0x405a20
mov eax, ecx
sub eax, 0xd9
je 0x4059fc
dec eax
dec eax
je 0x4059ec
dec eax
je 0x405a0f
jmp 0x405a20
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.004053cf
jmp 0x405a18
mov eax, dword [esi + 0xd4]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x405b43
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x405b5d
push 0
push dword [eax]
call edi
mov eax, dword [esp + 0xc]
push 5
mov dword [esi + 0x8c], eax
push dword [eax]
call edi
mov eax, dword [esi + 0x8c]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
ret 4

Function at 0x406429
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x406449
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
Function at 0x4065d6
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0xdf
push dword [esi + 4]
call edi
push 0x417410
xor ebx, ebx
push 0xca
push ebx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x406657
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x406657
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x406657
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x406640
mov ecx, dword [ebp - 0xc]
mov byte [eax + ecx - 1], bl
push 0xcf
push dword [esi + 4]
call edi
push dword [ebp - 0xc]
push ebx
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], pe_nt_image_headers32
mov byte [ebp - 0x110], bl
call fcn.00403d28
test eax, eax
jne 0x4066aa
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4066aa
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x110]
push 0x4173e0
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push pe_nt_image_headers32
push eax
push 0x67
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040bc30
pop ecx
pop ecx
push 0xd5
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x406710
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret 0x10

Function at 0x40674e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 0xcc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40678d
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call edi
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
push eax
lea eax, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4067c5
push 5
push 0x41b5c4
push 0
push str.http:__www.perisoft.net
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10