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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x180047cf
cmp dword [ebp + 8], 0
jne 0x18004740
cmp dword [ebp + 0x10], 2
jg 0x180047cf
lea ecx, [ebp - 4]
call fcn.18005c3b
lea ecx, [ebp + 0x14]
call fcn.18005c3b
xor edi, edi
inc edi
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
push 0
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x18004774
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x18004753
jmp 0x1800479e
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18004647
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [eax + 8]
cmp edi, 0x14
jle 0x180047b9
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 0x180e3fa8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003140
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x18004a6c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 8]
call fcn.18005c3b
mov edx, str.SystemDrive
lea ecx, [ebp - 0xc]
call fcn.1800935a
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], 0
je 0x18004ab4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.18005b84
mov esi, 0x180e3a78
push esi
call fcn.180ac191
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18005d13
push str.AsusUpdate.ini
lea ecx, [ebp - 0x10]
call fcn.18005bdc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.180110b2
mov edx, eax
lea ecx, [ebp - 4]
call fcn.180114a5
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18005bdc
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.18003140
test edi, edi
je 0x18004ba8
push str.HKLM_64_SOFTWAREASUSARMOURY_CRATE_Diagnosis
lea ecx, [ebp - 0x14]
call fcn.18005bdc
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
mov edx, str.EnableLog
push 0
push eax
push 4
mov ecx, esi
call fcn.180123f4
add esp, 0xc
test eax, eax
js 0x18004b68
cmp dword [ebp - 0x10], 0
mov eax, 0x180e406c
je 0x18004b54
mov eax, 0x180e4070
push dword [ebp - 4]
push eax
push str.LC_OPT
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.180060dc
mov edi, dword [ebp + 8]
lea ecx, [esi - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.18003140
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18003140
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18003140
mov eax, edi
jmp 0x18004bdd
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push str.AsusUpdate.ini
call fcn.18005b2d
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18003140
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18003140
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 4
Function at 0x18004c0e
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.18004dba
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18005c3b
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18005bdc
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
call fcn.18005c3b
movzx eax, byte [0x18101323]
neg eax
sbb eax, eax
and eax, 0x18101240
mov dword [ebp + 8], eax
je 0x18004cd6
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.18004a24
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18004cb1
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push 0x180e4074
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 0x18004cbb
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.18005b84
lea ecx, [esi - 0x10]
call fcn.18003140
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18004d37
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x18004db8
mov byte [esi + 8], 1
call fcn.18004de6
cmp dword [esi + 0x10], 0
je 0x18004db8
test al, al
je 0x18004d57
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.180059e7
test al, al
jne 0x18004d7e
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800e413
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.1800500f
cmp dword [esi + 0x18], 0
jne 0x18004da5
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800e413
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x18004db8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x1800500f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.1800dffa
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x1800504d
mov ecx, esi
call fcn.18005302
mov ecx, esi
call fcn.18005183
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x18005086
mov dword [esi + 0x18], edi
xor al, al
jmp 0x1800511b
lea ecx, [ebp - 0x8c]
call fcn.18003535
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x180e3a50
push eax
call fcn.180031b7
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.180035a2
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.18003288
test bl, bl
je 0x180050e3
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
xor edx, edx
push eax
inc edx
call fcn.18003b00
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800510e
cmp byte [esi + 0xb], 0
je 0x1800510e
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push ecx
push 2
push 0x180da8f4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.1800357b
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret

Function at 0x1800512a
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 0x1800515a
xor al, al
jmp 0x1800517e
cmp byte [esi + 0xb], bl
je 0x18005175
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x180da8f4
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 0x18005721
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x180fd00c]
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 reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800584c
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 0x1800584c
cmp dword [ebp - 0x78], esi
jne 0x1800584c
push dword [ebp - 0x6c]
call fcn.180a6a99
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x7c], esi
call fcn.180a89f0
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 0x18005841
mov edi, dword [ebp - 0x6c]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18005841
cmp word [esi + edi*2 - 4], bx
jne 0x18005841
cmp word [esi + edi*2 - 2], bx
jne 0x18005841
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov edx, str.___
push eax
call fcn.18005ace
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x1800582d
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 0x18005830
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x18005808
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.18003140
mov esi, dword [ebp - 0x7c]
push esi
call fcn.180a6a64
pop ecx
mov al, bl
jmp 0x1800584e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret

Function at 0x180059e7
Capabilities:
Print debug messages

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

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

Function at 0x1800853f
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.18005c3b
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 0x18008573
push ecx
lea ecx, [ebp - 4]
call fcn.18006135
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.18005c62
test esi, esi
jne 0x18008595
mov edi, 0x80004005
jmp 0x1800863b
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.1800a06c
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.18009d6b
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x180085bb
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x180085bd
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.18009c6f
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.1800d860
test al, al
jne 0x180085fa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180085fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x180085fa
cmp edi, 0xb7
jne 0x18008619
cmp ebx, 0xffffffff
je 0x18008630
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.18009d6b
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.18003140
jmp 0x180085ae
test edi, edi
jle 0x18008626
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.18003140
jmp 0x1800863a
lea ecx, [esi - 0x10]
call fcn.18003140
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.18003140
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1800864c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x18008673
mov eax, 0x80070057
jmp 0x18008713
push edi
mov ecx, esi
call fcn.18005cb1
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.180a89f0
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 0x180086f4
movzx ecx, bl
cmp ecx, 0x26
jne 0x180086b8
mov edx, str.ProgramFiles
jmp 0x180086c2
cmp ecx, 0x1c
jne 0x180086e3
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800935a
push eax
mov ecx, esi
call fcn.18005b84
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x180086f0
xor eax, eax
inc eax
jmp 0x18008712
mov eax, edi
jmp 0x18008712
lea eax, [ebp - 0x20c]
push eax
call fcn.180ac191
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.18005f0f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret

Function at 0x18008721
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x180fd00c]
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.180a89f0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18005bdc
push 0x180e4670
lea ecx, [esp + 0x14]
call fcn.18005a55
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008793
call fcn.18015f1f
mov edi, eax
jmp 0x18008825
push edi
lea ecx, [esp + 0x10]
call fcn.18005bdc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.18005a55
lea eax, [esp + 0x44]
push 0x180e4290
push eax
call fcn.180b1964
pop ecx
pop ecx
test eax, eax
je 0x180087ef
lea eax, [esp + 0x44]
push 0x180e461c
push eax
call fcn.180b1964
pop ecx
pop ecx
test eax, eax
je 0x180087ef
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18008be3
test eax, eax
jns 0x180087e6
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x180087f6
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.18003140
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008793
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800882c
test edi, edi
jle 0x18008825
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x18008835
jmp 0x1800882e
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret
Function at 0x18008858
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x180fd00c]
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.180a89f0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push esi
call fcn.18005bdc
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18005ce6
mov edi, 0x180e4678
push edi
call fcn.180ac191
pop ecx
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.18005d13
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x180088f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008989
call fcn.18015f1f
mov ebx, eax
jmp 0x18008989
test byte [ebp - 0x258], 0x10
jne 0x1800895e
push esi
lea ecx, [ebp - 0x260]
call fcn.18005bdc
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18005ce6
lea eax, [ebp - 0x22c]
push eax
call fcn.180ac191
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18005d13
mov esi, dword [ebp - 0x260]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18008950
mov ecx, esi
call fcn.1800db17
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18003140
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180088f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008982
call fcn.18015f1f
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret
Function at 0x180089a8
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 [0x180fd00c]
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 0x18008bc9
movzx eax, word [edi]
test ax, ax
je 0x18008bc9
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 0x18008a1e
cmp dx, 0x2f
je 0x18008a1e
cmp dx, word [esp + 0xc]
je 0x18008a1e
cmp dx, bx
je 0x18008a0e
mov cl, 1
jmp 0x18008a1e
mov cl, al
cmp esi, edi
jbe 0x18008a1e
cmp word [esi - 2], bx
je 0x18008bc9
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 0x180089f0
test cl, cl
je 0x18008bc9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18008a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18008a5e
xor eax, eax
jmp 0x18008bce
call fcn.18015f1f
jmp 0x18008bce
and eax, 0x410
cmp eax, 0x10
jne 0x18008bc9
mov ecx, edi
call fcn.18008858
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.180a89f0
add esp, 0xc
lea ecx, [esp + 0xc]
push edi
call fcn.18005bdc
mov esi, 0x180e467c
push esi
call fcn.180ac191
pop ecx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.18005d13
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008bb9
call fcn.18015f1f
test ebx, ebx
jns 0x18008bb7
jmp 0x18008bb9
test byte [esp + 0x18], 0x10
je 0x18008b82
push 0
push 2
mov edx, 0x180e461c
lea ecx, [esp + 0x4c]
call fcn.1800fa93
pop ecx
pop ecx
test eax, eax
je 0x18008b82
push 0
push 3
mov edx, 0x180e4290
lea ecx, [esp + 0x4c]
call fcn.1800fa93
pop ecx
pop ecx
test eax, eax
je 0x18008b82
push edi
lea ecx, [esp + 0x14]
call fcn.18005bdc
mov edi, 0x180e3a78
push edi
call fcn.180ac191
pop ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.18005d13
lea eax, [esp + 0x44]
push eax
call fcn.180ac191
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.18005d13
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.180089a8
test ebx, ebx
js 0x18008b76
test eax, eax
jns 0x18008b76
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18003140
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008aeb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18008bb9
mov ecx, edi
call fcn.1800db17
test ebx, ebx
js 0x18008bb9
test eax, eax
jns 0x18008bb9
mov ebx, eax
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, ebx
jmp 0x18008bce
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret
Function at 0x180090ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov ebx, eax
cmp dword [esi + 8], eax
jne 0x18009158
call fcn.18014f82
test al, al
je 0x18009158
call fcn.18007904
mov edi, eax
test edi, edi
je 0x180091c8
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x18009158
push str.runas
push dword [esi + 0xc]
call fcn.180b1b72
pop ecx
pop ecx
test eax, eax
jne 0x18009158
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x18009215
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x180091d2
call fcn.18013d10
movzx ecx, byte [0x18101323]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x180091bf
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.1800457f
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.18002ca6
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800921d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18009234
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x1800921d
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.1800457f
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.18002ca6
pop ecx
pop ecx
jmp 0x1800921d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1800922c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [esp + 0x13]
mov byte [esp + 0x14], al
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18009246
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], edx
call fcn.18005bdc
push ecx
lea ecx, [ebp - 4]
call fcn.18009d03
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x18009273
mov esi, 0x80070057
jmp 0x180092c7
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x180092bc
test edi, edi
je 0x180092bc
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x18009298
mov eax, esi
jmp 0x1800929f
push ebx
call fcn.180ac191
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ebx
call fcn.18005f0f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.18009d03
pop ebx
jmp 0x180092c3
call fcn.18015f1f
mov esi, eax
mov eax, dword [ebp - 4]
pop edi
lea ecx, [eax - 0x10]
call fcn.18003140
mov eax, esi
pop esi
leave
ret