joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.18009d8f
mov edi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x18008483
push edx
lea ecx, [ebp - 4]
call fcn.1800706e
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.18009d8f
call fcn.18014d11
test al, al
jne 0x180084a6
call fcn.180131fb
test al, al
jne 0x180084a6
push 0x1c
mov esi, 0x181f3ad0
jmp 0x180084ad
push 0x23
mov esi, str.MicrosoftEdgeUpdateLog
pop ebx
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18006f63
push edi
xor eax, eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x18008502
mov ecx, dword [ebp + 8]
push 0x181ca2ec
call fcn.18006e68
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18009db6
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800694d
mov eax, dword [ebp + 8]
jmp 0x18008555
mov esi, dword [ebp - 8]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x18008523
mov ecx, dword [ebp + 8]
push 0x181ca2ec
call fcn.18006e68
lea ecx, [esi - 0x10]
jmp 0x180084e3
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18009f92
mov edi, dword [ebp + 8]
lea ecx, [esi - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.1800694d
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18009db6
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800694d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18008652
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x1800871b
mov eax, dword [ebx + 0xd8]
push esi
push edi
test eax, eax
jne 0x18008711
lea eax, [ebp - 4]
push eax
call fcn.1800855c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x180086b2
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.180144c1
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800f1f5
test al, al
jne 0x180086bc
mov ecx, edi
call fcn.1800bca2
test eax, eax
jns 0x180086bc
lea ecx, [edi - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
jmp 0x18008719
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.18160e88
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.180090c5
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x180086f7
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800fd5e
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x18008719
push eax
mov ecx, ebx
call fcn.18008ea8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18008bb2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
test esi, esi
je 0x18008cc6
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008bd8
cmp dword [ebp + 0x10], 2
jg 0x18008cc6
cmp dword [edi + 0xf8], 3
jg 0x18008cc6
lea ecx, [ebp + 8]
call fcn.18009d8f
lea ecx, [ebp + 0x14]
call fcn.18009d8f
mov dword [ebp - 4], 1
lea ecx, [edi + 0x58]
mov eax, dword [ecx]
add dword [edi + 0xe8], 1
push 0
adc dword [edi + 0xec], 0
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x18008c87
add dword [edi + 0xf0], 1
push 0x32
adc dword [edi + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x58]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x14
jle 0x18008bff
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x181f3da0
call esi
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008cb0
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, edi
push str.LOG_SYSTEM:_Couldnt_acquire_lock_after_max_retries__this_process_will_no_longer_log_
push eax
lea eax, [ebp + 8]
push eax
push 0xfffffffffffffffe
push 0
push ebx
call fcn.18008ade
jmp 0x18008cb0
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, edi
push esi
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18008ade
lea ecx, [edi + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
and dword [edi + 0xf8], 0
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x180090c5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
mov dword [ebx], fcn.18009271
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18009d8f
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006e68
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
call fcn.18009d8f
movzx eax, byte [0x182340f3]
neg eax
sbb eax, eax
and eax, 0x18233ff0
mov dword [ebp + 8], eax
je 0x1800918d
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.18008f37
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18009168
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x18009172
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.18009d41
lea ecx, [esi - 0x10]
call fcn.1800694d
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x180091ee
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x1800926f
mov byte [esi + 8], 1
call fcn.1800929d
cmp dword [esi + 0x10], 0
je 0x1800926f
test al, al
je 0x1800920e
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.180099d7
test al, al
jne 0x18009235
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800fd5e
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.180094c6
cmp dword [esi + 0x18], 0
jne 0x1800925c
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800fd5e
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x1800926f
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x180094c6
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x70], 0
lea edx, [ebp - 0x70]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.1800f8d0
mov eax, dword [ebp - 0x70]
cmp eax, dword [edi + 4]
jbe 0x180094fe
mov ecx, edi
call fcn.180096a6
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 0x18009538
mov dword [edi + 0x18], esi
xor al, al
jmp 0x1800963e
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.180144c1
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x69]
mov ecx, esi
mov byte [ebp - 0x69], 1
call fcn.1800f27e
cmp byte [ebp - 0x69], 0
jne 0x1800960c
mov ecx, dword [edi + 0x18]
call fcn.18007dde
test al, al
jne 0x1800960c
lea ecx, [ebp - 0x90]
call fcn.18007817
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x181f3770
push eax
call fcn.1800749c
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x90]
push 0
push 0xc0010000
push eax
call fcn.18007884
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.1800756d
test bl, bl
je 0x180095cf
xor ebx, ebx
lea eax, [ebp - 0x90]
push ecx
mov ecx, dword [edi + 0x14]
inc ebx
push eax
mov edx, ebx
call fcn.18007da2
pop ecx
pop ecx
jmp 0x180095d2
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180095ff
cmp byte [edi + 0xb], 0
je 0x180095ff
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push 0
push eax
push 2
push 0x181cb6c8
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x90]
call fcn.1800785d
jmp 0x18009634
push dword [ebx]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.1800fd5e
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.1800694d
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

Function at 0x1800964d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x1800967d
xor al, al
jmp 0x180096a1
cmp byte [esi + 0xb], bl
je 0x18009698
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x181cb6c8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18009711
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x70], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x74]
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 - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800983c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x1800983c
cmp dword [ebp - 0x78], esi
jne 0x1800983c
push dword [ebp - 0x6c]
call fcn.18160eb8
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x7c], esi
call fcn.181757a0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x18009831
mov edi, dword [ebp - 0x6c]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18009831
cmp word [esi + edi*2 - 4], bx
jne 0x18009831
cmp word [esi + edi*2 - 2], bx
jne 0x18009831
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov edx, 0x181f4224
push eax
call fcn.18009af3
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x1800981d
mov eax, dword [ebp - 0x7c]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18009820
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x180097f8
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.1800694d
mov esi, dword [ebp - 0x7c]
push esi
call fcn.18160e83
pop ecx
mov al, bl
jmp 0x1800983e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

Function at 0x180099d7
Capabilities:
Print debug messages

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

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

Function at 0x1800bca2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.18009d8f
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov ecx, 0x104
mov edx, dword [eax - 8]
sub esi, dword [eax - 4]
sub edx, ecx
or esi, edx
jge 0x1800bcd6
push ecx
lea ecx, [ebp - 4]
call fcn.1800706e
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18009db6
test esi, esi
jne 0x1800bcf8
mov edi, 0x80004005
jmp 0x1800bd9c
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.1800e806
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.1800e669
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1800bd1e
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x1800bd20
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.1800e56d
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.1800f231
test al, al
jne 0x1800bd5b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800bd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.1800f231
test al, al
je 0x1800bd7a
cmp ebx, 0xffffffff
je 0x1800bd91
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.1800e669
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.1800694d
jmp 0x1800bd11
test edi, edi
jle 0x1800bd87
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.1800694d
jmp 0x1800bd9b
lea ecx, [esi - 0x10]
call fcn.1800694d
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800694d
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1800bdad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800bdd4
mov eax, 0x80070057
jmp 0x1800be74
push edi
mov ecx, esi
call fcn.18006ec7
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.181757a0
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 0x1800be55
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800be19
mov edx, str.ProgramFiles
jmp 0x1800be23
cmp ecx, 0x1c
jne 0x1800be44
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800cc21
push eax
mov ecx, esi
call fcn.18009d41
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800be51
xor eax, eax
inc eax
jmp 0x1800be73
mov eax, edi
jmp 0x1800be73
lea eax, [ebp - 0x20c]
push eax
call fcn.18179019
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.18006f63
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

