joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408303
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push str.behaviour
push edi
call fcn.004c99d0
push 0x507690
push esi
lea eax, [ebp - 0x110]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4083a9
test byte [ebp - 0x250], 0x10
je 0x408378
movsx eax, byte [ebp - 0x224]
push eax
call fcn.004cab40
pop ecx
test eax, eax
jne 0x40838c
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40835d
jmp 0x4083a2
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.004c99d0
push edi
call fcn.004d7fec
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret
Function at 0x40847a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x348], edx
push eax
push eax
push 3
push eax
push 3
push SysReAllocString
mov bl, al
push 0x52a8f8
mov dword [ebp - 0x344], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408676
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34c], eax
add eax, 0x400
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x358], edi
test edi, edi
je 0x40866a
push 0
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x34c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40865a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34c]
or esi, 0xffffffff
push ecx
mov ecx, edi
mov dword [ebp - 0x354], esi
call fcn.0048119c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x408654
mov edx, dword [ebp - 0x348]
mov ecx, ebx
call fcn.0048128d
test eax, eax
jne 0x40864d
lea eax, [ebp - 0x340]
or edx, esi
push eax
mov ecx, ebx
call fcn.004811a8
pop ecx
test eax, eax
jne 0x40864d
mov eax, dword [ebp - 0x340]
xor edi, edi
mov dword [ebp - 0x348], eax
test eax, eax
jle 0x40862c
mov esi, eax
lea eax, [ebp - 0x340]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004811a8
pop ecx
test eax, eax
jne 0x408626
lea eax, [ebp - 0x33c]
push 0x2e
push eax
call fcn.0049f6d0
mov dword [ebp - 0x350], eax
pop ecx
pop ecx
test eax, eax
je 0x40860c
push str..gif
push eax
call fcn.004c8c14
pop ecx
pop ecx
test eax, eax
je 0x40860c
call fcn.004cb20b
test al, 1
je 0x40861d
push dword [ebp - 0x350]
lea ecx, [ebp - 0x88]
call fcn.004083b9
push eax
lea ecx, [ebp - 0x108]
call fcn.004083b9
push eax
lea eax, [ebp - 0x210]
push str._s__s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x210]
jmp 0x408612
lea eax, [ebp - 0x33c]
push eax
mov edx, edi
mov ecx, ebx
call fcn.00481262
pop ecx
inc edi
cmp edi, esi
jl 0x408584
mov esi, dword [ebp - 0x354]
mov eax, dword [ebp - 0x344]
xor ecx, ecx
inc ecx
movzx eax, al
cmp edi, dword [ebp - 0x348]
mov edi, dword [ebp - 0x358]
cmove eax, ecx
mov dword [ebp - 0x344], eax
mov ecx, ebx
call fcn.004812b3
mov ebx, dword [ebp - 0x344]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, 0xffffffff
je 0x408676
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x408db8
Capabilities:
Check if file exists
Create thread
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor edx, edx
mov dword [ebp - 8], esi
push edi
mov edi, ebx
inc edx
mov ecx, 0x52a9fc
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
jne 0x408f30
inc edi
cmp dword [0x51e704], ebx
je 0x408f30
mov byte [0x52aa00], bl
cmp dword [0x51e6f8], ebx
je 0x408f30
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x408f30
push str.SHGetSetFolderCustomSettings
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52a8f4], eax
test eax, eax
je 0x408f30
push str.K7DcptFiles.zip
push 0x51e708
push 0x506968
push 0x52a8f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x52a8f8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408f30
call fcn.00407057
test eax, eax
jne 0x408ed3
push ebx
call fcn.004c8af7
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esi, eax
push esi
call fcn.004cb22c
pop ecx
call fcn.004cb20b
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x408e8d
dec eax
or eax, 0xfffffff8
inc eax
add eax, 6
mov esi, ebx
mov dword [ebp - 4], eax
je 0x408ec1
mov ebx, eax
call fcn.004cb20b
push 0x1a
cdq
pop ecx
idiv ecx
add dl, 0x61
mov byte [esi + 0x52aa00], dl
inc esi
cmp esi, ebx
jb 0x408e99
push 0
pop ebx
cmp esi, 0x80
jae 0x408f4e
mov byte [esi + 0x52aa00], bl
call fcn.00406faf
test eax, eax
je 0x408f30
mov esi, dword [ebp - 8]
push 0x52aa00
push str.K7DCPTFILEPTRN
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [0x51e6f8]
mov dword [0x52a8f0], ebx
test al, 1
je 0x408f00
call fcn.00408aa2
test eax, eax
je 0x408f30
mov eax, dword [0x51e6f8]
test al, 2
je 0x408f2d
mov edi, ebx
test esi, esi
je 0x408f27
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push fcn.0040871f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52a8ec], eax
jmp 0x408f2d
push ebx
call fcn.0040871f
xor ebx, ebx
inc ebx
call fcn.0041dd4f
test edi, edi
je 0x408f47
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 0x52a9fc
lock cmpxchg dword [edx], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call fcn.0049d83b
int3
Function at 0x408f54
Capabilities:
Query environment variable
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
xor ecx, ecx
xor ebx, ebx
push esi
inc ecx
mov edx, 0x52a9fc
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x409088
mov eax, dword [0x52a8ec]
test eax, eax
je 0x408fbc
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [0x52a8ec]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x52a8ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x52a8ec], ebx
mov dword [0x52a8f0], ebx
mov byte [0x52aa00], bl
call fcn.0041dd4f
mov esi, dword [0x52a8e8]
test esi, esi
je 0x409022
cmp byte [esi], bl
je 0x409015
push 0x104
lea eax, [esp + 0xc]
mov word [esp + 0xc], bx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp + 9], 0x3a
jne 0x409001
lea ecx, [esp + 8]
call fcn.00408111
push esi
call fcn.004c8d20
inc esi
add esi, eax
pop ecx
cmp byte [esi], bl
jne 0x408fdb
mov esi, dword [0x52a8e8]
push esi
call fcn.004c8ceb
pop ecx
mov dword [0x52a8e8], ebx
mov esi, dword [0x52a8e4]
test esi, esi
je 0x409077
cmp byte [esi], bl
je 0x40906a
push 0x104
lea eax, [esp + 0xc]
mov word [esp + 0xc], bx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp + 9], 0x3a
jne 0x409056
lea ecx, [esp + 8]
call fcn.00408111
push esi
call fcn.004c8d20
inc esi
add esi, eax
pop ecx
cmp byte [esi], bl
jne 0x409030
mov esi, dword [0x52a8e4]
push esi
call fcn.004c8ceb
pop ecx
mov dword [0x52a8e4], ebx
xor ebx, ebx
xor eax, eax
inc ebx
xor ecx, ecx
inc eax
mov edx, 0x52a9fc
lock cmpxchg dword [edx], ecx
mov ecx, dword [esp + 0x114]
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret

Function at 0x4090ab
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409101
push 0x47
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jne 0x4090fa
test byte [ebp - 4], 1
push 1
movzx ebx, bl
pop ecx
cmovne ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4096ae
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [0x51e80c], edi
je 0x40974b
push esi
push 0x800
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40974a
xor eax, eax
push eax
push 0x19
push esi
push eax
mov byte [esi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5c
push esi
call fcn.004cb88d
pop ecx
pop ecx
test eax, eax
je 0x40973a
inc eax
push 0x5c
push eax
call fcn.004cb88d
pop ecx
pop ecx
test eax, eax
je 0x40973a
push str.All_Users
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.K7_ComputingK7TSecurityK7AntiVirusQuarantine
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40973a
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x409945
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], edx
push 0x1000
mov ebx, ecx
mov esi, eax
push eax
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x409ae6
xor ecx, ecx
mov byte [edi], cl
mov ecx, edi
call fcn.00404c9d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409ad5
mov esi, dword [ebx]
xor eax, eax
push 0xfa0
lea ebx, [esi + 0x10]
push ebx
push 0xffffffffffffffff
push edi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
cmp word [ebx], ax
je 0x4099e8
push ebx
call fcn.004c96f6
mov dword [esi + 0xc], eax
pop ecx
mov dword [esi + 4], 0x4b374558
lea ecx, [eax*2 + 0x12]
mov dword [esi + 8], 0x1000007
mov eax, dword [ebp - 0x48]
mov dword [esi], ecx
add esi, ecx
inc dword [eax]
xor eax, eax
mov ecx, edi
mov byte [edi], al
call fcn.004096ae
cmp byte [edi], 0
je 0x409acd
lea eax, [ebp - 0x44]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x409a85
cmp byte [ebp - 0x44], 0
lea ebx, [ebp - 0x44]
je 0x409acd
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x409a74
mov al, byte [ebx]
xor ecx, ecx
push 0xfa0
mov byte [edi], al
lea eax, [esi + 0x10]
push eax
push 0xffffffffffffffff
mov word [eax], cx
xor eax, eax
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esi + 0x10]
xor ecx, ecx
cmp word [eax], cx
je 0x409a74
push eax
call fcn.004c96f6
pop ecx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x4b374558
lea ecx, [eax*2 + 0x12]
mov dword [esi + 8], 0x1000007
mov eax, dword [ebp - 0x48]
mov dword [esi], ecx
add esi, ecx
inc dword [eax]
push ebx
call fcn.004c8d20
inc ebx
add ebx, eax
pop ecx
cmp byte [ebx], 0
jne 0x409a17
jmp 0x409acd
push 0xfa0
lea ebx, [esi + 0x10]
xor eax, eax
push ebx
push 0xffffffffffffffff
push edi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
cmp word [ebx], ax
je 0x409acd
push ebx
call fcn.004c96f6
pop ecx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x4b374558
lea ecx, [eax*2 + 0x12]
mov dword [esi + 8], 0x1000007
mov eax, dword [ebp - 0x48]
mov dword [esi], ecx
add esi, ecx
inc dword [eax]
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
xor esi, esi
inc esi
push edi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x409af7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x12000
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x409ce7
mov dword [esi], ebx
lea ecx, [ebp - 0xc]
xor eax, eax
lea ebx, [esi + 4]
push edi
lea edi, [esi + 0x10000]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call fcn.00404a0c
cmp dword [ebp - 0xc], 0
je 0x409c8a
xor edx, edx
lea eax, [ebx + 0x400]
mov dword [ebp - 0x10], edx
mov ecx, edx
cmp eax, edi
jae 0x409c82
lea esi, [edi + 0x418]
mov byte [edi], dl
mov edx, ecx
mov ecx, dword [ebp - 0xc]
push edi
call fcn.00404a77
pop ecx
cmp eax, 1
jne 0x409c7c
push 0x7c
push edi
call fcn.004cb88d
pop ecx
pop ecx
test eax, eax
je 0x409c65
xor ecx, ecx
mov byte [eax], cl
inc eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x5078e8
push eax
call fcn.004015fb
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x409c65
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x409bcb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
cmp eax, 2
jb 0x409c67
cmp byte [eax + esi - 1], 0x5c
jne 0x409be8
mov byte [eax + esi - 1], dl
test dword [ebp - 8], 0x17c
je 0x409c65
push 0xfa0
lea eax, [ebx + 0x10]
xor ecx, ecx
push eax
push 0xffffffffffffffff
push esi
push 8
push edx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x409c22
push esi
lea eax, [ebx + 0x10]
push 0x5079bc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor edx, edx
cmp word [ebx + 0x10], dx
je 0x409c67
lea ecx, [ebx + 0x10]
call fcn.00409107
test al, al
je 0x409c3d
or dword [ebp - 8], 0x10000000
lea eax, [ebx + 0x10]
push eax
call fcn.004c96f6
pop ecx
mov ecx, dword [ebp - 8]
lea edx, [eax*2 + 0x12]
mov dword [ebx], edx
mov dword [ebx + 4], 0x4b374558
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
add ebx, edx
inc dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x400]
inc ecx
mov dword [ebp - 0x10], ecx
cmp eax, edi
jb 0x409b65
mov esi, dword [ebp - 0x14]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0xc]
call fcn.00404ac7
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00409437
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040919a
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00409750
cmp dword [ebp - 0x10], 0
pop ecx
pop edi
jne 0x409cc6
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00409945
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
sub ecx, esi
mov dword [esi], eax
call fcn.0041d71c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40a888
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov ebx, ecx
xorps xmm0, xmm0
push 0
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x1c], xmm0
call fcn.004c8af7
mov dword [esp], str..dmp
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40aa1d
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp byte [esp + 0x4c], 0x2e
je 0x40a961
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0040a86c
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jg 0x40a934
sub ecx, eax
cmp ecx, 0x278d00
jg 0x40a934
add esi, dword [esp + 0x40]
adc ebx, 0
jmp 0x40a961
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a903
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x40a988
cmp esi, 0x40000000
jb 0x40aa1d
push str..dmp
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40aa1d
cmp byte [esp + 0x4c], 0x2e
je 0x40aa06
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esi, dword [esp + 0x40]
sbb ebx, 0
jne 0x40aa06
cmp esi, 0x40000000
jb 0x40aa16
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a9c1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret

Function at 0x40ab8a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [0x51e84c], edi
je 0x40abe2
call fcn.0040a7fd
test eax, eax
je 0x40abe2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
push 0x40aa32
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x40abe2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x40abe9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40ac1c
push str.GetVolumePathNamesForVolumeNameA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51e8b4], eax
push esi
call fcn.0048d6a0
mov esi, 0x51e708
mov ecx, esi
call fcn.0048cba0
call fcn.00404560
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0x11c
push eax
call fcn.0049ab50
pop ecx
test eax, eax
je 0x40acb3
cmp dword [ebp - 0x260], 6
jb 0x40acb3
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x260], 6
mov dword [0x51e80c], ecx
jne 0x40ac9b
cmp dword [ebp - 0x25c], 3
mov eax, dword [0x51e84c]
cmovae eax, ecx
cmp dword [ebp - 0x25c], 2
mov dword [0x51e84c], eax
mov eax, dword [0x51e850]
cmovae eax, ecx
mov dword [0x51e850], eax
cmp dword [ebp - 0x25c], ecx
jb 0x40acb3
jmp 0x40acad
mov dword [0x51e850], ecx
mov dword [0x51e84c], ecx
mov dword [0x51e848], ecx
mov dword [0x51e704], ecx
call fcn.0040a77b
cmp dword [0x51e850], 0
mov dword [0x51e854], eax
je 0x40accd
mov eax, str.D:P_A__GA___SY__A__GR___WD__A__GR___AC_S:_ML__NW___S_1_16_0_
jmp 0x40ace1
cmp dword [0x51e80c], 0
mov eax, str.D:P_A__GA___SY__A__GR___WD_S:_ML__NW___S_1_16_0_
mov ecx, str.D:P_A__GA___SY__A__GR___WD_
cmove eax, ecx
push 0
xor edx, edx
mov dword [str.D:P_A__GA___SY__A__GR___WD_], eax
lea ecx, [ebp - 0x44]
call fcn.0048e2e0
lea eax, [ebp - 0x44]
mov dword [esp], 0x51e828
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
mov ecx, 0x51e824
call fcn.0048fd80
push str.K7NtyDsp.dll
push esi
lea eax, [ebp - 0x148]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [0x51e9d0], ecx
call fcn.00403001
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret
Function at 0x40ad55
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x668
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x664], eax
push esi
xor eax, eax
lea ecx, [esp + 0x254]
push edi
mov word [esp + 0x258], ax
call fcn.00404b0f
cmp word [esp + 0x258], 0
je 0x40ae3a
push 0x507af4
lea eax, [esp + 0x25c]
mov edi, 0x507afc
push eax
lea eax, [esp + 0x468]
push edi
push eax
call fcn.0040cf04
add esp, 0x10
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ae3a
test byte [esp + 8], 0x10
jne 0x40ae23
push 0x2e
pop eax
cmp ax, word [esp + 0x34]
je 0x40ae23
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x468]
push edi
push eax
call fcn.0040cf04
add esp, 0x10
lea eax, [esp + 0x460]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40add3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x40aff2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x210], ebx
test eax, eax
je 0x40b16b
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov byte [ebp - 0x108], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x108], bl
je 0x40b152
lea eax, [ebp - 0x105]
cmp dword [0x51e80c], ebx
je 0x40b059
push str.Users_
jmp 0x40b05e
push str.Documents_and_Settings_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.NetApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b152
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetUserEnum
push edi
call esi
push 0x507bac
push edi
mov dword [ebp - 0x21c], eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x218], edi
test eax, eax
je 0x40b158
test edi, edi
je 0x40b158
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x220], ebx
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
push 2
push 2
push ebx
call eax
test eax, eax
je 0x40b0f6
cmp eax, 0xea
jne 0x40b158
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x40b169
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40b158
mov edi, dword [ebp - 0x228]
push 0x104
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call fcn.004cb853
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x507908
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
inc edi
lea esi, [esi + 0x60]
add esp, 0x1c
add edi, eax
inc ebx
cmp ebx, dword [ebp - 0x214]
jb 0x40b110
xor ebx, ebx
inc ebx
mov edi, dword [ebp - 0x218]
cmp dword [ebp - 0x210], 0
je 0x40b169
push dword [ebp - 0x210]
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret