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

Disassembly:
mov eax, 0x43ff84
call fcn.0041d644
sub esp, 0x18
push ebx
push esi
push edi
push str.BOOTSECT.DAT
lea ecx, [ebp - 0x24]
call fcn.00436118
xor edi, edi
push str.COMMAND.COM
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00436118
push str.IO.SYS
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00436118
push str.MSDOS.SYS
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00436118
mov byte [ebp - 4], 3
lea esi, [ebp - 0x24]
push str.commonmsdos_
lea eax, [ebp - 0x14]
push 0x45b9b0
push eax
call fcn.004362f3
push esi
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.0043628d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x10]
sete bl
call fcn.004360aa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004360aa
test bl, bl
jne 0x410367
inc edi
add esi, 4
cmp edi, 4
jb 0x4102d2
push 1
pop esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004360aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004360aa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004360aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor esi, esi
jmp 0x410326
Function at 0x4109c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410a21
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x45b8a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410a14
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x410a23
xor eax, eax
pop esi
leave
ret 4

Function at 0x41130e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x1c], esi
lea ecx, [edi + 0x1c]
jne 0x41135a
mov eax, dword [edi + 0xc]
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x411389
lea ecx, [ebp - 0xc]
push ecx
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411371
lea eax, [ebp - 0x1c]
push eax
call fcn.004312e9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [edi + 0x10]
push esi
push esi
push 3
push esi
push esi
push 0x40000000
push edi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41138d
xor eax, eax
jmp 0x4113a4
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4118b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4118c9
call fcn.00411958
lea eax, [ebp - 8]
push ebx
push eax
push 0x20019
push 0
push str.SOFTWARESymantecInstalledApps
push 0x80000002
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x45718c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
jne 0x411955
mov eax, dword [ebp - 4]
push str.NAVAP32.DLL
lea eax, [ebp + eax - 0x209]
push eax
call fcn.0041ed10
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x411955
push str._gretz4_0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411955
call eax
pop esi
leave
ret
Function at 0x412a6e
Capabilities:
Move file

Disassembly:
mov eax, 0x4403d8
call fcn.0041d644
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push eax
call fcn.0043628d
mov edi, dword [eax]
and dword [ebp - 4], 0
add esi, 4
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 8]
push eax
call fcn.0043628d
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, eax
lea ecx, [ebp - 0x10]
neg ebx
sbb bl, bl
inc bl
call fcn.004360aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004360aa
test bl, bl
je 0x412ad2
xor eax, eax
jmp 0x412adf
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00436197
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x413337
Capabilities:
Get file size

Disassembly:
mov eax, 0x440560
call fcn.0041d644
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x14], esi
jne 0x413428
lea eax, [ebp - 0x20]
push eax
call fcn.004089d7
mov ebx, eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
mov dword [ebp - 4], esi
call fcn.004089bc
push eax
lea eax, [ebp - 0x18]
push 0x45b9b0
push eax
mov byte [ebp - 4], 1
call fcn.0043628d
push 0x4554ac
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.004362f3
push ebx
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.0043628d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004360aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004360aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004360aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004360aa
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413401
or dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
call fcn.004360aa
xor eax, eax
jmp 0x41342b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
shr esi, 9
inc esi
shl esi, 9
mov dword [edi + 0x14], esi
call fcn.004360aa
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413711
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x44059b
call fcn.0041d644
sub esp, 0x148
mov eax, dword [0x457f44]
push ebx
push esi
lea esi, [ecx + 4]
push edi
mov dword [ebp - 0x14], ecx
mov dword [esi], eax
and dword [ebp - 4], 0
mov dword [ecx], vtable.CTempDir.0
mov eax, dword [0x457f44]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov edi, 0x104
push edi
mov ecx, esi
mov ebx, edi
call fcn.0043648e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.004364dd
cmp ebx, edi
jb 0x41374c
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x10]
push edx
push dword [esi]
push str._sgho_d
push eax
call fcn.00430c1d
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
call ebx
cmp eax, 0xffffffff
je 0x4137db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call edi
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x10]
push edx
push dword [esi]
push str._sgho_d
push eax
call fcn.00430c1d
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
jmp 0x4137a2
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4137f8
push 0x45b8a8
mov ecx, esi
call fcn.004361e7
jmp 0x413803
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00436197
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413890
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x4405d0
call fcn.0041d644
sub esp, 0x148
push esi
push edi
mov eax, dword [0x457f44]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x154]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x413990
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s
push eax
call fcn.00430c1d
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x413983
cmp byte [ebp - 0x128], 0x2e
je 0x413968
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.00430c1d
mov eax, dword [ebp - 0x154]
add esp, 0x10
test al, 0x10
je 0x413946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00435e1f
call fcn.00413890
pop ecx
jmp 0x413964
test al, 1
je 0x41395b
xor eax, 1
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41397c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41397c
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x413980
jmp 0x413901
xor esi, esi
jmp 0x413993
push esi
call edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x41397c
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004360aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

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

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413b14
push dword [esi + 0xc]
push 0x3f7
push 0x45b9a0
call fcn.00430c30
add esp, 0xc
xor eax, eax
pop esi
ret
push 1
mov dword [esi + 4], 0x4e20
pop eax
pop esi
ret
Function at 0x413b33
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, 0x440650
call fcn.0041d644
sub esp, 0x68
mov eax, dword [0x457f44]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [esi + 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00410cf9
test eax, eax
jne 0x413b56
xor esi, esi
jmp 0x413cdc
push edi
push 0x44
pop edi
lea eax, [ebp - 0x74]
push edi
push ebx
push eax
call fcn.0041dd00
mov ecx, dword [0x457f44]
add esp, 0xc
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], 6
push 1
mov dword [ebp - 0x10], ecx
pop eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], al
push eax
lea edi, [esi + 0xc]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004307fd
mov eax, dword [eax]
push 0x456be0
push eax
call fcn.0041db64
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004360aa
cmp dword [ebp - 0x1c], ebx
je 0x413bc6
push dword [edi]
lea eax, [ebp - 0x10]
push str.__s_
push eax
call fcn.00430c1d
add esp, 0xc
jmp 0x413bcf
push edi
lea ecx, [ebp - 0x10]
call fcn.00436197
push dword [esi + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str._s__s
push eax
call fcn.00430c1d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.00432bb3
push dword [ebp - 0x14]
mov edi, eax
push edi
call fcn.0041ed10
add esp, 0x1c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x413c35
push 0x40c
mov ecx, 0x45b9a0
call fcn.004365f1
push edi
call fcn.00432bdc
pop ecx
xor esi, esi
jmp 0x413cd0
push edi
call fcn.00432bdc
pop ecx
lea edi, [esi + 0x14]
push ebx
mov ecx, dword [ebp + 8]
push edi
call fcn.00410cf9
test eax, eax
je 0x413c65
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413c81
push ebx
jmp 0x413c40
push 0x3ef
mov ecx, 0x45b9a0
call fcn.004365f1
push 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x413c2e
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x413cb9
push 0x40d
mov ecx, 0x45b9a0
call fcn.004365f1
jmp 0x413c2e
push dword [esi + 4]
mov ecx, dword [ebp + 8]
push edi
call fcn.00410cf9
test eax, eax
je 0x413c2e
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004360aa
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413cfa
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x440684
call fcn.0041d644
sub esp, 0x154
mov eax, dword [0x457f44]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
and dword [ebp - 4], edi
push 0x45550c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004362f3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00436197
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004360aa
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x413e1f
push esi
test byte [ebp - 0x160], 0x10
je 0x413dee
cmp byte [ebp - 0x134], 0x2e
jne 0x413d86
cmp byte [ebp - 0x133], 0
jne 0x413dfd
add edi, 0x200
jmp 0x413dfd
push 0x4554ac
lea ecx, [ebp - 0x1c]
call fcn.00436118
mov esi, eax
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.004362f3
push esi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0043628d
push eax
mov byte [ebp - 4], 4
call fcn.00413cfa
pop ecx
add edi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004360aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004360aa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004360aa
jmp 0x413dfd
mov eax, dword [ebp - 0x140]
shr eax, 9
inc eax
shl eax, 9
add edi, eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413d5f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x41453f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 0
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0xc], eax
call fcn.00410cf9
test eax, eax
je 0x4145da
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esi, [edi + 0x10]
call ebx
cmp eax, 0xffffffff
je 0x414581
test al, 2
je 0x414581
and al, 0xfd
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push 0x4573e8
push eax
call fcn.0041d88f
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x414621
push dword [edi + 0xc]
call fcn.0041da60
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov dword [ebp - 8], eax
push eax
push 1
push edi
call fcn.0041d725
add esp, 0x14
cmp eax, dword [ebp - 8]
push dword [ebp - 4]
je 0x4145e3
call fcn.0041d6a8
pop ecx
push dword [esi]
push 0x3fb
push 0x45b9a0
call fcn.00430c30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.0041d6a8
pop ecx
push 0
mov ecx, esi
push dword [0x45b9b0]
call fcn.004308a5
test eax, eax
jne 0x41460b
mov esi, dword [esi]
push esi
call ebx
or al, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00410cf9
neg eax
sbb eax, eax
neg eax
jmp 0x4145dc
call fcn.0041f6ef
cmp dword [eax], 0xd
jne 0x4145c6
push dword [esi]
push 0x421
jmp 0x4145cd
Function at 0x4148d0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4407c8
call fcn.0041d644
sub esp, 0x158
mov eax, dword [0x457f44]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
lea esi, [edi + 0x14]
push 0x45550c
lea eax, [ebp - 0x10]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.004362f3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00436197
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004360aa
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x414a0b
test byte [ebp - 0x164], 0x10
je 0x4149e7
lea eax, [ebp - 0x138]
push str.common
push eax
call fcn.00424100
pop ecx
test eax, eax
pop ecx
je 0x4149e7
cmp byte [ebp - 0x138], 0x2e
je 0x4149e7
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00436118
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004362f3
push 0x4554ac
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.004362f3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
push ecx
push eax
call fcn.0041279a
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004360aa
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004360aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004360aa
cmp dword [ebp - 0x18], ebx
je 0x4149e7
lea eax, [ebp - 0x18]
lea ecx, [edi + 4]
push eax
call fcn.0040a108
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414938
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417cd4
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4411ec
call fcn.0041d644
sub esp, 0x14c
mov eax, dword [0x457f44]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
push str.setup.
lea eax, [ebp - 0x18]
xor ebx, ebx
push 0x45b9ac
push eax
mov dword [ebp - 4], ebx
call fcn.004362f3
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00436197
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004360aa
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x14b
push dword [edi + 0x134]
call esi
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x417d92
test byte [ebp - 0x158], 0x10
je 0x417d75
cmp byte [ebp - 0x12c], 0x2e
je 0x417d75
lea eax, [ebp - 0x12c]
push eax
push ebx
push 0x143
push dword [edi + 0x134]
call esi
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417d4e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 0x14e
push dword [edi + 0x134]
call esi
push ebx
push ebx
push 0x146
push dword [edi + 0x134]
call esi
cmp eax, 1
jle 0x417dd7
push 5
lea ecx, [edi + 0x118]
call fcn.0043587f
push 5
push 0x482
mov ecx, edi
call fcn.00435719
mov ecx, eax
call fcn.0043587f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418c38
push 0x422
mov ecx, 0x45b9a0
call fcn.004365f1
xor eax, eax
pop esi
ret
cmp dword [esi + 0x3c], 0
mov eax, 0x4e20
jne 0x418c48
mov eax, 0x186a0
push 1
mov dword [esi + 4], eax
pop eax
pop esi
ret
Function at 0x41a681
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, 0x4419d0
call fcn.0041d644
push ecx
push ecx
mov eax, dword [0x457f44]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push dword [esi + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0xc07
push eax
call fcn.00430c30
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00410cf9
test eax, eax
jne 0x41a6b8
xor esi, esi
jmp 0x41a74f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a70e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41a70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004049b5
pop ecx
pop ecx
push dword [eax]
mov byte [ebp - 4], 1
push dword [esi + 0xc]
push 0x41d
push 0x45b9a0
call fcn.00430c30
and byte [ebp - 4], 0
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.004360aa
jmp 0x41a6b1
mov esi, dword [esi + 4]
push ebx
push 1
push esi
lea ecx, [ebp - 0x14]
call fcn.004303d3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.00410cf9
mov ebx, eax
lea ecx, [ebp - 0x14]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.004360aa
test bl, bl
pop ebx
jne 0x41a6b1
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41c225
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x441e78
call fcn.0041d644
sub esp, 0x24
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004118b3
cmp dword [esi + 4], edi
jne 0x41c2ad
push 0x1c
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0041dd00
mov eax, dword [esi + 8]
add esp, 0xc
dec eax
je 0x41c26d
dec eax
je 0x41c268
or eax, 0xffffffff
jmp 0x41c26f
push 1
pop eax
jmp 0x41c26f
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x30]
push 0x1c
push eax
lea eax, [ebp - 0x30]
push 0x1c
push eax
push 3
mov dword [ebp - 0x28], 1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x41c300
test byte [ebp - 0x18], 1
je 0x41c2fd
jmp 0x41c300
push ebx
mov ebx, dword [esi + 8]
mov ecx, esi
call fcn.0041c20a
push ebx
mov ecx, esi
call fcn.0041c19f
test eax, eax
pop ebx
je 0x41c300
movzx eax, word [esi + 0x10]
imul eax, dword [ebp + 8]
push edi
push edi
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c300
lea eax, [ebp - 0x14]
push edi
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp + 0xc]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c300
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00411958
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8