joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae0c4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4ae20d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ae224
push 0x4ae24c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409600
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.004aa748
test al, al
jne 0x4ae123
mov byte [ebp - 2], 0
jmp 0x4ae1f2
xor eax, eax
push ebp
push 0x4ae1eb
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4ae167
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0047e0bc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0047dce4
mov eax, dword [ebp - 0x20]
call fcn.004064d4
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x4ae1d5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0047e0bc
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0047e194
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0047dce4
mov eax, dword [ebp - 0x28]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4ae1d5
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00481174
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00481174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae1f2
lea eax, [ebp - 0xc]
call fcn.004aa784
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae214
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406440
ret

Function at 0x4ae3f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4ae41c
mov eax, dword [ebp - 4]
jmp 0x4ae41f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ae424
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4ae471
xor ebx, ebx
jmp 0x4ae466
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0040c3f8
test eax, eax
jne 0x4ae465
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4ae51b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4ae447
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4ae47d
je 0x4ae486
jmp 0x4ae48f
call fcn.0047fc48
mov esi, eax
jmp 0x4ae491
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4ae491
xor esi, esi
test si, si
je 0x4ae51b
xor ebx, ebx
jmp 0x4ae4b7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4ae4b6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4ae51b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4ae49e
xor ebx, ebx
jmp 0x4ae510
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4ae50f
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x4ae504
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004ae3f8
push eax
mov eax, esi
call fcn.004ae3f8
pop edx
cmp edx, eax
jne 0x4ae50f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4ae51b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4ae4c6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4b0fa8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x4b1082
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x4b1094
call fcn.004b01bc
mov eax, dword [esi + 0xc]
push eax
call fcn.004093f0
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b1000
mov eax, 0x4b10f4
call fcn.004aff38
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4b0feb
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x4b1053
cmp dword [esp], 0
jne 0x4b1035
mov eax, 0x4b114c
call fcn.004aff38
jmp 0x4b105d
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x4b1188
call fcn.004b01bc
jmp 0x4b105d
mov eax, 0x4b11f0
call fcn.004aff38
mov eax, dword [esi + 8]
push eax
call fcn.004093f0
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x4b1082
push 0xfa
call fcn.004136e8
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x4b1258
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b1496
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x4b143b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b12cd
mov eax, 0x4b14b4
call fcn.004ab424
xor edx, edx
push ebp
push 0x4b13d0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00403540
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x4b13b9
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4b1335
mov eax, 0x4b14d8
call fcn.004ab424
xor edx, edx
push ebp
push 0x4b13a2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x4b1375
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x4b1375
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4b1353
pop dword fs:[0]
add esp, 8
push 0x4b13a9
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b13d7
mov eax, dword [ebp - 0xc]
push eax
call fcn.004093f0
ret
Function at 0x4b5a18
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x4b5c45
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.004b26a8
cmp dword [ebp - 0x1084], 0x418
jle 0x4b5ada
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xb7
call fcn.004a932c
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x40aca8]
call fcn.00411a64
call fcn.00404a74
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b5374
mov edx, dword [ebp - 0x11ec]
mov eax, dword [edi]
add eax, 0x14
call fcn.00406448
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b5374
mov edx, dword [ebp - 0x11f4]
mov eax, dword [edi]
add eax, 0x18
call fcn.00406448
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4b5c06
push ebp
mov eax, esi
mov edx, 0xa
call fcn.004b59a0
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.004b2e5c
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x4b5ba7
push ebp
call fcn.004b57f8
pop ecx
xor eax, eax
push ebp
push 0x4b5bd8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.004b59a0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5bf2
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call fcn.004b2e98
dec ebx
jne 0x4b5b70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5c4c
lea eax, [ebp - 0x11f8]
call fcn.0040527c
lea eax, [ebp - 0x11f4]
call fcn.00406438
lea eax, [ebp - 0x11f0]
call fcn.0040527c
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.00406440
ret
Function at 0x4b5de8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x4fef70]
cmp dword [eax], 2
jne 0x4b5e13
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jae 0x4b5e1f
mov dword [ebp - 0xc], 1
jmp 0x4b602a
push 0x4b6038
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0x4b6054
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4b606c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4b6084
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4b5e64
cmp dword [ebp - 0x10], 0
je 0x4b5e64
cmp dword [ebp - 0x14], 0
jne 0x4b5e70
mov dword [ebp - 0xc], 0x7f
jmp 0x4b602a
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b602a
xor edx, edx
push ebp
push 0x4b6023
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.00403000
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x4b5f5f
inc edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
movzx eax, byte [esi + 6]
push eax
push esi
call fcn.00409358
test eax, eax
jne 0x4b5f14
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b5f0a
mov dword [ebp - 0xc], 0x57
call fcn.00404b68
jmp 0x4b602a
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x4b5ece
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b5f85
call fcn.00404b68
jmp 0x4b602a
xor eax, eax
push ebp
push 0x4b5fc9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5fd0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bc3b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bc482
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, ebx
call fcn.0047dce4
lea eax, [ebp - 0x25c]
mov edx, 0x4bc4a0
call fcn.00406844
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4bc469
xor eax, eax
push ebp
push 0x4bc462
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
call fcn.004bc360
test al, al
je 0x4bc437
mov byte [ebp - 1], 1
jmp 0x4bc44b
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4bc422
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc469
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc489
lea eax, [ebp - 0x25c]
call fcn.00406438
ret

Function at 0x4bc9e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
test dl, dl
je 0x4bc9f4
add esp, 0xfffffff0
call fcn.004044d0
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0045db1c
mov eax, dword [0x4bca98]
not eax
and eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov edx, 0x79
mov eax, esi
call fcn.0045a1ac
mov edx, 0x61
mov eax, esi
call fcn.0045a1e0
xor edx, edx
mov eax, esi
call fcn.0045ad28
mov dl, 1
mov eax, esi
call fcn.00463740
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jae 0x4bca53
mov dx, 0xfffe
mov eax, esi
call fcn.0045ad70
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x5c
push 0x1f
call sub.user32.dll_SystemParametersInfoW
test eax, eax
je 0x4bca79
lea eax, [ebp - 0x5c]
push eax
call sub.gdi32.dll_CreateFontIndirectW
mov edx, eax
mov eax, dword [esi + 0x64]
call fcn.00430a60
mov eax, esi
test bl, bl
je 0x4bca8e
call fcn.00404528
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bdb34
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bdd00
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4bdcd3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x4bdb91
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4bdbcf
mov eax, ebx
call fcn.004bc7e4
test al, al
jne 0x4bdbaf
mov byte [ebp - 5], 0
call fcn.00404b68
jmp 0x4bdcda
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.004bc4a4
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004bdf60
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047dce4
lea eax, [ebp - 0x268]
mov edx, 0x4bdd20
call fcn.00406844
mov eax, dword [ebp - 0x268]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4bdcbc
xor eax, eax
push ebp
push 0x4bdcb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004bc360
test al, al
je 0x4bdc8a
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406630
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.0047dce4
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00406844
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004bc4a4
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004bd550
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4bdc23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdcbc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdcda
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdd07
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4bdff0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4be1e6
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4be075
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.0047e224
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047dce4
mov eax, dword [ebp - 0x268]
pop edx
call fcn.0047dea8
test eax, eax
jne 0x4be075
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047e1fc
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4be1b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.0047dce4
lea eax, [ebp - 0x26c]
mov edx, 0x4be200
call fcn.00406844
mov eax, dword [ebp - 0x26c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4be19d
xor eax, eax
push ebp
push 0x4be196
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004bc360
test al, al
je 0x4be167
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406630
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0047dea8
test eax, eax
je 0x4be167
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004bd644
test eax, eax
jne 0x4be167
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.0047dce4
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00406844
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.004bc4a4
mov eax, dword [ebp - 0x270]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004bd550
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4be0dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be19d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be1bb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4ce37c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4ce45d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ce442
test bl, 0x10
je 0x4ce442
lea ecx, [ebp - 4]
mov edx, 0x4ce478
mov eax, esi
call fcn.0047de04
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4ce49c
mov eax, 0x4ce4b8
call fcn.0047e5b4
mov edx, 0x4ce4e4
mov eax, dword [ebp - 8]
call fcn.0040c3f8
test eax, eax
jne 0x4ce442
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4ce540
mov eax, esi
call fcn.0047de04
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce464
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4cf0c8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4cf1ab
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x4cf195
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.004ab530
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4cf1c8
call fcn.004b01bc
mov eax, dword [0x4fea2c]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0042333c
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4cf144
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
movzx eax, byte [ebp - 1]
call fcn.004b6268
test al, al
jne 0x4cf195
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4cf17a
mov eax, 0x4cf22c
call fcn.004aff38
jmp 0x4cf195
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4cf2e0
call fcn.004b01bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf1b2
lea eax, [ebp - 0x1c]
call fcn.00406438
ret