joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eccd
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040e1cb
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ecfb
test al, 0x10
jne 0x40ecff
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40ed1b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40ed5e
call fcn.0045177a
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x40ee2c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40eeec
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40eeec
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ee86
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ee7d
cmp esi, edx
jle 0x40ee9b
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
jmp 0x40eee5
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044fd10
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00451f70
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040fbdc
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044f86d
push esi
call fcn.0044f951
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40eefb
push 0x46bf80
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x40f00a
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a2ec], 0
push ebx
push esi
mov ebx, eax
je 0x40f075
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f038
xor eax, eax
jmp 0x40f0b7
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f077
jmp 0x40f034
xor esi, esi
cmp byte [0x48a2ed], 0
je 0x40f094
test bl, 4
je 0x40f094
push esi
push 0x40f0bb
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40f0a8
cmp ebx, 0x40
je 0x40f0a8
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f0b7
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x40f0f7
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40f110
push dword [esp + 4]
call fcn.0040f0d2
test al, al
pop ecx
jne 0x40f12c
push 1
jmp 0x40f112
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40f39c
jne 0x40f324
push 0
jmp 0x40f396
mov al, byte [0x48a2ed]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40f395
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f395
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x4726e0]
call fcn.00466d06
cmp eax, edi
jb 0x40f353
jmp 0x40f39c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f5e8
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov bl, byte [0x4795bb]
push esi
push 0x8000
push edi
mov esi, eax
call fcn.00453763
pop ecx
push eax
call fcn.0045366c
cmp dword [esi + 8], 0xb
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f635
push edi
mov ecx, esi
call fcn.004122fb
push eax
push 1
mov eax, esi
call fcn.0041239b
push eax
call fcn.00452b54
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40f670
call fcn.00412336
push eax
or eax, 0xffffffff
call fcn.0040fc4b
push eax
push 0x46d1e8
push edi
mov dword [ebp - 0xc], eax
call fcn.00453790
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.0044f951
add esp, 0x14
test bl, bl
je 0x40f670
call fcn.00412336
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.00453a5d
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop esi
pop ebx
jne 0x40f686
push 0x4000
jmp 0x40f689
push dword [ebp - 4]
push edi
call fcn.00453763
pop ecx
push eax
call fcn.0045366c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
leave
ret

Function at 0x4114ed
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test dword [ecx], eax
mov esi, edx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x41152c
mov eax, dword [esi]
cmp eax, edi
jne 0x411597
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41157b
or eax, 0xffffffff
jmp 0x411597
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x41154e
cmp eax, 0xffffffff
je 0x41154e
push 1
push esi
push eax
call fcn.0041145a
add esp, 0xc
jmp 0x411595
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x46d4e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411577
cmp eax, edi
jne 0x41157b
mov dword [esi], edi
jmp 0x411595
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call fcn.0041145a
add esp, 0xc
call fcn.00411449
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 8
Function at 0x41159d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test byte [eax], 1
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x4115dd
mov eax, dword [esi]
cmp eax, edi
jne 0x411647
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41162b
or eax, 0xffffffff
jmp 0x411647
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x4115fe
cmp eax, 0xffffffff
je 0x4115fe
push 1
push esi
push eax
call fcn.0041145a
add esp, 0xc
jmp 0x411645
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push bind
push 0x46d4e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411627
cmp eax, edi
jne 0x41162b
mov dword [esi], edi
jmp 0x411645
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.0041145a
add esp, 0xc
call fcn.00411449
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411765
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411783
lea ecx, [esp]
push ecx
push eax
push esi
push 0x411953
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop ecx
ret

Function at 0x411785
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x4117e0
push ebx
push edi
lea ebx, [ebp + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0x1f6
cmp eax, edi
je 0x4117de
add ebp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00411449
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x41196a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00454dd0
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.0044f8e7
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x411a58
cmp dword [ebp - 4], 0
jbe 0x411a73
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x411a2f
push dword [esi + 0xc]
call fcn.0044f8e7
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.0044fd10
push dword [esi + 8]
call fcn.0044f951
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x4119ff
fadd qword [0x4726a8]
fmul qword [0x4726c0]
call fcn.00466d06
push eax
mov dword [esi + 0x10], eax
call fcn.0044f8e7
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.0044fd10
push dword [ebp - 8]
call fcn.0044f951
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.0044fd10
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x4119ab
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x413fdf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x489620], eax
push edi
mov edx, esi
mov eax, 0x489620
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x489fdc
jl 0x413ff0
pop edi
mov dword [0x478078], esi
mov dword [0x489ff0], esi
pop esi
ret
Function at 0x41401e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x489ff0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x489620
jne 0x41403e
push 0
call fcn.00453e41
pop ecx
call fcn.00413fdf
mov dword [0x478078], 0x270
mov dword [0x48961c], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x41405d
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x414093
mov edx, dword [0x489620]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
dec dword [0x478078]
jne 0x4140fa
call fcn.0041401e
mov eax, dword [0x48961c]
mov ecx, dword [eax]
add dword [0x48961c], 4
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 0x414131
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x478078]
jne 0x41413f
call fcn.0041401e
mov eax, dword [0x48961c]
mov eax, dword [eax]
add dword [0x48961c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x414185
fadd qword [0x4726a8]
fmul qword [0x4726a0]
pop ecx
ret

Function at 0x414330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x414352
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044fd10
add esp, 0xc
jmp 0x414365
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00452f60
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00452570
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41de6d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41deed
lea eax, [ebp - 0x22c]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41dedb
lea eax, [ebp - 0x22c]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41dedb
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040df4d
add esp, 0xc
test al, al
je 0x41df05
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41de94
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41df10
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41defe
lea eax, [ebp - 0x258]
push eax
push 0x46fe24
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41df9e
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41df8a
lea eax, [ebp - 0x22c]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41df8a
lea eax, [ebp - 0x22c]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41df8a
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041de6d
test al, al
je 0x41dfa2
push 0x46fe2c
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41df2c
mov bl, 1
jmp 0x41dfa4
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41defe
Function at 0x41f41d
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.00451a06
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41f484
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41f484
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f499
cmp byte [ebp + 8], bl
je 0x41f565
push esi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f550
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00451700
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0045177a
add eax, eax
mov word [ebp - 0x816], ax
mov eax, dword [ebp - 0x816]
add eax, 2
mov word [ebp - 0x814], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00451790
mov eax, dword [ebp - 0x816]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x81c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41f55b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x41f564
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x4200e7
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42011c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x44]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420171
lea eax, [esp + 0x44]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420171
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x420190
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x420122
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x42019c
mov al, 1
jmp 0x420113
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x420111
lea eax, [esp + 0x18]
push eax
push 0x46fe24
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x42021e
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x42020f
lea eax, [esp + 0x44]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x42020f
lea eax, [esp + 0x44]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x42020f
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004200e7
test al, al
je 0x420222
push 0x46fe2c
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x4201b7
mov bl, 1
jmp 0x420224
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x420113
Function at 0x420b94
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040ffd4
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.00410020
push 0x46fe24
mov eax, edi
call fcn.00410227
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x420ce7
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
call fcn.0041b406
cmp eax, 1
je 0x420ce3
cmp eax, 0xb
jne 0x420c07
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x420be7
lea eax, [ebp - 0x244]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420cc9
lea eax, [ebp - 0x244]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420cc9
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00410163
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.00410227
test byte [ebp - 0x270], 0x10
je 0x420ca1
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x420c70
add dword [edi], 1
adc dword [edi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x420cc9
push 0x46c6b8
lea eax, [ebp - 0xc]
call fcn.00410227
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00420b94
cmp al, bl
mov byte [ebp + 0xb], al
je 0x420ce7
jmp 0x420cc9
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor edi, edi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, edi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x420cc9
add dword [esi], 1
adc dword [esi + 4], edi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420be7
jmp 0x420ce7
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044f951
pop ecx
push dword [ebp - 0xc]
call fcn.0044f951
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18