joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c561
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x45c5d5
cmp dword [esi + 0x3c], 0
je 0x45c593
cmp dword [esi + 0x40], edi
jae 0x45c58d
push dword [esi + 0x3c]
call fcn.004a525a
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x45c5a3
lea eax, [edi + edi]
push eax
call fcn.00490848
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004aa710
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x45c5d2
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.0045c1f9
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x45c5b9
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x45c604
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x45c5f0
mov dword [esi + 0x14], 0x30000
jmp 0x45c626
push edi
add ecx, edx
push ebx
push ecx
call fcn.004aa710
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x45c628
mov eax, dword [esi + 4]
test eax, eax
je 0x45c61f
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x45c628
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45c893
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x45c8e9
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x45c924
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004aa710
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.0045c0cb
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x45c926
cmp dword [edi + 0x7c], 0
je 0x45c91d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c924
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0045c0cb
pop ecx
jmp 0x45c8e2
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45d278
Capabilities:
Get disk information

Disassembly:
push 0x90
mov eax, 0x4d32fd
call fcn.004aaeb3
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x9c], 1
call fcn.0045d442
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.004041e5
push 0
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
push esi
call fcn.00490848
pop ecx
push eax
push esi
mov dword [ebp - 0x94], eax
call edi
lea edi, [esi - 2]
cmp edi, 3
jl 0x45d3e1
push 1
call fcn.004a525f
mov esi, eax
xor eax, eax
pop ecx
test esi, esi
je 0x45d30a
mov byte [esi], 3
jmp 0x45d30c
mov esi, eax
mov word [esi], ax
lea ecx, [ebp - 0x60]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x94]
push esi
mov al, byte [eax + edi - 3]
mov byte [esi], al
call fcn.004041e5
mov ecx, dword [ebp - 0x94]
push esi
mov al, byte [ecx + edi - 2]
mov byte [esi + 1], al
mov al, byte [ecx + edi]
mov byte [esi + 2], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x45d3c2
xor eax, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push esi
mov byte [ebp - 4], 3
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0040414f
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x78]
xor esi, esi
push esi
push eax
call fcn.00403447
cmp eax, 0xffffffff
jne 0x45d3b5
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004646f1
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00445ab5
push esi
push 1
lea ecx, [ebp - 0x90]
call fcn.004044e5
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.004044e5
jmp 0x45d3c4
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004044e5
sub edi, 4
cmp edi, 3
jge 0x45d2f5
jmp 0x45d3e3
xor esi, esi
mov eax, dword [ebp - 0x94]
push eax
call fcn.004a5083
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
pop ecx
push dword [ebp - 0x98]
cdq
push 0x18
pop ecx
idiv ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
call fcn.0045d5bf
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x78]
call fcn.004044e5
mov eax, ebx
call fcn.004aae62
ret 4
Function at 0x45d442
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5164b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
push 6
pop ecx
mov edi, edx
mov dword [ebp - 0x168], edx
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x164], eax
xor ebx, ebx
cmp esi, 0x1a
jge 0x45d4de
xor edi, edi
mov ecx, ebx
inc edi
shl edi, cl
test eax, edi
je 0x45d4d8
lea eax, [ebx + 0x41]
push eax
push str._c:_
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.004a7040
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x45d4d2
cmp eax, 2
je 0x45d4c2
cmp eax, 3
je 0x45d4f1
cmp eax, 4
jne 0x45d4d2
push edi
call fcn.0045d423
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
mov eax, dword [ebp - 0x164]
inc ebx
cmp ebx, 0x20
jb 0x45d47d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5088
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx + 0x41]
push eax
push str.__c:
push 0x12b
lea eax, [ebp - 0x154]
push 0x12c
push eax
call fcn.004a6f9d
add esp, 0x14
xor eax, eax
mov byte [ebp - 0x29], al
push eax
push eax
push 3
push eax
push 3
push 0x80000000
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x16c], eax
cmp eax, 0xffffffff
je 0x45d4d2
push 0x227
call fcn.00490848
pop ecx
xor ecx, ecx
mov dword [ebp - 0x170], eax
push ecx
mov dword [ebp - 0x160], ecx
mov edx, 0x227
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x174]
push ecx
push edx
push eax
push 0xc
mov dword [eax + 4], edx
lea eax, [ebp - 0x160]
push eax
push 0x2d1400
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x170]
test eax, eax
je 0x45d5a7
cmp dword [edx + 0x1c], 7
jne 0x45d5a7
push edi
call fcn.0045d423
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
push edx
call fcn.004a5083
pop ecx
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45d4d2

Function at 0x45dd27
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x4d337a
call fcn.004aaeb3
mov esi, edx
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x11c]
push 0x104
push ebx
push eax
mov dword [ebp - 0x138], ebx
call fcn.004ab3c0
add esp, 0xc
lea eax, [ebp - 0x11c]
push 1
push esi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x45ddc4
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.004041e5
mov esi, 0x4edea8
mov dword [ebp - 4], ebx
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x134]
call fcn.00403c73
lea eax, [ebp - 0x134]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
push eax
mov byte [edi], bl
call fcn.00403dbb
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.004044e5
jmp 0x45ddd0
push 0x4e870e
mov ecx, edi
call fcn.004041e5
mov eax, edi
call fcn.004aae62
ret
Function at 0x45de27
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x4d337a
call fcn.004aaeb3
mov esi, ecx
mov edi, 0x104
lea eax, [ebp - 0x11c]
xor ebx, ebx
push edi
push ebx
push eax
mov dword [ebp - 0x138], ebx
call fcn.004ab3c0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x45dee1
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.004041e5
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
cmp byte [ecx + eax - 1], 0x5c
je 0x45deb7
mov edi, 0x4edea8
push edi
call fcn.004041c8
pop ecx
push eax
push edi
lea ecx, [ebp - 0x134]
call fcn.00403c73
lea eax, [ebp - 0x134]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00403dbb
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.004044e5
jmp 0x45deed
push 0x4e870e
mov ecx, esi
call fcn.004041e5
mov eax, esi
call fcn.004aae62
ret

Function at 0x45f119
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x44
mov eax, 0x4d35f6
call fcn.004aaeb3
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x45f134
xor eax, eax
jmp 0x45f25d
xor ebx, ebx
inc ebx
cmp dword [esi + 0x10], ebx
jle 0x45f12d
call fcn.0045efd2
test eax, eax
je 0x45f14c
mov eax, ebx
jmp 0x45f25d
push esi
lea ecx, [ebp - 0x28]
call fcn.004040ee
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
lea edx, [ebp - 0x42]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
mov byte [ebp - 0x42], 0x5c
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x41]
mov byte [ebp - 0x41], 0x2f
call fcn.0045fbb3
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
push 0x4edea8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004041e5
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004648a4
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004044e5
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45f23f
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00404447
jmp 0x45f23f
push 0x4edea8
call fcn.004041c8
pop ecx
push eax
push 0x4edea8
lea ecx, [ebp - 0x28]
call fcn.00403c73
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00403d15
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
jne 0x45f232
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x45f23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45f263
add esi, 0x18
cmp esi, dword [ebp - 0x4c]
jne 0x45f1dd
mov esi, ebx
lea ecx, [ebp - 0x50]
call fcn.00403e2c
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004044e5
mov eax, esi
call fcn.004aae62
ret
mov esi, edi
jmp 0x45f249
Function at 0x45f267
Capabilities:
Delete directory

Disassembly:
push 0x1c
mov eax, 0x4d362b
call fcn.004aaeb3
mov edi, ecx
push 0x4e870e
lea ecx, [ebp - 0x28]
call fcn.004041e5
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0045f310
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor esi, esi
inc esi
push esi
call fcn.004044e5
inc bl
je 0x45f2b0
xor eax, eax
jmp 0x45f30a
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push esi
mov edx, edi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1c]
call fcn.0045f377
pop ecx
test eax, eax
je 0x45f2fe
mov esi, dword [ebp - 0x1c]
jmp 0x45f2e1
mov ecx, esi
call fcn.0045f267
test eax, eax
je 0x45f2fe
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x45f2d3
cmp dword [edi + 0x14], 0x10
jb 0x45f2ee
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x45f2fe
xor esi, esi
inc esi
jmp 0x45f300
mov esi, ebx
lea ecx, [ebp - 0x1c]
call fcn.00403e2c
mov eax, esi
call fcn.004aae62
ret

Function at 0x45f310
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x4d2ff4
call fcn.004aae80
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
push edi
push edx
mov edx, ecx
lea ecx, [ebp - 0x18]
call fcn.0045f5a4
pop ecx
pop ecx
test eax, eax
je 0x45f365
mov esi, dword [ebp - 0x18]
jmp 0x45f35e
cmp dword [esi + 0x14], 0x10
jb 0x45f34e
mov eax, dword [esi]
jmp 0x45f350
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x45f365
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x45f344
jmp 0x45f367
mov edi, ebx
lea ecx, [ebp - 0x18]
call fcn.00403e2c
mov eax, edi
call fcn.004aae4e
ret
Function at 0x45f377
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1c8
mov eax, 0x4d36b9
call fcn.004aaeb3
mov edi, edx
mov dword [ebp - 0x1d4], ecx
push ecx
push ecx
lea eax, [ebp - 0x1cc]
xor ebx, ebx
mov dword [ebp - 0x1d0], ebx
mov ecx, edi
push eax
mov byte [ebp - 0x1cc], 0x5c
call fcn.004034e0
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], ecx
mov esi, 0x4edea8
mov ecx, dword [edi + 0x10]
dec ecx
cmp eax, ecx
je 0x45f3dd
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403c73
mov esi, 0x4eea24
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403c73
lea eax, [ebp - 0x28]
mov edx, edi
push eax
lea ecx, [ebp - 0x40]
call fcn.00443f1c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c8]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f582
cmp dword [ebp + 8], 0
jne 0x45f43d
test byte [ebp - 0x1c8], 2
jne 0x45f560
test byte [ebp - 0x1c8], 0x10
je 0x45f560
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004041e5
mov byte [ebp - 4], 2
or ebx, 1
mov edx, 0x4e91c4
mov dword [ebp - 0x1d0], ebx
mov ecx, eax
call fcn.00405ead
test al, al
jne 0x45f4ac
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x58]
call fcn.004041e5
mov dword [ebp - 4], 3
or ebx, 2
mov edx, 0x4eea28
mov dword [ebp - 0x1d0], ebx
mov ecx, eax
call fcn.00405ead
mov byte [ebp - 0x1cc], 1
test al, al
je 0x45f4b3
mov byte [ebp - 0x1cc], 0
test bl, 2
je 0x45f4c7
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.004044e5
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, bl
je 0x45f4df
push 0
push eax
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffe
call fcn.004044e5
cmp byte [ebp - 0x1cc], 0
je 0x45f560
push 0x4edea8
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.0040353e
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0040360e
push 0x4edea8
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.0040360e
add esp, 0xc
mov ecx, dword [ebp - 0x1d4]
push eax
mov byte [ebp - 4], 6
call fcn.00445ab5
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004044e5
lea eax, [ebp - 0x1c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45f42a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x45f584
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004044e5
mov eax, esi
call fcn.004aae62
ret
Function at 0x45f5a4
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1dc
mov eax, 0x4d3717
call fcn.004aaeb3
mov ebx, edx
mov dword [ebp - 0x1e8], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.004040ee
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x45f5eb
mov esi, 0x4f0a4c
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040414f
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
add edi, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
sub eax, ecx
push eax
push 0x2e
push ecx
call fcn.004a6950
add esp, 0xc
test eax, eax
cmovne edi, eax
cmp edi, esi
jne 0x45f650
lea eax, [ebp - 0x28]
mov edx, 0x4e91c4
push eax
lea ecx, [ebp - 0x70]
call fcn.004035a7
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004033c5
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.004044e5
push ecx
push ecx
lea eax, [ebp - 0x1e4]
mov byte [ebp - 0x1e4], 0x5c
push eax
mov ecx, ebx
call fcn.004034e0
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x10]
dec ecx
cmp eax, ecx
je 0x45f698
mov esi, 0x4edea8
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00403c73
mov esi, 0x4de084
push esi
call fcn.004041c8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00403c73
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.00443f1c
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403640
pop ecx
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.004044e5
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f794
mov edi, dword [ebp - 0x1e8]
cmp dword [ebp + 0xc], 0
jne 0x45f719
test byte [ebp - 0x1e0], 2
jne 0x45f776
test byte [ebp - 0x1e0], 0x10
jne 0x45f776
mov edx, ebx
lea ecx, [ebp - 0xa0]
call fcn.0045f939
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.0040360e
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00445ab5
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.004044e5
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45f70a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x45f796
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004044e5
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004044e5
mov eax, esi
call fcn.004aae62
ret
Function at 0x45f7c2
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x45f7cf
mov eax, dword [esi]
jmp 0x45f7d1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45f7f9
test al, 1
jbe 0x45f7f9
cmp dword [esi + 0x14], 0x10
jb 0x45f7eb
mov eax, dword [esi]
jmp 0x45f7ed
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x14], 0x10
jb 0x45f801
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
pop esi
sbb eax, eax
neg eax
ret
Function at 0x460933
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 4], 0x67452301
push 0x40
lea esi, [ecx + 0x5c]
mov dword [ecx + 0x18], eax
push eax
push esi
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004ab3c0
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x46096c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5164b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x13]
xor eax, eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
push 0x4dddd0
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004a6155
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4609b4
xor al, al
jmp 0x460ab3
push esi
push 2
push ebx
push edi
call fcn.004a6a8c
push edi
call fcn.004a6e9f
push ebx
push ebx
push edi
mov esi, eax
call fcn.004a6a8c
push esi
call fcn.004a6f0b
push edi
push esi
push 1
push eax
mov dword [ebp - 0x44], eax
call fcn.004a64b1
mov ecx, dword [ebp - 0x40]
add esp, 0x30
push esi
mov esi, dword [ebp - 0x44]
push esi
call fcn.00460ac5
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push eax
call fcn.00460b8b
test esi, esi
je 0x460a08
push esi
call fcn.004a5097
pop ecx
push edi
call fcn.004a65c9
pop ecx
push 8
xor eax, eax
mov byte [ebp - 0x38], bl
pop ecx
lea edi, [ebp - 0x37]
mov byte [ebp - 0x3c], bl
rep stosd dword es:[edi], eax
mov word [ebp - 0x3b], ax
push 0x10
lea eax, [ebp - 0x3c]
push eax
movzx eax, byte [ebp + ebx - 0x14]
push eax
call fcn.004c8454
add esp, 0xc
cmp byte [ebp - 0x3b], 0
jne 0x460a6e
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x460a41
mov ax, word [0x4ec724]
lea edx, [ebp - 0x3c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x460a57
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x460a64
jmp 0x460a88
lea edx, [ebp - 0x3c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x460a73
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x460a80
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x460a23
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x38]
mov ecx, edx
sub eax, ecx
pop esi
mov cl, byte [edx]
mov byte [eax + edx], cl
inc edx
test cl, cl
jne 0x460aa7
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a5088
mov esp, ebp
pop ebp
ret 8