Function at 0x1800be82
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1822b00c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [esp + 0x1c]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
call fcn.181757a0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006e68
push 0x181f44d4
lea ecx, [esp + 0x14]
call fcn.1800e48e
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800bef4
call fcn.18018dce
mov edi, eax
jmp 0x1800bf86
push edi
lea ecx, [esp + 0x10]
call fcn.18006e68
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.1800e48e
lea eax, [esp + 0x44]
push 0x181f44dc
push eax
call fcn.1817c9a2
pop ecx
pop ecx
test eax, eax
je 0x1800bf50
lea eax, [esp + 0x44]
push 0x181f4480
push eax
call fcn.1817c9a2
pop ecx
pop ecx
test eax, eax
je 0x1800bf50
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800c344
test eax, eax
jns 0x1800bf47
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1800bf57
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.1800694d
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800bf8d
test edi, edi
jle 0x1800bf86
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800bf96
jmp 0x1800bf8f
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181605f4
mov esp, ebp
pop ebp
ret
Function at 0x1800bfb9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [ebp - 0x258]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x264], esi
call fcn.181757a0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push esi
call fcn.18006e68
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18009e05
mov edi, 0x181f44e4
push edi
call fcn.18179019
pop ecx
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.18009e32
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800c055
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800c0ea
call fcn.18018dce
mov ebx, eax
jmp 0x1800c0ea
test byte [ebp - 0x258], 0x10
jne 0x1800c0bf
push esi
lea ecx, [ebp - 0x260]
call fcn.18006e68
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18009e05
lea eax, [ebp - 0x22c]
push eax
call fcn.18179019
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18009e32
mov esi, dword [ebp - 0x260]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800c0b1
mov ecx, esi
call fcn.1800f45e
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.1800694d
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800c055
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800c0e3
call fcn.18018dce
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret
Function at 0x1800c109
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1822b00c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x1800c32a
movzx eax, word [edi]
test ax, ax
je 0x1800c32a
push 0x2e
xor cl, cl
mov dword [esp + 0x10], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800c17f
cmp dx, 0x2f
je 0x1800c17f
cmp dx, word [esp + 0xc]
je 0x1800c17f
cmp dx, bx
je 0x1800c16f
mov cl, 1
jmp 0x1800c17f
mov cl, al
cmp esi, edi
jbe 0x1800c17f
cmp word [esi - 2], bx
je 0x1800c32a
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 0x1800c151
test cl, cl
je 0x1800c32a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800c1c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800c1bf
xor eax, eax
jmp 0x1800c32f
call fcn.18018dce
jmp 0x1800c32f
and eax, 0x410
cmp eax, 0x10
jne 0x1800c32a
mov ecx, edi
call fcn.1800bfb9
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.181757a0
add esp, 0xc
lea ecx, [esp + 0xc]
push edi
call fcn.18006e68
mov esi, 0x181f44e8
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.18009e32
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800c24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800c31a
call fcn.18018dce
test ebx, ebx
jns 0x1800c318
jmp 0x1800c31a
test byte [esp + 0x18], 0x10
je 0x1800c2e3
push 0
push 2
mov edx, 0x181f4480
lea ecx, [esp + 0x4c]
call fcn.1801186a
pop ecx
pop ecx
test eax, eax
je 0x1800c2e3
push 0
push 3
mov edx, 0x181f44dc
lea ecx, [esp + 0x4c]
call fcn.1801186a
pop ecx
pop ecx
test eax, eax
je 0x1800c2e3
push edi
lea ecx, [esp + 0x14]
call fcn.18006e68
mov edi, 0x181f3778
push edi
call fcn.18179019
pop ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.18009e32
lea eax, [esp + 0x44]
push eax
call fcn.18179019
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.18009e32
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.1800c109
test ebx, ebx
js 0x1800c2d7
test eax, eax
jns 0x1800c2d7
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.1800694d
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800c24c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800c31a
mov ecx, edi
call fcn.1800f45e
test ebx, ebx
js 0x1800c31a
test eax, eax
jns 0x1800c31a
mov ebx, eax
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, ebx
jmp 0x1800c32f
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181605f4
mov esp, ebp
pop ebp
ret