joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd2bf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xd2bffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd2c035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00d2be00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xd2bfc5
mov edi, 0xd468b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd2c035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00d2be00
add edi, 4
add esp, 0xc
cmp edi, 0xd468c0
jb 0xd2c000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xd2c070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00d32082
mov esi, eax
add esp, 8
test esi, esi
je 0xd2c107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xd2c102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00d31946
add esp, 8
test eax, eax
je 0xd2c0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xd2c0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00d31946
add esp, 8
test eax, eax
jne 0xd2c0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xd2c102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xd2cf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd419fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd2d002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d30dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd2d002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d286e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d3120b
push 0x10
call fcn.00d311d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd2cfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d1d1c0
jmp 0xd2cfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d2cb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd2cff0
mov ecx, edi
call fcn.00d1d2c0
push edi
call fcn.00d311c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd2d021
inc ebx
cmp ebx, 0x20
jb 0xd2cf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd2e250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd42808
push 0xd32288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd2e329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd2e329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d311d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd2e329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd2e329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd2e32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d2e351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd2ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd2ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd2ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd2ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd2ed94
push eax
push esi
call fcn.00d3120b
add esp, 8
pop esi
ret 0x10

Function at 0xd2eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd2ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd2ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd47320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d30dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd2edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd2ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd2eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd2eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd47320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d30dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd2eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd2ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd2f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd2f131
push esi
call fcn.00d32145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d21080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd2f131
push 0
push ebp
call fcn.00d213a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d21260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd2f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d212f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd2f121
push 0xd47918
push edi
call fcn.00d303f0
push eax
push ebx
push esi
call fcn.00d2ef60
push 0xd478f8
push edi
call fcn.00d303f0
push eax
push ebx
push esi
call fcn.00d2ef60
push 0xd478d8
push edi
call fcn.00d303f0
push eax
push ebx
push esi
call fcn.00d2ef60
push 0xd478c0
push edi
call fcn.00d303f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d2ef60
push 0xd478a0
push edi
call fcn.00d303f0
push eax
push ebx
push esi
call fcn.00d2ef60
push 0xd47888
push edi
call fcn.00d303f0
push eax
push ebx
push esi
call fcn.00d2ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd301b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d30140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d30140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d30140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d30140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd30bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd30c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd4287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd30c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd30c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4237b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040601c
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x4237b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4237b0], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x402f1f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f4b
mov ecx, dword [0x423758]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4168a4], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040303a
cmp eax, esi
jl 0x403034
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.004059fa
test eax, eax
je 0x403020
push dword [ebp + 8]
add dword [0x4168a4], 4
call fcn.0040303a
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403034
cmp dword [ebp + 0x10], esi
jne 0x402ffc
cmp dword [ebp + 8], esi
jle 0x403031
mov esi, 0x4128a0
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fb1
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.004059fa
test eax, eax
je 0x403020
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff8
cmp dword [ebp + 0x14], edi
jne 0x402ff8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4168a4], eax
cmp dword [ebp + 8], 0
jg 0x402fa0
jmp 0x403031
push 0xfffffffffffffffe
jmp 0x403022
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403007
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403025
push 0xfffffffffffffffd
pop eax
jmp 0x403034
mov eax, dword [ebp - 4]
add dword [0x4168a4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4168a4]
sub esi, dword [0x40a810]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42370c], eax
jle 0x4031a4
push dword [0x41e8b4]
call fcn.004031cc
push ebx
push ebx
push dword [0x40a810]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e8b0], esi
mov dword [0x4168a0], ebx
mov ebp, 0x40a8a0
mov eax, dword [0x4168a8]
mov edi, 0x4000
sub eax, dword [0x41e8b4]
cmp eax, edi
jg 0x4030af
mov edi, eax
mov esi, 0x4128a0
push edi
push esi
call fcn.004031b6
test eax, eax
je 0x403196
add dword [0x41e8b4], edi
mov dword [0x40a830], esi
mov dword [0x40a834], edi
cmp dword [0x423710], ebx
je 0x403106
cmp dword [0x4237a0], ebx
jne 0x403106
mov eax, dword [0x41e8b0]
push ebx
sub eax, dword [0x4168a4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a810]
mov dword [0x4168a0], eax
call fcn.00402bda
pop ecx
mov ecx, 0x40a818
mov dword [0x40a838], ebp
mov dword [0x40a83c], 0x8000
call fcn.0040611c
test eax, eax
jl 0x40319f
mov esi, dword [0x40a838]
sub esi, ebp
je 0x403160
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp esi, dword [esp + 0x10]
jne 0x40319b
add dword [0x40a810], esi
cmp dword [0x40a834], ebx
jne 0x4030d5
jmp 0x40316c
cmp dword [0x40a834], ebx
jne 0x40319f
cmp edi, ebx
je 0x40319f
mov eax, dword [0x4168a4]
mov ecx, eax
sub ecx, dword [0x40a810]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403099
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a4
or eax, 0xffffffff
jmp 0x4031ae
push 0xfffffffffffffffe
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ae
push 1
call fcn.00402bda
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4054a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421500], 0x44
push eax
xor eax, eax
push 0x421500
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054df
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405569
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040595d
mov edi, eax
cmp edi, 0xffffffff
je 0x4055aa
test byte [esp + 0x10], 1
push esi
je 0x40558c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405592
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40559b
xor eax, eax
inc eax
jmp 0x4055ac
test byte [esp + 0x10], 4
jne 0x4055aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055b1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040586f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x40577a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40560a
test eax, eax
je 0x405728
test bl, 2
je 0x405728
mov esi, 0x420d00
push edi
push esi
call fcn.00405cf1
cmp dword [ebp + 8], 0
je 0x405629
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40562f
push edi
call fcn.004057c8
cmp byte [edi], 0
jne 0x40563d
cmp byte [0x420d00], 0x5c
jne 0x405648
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40571e
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057ac
cmp byte [eax], 0
je 0x40568e
cmp byte [ebp - 0x1c], 0
je 0x40568e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056a4
mov al, byte [esi + 1]
test al, al
je 0x4056fd
cmp al, 0x2e
jne 0x4056a4
cmp byte [esi + 2], 0
je 0x4056fd
push esi
push ebx
call fcn.00405cf1
test byte [ebp - 0x14c], 0x10
je 0x4056c9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056fd
push dword [ebp + 0xc]
push edi
call fcn.004055b1
jmp 0x4056fd
push dword [ebp - 4]
push edi
call fcn.00405569
test eax, eax
jne 0x4056f5
cmp dword [ebp - 4], eax
je 0x4056ed
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push 0
push edi
call fcn.00405ba5
jmp 0x4056fd
inc dword [0x423788]
jmp 0x4056fd
push edi
push 0xfffffffffffffff2
call fcn.00404fdc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40566c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405728
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40577a
cmp dword [ebp - 0xc], esi
jne 0x40573c
inc dword [0x423788]
jmp 0x40577a
push edi
call fcn.00405ff5
test eax, eax
je 0x40577a
push edi
call fcn.00405781
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405569
test eax, eax
jne 0x405772
cmp dword [ebp - 4], esi
je 0x405734
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push esi
push edi
call fcn.00405ba5
jmp 0x40577a
push edi
push 0xffffffffffffffe5
call fcn.00404fdc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40586f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421100
push esi
call fcn.00405cf1
push esi
call fcn.0040581a
mov edi, eax
test edi, edi
jne 0x405890
xor eax, eax
jmp 0x4058e2
push edi
call fcn.00405f5c
test byte [0x423718], 0x80
je 0x4058a9
mov al, byte [edi]
test al, al
je 0x40588c
cmp al, 0x5c
je 0x40588c
sub edi, esi
jmp 0x4058c1
call fcn.00405ff5
test eax, eax
je 0x4058bb
test byte [eax], 0x10
je 0x40588c
push esi
call fcn.004057c8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058ad
call fcn.00405781
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40595d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40597c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405982
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40939c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059f6
test edi, edi
jne 0x4059bc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059f0