joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100164d8
push 0x10014c88
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 0x1000341d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000336c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000336c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003347
cmp al, 0x5c
je 0x10003347
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000332f
cmp byte [esi], 0
je 0x10003350
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003365
cmp al, 0x5c
je 0x10003365
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000334d
cmp byte [esi], 0
je 0x1000338b
jmp 0x10003387
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000338b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000338b
cmp al, 0x5c
jne 0x1000338b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x100033e1
cmp al, 0x5c
jne 0x100033d3
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100033c6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100033d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100033d0
push edi
jmp 0x10003414
and eax, 0x10
cmp al, 0x10
je 0x100033d0
push edi
jmp 0x10003414
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003391
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 0x10003440
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x354
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x10003620
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10003494
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push closesocket
call ebx
test eax, eax
je 0x100034c1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [ebp + 0x44]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push closesocket
call ebx
test eax, eax
je 0x1000353b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [ebp + 0x44]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x1001a14c
push edx
call esi
add esp, 8
test eax, eax
jne 0x100035b9
lea eax, [esp + 0x6c]
push 0x1001a148
push eax
call esi
add esp, 8
test eax, eax
jne 0x100035b9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x1001a144
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x100035c8
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x44
test eax, eax
je 0x100035f2
mov dword [esp + 0x20], str.WinSta0Default
jmp 0x10003601
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 0
lea edx, [esp + 0x5c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x8c]
jmp 0x1000365a
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x368]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.WinSta0Default
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret 8
Function at 0x10003670
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x784
push ebx
lea eax, [esp + 0x128]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x100
mov byte [esp + 0x394], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x12c]
xor edx, edx
test al, al
lea ebp, [esp + 0x12c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x1000380d
push esi
push edi
jmp 0x100036ca
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x238]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x344]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x30]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x1000377c
cmp al, 0x42
je 0x1000377c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000377c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.10014c90
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.10014c90
mov dword [esp + 0x10], eax
jmp 0x10003782
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x398], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x395], al
mov eax, ecx
mov dword [esp + ebx + 0x396], esi
lea esi, [esp + 0x344]
lea edi, [esp + ebx + 0x39e]
mov dword [esp + ebx + 0x39a], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x34]
lea edi, [esp + edx + 0x3a2]
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 [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100036c8
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38c]
push ebx
push edx
call fcn.10007880
pop ebp
pop ebx
add esp, 0x784
ret
Function at 0x10003830
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 + 0x6c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push eax
lea ecx, [esp + 0x160]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
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 0x100038b3
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.10007880
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x100038c3
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x100038e3
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, 0x1001a16c
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003914
test al, al
je 0x10003910
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003914
add esi, 2
add edi, 2
test al, al
jne 0x100038ec
xor eax, eax
jmp 0x10003919
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100039b3
mov edi, 0x1001a168
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003952
test al, al
je 0x1000394e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003952
add esi, 2
add edi, 2
test al, al
jne 0x1000392a
xor eax, eax
jmp 0x10003957
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100039b3
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 0x100038bf
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.10007880
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 0x10003a00
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 [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
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 0x10003a55
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x10003aa7
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x1001a178
je 0x10003a8c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.10003a00
jmp 0x10003aa7
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 0x10003a55
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 0x10003ae0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x70]
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 closesocket
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003b44
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.10007880
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 0x10003be0
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 0x10003bfe
call fcn.10003cc0
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x70]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003c29
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 0x10003ca1
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10007880
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.10003cc0
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
Function at 0x10004330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x70]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10007880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10004820
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push ebp
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 2
mov dword [esp + 0x10], ebp
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x1000492d
push ebx
lea eax, [esp + 0x18]
push esi
push eax
push edi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10004924
mov ebx, dword [esp + 0x24c]
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10004911
cmp eax, 4
je 0x10004911
cmp eax, 8
je 0x10004911
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
mov edi, ebx
mov edx, ecx
add ebx, 0x64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
cmp ebp, 0x63
jge 0x10004924
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004892
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x238
ret 4
Function at 0x10004940
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x780
push ebx
push ebp
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x390]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x130]
mov byte [esp + 0x390], 0x67
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x130]
xor edx, edx
test al, al
lea ebp, [esp + 0x130]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x10004ae7
jmp 0x100049a6
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x234]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x340]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x2c]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10004a58
cmp al, 0x42
je 0x10004a58
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10004a58
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10014c90
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10014c90
mov dword [esp + 0x10], eax
jmp 0x10004a5e
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x394], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x391], al
mov eax, ecx
mov dword [esp + ebx + 0x392], esi
lea esi, [esp + 0x340]
lea edi, [esp + ebx + 0x39a]
mov dword [esp + ebx + 0x396], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x30]
lea edi, [esp + edx + 0x39e]
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 [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100049a4
mov edi, dword [esp + 0x794]
mov ecx, 0x100
lea esi, [esp + 0x390]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x780
ret 4
Function at 0x10004d00
Capabilities:
Delete file
Print debug messages

Disassembly:
sub esp, 0x568
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push esi
push edi
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, str.s__secivreS_tESlortnoCtnerruCMETSYS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x574]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x6c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x74]
push 0
push edx
push 1
lea eax, [esp + 0x184]
push str.InstallModule
push eax
push SysStringLen
call fcn.10007950
push 3
push 0
push 0
push 1
lea ecx, [esp + 0x1a0]
push str.InstallModule
push ecx
push SysStringLen
call fcn.10007e50
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x3c
push 0x1001a210
call esi
lea edx, [esp + 0x6c]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
lea eax, [esp + 0x6c]
push eax
call edi
test eax, eax
jne 0x10004de9
inc esi
cmp esi, 0xa
jl 0x10004dd8
pop edi
pop esi
add esp, 0x568
ret

Function at 0x10004e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004eb4
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.10004e00
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10004f1f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret