joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446685
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c218c]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x44669d
mov eax, 0x80004005
leave
ret
push ebx
push esi
xor esi, esi
push esi
mov eax, 0x80
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x446700
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x10], 7
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
test esi, esi
jne 0x446707
mov eax, 0x80004005
jmp 0x44670f
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446ce4
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x446cd9
or eax, eax
jmp 0x446ce4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446f02
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x446fc5
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x446fc5
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x446f62
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x446f59
cmp esi, ecx
jle 0x446f75
push str.0.0.0.0
push edi
call fcn.00420d23
pop ecx
pop ecx
jmp 0x446fbd
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0041ee80
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00422590
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00447c56
mov esi, eax
push esi
push edi
call fcn.00420d23
push esi
call fcn.0041f55e
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x446fd2
push 0x49dc00
push edi
call fcn.00420d23
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4471fa
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x447253
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4472de
test al, 0x10
je 0x4472de
mov al, 1
ret
xor al, al
ret
Function at 0x44732b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [0x4c32f9], 0
test edi, edi
je 0x44737d
mov byte [0x4c32fa], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x44778f
push ecx
push ecx
mov dword [ebp - 8], edi
call fcn.0042217f
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 0x18
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x4473a8
push 0xffffffffffffffff
push esi
mov byte [0x4c32fa], 0
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4c32f9], 1
jne 0x4473b6
or eax, 0xffffffff
jmp 0x4473b8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447555
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20428
call fcn.0042f8a0
push esi
lea eax, [ebp - 0x20428]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00446ebb
lea eax, [ebp - 0x10428]
push eax
mov edx, 0x7fff
mov ecx, esi
call fcn.00446ebb
pop ecx
pop ecx
lea ecx, [ebp - 0x20428]
call fcn.004472cb
test al, al
jne 0x4475a1
xor al, al
jmp 0x447741
lea ecx, [ebp - 0x10428]
call fcn.004472cb
xor esi, esi
test al, al
je 0x447673
cmp byte [ebp + 8], 0
je 0x44759a
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x447612
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x44760b
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
jmp 0x447741
mov al, 1
jmp 0x447741
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x20428]
push esi
push eax
call fcn.00421dfc
lea eax, [ebp - 0x10428]
push 0x49dc54
push eax
call fcn.00420cf4
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x10428]
push eax
call fcn.00420cf4
add esp, 0x24
cmp word [ebp - 0x224], si
je 0x447673
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10428]
push eax
call fcn.00420cf4
pop ecx
pop ecx
lea edx, [ebp - 0x10428]
lea ecx, [ebp - 0x20428]
call fcn.0044725e
test al, al
je 0x4476b8
push 1
lea edx, [ebp - 0x10428]
lea ecx, [ebp - 0x20428]
call fcn.00445f85
pop ecx
test al, al
je 0x44759a
mov dl, 1
lea ecx, [ebp - 0x20428]
call fcn.0044793d
test al, al
jmp 0x447603
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x44759a
lea eax, [ebp - 0x20428]
push eax
call fcn.00420cdb
xor ecx, ecx
mov word [ebp + eax*2 - 0x20426], cx
lea eax, [ebp - 0x10428]
push eax
call fcn.00420cdb
pop ecx
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x10426], cx
lea eax, [ebp - 0x20428]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10428]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], esi
mov dword [ebp - 6], esi
mov dword [ebp - 0xe], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
leave
ret
Function at 0x44793d
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.0042f8a0
push ebx
lea eax, [ebp - 0x10020]
mov bl, dl
push eax
mov edx, 0x7fff
call fcn.00446ebb
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.004472cb
test al, al
je 0x4479d0
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x447986
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x4479d0
call fcn.00420cdb
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x4479d3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
mov esi, edx
call fcn.00445ec3
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043b134
test al, al
jne 0x4479fd
xor esi, esi
jmp 0x447a4a
cmp ebx, 0x20
je 0x447a3c
cmp ebx, 0x40
je 0x447a38
test bl, 0xb
jne 0x447a17
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x447a48
xor ecx, ecx
test bl, 0x14
je 0x447a1f
inc ecx
xor eax, eax
test bl, 2
je 0x447a27
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x447a48
xor eax, eax
jmp 0x447a3f
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0043ab84
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x447a58
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x447ad6
jne 0x447a6b
push 0
jmp 0x447ad0
cmp esi, 0xf
jae 0x447acf
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x447acf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4b2720]
call fcn.00471906
cmp eax, esi
jb 0x447a88
jmp 0x447ad6
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret
Function at 0x447bf7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x447c52
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x449568
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x4495a2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4495df
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test dword [ebp + 8], eax
je 0x4495c8
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x44959c
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x449616
or eax, 0xffffffff
jmp 0x44959c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x4495ed
cmp eax, 0xffffffff
je 0x4495ed
push 1
mov edx, esi
mov ecx, eax
call fcn.00449428
pop ecx
jmp 0x44959a
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4b388c
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x449598
test eax, eax
je 0x449598
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00449428
pop ecx
mov ecx, esi
call fcn.004493d1
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x44959a
Function at 0x449634
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x44966d
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4496a8
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test al, 1
je 0x449692
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x449667
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x4496df
or eax, 0xffffffff
jmp 0x449667
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x4496b6
cmp eax, 0xffffffff
je 0x4496b6
push 1
mov edx, esi
mov ecx, eax
call fcn.00449428
pop ecx
jmp 0x449665
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x4b388c
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x449663
test eax, eax
je 0x449663
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00449428
pop ecx
mov ecx, esi
call fcn.004493d1
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x449665
Function at 0x4498ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
push 0x1f5
lea esi, [ebx + 0x34]
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 0xffff
call fcn.0041f4ea
mov edi, eax
mov eax, 0xffff
push eax
mov dword [ebp - 8], edi
mov dword [ebx + 0x10], eax
call fcn.0041f4ea
pop ecx
pop ecx
push 0
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4499c4
cmp dword [ebp - 4], 0
jbe 0x4499c1
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x10], eax
jae 0x449986
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x44994e
fadd qword [0x4b6a00]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x4b2710]
call fcn.00471906
push eax
mov dword [ebx + 0x10], eax
call fcn.0041f4ea
push dword [ebx + 0xc]
mov dword [ebx + 8], eax
push edi
push dword [ebx + 8]
call fcn.0041ee80
push edi
call fcn.0041f55e
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
add esp, 0x14
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 8]
push ecx
push edi
push eax
call fcn.0041ee80
mov eax, dword [ebp - 4]
add dword [ebx + 0xc], eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x449916
mov esi, dword [ebp - 0xc]
push edi
call fcn.0041f55e
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x449a82
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
jne 0x449aa6
call fcn.004498ac
test al, al
je 0x449aa6
mov ecx, dword [esi + 8]
call fcn.004492d4
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.004499f9
cmp dword [esi + 0x24], 0
jne 0x449ad3
mov ecx, esi
call fcn.004497af
test al, al
je 0x449ad3
call fcn.004497a5
test al, al
jne 0x449ad3
mov ecx, dword [esi + 0x10]
call fcn.004492d4
mov dword [esi + 0x24], eax
mov ecx, eax
pop esi
jmp fcn.004499f9
pop esi
ret

Function at 0x449ad5
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x449ae4
call fcn.00449a20
mov ecx, dword [esi + 0x24]
pop esi
test ecx, ecx
jne fcn.00449a20
ret

Function at 0x44b5e8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4bf7e0]
jne 0x44b5f5
call fcn.0044b6cc
mov eax, dword [0x4c3310]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c3310], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x44d0b8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.0042f8a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x44d215
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4b3cbc
push eax
call fcn.0042172b
lea eax, [ebp - 0x10004]
push eax
call fcn.00420cdb
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x44d130
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x44d130
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x44d14a
cmp byte [ebp + 0x10], al
je 0x44d206
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44d1fd
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00420d50
lea eax, [ebx + ebx]
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebp - 0x4fff0]
push eax
mov dword [ebp - 0x50000], 0xa0000003
call fcn.004223ac
mov eax, dword [ebp - 0x4fff6]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x4fffc], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x44d20a
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x44d213
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x451b2f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x451bca
lea eax, [ebp - 0x22c]
push 0x49dab0
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451bb8
lea eax, [ebp - 0x22c]
push 0x4b39fc
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451bb8
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
or ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
not eax
and ecx, eax
push ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x451c7b
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451b59
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x451c72
lea eax, [ebp - 0x258]
push eax
push 0x4b39f4
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x451c69
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x451c57
lea eax, [ebp - 0x22c]
push 0x49dab0
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451c57
lea eax, [ebp - 0x22c]
push 0x4b39fc
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451c57
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00451b2f
test al, al
je 0x451c86
push 0x4b39fc
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451bf9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x451c74
xor ebx, ebx
jmp 0x451c6b
Function at 0x451c8a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x451d10
lea eax, [ebp - 0x22c]
push 0x49dab0
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451cfe
lea eax, [ebp - 0x22c]
push 0x4b39fc
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451cfe
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.00446bd4
pop ecx
test al, al
je 0x451dc1
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451cb4
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x451db8
lea eax, [ebp - 0x258]
push eax
push 0x4b39f4
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x451daf
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x451d9d
lea eax, [ebp - 0x22c]
push 0x49dab0
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451d9d
lea eax, [ebp - 0x22c]
push 0x4b39fc
push eax
call fcn.004215e3
pop ecx
pop ecx
test eax, eax
je 0x451d9d
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00451c8a
test al, al
je 0x451dcc
push 0x4b39fc
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451d3f
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x451dba
xor ebx, ebx
jmp 0x451db1