joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac13
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x40ac2d
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x40ac40
mov edi, 0xfff80000
mov edx, dword [0x40f49c]
mov eax, dword [0x40f494]
test edx, edx
jne 0x40ac5b
test eax, eax
je 0x40ac6e
mov edx, eax
mov dword [0x40f49c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x40ac6e
cmp ecx, ebx
jb 0x40ac6e
cmp ecx, edi
jbe 0x40ad62
mov edx, eax
test eax, eax
jmp 0x40ac90
test edx, edx
je 0x40ac8b
mov eax, dword [edx + 8]
test eax, eax
je 0x40ac8b
cmp eax, ebx
jb 0x40ac8b
cmp eax, edi
jbe 0x40ad62
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x40f49c], edx
jne 0x40ac74
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x40acbf
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.0040ab8a
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jae 0x40acd4
lea ecx, [esi + 0x40000000]
mov edx, edi
call fcn.0040aaf5
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jbe 0x40acf5
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.0040aaf5
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jae 0x40ad0a
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.004034e0
mov edx, eax
test edx, edx
jne 0x40ad28
mov edx, esi
mov ecx, ebx
call fcn.0040ab8a
mov edx, eax
test edx, edx
jne 0x40ad28
mov edx, edi
mov ecx, esi
call fcn.0040aaf5
mov edx, eax
test edx, edx
je 0x40ad87
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x40f494]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x40f49c], edx
mov dword [0x40f494], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x40ad52
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x40ad87
cmp esi, edi
ja 0x40ad87
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x40ad89
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40ae18
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x40f4a4], 0
je 0x40ae2e
mov eax, 0x10dd
jmp 0x40ae83
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x40f4a4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x40ae27
push esi
mov esi, dword [0x40f494]
mov dword [0x40f484], eax
mov dword [0x40f48c], eax
mov dword [0x40f4a0], eax
mov dword [0x40f4a8], eax
mov dword [0x40f498], eax
jmp 0x40ae7c
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x40ae67
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c987
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.00403be3
push 0x403018
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403470
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40ca0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ca43
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x402fd0
call fcn.0040c720
mov edi, eax
jmp 0x40ca43
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040c86c
mov ebx, eax
test ebx, ebx
jns 0x40ca35
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.0040c701
mov edi, ebx
jmp 0x40ca43
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40ca4d
push esi
call fcn.0040c77c
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 8
Function at 0x40e090
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e0ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e0c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e0d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e0b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e1a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40e1b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40e1d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x403710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x64]
mov dword [esp], ebx
lea esi, [ebp - 0x54]
mov dword [esp + 4], edx
mov dword [ebp - 0x6c], eax
call fcn.0040abf0
mov dword [esp + 4], 0x3c
mov dword [esp], esi
call fcn.00411690
cmp byte [edi + 4], 0
mov eax, str.runas
mov ecx, dword [ebp + 8]
mov edx, str.open
mov dword [ebp - 0x54], 0x3c
cmove eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 4]
cmp byte [ebp - 0x6c], 1
mov dword [ebp - 0x50], 0x41
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], str.exefile
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], eax
sbb eax, eax
not eax
and eax, 5
mov dword [ebp - 0x38], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
sub esp, 4
xor esi, esi
test eax, eax
je 0x4037c0
mov eax, dword [ebp - 0x1c]
mov esi, 1
mov dword [edi + 8], eax
mov ecx, ebx
call fcn.00406090
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x403ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x220
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x210]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
test eax, eax
je 0x403b22
mov dword [esp], esi
mov ecx, ebx
call fcn.00407eb0
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ecx, ebx
mov dword [esp], 0x4584d4
call fcn.00407eb0
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403b40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov eax, 0x4002c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00432310
sub esp, eax
lea edi, [ebp - 0x40014]
lea eax, [ebp - 0x40028]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3fffc
mov dword [esp], edi
mov dword [ebp - 0x40028], 0
call sub.PSAPI.DLL_EnumProcesses
sub esp, 0xc
test eax, eax
je 0x403c60
mov eax, dword [ebp - 0x40028]
mov dword [ebp - fcn.00444650], vtable.e5TimerE.0
mov dword [ebp - 0x40020], 0
mov dword [ebp - 0x4001c], 0
shr eax, 2
test eax, eax
mov eax, 0
mov dword [ebp - 0x40018], 0
jle 0x403d51
lea ecx, [ebp - 0x40024]
xor ebx, ebx
mov dword [ebp - 0x4002c], ecx
jmp 0x403bf5
mov edx, dword [ebp - 0x40020]
add ebx, 1
mov dword [edx + eax*4 - 4], esi
mov eax, dword [ebp - 0x40028]
shr eax, 2
cmp eax, ebx
jle 0x403c32
mov eax, dword [ebp - 0x40018]
mov ecx, dword [ebp - 0x4002c]
add eax, 1
mov esi, dword [edi + ebx*4]
mov dword [esp], eax
call fcn.00444550
mov eax, dword [ebp - 0x40018]
sub esp, 4
test eax, eax
jne 0x403bd5
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040f970
mov eax, dword [ebp - 0x40018]
jmp 0x403bd5
mov ecx, dword [ebp - 0x40018]
mov eax, dword [ebp - 0x4001c]
mov edi, dword [ebp + 8]
mov dword [edi], vtable.e5TimerE.0
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 0x457040
mov dword [eax], vtable.e5TimerE.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
je 0x403c50
lea eax, [ebp - 0x40024]
mov ecx, eax
mov dword [ebp - 0x4002c], eax
mov eax, dword [0x45704c]
mov dword [ebp - fcn.00444650], vtable.e5TimerE.0
mov dword [ebp - 0x40020], 0
mov dword [ebp - 0x4001c], 0
mov dword [esp], eax
mov dword [ebp - 0x40018], 0
call fcn.00444550
mov edx, dword [0x45704c]
sub esp, 4
mov esi, dword [ebp - 0x40020]
mov ecx, dword [0x457044]
test edx, edx
mov eax, esi
jle 0x403cf6
test eax, eax
je 0x403ceb
mov ebx, dword [ecx]
mov dword [eax], ebx
add eax, 4
add ecx, 4
sub edx, 1
jne 0x403ce3
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40018]
mov dword [ebp - fcn.00444650], vtable.e5TimerE.0
mov ecx, dword [edi + 0xc]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], edx
mov edx, dword [ebp - 0x4001c]
mov dword [edi + 4], esi
mov dword [ebp - 0x40018], ecx
mov ecx, dword [edi + 8]
test eax, eax
mov dword [ebp - 0x40020], eax
mov dword [edi + 8], edx
mov dword [ebp - 0x4001c], ecx
je 0x403c50
mov dword [esp], eax
call fcn.0044bb20
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
xor edx, edx
jmp 0x403c3e
Function at 0x403d80
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.0040d8b0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x463ac4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4604b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x403eb9
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x463214
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
jne 0x403eb0
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x28]
mov ecx, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x50]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
sub esp, 8
mov edi, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040abf0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call edi
sub esp, 8
mov ecx, esi
call fcn.00406090
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x403ed0
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov ecx, dword [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x18]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov eax, dword [edx]
sub esp, 0xc
mov dword [esp], edx
call dword [eax + 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
sub esp, 4
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [esi + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x2c]
sub esp, 8
jmp 0x403e62
Function at 0x405280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
test ebp, ebp
je 0x405370
test edi, edi
je 0x405370
lea ebx, [esp + 0x18]
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], str.1.2.3
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00429460
test eax, eax
jne 0x405370
mov eax, dword [esp + 0x70]
mov ecx, dword [esi]
cmp dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
mov eax, edi
jae 0x40532b
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00427a80
test eax, eax
jne 0x405370
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405337
mov ecx, dword [esi]
cmp dword [esp + 0x2c], ecx
jb 0x405307
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x405370
mov dword [esp + 4], 4
mov dword [esp], ebx
call fcn.00427a80
cmp eax, 1
jne 0x405333
mov dword [esp], ebx
call fcn.00428f10
test eax, eax
jne 0x405370
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
jb 0x40537d
mov dword [esi], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffb
jmp 0x40532b

Function at 0x40a250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ecx, 0x81
mov ebp, esp
push edi
xor edi, edi
push ebx
sub esp, 0x230
movzx eax, word [0x4589e8]
mov word [ebp - 0x20e], di
lea edi, [ebp - 0x20c]
mov ebx, dword [ebp + 8]
mov word [ebp - 0x210], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x210]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, ebx
sub esp, 0x14
mov dword [esp], edi
call fcn.00407eb0
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

Function at 0x40b920
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x3c
mov ecx, ebx
call fcn.004061a0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a710
mov dword [esp], ebx
mov ecx, esi
call fcn.004065b0
sub esp, 4
mov ecx, esi
call fcn.00406090
mov ecx, ebx
mov dword [esp], 0x5c
call fcn.00406a30
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
sub esp, 4
mov ecx, ebx
call fcn.00406090
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bc80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ac
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40be25
mov esi, dword [ebx + 4]
test esi, esi
je 0x40bcba
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x40bcb3
mov eax, dword [esi]
mov ecx, esi
add esi, 0x10
call dword [eax]
sub edi, 1
jne 0x40bca5
mov dword [ebx + 0xc], 0
lea ecx, [ebp - 0x2a8]
call fcn.004061a0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x298]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a710
lea eax, [ebp - 0x2a8]
mov ecx, esi
mov dword [esp], eax
call fcn.004065b0
sub esp, 4
mov ecx, esi
call fcn.00406090
lea ecx, [ebp - 0x2a8]
mov dword [esp], 0x5c
call fcn.00406a30
sub esp, 4
lea esi, [ebp - 0x288]
lea eax, [ebp - 0x2a8]
mov dword [esp + 8], 0x458d20
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004081a0
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x2ac], eax
call fcn.00406090
cmp edi, 0xffffffff
je 0x40be2d
lea esi, [ebp - 0x278]
jmp 0x40bda3
add ecx, 0xfffffff
shl ecx, 4
add ecx, dword [ebx + 4]
mov dword [esp], esi
call fcn.00406210
sub esp, 4
mov ecx, esi
call fcn.00406090
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x40be08
test byte [ebp - 0x268], 0x10
jne 0x40bd83
lea eax, [ebp - 0x23c]
mov ecx, esi
mov dword [esp], eax
call fcn.00407eb0
mov edi, dword [ebx + 0xc]
sub esp, 4
mov ecx, ebx
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.004442e0
sub esp, 4
shl edi, 4
add edi, dword [ebx + 4]
mov ecx, edi
je 0x40bde1
call fcn.004061a0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x40bd65
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040f970
mov ecx, dword [ebx + 0xc]
jmp 0x40bd65
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.00406090
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x2a8]
call fcn.00406090
jmp 0x40be25
Function at 0x40be70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2dc
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40c074
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40beb0
mov esi, dword [eax + 0xc]
test esi, esi
jle 0x40bea6
mov eax, dword [ebx]
mov ecx, ebx
add ebx, 0x10
call dword [eax]
sub esi, 1
jne 0x40be98
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 0
lea ecx, [ebp - 0x2c8]
call fcn.004061a0
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x2b8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040a710
lea eax, [ebp - 0x2c8]
mov ecx, ebx
mov dword [esp], eax
call fcn.004065b0
sub esp, 4
mov ecx, ebx
call fcn.00406090
lea ecx, [ebp - 0x2c8]
mov dword [esp], 0x5c
call fcn.00406a30
sub esp, 4
lea ebx, [ebp - 0x2a8]
lea eax, [ebp - 0x2c8]
mov dword [esp + 8], 0x458d20
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081a0
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov esi, eax
mov ecx, ebx
mov dword [ebp - 0x2cc], eax
call fcn.00406090
cmp esi, 0xffffffff
je 0x40c069
lea esi, [ebp - 0x298]
mov ecx, esi
call fcn.004061a0
lea ebx, [ebp - 0x288]
jmp 0x40bf93
mov ecx, ebx
call fcn.00406090
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x40c050
test byte [ebp - 0x268], 0x10
je 0x40bf6f
lea eax, [ebp - 0x23c]
mov ecx, esi
mov dword [esp], eax
call fcn.00407e00
sub esp, 4
mov ecx, ebx
mov dword [esp], 0x458d26
call fcn.00407eb0
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004085b0
test al, al
je 0x40bf68
lea edi, [ebp - 0x278]
mov dword [esp], 0x458d2a
mov ecx, edi
call fcn.00407eb0
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004085b0
mov ecx, edi
mov dword [ebp - 0x2d0], eax
call fcn.00406090
mov ecx, ebx
call fcn.00406090
mov eax, dword [ebp - 0x2d0]
test al, al
je 0x40bf6f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.004442e0
mov eax, dword [ebp + 0xc]
sub esp, 4
shl edi, 4
add edi, dword [eax + 4]
mov ecx, edi
je 0x40bf6f
mov dword [esp], esi
call fcn.00407590
sub esp, 4
jmp 0x40bf6f
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov ecx, esi
call fcn.00406090
lea ecx, [ebp - 0x2c8]
call fcn.00406090
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c4d0
Capabilities:
Enumerate files on windows

Disassembly:
cmp byte [esp + 0xc], 0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
jne 0x40c4f0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.0040bc80
jmp fcn.0040c0f0
Function at 0x40d0a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040a710
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040bbb0
test al, al
mov ebx, eax
jne 0x40d17e
call fcn.0040a690
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
lea ecx, [ebp - 0x38]
call fcn.0040f5e0
mov eax, dword [ebp - 0x2c]
sub esp, 8
test eax, eax
je 0x40d176
lea esi, [ebp - 0x28]
mov ecx, esi
call fcn.004061a0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
shl edi, 4
add edi, ebx
cmp ebx, edi
jne 0x40d129
jmp 0x40d162
add ebx, 0x10
call fcn.0040a690
mov dword [esp], eax
mov ecx, esi
call fcn.00406c30
sub esp, 4
cmp ebx, edi
je 0x40d162
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40d110
mov dword [esp], ebx
mov ecx, esi
call fcn.00406c30
sub esp, 4
mov dword [esp], esi
call fcn.0040bbb0
test al, al
jne 0x40d110
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
jmp 0x40d110
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040bbb0
mov ecx, esi
mov ebx, eax
call fcn.00406090
lea ecx, [ebp - 0x38]
call fcn.0040f070
lea ecx, [ebp - 0x48]
call fcn.00406090
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d8b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x3c
mov ecx, ebx
call fcn.004061a0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a710
mov dword [esp], ebx
mov ecx, esi
call fcn.004065b0
sub esp, 4
mov ecx, esi
call fcn.00406090
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
sub esp, 4
mov ecx, ebx
call fcn.00406090
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret