joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024bf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10024c37
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
jne 0x10024cab
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x10024c57
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test esi, esi
je 0x10024ca0
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10024ca0
test byte [esp + 0xc], 2
jne 0x10024ca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
jmp 0x10024c76
Function at 0x10024f20
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x101
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, esi
jne 0x10024fa8
push 0x110
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10024fa8
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10024fa8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push str.Shell
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10024fb6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10024fe3
test esi, esi
je 0x10024fe3
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10024fda
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024ff0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov ecx, 9
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0xdf
lea eax, [ebp - 0xe3]
push 0
push eax
mov dword [ebp - 4], 0x104
movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100250da
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x100250da
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10025095
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10025095
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.100141e0
mov edi, eax
test edi, edi
je 0x100250da
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x100250da
push edi
call fcn.1001ade0
xor esi, esi
cmp byte [edi], 0
je 0x100250da
push ebx
movsx cx, byte [esi + edi]
lea ebx, [esi + edi]
movzx edx, cx
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x100250d2
mov ecx, dword [ebp - 4]
push ecx
lea edx, [esi + edi + 1]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x100250a3
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100250f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov ecx, 9
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0xde
lea eax, [ebp - 0xe2]
push 0
push eax
mov dword [ebp - 4], 0x104
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100251db
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x100251db
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10025196
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x10025196
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.100141e0
mov edi, eax
test edi, edi
je 0x100251db
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x100251db
push edi
call fcn.1001ade0
xor esi, esi
cmp byte [edi], 0
je 0x100251db
push ebx
movsx cx, byte [esi + edi]
lea ebx, [esi + edi]
movzx edx, cx
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x100251d3
mov ecx, dword [ebp - 4]
push ecx
lea edx, [esi + edi + 1]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x100251a4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100251f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100252c2
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025210
sub eax, edx
je 0x100252c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x10108
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100252c7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push ecx
mov dword [ebp - 8], 0x104
call edi
mov esi, eax
cmp esi, 0x103
je 0x1002529e
test esi, esi
jne 0x100252ae
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
push edx
push eax
call fcn.100251f0
mov esi, eax
test esi, esi
je 0x10025244
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f2
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10025390
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x1002544b
push esi
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.100074a0
mov esi, eax
test esi, esi
je 0x1002544a
push edi
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x10025427
rdtsc
xor dword [str.XZ5_P], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [str.XZ5_P], eax
push 0x1004627c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10025404
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10025404
push str.XZ5_P
call eax
mov ecx, dword [str.XZ5_P]
push ebx
xor edx, edx
mov eax, ecx
or ebx, 0xffffffff
div ebx
add eax, ecx
mov dword [edi + 0x58], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push esi
call fcn.10007350
pop ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10025449
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10025680
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push 0x220
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push edi
push 8
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10025718
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1002577b
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push edi
push 8
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1002577b
mov edi, dword [ebp - 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x1002570f
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1002570f
test byte [ebp - 4], 2
jne 0x1002570f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x100256e5
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Module32Next]
push str.kernel
lea edx, [ebp - 0x208]
push edx
call edi
test eax, eax
je 0x1002575e
push str..dll
push eax
call edi
test eax, eax
jne 0x10025771
lea eax, [ebp - 0x228]
push eax
push esi
call ebx
test eax, eax
jne 0x10025740
jmp 0x100256e5
mov edi, 1
jmp 0x100256e8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025790
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov edi, dword [0x10059ef8]
xor esi, esi
push 0x124
lea eax, [ebp - 0x12c]
push esi
push eax
mov dword [ebp - 0x130], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100257db
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
cmp dword [ebp - 0x128], edi
je 0x10025849
lea edx, [ebp - 0x130]
push edx
push esi
call ebx
test eax, eax
jne 0x10025800
mov edi, dword [ebp - 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x10025840
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10025840
test byte [ebp - 4], 2
jne 0x10025840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x10025819
Function at 0x10025a50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov ecx, 9
mov esi, str.1234567890QWERTYUIOPASDFGHJKLZXCVBNM
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x134]
push eax
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffaaff
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025a90
push 0
push 0
push 0
push 0
mov byte [ebp - 0x131], cl
lea ecx, [ebp - 4]
push ecx
push 0
sub eax, edx
push 0
lea edx, [ebp - 0x134]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edi, dword [ebp - 4]
xor edi, esi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov ecx, edi
sub ecx, eax
mov dword [ebp - 4], edi
je 0x10025add
not edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
xor ebx, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025ae5
sub eax, edx
mov dword [ebp - 8], eax
mov esi, 0x1005a2e0
jmp 0x10025afb
mov edi, dword [ebp - 4]
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x10045748
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, edi
test bl, 1
jne 0x10025b1b
mov ecx, 0x1004abc0
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edi, [esi - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10025b30
mov dx, word [0x1004abc4]
add esi, 0x104
inc ebx
mov word [edi], dx
cmp esi, 0x1005c054
jl 0x10025af8
xor ebx, ebx
mov edi, 0x1005c058
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x10045748
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, dword [ebp - 4]
xor eax, 0xffeeffaa
test bl, 1
jne 0x10025b7e
mov ecx, 0x1004abc0
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
add edi, 0x104
add esp, 0x10
inc ebx
cmp edi, 0x1005d6b0
jl 0x10025b58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100278b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x10027acb
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x10027937
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10027977
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x10027977
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10027962
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.100275d0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x10027977
mov ebx, eax
mov eax, dword [esi + 0x6af84]
push esi
cmp ebx, 3
jb 0x10027a5b
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.10026db0
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x10027a24
cmp ecx, 3
jb 0x10027a24
mov edi, 1
sub ebx, edi
jmp 0x100279c0
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x100279c0
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x10027a76
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x10027a76
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.10026db0
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x10027aad
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10027a8d
lea ecx, [eax + esi + 0x1af70]
jmp 0x10027a8f
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.10026c00
mov ecx, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x10027abe
call fcn.10027770
cmp dword [esi + 0x6af90], 0
jne 0x100278e0
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10027ade
lea ecx, [eax + esi + 0x1af70]
jmp 0x10027ae0
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.10026c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10028790
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x1002885f
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10047da0]
add ecx, 8
sub edx, 8
dec esi
jne 0x100287a2
pop edi
test edx, edx
je 0x1002887c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10047da0]
inc ecx
dec edx
jne 0x10028863
not eax
pop esi
pop ebp
ret 4
Function at 0x10028ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0
je 0x10028b84
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0xc]
add eax, esi
cmp eax, ecx
jb 0x10028b62
lea ebx, [ecx + ecx]
cmp ebx, eax
jbe 0x10028ae4
mov dword [ebp - 4], ebx
jmp 0x10028ae9
mov dword [ebp - 4], eax
mov ebx, eax
push 0
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x10028b1f
push ebx
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x10028b2d
call fcn.10007310
pop esi
pop ebx
mov eax, 0x300
pop edi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
push ecx
push edx
push ebx
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [edi + 4]
call fcn.10007310
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 4], edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp + 8]
add ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
test eax, eax
je 0x10028bb0
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0xc], 0x1000000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x10028ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x58]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x10028f1c
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x10028f5b
sub edi, eax
cmp edi, edx
jbe 0x10028ef1
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
add dword [esi + 0x60], edi
add dword [esi + 0x48], edi
add esp, 0xc
push eax
mov edx, edi
mov ecx, ebx
call fcn.10028780
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10028f54
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028f5b
mov edx, dword [esi + 0x4c]
mov edi, dword [ebp + 8]
add dword [esi + 0x48], edi
push edx
mov edx, edi
mov ecx, ebx
call fcn.10028780
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esi + 0xc], 0x1000000
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x10029910
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0x10]
sub esp, 0x35c
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
cmp edx, esi
je 0x10029931
mov dword [esp + 0x10], edx
jmp 0x1002993b
lea eax, [edi + 0x800]
mov dword [esp + 0x10], eax
cmp edi, esi
je 0x10029953
mov eax, edi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029944
sub eax, ebx
mov dword [esp + 0x18], eax
jmp 0x10029957
mov dword [esp + 0x18], esi
cmp edx, esi
je 0x1002996f
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029960
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x10029973
mov dword [esp + 0x14], esi
cmp edi, esi
je 0x10029b22
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029980
sub eax, edx
add eax, 0x104
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x10029b22
push edi
push str._s
push 0x104
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x10029b1b
mov ebx, dword [ebp + 8]
cmp byte [esp + 0x4c], 0x2e
je 0x10029b07
mov ecx, dword [ebp + 0x10]
mov eax, str._s_s
test ecx, ecx
jne 0x100299f6
mov eax, 0x10046078
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
push edi
push str._s_s
push edi
call esi
add esp, 0x20
test byte [esp + 0x20], 0x10
je 0x10029a86
test ebx, ebx
jne 0x10029a41
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
mov dword [0x1005c054], 0x10000
call fcn.10029910
jmp 0x10029aef
cmp dword [ebx], 2
je 0x10029a61
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
mov dword [0x1005c054], 0x80000
call fcn.10029910
jmp 0x10029aef
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push 4
push 0
push edx
push eax
call fcn.10029160
mov dword [0x1005c054], eax
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
call fcn.10029910
jmp 0x10029aef
test ebx, ebx
jne 0x10029a96
mov dword [0x1005c054], 0x10000
jmp 0x10029aef
cmp dword [ebx], 2
je 0x10029aa7
mov dword [0x1005c054], 0x80000
jmp 0x10029aef
mov esi, dword [ebx + 4]
push 0x208
lea ecx, [esp + 0x164]
push 0
push ecx
call sub.MSVCRT.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x104
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 2
push edi
lea ecx, [esp + 0x168]
push ecx
push esi
call fcn.10029160
mov dword [0x1005c054], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov byte [edx + edi], 0
mov byte [eax + ecx], 0
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100299da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc