joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180086f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x180087da
push esi
xor esi, esi
cmp dword [ebx + 0xd8], esi
jne 0x180087c7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.180085da
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
je 0x18008762
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016536
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.18010809
test al, al
jne 0x1800876c
mov ecx, esi
call fcn.1800c9d0
test eax, eax
jns 0x1800876c
lea ecx, [esi - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.18006f52
jmp 0x180087d9
mov al, byte [ebx + 0x79]
push edi
push 0x20
mov byte [ebp - 8], al
call fcn.1811eb58
pop ecx
mov edx, eax
xor eax, eax
push 8
pop ecx
push dword [ebp - 8]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov ecx, edx
push edi
call fcn.18009353
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x180087b6
push edi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
call fcn.18006f52
pop edi
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x180087d9
push eax
mov ecx, ebx
call fcn.18009098
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18008974
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x7a], 1
jne 0x180089ba
lea ecx, [ebp - 8]
call fcn.18007eaf
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.180115b2
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18006f52
xor al, al
jmp 0x180089eb
cmp byte [esi + 0x50], 1
jne 0x180089c4
mov al, 1
jmp 0x180089eb
and dword [ebp - 0xc], 0
lea eax, [esi + 0x58]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push eax
call fcn.1801577d
mov ecx, esi
call fcn.180088ae
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.180157a8
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x18008d1a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x18008e79
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008d54
cmp dword [ebp + 0x10], 2
jg 0x18008e79
cmp dword [edi + 0xf8], 3
jg 0x18008e79
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
and dword [ebp - 8], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x58]
mov eax, dword [eax]
add dword [edi + 0xe8], 1
push 0
adc dword [edi + 0xec], 0
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x181623e8]
lea ecx, [edi + 0x58]
call esi
test al, al
jne 0x18008ddb
add dword [edi + 0xf0], 1
push 0x32
adc dword [edi + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x14
lea eax, [edi + 0x58]
jle 0x18008d8e
jmp 0x18008e10
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18008c2d
mov eax, dword [edi + 0x58]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x181623e8]
lea ecx, [edi + 0x58]
call esi
cmp dword [ebp - 0x10], 0x14
jle 0x18008e5c
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x181a07d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008e63
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push str.LOG_SYSTEM:_Couldnt_acquire_lock_after_max_retries__this_process_will_no_longer_log_
push eax
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffffe
push 0
push ebx
call fcn.18008c2d
jmp 0x18008e63
and dword [edi + 0xf8], 0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 0x14
Function at 0x18009353
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi], fcn.18009530
mov dword [edi + 4], 0x989680
mov word [edi + 8], bx
mov byte [edi + 0xa], al
mov byte [edi + 0xb], 1
call fcn.18006f7b
push eax
lea ecx, [edi + 0xc]
call fcn.1800768f
push esi
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], ebx
call fcn.180074da
mov dword [edi + 0x18], ebx
call fcn.18006f7b
push eax
lea ecx, [edi + 0x1c]
call fcn.1800768f
movzx ebx, byte [0x181d605a]
neg ebx
sbb ebx, ebx
and ebx, 0x181d5f50
je 0x18009433
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.18009127
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18009412
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x1800941c
xor eax, eax
mov dword [edi + 4], 0x989680
inc eax
lea edx, [ebx + 0x54]
mov byte [edi + 0xb], al
push edx
lea ecx, [edi + 0x1c]
call fcn.18009e6a
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 8

Function at 0x180094a9
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x1800952e
mov byte [esi + 8], 1
call fcn.1800955c
cmp dword [esi + 0x10], 0
je 0x1800952e
test al, al
je 0x180094c9
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18009b3e
test al, al
jne 0x180094f0
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.18009643
cmp dword [esi + 0x18], 0
jne 0x1800951b
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x1800952e
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x18009643
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.180110a7
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jbe 0x18009678
mov ecx, edi
call fcn.180097c3
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x180096b2
mov dword [edi + 0x18], esi
xor al, al
jmp 0x18009746
mov edx, ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016536
mov esi, dword [ebp - 8]
lea edx, [ebp - 9]
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 9], bl
call fcn.18010892
cmp byte [ebp - 9], 0
jne 0x18009713
mov ecx, dword [edi + 0x18]
call fcn.18007d98
test al, al
jne 0x18009713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800973c
cmp byte [edi + 0xb], 0
je 0x1800973c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 2
push 0x18174038
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1800973c
push dword [edi + 0x14]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.18006f52
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18009755
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x18009790
xor al, al
jmp 0x180097b4
cmp byte [esi + 0xb], bl
je 0x180097ab
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 2
push 0x18174038
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800984b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800997b
push 7
pop esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800997b
cmp dword [ebp - 0x6c], esi
jne 0x1800997b
push dword [ebp - 0x74]
call fcn.1811eb88
push dword [ebp - 0x74]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x80], esi
call fcn.18132f50
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18009970
mov edi, dword [ebp - 0x74]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18009970
cmp word [esi + edi*2 - 4], bx
jne 0x18009970
cmp word [esi + edi*2 - 2], bx
jne 0x18009970
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov dword [ebp - 0x70], ebx
push eax
mov edx, 0x181a0c54
call fcn.18009c32
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x1800995c
mov eax, dword [ebp - 0x80]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800995f
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x18009937
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.18006f52
mov esi, dword [ebp - 0x80]
push esi
call fcn.1811eb53
pop ecx
mov al, bl
jmp 0x1800997d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18009b3e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18009b4b
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18009b84
cmp eax, 0x80
je 0x18009b84
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18009b47
mov al, 1
pop esi
ret
Function at 0x1800a878
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x1800a8ae
lea esi, [edi + 4]
test esi, esi
je 0x1800a8ae
call fcn.1800a7d8
test al, al
je 0x1800a8ae
mov ecx, edi
call fcn.1800a7d8
test al, al
je 0x1800a8ae
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x1800a8b0
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x1800c9d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1800ca19
push edi
lea ecx, [ebp - 8]
call fcn.1800771c
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009eb8
test esi, esi
jne 0x1800ca3b
mov edi, 0x80004005
jmp 0x1800cae3
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.1800fb93
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800fa30
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1800ca61
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x1800ca63
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1800f92d
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.18010845
test al, al
jne 0x1800caa2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800caa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.18010845
test al, al
je 0x1800cac1
cmp ebx, 0xffffffff
je 0x1800cad8
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800fa30
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.18006f52
jmp 0x1800ca54
test edi, edi
jle 0x1800cace
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.18006f52
jmp 0x1800cae2
lea ecx, [esi - 0x10]
call fcn.18006f52
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1811e2a8
leave
ret
Function at 0x1800cafe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800cb25
mov eax, 0x80070057
jmp 0x1800cbd4
push edi
mov ecx, esi
call fcn.18007526
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x1800cbb5
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800cb6a
mov edx, str.ProgramFiles
jmp 0x1800cb80
cmp ecx, 0x1c
jne 0x1800cb76
mov edx, str.LocalAppData
jmp 0x1800cb80
cmp ecx, 0x23
jne 0x1800cba1
mov edx, str.ProgramData
lea ecx, [ebp - 0x210]
call fcn.1800dad3
push eax
mov ecx, esi
call fcn.18009e6a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800cbae
xor eax, eax
inc eax
jmp 0x1800cbd3
lfence
mov eax, edi
jmp 0x1800cbd3
lea eax, [ebp - 0x20c]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180075cd
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x1800cbe2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x260]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x264], edi
call fcn.18132f50
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
add esp, 0xc
push edi
call fcn.180074da
push 0x181a0eac
lea ecx, [ebp - 0xc]
call fcn.1800f7d5
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cc53
call fcn.1801baa5
mov edi, eax
jmp 0x1800ccf5
xor ebx, ebx
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push edi
call fcn.180074da
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 8]
call fcn.1800f7d5
lea eax, [ebp - 0x234]
push 0x181a0eb4
push eax
call fcn.1813a922
pop ecx
pop ecx
test eax, eax
je 0x1800ccba
lea eax, [ebp - 0x234]
push 0x181a0e40
push eax
call fcn.1813a922
pop ecx
pop ecx
test eax, eax
je 0x1800ccba
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800d0b0
test eax, eax
jns 0x1800ccaf
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [ebp - 0x264]
jmp 0x1800ccc0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f52
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800ccfc
test edi, edi
jle 0x1800ccf5
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800cd05
jmp 0x1800ccfe
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800cd21
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push 0x250
mov edi, ecx
mov dword [ebp - 0x264], ebx
push ebx
push eax
mov dword [ebp - 0x268], edi
call fcn.18132f50
add esp, 0xc
mov dword [ebp - 8], ebx
lea ecx, [ebp - 8]
push edi
call fcn.180074da
push 0x5c
lea ecx, [ebp - 8]
call fcn.18009f07
mov esi, 0x181a0ebc
push esi
call fcn.18136fa0
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f34
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800cdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce53
call fcn.1801baa5
mov ebx, eax
jmp 0x1800ce53
test byte [ebp - 0x260], 0x10
jne 0x1800ce1e
push dword [ebp - 0x268]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.180074da
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.18009f07
lea eax, [ebp - 0x234]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f34
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800ce16
mov ecx, esi
call fcn.18010a65
mov dword [ebp - 0x264], eax
lea ecx, [esi - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce44
call fcn.1801baa5
mov esi, eax
jmp 0x1800ce4a
mov esi, dword [ebp - 0x264]
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800ce70
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x264], edi
test edi, edi
je 0x1800d09c
movzx eax, word [edi]
test ax, ax
je 0x1800d09c
push 0x2e
xor cl, cl
mov dword [ebp - 8], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800cedf
cmp dx, 0x2f
je 0x1800cedf
cmp dx, word [ebp - 8]
je 0x1800cedf
cmp dx, bx
je 0x1800cecf
mov cl, 1
jmp 0x1800cedf
mov cl, al
cmp esi, edi
jbe 0x1800cedf
cmp word [esi - 2], bx
je 0x1800d09c
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800ceb2
test cl, cl
je 0x1800d09c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800cf29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800cf1f
xor eax, eax
jmp 0x1800d0a1
call fcn.1801baa5
jmp 0x1800d0a1
and eax, 0x410
cmp eax, 0x10
jne 0x1800d09c
mov ecx, edi
call fcn.1800cd21
push 0x250
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.18132f50
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0xc
push edi
call fcn.180074da
mov esi, 0x181a0ec0
push esi
call fcn.18136fa0
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f34
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800d08d
call fcn.1801baa5
test ebx, ebx
jns 0x1800d08b
jmp 0x1800d08d
test byte [ebp - 0x260], 0x10
je 0x1800d054
push 0
push 2
mov edx, 0x181a0e40
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
push 0
push 3
mov edx, 0x181a0eb4
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push edi
call fcn.180074da
mov edi, 0x181a01a8
push edi
call fcn.18136fa0
pop ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.18009f34
lea eax, [ebp - 0x234]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f34
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.1800ce70
test ebx, ebx
js 0x1800d046
test eax, eax
jns 0x1800d046
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006f52
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cfb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800d08d
mov ecx, edi
call fcn.18010a65
test ebx, ebx
js 0x1800d08d
test eax, eax
jns 0x1800d08d
mov ebx, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
jmp 0x1800d0a1
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret