joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100242b0
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 0x10024338
push 0x110
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10024338
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10024338
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 0x10024346
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10024373
test esi, esi
je 0x10024373
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1002436a
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 0x10024380
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 0x1002446a
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x1002446a
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10024425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10024425
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.10012490
mov edi, eax
test edi, edi
je 0x1002446a
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x1002446a
push edi
call fcn.10019010
xor esi, esi
cmp byte [edi], 0
je 0x1002446a
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 0x10024462
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 0x10024433
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024480
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 0x1002456b
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x1002456b
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10024526
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x10024526
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.10012490
mov edi, eax
test edi, edi
je 0x1002456b
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x1002456b
push edi
call fcn.10019010
xor esi, esi
cmp byte [edi], 0
je 0x1002456b
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 0x10024563
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 0x10024534
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10024580
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 0x10024652
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100245a0
sub eax, edx
je 0x10024652
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 0x10024657
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 0x1002462e
test esi, esi
jne 0x1002463e
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
push edx
push eax
call fcn.10024580
mov esi, eax
test esi, esi
je 0x100245d4
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 0x10024720
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 0x100247db
push esi
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.10005630
mov esi, eax
test esi, esi
je 0x100247da
push edi
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x100247b7
rdtsc
xor dword [0x1004f110], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x1004f110], eax
push 0x1004665c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10024794
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10024794
push 0x1004f110
call eax
mov ecx, dword [0x1004f110]
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.10005550
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 0x100247d9
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 0x10024a20
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 0x10024ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x10024b1b
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push edi
push 8
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10024b1b
mov edi, dword [ebp - 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x10024aaf
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10024aaf
test byte [ebp - 4], 2
jne 0x10024aaf
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 0x10024a85
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 0x10024afe
push str..dll
push eax
call edi
test eax, eax
jne 0x10024b11
lea eax, [ebp - 0x228]
push eax
push esi
call ebx
test eax, eax
jne 0x10024ae0
jmp 0x10024a85
mov edi, 1
jmp 0x10024a88
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10024b30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov edi, dword [0x1005af90]
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 0x10024b7b
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 0x10024be9
lea edx, [ebp - 0x130]
push edx
push esi
call ebx
test eax, eax
jne 0x10024ba0
mov edi, dword [ebp - 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x10024be0
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10024be0
test byte [ebp - 4], 2
jne 0x10024be0
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 0x10024bb9
Function at 0x10024f20
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 0x10024f60
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 0x10024fad
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 0x10024fb5
sub eax, edx
mov dword [ebp - 8], eax
mov esi, 0x1005b3d0
jmp 0x10024fcb
mov edi, dword [ebp - 4]
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x10045f08
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, edi
test bl, 1
jne 0x10024feb
mov ecx, 0x1004b29c
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 0x10025000
mov dx, word [0x1004b2a0]
add esi, 0x104
inc ebx
mov word [edi], dx
cmp esi, 0x1005d144
jl 0x10024fc8
xor ebx, ebx
mov edi, 0x1005d148
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x10045f08
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, dword [ebp - 4]
xor eax, 0xffeeffaa
test bl, 1
jne 0x1002504e
mov ecx, 0x1004b29c
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, 0x1005e8a4
jl 0x10025028
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026d70
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 0x10026f8b
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x10026df7
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 0x10026e37
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x10026e37
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10026e22
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.10026a90
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x10026e37
mov ebx, eax
mov eax, dword [esi + 0x6af84]
push esi
cmp ebx, 3
jb 0x10026f1b
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.10026270
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x10026ee4
cmp ecx, 3
jb 0x10026ee4
mov edi, 1
sub ebx, edi
jmp 0x10026e80
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 0x10026e80
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x10026f36
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 0x10026f36
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.10026270
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x10026f6d
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10026f4d
lea ecx, [eax + esi + 0x1af70]
jmp 0x10026f4f
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.100260c0
mov ecx, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x10026f7e
call fcn.10026c30
cmp dword [esi + 0x6af90], 0
jne 0x10026da0
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10026f9e
lea ecx, [eax + esi + 0x1af70]
jmp 0x10026fa0
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.100260c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10027c40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10027c50
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x10027d1f
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 + 0x10048180]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10048180]
add ecx, 8
sub edx, 8
dec esi
jne 0x10027c62
pop edi
test edx, edx
je 0x10027d3c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10048180]
inc ecx
dec edx
jne 0x10027d23
not eax
pop esi
pop ebp
ret 4
Function at 0x10027f70
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 0x10028044
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 0x10028022
lea ebx, [ecx + ecx]
cmp ebx, eax
jbe 0x10027fa4
mov dword [ebp - 4], ebx
jmp 0x10027fa9
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 0x10027fdf
push ebx
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x10027fed
call fcn.10005510
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.10005510
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 0x10028070
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 0x10028390
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 0x100283dc
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x1002841b
sub edi, eax
cmp edi, edx
jbe 0x100283b1
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.10027c40
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 0x10028414
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 0x1002841b
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.10027c40
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 0x10028dc0
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 0x10028de1
mov dword [esp + 0x10], edx
jmp 0x10028deb
lea eax, [edi + 0x800]
mov dword [esp + 0x10], eax
cmp edi, esi
je 0x10028e03
mov eax, edi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10028df4
sub eax, ebx
mov dword [esp + 0x18], eax
jmp 0x10028e07
mov dword [esp + 0x18], esi
cmp edx, esi
je 0x10028e1f
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10028e10
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x10028e23
mov dword [esp + 0x14], esi
cmp edi, esi
je 0x10028fd2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10028e30
sub eax, edx
add eax, 0x104
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x10028fd2
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 0x10028fcb
mov ebx, dword [ebp + 8]
cmp byte [esp + 0x4c], 0x2e
je 0x10028fb7
mov ecx, dword [ebp + 0x10]
mov eax, str._s_s
test ecx, ecx
jne 0x10028ea6
mov eax, 0x100463c0
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 0x10028f36
test ebx, ebx
jne 0x10028ef1
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
mov dword [0x1005b3cc], 0x10000
call fcn.10028dc0
jmp 0x10028f9f
cmp dword [ebx], 2
je 0x10028f11
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
mov dword [0x1005b3cc], 0x80000
call fcn.10028dc0
jmp 0x10028f9f
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push 4
push 0
push edx
push eax
call fcn.10028610
mov dword [0x1005b3cc], eax
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
call fcn.10028dc0
jmp 0x10028f9f
test ebx, ebx
jne 0x10028f46
mov dword [0x1005b3cc], 0x10000
jmp 0x10028f9f
cmp dword [ebx], 2
je 0x10028f57
mov dword [0x1005b3cc], 0x80000
jmp 0x10028f9f
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.10028610
mov dword [0x1005b3cc], 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 0x10028e8a
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