joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push 0
mov eax, dword [esp + 0x14]
push 0x8000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
jne 0x401a5d
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push 0
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov ebx, eax
call fcn.004019b0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x401b00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
mov dword [0x40b310], eax
mov dword [0x40b314], eax
lea ecx, [esp]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
cmp eax, 0x1e6
jb 0x401b2b
call fcn.00401ab0
mov eax, dword [esp + 0x1c]
pop ebx
add esp, 0x24
ret

Function at 0x401dd0
Capabilities:
Create directory

Disassembly:
sub esp, 0x200
push ebx
push esi
mov esi, dword [esp + 0x20c]
push edi
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00401bd0
lea eax, [esp + 0x114]
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x110]
push 0x40a04c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [esp + 0x218]
test esi, esi
jle 0x401edb
mov ebp, dword [esp + 0x220]
mov ebx, dword [esp + 0x21c]
add ebp, 4
add ebx, 4
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x200
push 0x420320
push 0x4201a0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x41d2fc]
test eax, eax
je 0x401e60
mov eax, dword [ebx]
jmp 0x401e63
mov eax, dword [ebp]
push 0x420320
push eax
lea eax, [esp + 0x18]
push eax
call edi
add esp, 0xc
push 0x200
push 0x420320
push 0x4201a0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x41d2fc]
test eax, eax
je 0x401e96
mov eax, dword [ebx - 4]
jmp 0x401e99
mov eax, dword [ebp - 4]
push 0x420320
add ebp, 8
push eax
add ebx, 8
push 0x41ff90
call edi
lea eax, [esp + 0x1c]
add esp, 0xc
push 0x41ff90
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.00401c50
add esp, 8
dec esi
jne 0x401e3e
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
Function at 0x4029c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a6f
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402a1d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push eax
push esi
mov eax, dword [esp + 0x14]
push 1
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.DisplayName
push eax
call ebx
mov esi, dword [esp + 0x20]
push esi
call edi
push eax
push esi
mov eax, dword [esp + 0x14]
push 1
push 0
push str.UninstallString
push eax
call ebx
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x402a80
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
push esi
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402abe
lea eax, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402aea
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
mov eax, dword [esp + 0x10]
push 1
push 0
push str.SysExplr
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 4
ret

Function at 0x402af0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x20]
push ebp
mov dword [esp + 0x14], esi
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x402b53
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edi
push ecx
push 0
push str.Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x402b57
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x402b6f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402b80
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x20]
push ebp
mov dword [esp + 0x14], esi
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x402be3
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edi
push ecx
push 0
push str.Common_Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x402be7
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x402bff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ProfilesAll_UsersStart_MenuPrograms
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x402c10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x20
lea eax, [esp]
push ebx
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402c7e
lea eax, [esp + 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402c7e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [esp + 0xe]
and eax, 0xffff
shl eax, 4
or eax, ecx
xor ecx, ecx
shl eax, 8
mov cx, word [esp + 0x12]
pop ebx
or eax, ecx
add esp, 0x20
ret
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0xc], 0
mov eax, dword [esp + 8]
push ecx
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 4
push edx
push 0
push str.InstallTime
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402d07
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov ax, word [esp + 0xe]
and ecx, 0xffff
shl ecx, 4
push 4
or ecx, eax
xor eax, eax
shl ecx, 8
mov ax, word [esp + 0x16]
or ecx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.InstallTime
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x20
ret
Function at 0x402ee0
Capabilities:
Get disk size

Disassembly:
mov dx, word [str.C:HerosoftHero2000_]
sub esp, 0x60
mov eax, str.C:HerosoftHero2000_
nop
lea ecx, [esp + 0x10]
push ebx
mov word [ecx], dx
mov al, byte [eax + 2]
lea edx, [esp + 8]
mov byte [ecx + 2], al
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
mov byte [esp + 0x17], 0
push eax
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x402f2d
xor eax, eax
pop ebx
add esp, 0x60
ret
mov ecx, dword [esp + 4]
mov eax, dword [0x41d34c]
imul ecx, dword [esp + 8]
imul ecx, dword [esp + 0xc]
pop ebx
cmp ecx, eax
sbb eax, eax
add esp, 0x60
inc eax
ret

Function at 0x402f50
Capabilities:
Delete file

Disassembly:
sub esp, 0x80
push ebx
push esi
push str.C:HerosoftHero2000_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push str.C:HerosoftHero2000_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esi + 0x41d34f]
cmp al, 0x5c
jne 0x402f86
push str.Test.txt
jmp 0x402f8b
push 0x41d610
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov esi, eax
jne 0x402fb5
xor eax, eax
pop esi
pop ebx
add esp, 0x80
ret
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x402ff2
cmp eax, 0x80
jne 0x402ff2
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
pop ebx
add esp, 0x80
ret
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov ecx, dword [0x41d304]
push edi
push ebp
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403da5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
mov eax, dword [0x41d304]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push esi
mov eax, dword [0x41d304]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov ebp, eax
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403c30
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403e80
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov eax, dword [0x41d560]
push ebx
push esi
push edi
mov ebx, dword [eax*4 + 0x41d590]
push ebp
test ebx, ebx
mov ebp, dword [eax*4 + 0x41d5b8]
jne 0x403ec4
mov ebx, dword [0x41d590]
test ebx, ebx
jne 0x403ebe
push 0
mov eax, dword [0x41d300]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ebp, dword [0x41d5b8]
mov esi, dword [esp + 0x28]
push 3
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edi, eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
push ebp
mov ecx, dword [esp + 0x18]
push ebx
sub eax, ecx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
sub eax, edx
push eax
push ecx
push edx
push esi
call fcn.00403cf0
add esp, 0x1c
push edi
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4041c0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push ebx
push esi
push edi
push ebp
push eax
push 0x100
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x404226
mov bl, byte [ebp + esi]
cmp bl, 0x5c
jne 0x40421d
mov byte [esp + ebp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40421d
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + ebp + 0x10], bl
inc ebp
cmp ebp, edi
jl 0x4041f3
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push esi
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
dec edi
js 0x40425c
mov eax, 0x5c
mov cl, byte [esp + edi + 0x10]
cmp cl, al
je 0x404257
dec edi
jns 0x40424a
jmp 0x40425c
mov byte [esp + edi + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x41f6d8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404289
lea eax, [esp + 0x10]
push eax
push 0x41f6d8
call esi
lea eax, [esp + 0x10]
push eax
call fcn.00401bd0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
Function at 0x404560
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x1c8
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x1d0]
push esi
push edi
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebx + eax - 1]
cmp cl, 0x5c
je 0x40459d
lea eax, [esp + 0x18]
push 0x40a04c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push 0x41d644
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x18]
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
call ebp
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x404740
mov al, byte [esp + 0xc4]
cmp al, 0x2e
je 0x40471a
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebx + eax - 1]
cmp cl, 0x5c
je 0x40460a
lea eax, [esp + 0x18]
push 0x40a04c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x98]
test cl, 0x10
je 0x40463b
lea eax, [esp + 0x18]
push eax
call fcn.00404560
add esp, 4
jmp 0x40471a
mov eax, dword [0x41d5f8]
test eax, eax
jne 0x404660
mov dword [0x41d5f0], 0x1000
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x41d5f8], eax
mov eax, dword [0x41d5ec]
mov ecx, dword [0x41d5f0]
cmp ecx, eax
jg 0x4046ba
lea eax, [ecx*4 + 0x4000]
lea ebp, [ecx + 0x1000]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x41d5f0]
mov edi, eax
shl ecx, 2
mov esi, dword [0x41d5f8]
shr ecx, 2
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x41d5f8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
mov dword [0x41d5f0], ebp
mov dword [0x41d5f8], eax
push 0x41ff10
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
sub eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + edi + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x41d5ec]
mov ecx, dword [0x41d5f8]
mov dword [ecx + eax*4], esi
mov eax, dword [0x41d5ec]
inc eax
mov edx, dword [esp + 0xb8]
mov ebp, dword [0x41d5f4]
mov dword [0x41d5ec], eax
add ebp, edx
mov dword [0x41d5f4], ebp
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4045cf
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x404ba0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push ebx
push esi
push edi
push ebp
push eax
push 0x100
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x404c12
mov bl, byte [esi + ebp]
cmp bl, 0x5c
jne 0x404c09
mov byte [esp + ebp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x404c09
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x10]
push eax
call fcn.00401bd0
add esp, 4
mov byte [esp + ebp + 0x10], bl
inc ebp
cmp ebp, edi
jl 0x404bd3
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00401bd0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
Function at 0x4058f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x1c0
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x1d0]
push ebp
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
lea ecx, [esp + 0x10]
push str..
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
lea ecx, [esp + 0x90]
lea eax, [esp + 0x10]
push ecx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call ebp
cmp eax, 0xffffffff
mov ebp, eax
je 0x4059bb
mov al, byte [esp + 0xbc]
cmp al, 0x2e
je 0x4059a1
lea eax, [esp + 0x10]
push esi
push eax
call edi
lea eax, [esp + 0x10]
push 0x40a04c
push eax
call ebx
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebx
mov ecx, dword [esp + 0x90]
test cl, 0x10
je 0x405986
lea eax, [esp + 0x10]
push eax
call fcn.004058f0
add esp, 4
jmp 0x4059a1
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x90]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40593d
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c0
ret

Function at 0x4059e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
lea eax, [esp + 0x100]
push ebx
push esi
push str.STHVCD.INI
push 0x50
push eax
push 0x40a064
push str.GROUP
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405a9e
mov eax, dword [0x41d2f8]
push pe_nt_image_headers32
test eax, eax
lea eax, [esp + 0x8c]
push eax
je 0x405a31
call fcn.00402b80
jmp 0x405a36
call fcn.00402af0
lea eax, [esp + 0x90]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x405a9e
lea eax, [esp + 0x88]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + esi + 7]
cmp al, 0x5c
je 0x405a7c
lea eax, [esp + 8]
push 0x40a04c
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
jmp 0x405a82
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x108]
lea ecx, [esp + 8]
push eax
push ecx
call esi
lea ecx, [esp + 8]
push ecx
call fcn.004058f0
add esp, 4
pop esi
pop ebx
add esp, 0x150
ret
Function at 0x405ab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push ebx
push esi
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionGrpConvMapGroups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405bcb
lea eax, [esp + 0xc]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov dword [esp + 0x14], 0x100
push edx
push 0
push str.Quick_Launch
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405bcb
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x93]
cmp cl, 0x5c
je 0x405b4e
lea eax, [esp + 0x94]
push 0x40a04c
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
jmp 0x405b54
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push eax
mov ecx, dword [0x41d2fc]
cmp ecx, 1
mov ecx, dword [0x41d304]
sbb eax, eax
add eax, 0x23
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x94]
push ecx
push eax
call esi
lea ecx, [esp + 0x94]
push ecx
call fcn.00401110
lea ecx, [esp + 0x18]
lea edx, [esp + 0x98]
add esp, 4
push pe_nt_image_headers32
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x14]
push str.STHVCD.INI
push ecx
push str.FASTLINK
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
pop ebx
add esp, 0x18c
ret
Function at 0x405fa0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409450
push 0x407064
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41ea3c], eax
xor eax, eax
mov al, byte [0x41ea3d]
mov dword [0x41ea48], eax
mov eax, dword [0x41ea3c]
shr dword [0x41ea3c], 0x10
and eax, 0xff
mov dword [0x41ea44], eax
shl eax, 8
add eax, dword [0x41ea48]
mov dword [0x41ea40], eax
call fcn.00407020
test eax, eax
jne 0x406014
push 0x1c
call fcn.00406140
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406e40
call fcn.00406e30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420660], eax
call fcn.004069e0
mov dword [0x41e800], eax
test eax, eax
je 0x406047
cmp dword [0x420660], 0
jne 0x406051
push 0xffffffffffffffff
call fcn.00406280
add esp, 4
call fcn.00406760
call fcn.00406670
call fcn.00406250
mov esi, dword [0x420660]
mov al, byte [esi]
cmp al, 0x22
je 0x406078
cmp al, 0x20
jbe 0x4060a5
inc esi
cmp byte [esi], 0x20
ja 0x406070
jmp 0x4060a5
inc esi
cmp byte [esi], 0x22
je 0x4060a4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40609f
xor eax, eax
mov al, bl
push eax
call fcn.00406610
add esp, 4
test eax, eax
je 0x406099
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x406081
cmp byte [esi], 0x22
jne 0x4060a5
inc esi
cmp byte [esi], 0
je 0x4060b5
cmp byte [esi], 0x20
ja 0x4060b5
inc esi
cmp byte [esi], 0
jne 0x4060aa
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4060d9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00406280
jmp 0x40611a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4062c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x41ea78], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4062de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41ea74], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x41ea70], bl
jne 0x406338
cmp dword [0x420658], 0
je 0x406326
mov edi, dword [0x420654]
sub edi, 4
cmp edi, dword [0x420658]
jb 0x406326
mov eax, dword [edi]
test eax, eax
je 0x40631b
call eax
sub edi, 4
cmp edi, dword [0x420658]
jae 0x406313
push 0x40a014
push 0x40a010
call fcn.00406370
add esp, 8
push 0x40a01c
push 0x40a018
call fcn.00406370
add esp, 8
test ebx, ebx
jne 0x40635f
mov dword [0x41ea78], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret