joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405340
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592945
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4b270
call fcn.00451240
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401bd0
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00451150
add esp, 8
mov dword [ebp - 0x4b110], 0x1388
push 0
push 0
push 0
push 0
push 0x5a8150
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4b114], eax
cmp dword [ebp - 0x4b114], 0
jne 0x4053d4
mov dword [ebp - 0x4b234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
mov eax, dword [ebp - 0x4b234]
jmp 0x40556c
push 0
push 0x80000100
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x4b114]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x4b118], eax
cmp dword [ebp - 0x4b118], 0
jne 0x405426
mov dword [ebp - 0x4b238], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
mov eax, dword [ebp - 0x4b238]
jmp 0x40556c
push 0x4b000
push 0
lea eax, [ebp - 0x4b10c]
push eax
call fcn.00450460
add esp, 0xc
lea ecx, [ebp - 0x4b110]
push ecx
push 0x4b000
lea edx, [ebp - 0x4b10c]
push edx
mov eax, dword [ebp - 0x4b118]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
push 0x4b000
push 0x5a80ac
lea ecx, [ebp - 0x4b10c]
push ecx
call fcn.00404910
add esp, 0x10
mov dword [ebp - 0x4b11c], eax
push 0xf
mov edx, dword [ebp - 0x4b11c]
add edx, 8
push edx
lea eax, [ebp - 0x4b10c]
push eax
call fcn.004049b0
add esp, 0xc
lea ecx, [ebp - 0x4b230]
call fcn.004344c0
mov byte [ebp - 4], 1
push 0x5a7b30
push 0x5a814c
lea ecx, [ebp - 0x4b10c]
push ecx
lea ecx, [ebp - 0x4b230]
call fcn.00436ce0
push 0x5a7b30
push 0x5a8148
lea edx, [ebp - 0x4b10c]
push edx
lea ecx, [ebp - 0x4b230]
call fcn.00436ce0
push 0x5a7b30
push 0x5a809c
lea eax, [ebp - 0x4b10c]
push eax
lea ecx, [ebp - 0x4b230]
call fcn.00436ce0
push 0x5a7b30
push 0x5a8144
lea ecx, [ebp - 0x4b10c]
push ecx
lea ecx, [ebp - 0x4b230]
call fcn.00436ce0
push 0x5a7b30
push str.li__
lea edx, [ebp - 0x4b10c]
push edx
lea ecx, [ebp - 0x4b230]
call fcn.00436ce0
lea eax, [ebp - 0x4b10c]
mov dword [0x60621c], eax
mov dword [ebp - 0x4b23c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4b230]
call fcn.00404f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
mov eax, dword [ebp - 0x4b23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405870
Capabilities:
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x6065c4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4059fe
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0057284c
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4058f1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405a03
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
jb 0x4058ff
push 0
mov eax, dword [ebp - 0xc]
push eax
push str.YYYYYYYYYYYY
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00404910
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405991
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], 0
push 0x1d8
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00403c70
push 0
lea edx, [ebp - 0x20]
push edx
push 0x1d8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov edx, dword [ebp - 0xc]
push edx
push str.127.0.0.1
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404910
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4059f4
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], 0
push 0x196
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00403c70
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x196
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406e20
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592c99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push 0x5a8324
push 0xd4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406e7a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
jmp 0x406fd5
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x406eb2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
jmp 0x406fd5
mov edx, dword [ebp - 0x1c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x406edb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
jmp 0x406fd5
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.00450bd0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x5a8318
lea ecx, [ebp - 0x128]
push ecx
call fcn.00451160
add esp, 8
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x406f5f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
jmp 0x406fd5
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5a7b30
lea ecx, [ebp + 8]
call fcn.00401bd0
push eax
lea eax, [ebp - 0x128]
push eax
push str.open
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x406faa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005772b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x407136
xor eax, eax
jmp 0x407166
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40715c
mov ecx, dword [ebp - 8]
and ecx, 0x10
test ecx, ecx
jne 0x40715c
mov dword [ebp - 0xc], 1
jmp 0x407163
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408cf0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592e34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0058b79f
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c4
call fcn.00414250
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], method.CWinApp.virtual_0
push 0x294
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 1
call dword [ebp - 0x14]
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 0x10]
add edx, 0xc0
push edx
push str._sControlQQwry.dat
lea eax, [ebp - 0x118]
push eax
call fcn.0045126f
add esp, 0xc
push 0
push 0
push 3
push 0
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
je 0x408ddf
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x1cc], 1
jmp 0x408de9
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x1cc], 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.PopTips
call fcn.0057731e
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0x5a8580
call fcn.0057731e
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c4
mov byte [ebp - 4], 1
call fcn.00414490
mov dword [ebp - 0x134], eax
xor eax, eax
cmp dword [ebp - 0x134], 0
setne al
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x1cd], al
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1d0], 0
push 0x6065c4
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Update770747.dat
push 0x6065c4
call fcn.00451160
add esp, 8
push 0x6065c4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408eba
push 0
push 0x5a8564
push str.Dat
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40981b
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x5a87ec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40992d
mov word [ebp - 0x18], 0x4d42
mov word [ebp - 0x12], 0
mov word [ebp - 0x10], 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.00409760
and eax, 0xffff
add eax, 0x36
mov dword [ebp - 0xe], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00409790
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
imul edx, eax
mov eax, dword [ebp - 0xe]
add eax, edx
shr eax, 2
mov dword [ebp - 0x16], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0xe
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409884
cmp dword [ebp - 0x1c], 0xe
je 0x4098a8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov edx, dword [ebp + 8]
push edx
push 0x5a87d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40992d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00409790
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 8]
imul ecx, eax
mov edx, dword [ebp - 0xe]
add edx, ecx
mov dword [ebp - 0x20], edx
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4098ef
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
je 0x409910
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov eax, dword [ebp + 8]
push eax
push 0x5a87c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40992d
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
shl edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a080
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40a09b
mov dword [ebp + 0xc], 0x80
jmp 0x40a0a3
mov eax, dword [ebp + 0xc]
or al, 0x80
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
jne 0x40a0b0
mov dword [ebp + 8], 0x5a7b30
push 0x4010
push 0x160
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d080
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5932cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x118], 0
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00450460
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 8]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x40d0e7
mov dword [ebp - 0x118], 0x5a825c
jmp 0x40d0f1
mov dword [ebp - 0x118], 0x5a7b30
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s.
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x40d13b
xor al, al
jmp 0x40d21b
movsx eax, byte [ebp - 0x22c]
cmp eax, 0x2e
jne 0x40d14c
jmp 0x40d1f0
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
test ecx, ecx
je 0x40d191
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_s
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x360]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d080
jmp 0x40d1f0
lea ecx, [ebp - 0x364]
call fcn.00401ba0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x364]
push ecx
call fcn.0056fdd7
add esp, 0x14
lea edx, [ebp - 0x364]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00410ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.005772b0
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d13b
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e920
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593474
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x7f4], 1
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410cd0
cmp eax, 1
jbe 0x40e992
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410cd0
push eax
push 0x5a8fc8
lea ecx, [ebp - 0x14]
push ecx
call fcn.0056fdd7
add esp, 0xc
jmp 0x40ea13
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410df0
push eax
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00570bcc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410df0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00570c71
cmp eax, 1
jne 0x40e9f2
mov eax, dword [ebp - 0x18]
push eax
push 0x5a8f9c
lea ecx, [ebp - 0x14]
push ecx
call fcn.0056fdd7
add esp, 0xc
jmp 0x40ea07
mov edx, dword [ebp - 0x18]
push edx
push 0x5a8f84
lea eax, [ebp - 0x14]
push eax
call fcn.0056fdd7
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005772b0
push 0x24
push 0x5a8f78
lea ecx, [ebp - 0x14]
call fcn.00401bd0
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40ea49
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005772b0
jmp 0x40eb52
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0040d230
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410b50
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40eb1e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00410bc0
mov dword [ebp - 0x20], eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00570bcc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x668
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.005774df
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.005772b0
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x7a0
call fcn.00570c71
test eax, eax
je 0x40eafe
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.005776b3
lea ecx, [ebp - 0x24]
call fcn.00401bd0
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040f0f0
jmp 0x40eb0d
lea ecx, [ebp - 0x24]
call fcn.00401bd0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.005772b0
jmp 0x40ea64
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0040d230
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5a8800
call fcn.0057731e
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x10]
call fcn.0040ab80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005772b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x654]
add ecx, 0x24
call fcn.00402740
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.00451b90
or esi, eax
or edi, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x84], edi
mov ecx, dword [ebp - 4]
call fcn.0040e7e0
mov edx, dword [ebp - 4]
add edx, 0x80
mov eax, dword [ebp - 4]
add eax, 0x78
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40efb6
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
je 0x40efcb
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
je 0x40efcb
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x5c]
test eax, eax
je 0x40efd8
mov ecx, dword [ebp - 4]
call fcn.0040e600
jmp 0x40f0db
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x70
call fcn.005776e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40f00c
jmp 0x40f0db
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 9
mov ecx, 0x2000
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov byte [edx], 5
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call fcn.00450890
add esp, 0xc
push 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
add eax, 5
push eax
call fcn.00450890
add esp, 0xc
mov byte [ebp - 0x28], 1
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jbe 0x40f0d1
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x654]
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x658]
call fcn.00416100
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f0f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x40f142
xor al, al
jmp 0x40f1f6
movsx ecx, byte [ebp - 0x118]
cmp ecx, 0x2e
je 0x40f1b9
mov edx, dword [ebp - 0x144]
and edx, 0x10
test edx, edx
je 0x40f18c
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x5a8fe0
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040f0f0
jmp 0x40f1b9
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5a8fe0
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f142
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40f1f4
xor al, al
jmp 0x40f1f6
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4