joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c08
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 0x459c7c
cmp dword [esi + 0x3c], 0
je 0x459c3a
cmp dword [esi + 0x40], edi
jae 0x459c34
push dword [esi + 0x3c]
call fcn.004a43b1
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x459c4a
lea eax, [edi + edi]
push eax
call fcn.0048f9a2
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004a97d0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x459c79
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.004598a0
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x459c60
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x459cab
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x459c97
mov dword [esi + 0x14], 0x30000
jmp 0x459ccd
push edi
add ecx, edx
push ebx
push ecx
call fcn.004a97d0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x459ccf
mov eax, dword [esi + 4]
test eax, eax
je 0x459cc6
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 0x459ccf
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x459f3a
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 0x459f90
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x459fcb
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.004a97d0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00459772
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x459fcd
cmp dword [edi + 0x7c], 0
je 0x459fc4
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 0x459fcb
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00459772
pop ecx
jmp 0x459f89
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45a91f
Capabilities:
Get disk information

Disassembly:
push 0x90
mov eax, 0x4d21c1
call fcn.004a9f73
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.0045aae9
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404860
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.0048f9a2
pop ecx
push eax
push esi
mov dword [ebp - 0x94], eax
call edi
lea edi, [esi - 2]
cmp edi, 3
jl 0x45aa88
push 1
call fcn.004a43b6
mov esi, eax
xor eax, eax
pop ecx
test esi, esi
je 0x45a9b1
mov byte [esi], 3
jmp 0x45a9b3
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.00404860
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 0x45aa69
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.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004047ca
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.0040384c
cmp eax, 0xffffffff
jne 0x45aa5c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00461d69
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004037b4
push esi
push 1
lea ecx, [ebp - 0x90]
call fcn.00404b60
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00404b60
jmp 0x45aa6b
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00404b60
sub edi, 4
cmp edi, 3
jge 0x45a99c
jmp 0x45aa8a
xor esi, esi
mov eax, dword [ebp - 0x94]
push eax
call fcn.004a41da
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.0045ac66
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x78]
call fcn.00404b60
mov eax, ebx
call fcn.004a9f22
ret 4
Function at 0x45aae9
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5154b0]
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 0x45ab85
xor edi, edi
mov ecx, ebx
inc edi
shl edi, cl
test eax, edi
je 0x45ab7f
lea eax, [ebx + 0x41]
push eax
push str._c:_
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.004a62d0
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x45ab79
cmp eax, 2
je 0x45ab69
cmp eax, 3
je 0x45ab98
cmp eax, 4
jne 0x45ab79
push edi
call fcn.0045aaca
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
mov eax, dword [ebp - 0x164]
inc ebx
cmp ebx, 0x20
jb 0x45ab24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a41df
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.004a622d
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 0x45ab79
push 0x227
call fcn.0048f9a2
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 0x45ac4e
cmp dword [edx + 0x1c], 7
jne 0x45ac4e
push edi
call fcn.0045aaca
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
push edx
call fcn.004a41da
pop ecx
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45ab79

Function at 0x45b3ce
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x4d223e
call fcn.004a9f73
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.004aa670
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 0x45b46b
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404860
mov esi, 0x4ecf28
mov dword [ebp - 4], ebx
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x134]
call fcn.004042ee
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.00404436
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.00404b60
jmp 0x45b477
push 0x4e77ae
mov ecx, edi
call fcn.00404860
mov eax, edi
call fcn.004a9f22
ret
Function at 0x45b4ce
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x4d223e
call fcn.004a9f73
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.004aa670
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x45b588
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404860
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 0x45b55e
mov edi, 0x4ecf28
push edi
call fcn.00404843
pop ecx
push eax
push edi
lea ecx, [ebp - 0x134]
call fcn.004042ee
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.00404436
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.00404b60
jmp 0x45b594
push 0x4e77ae
mov ecx, esi
call fcn.00404860
mov eax, esi
call fcn.004a9f22
ret

Function at 0x45c7a2
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x44
mov eax, 0x4d24b2
call fcn.004a9f73
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x45c7bd
xor eax, eax
jmp 0x45c8e6
xor ebx, ebx
inc ebx
cmp dword [esi + 0x10], ebx
jle 0x45c7b6
call fcn.0045c677
test eax, eax
je 0x45c7d5
mov eax, ebx
jmp 0x45c8e6
push esi
lea ecx, [ebp - 0x28]
call fcn.00404769
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.0045d22b
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
push 0x4ecf28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00404860
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00461f1c
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00404b60
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45c8c8
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00404ac2
jmp 0x45c8c8
push 0x4ecf28
call fcn.00404843
pop ecx
push eax
push 0x4ecf28
lea ecx, [ebp - 0x28]
call fcn.004042ee
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00404390
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 0x45c8bb
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 0x45c8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45c8ec
add esi, 0x18
cmp esi, dword [ebp - 0x4c]
jne 0x45c866
mov esi, ebx
lea ecx, [ebp - 0x50]
call fcn.004044a7
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404b60
mov eax, esi
call fcn.004a9f22
ret
mov esi, edi
jmp 0x45c8d2
Function at 0x45c8f0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x2c
mov eax, 0x4d24ef
call fcn.004a9f73
mov edi, ecx
push 0x4e77ae
lea ecx, [ebp - 0x28]
call fcn.00404860
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea eax, [ebp - 0x28]
inc ebx
lea ecx, [ebp - 0x34]
push ebx
push eax
mov edx, edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], bl
call fcn.0045cc1c
pop ecx
pop ecx
test eax, eax
je 0x45c965
mov esi, dword [ebp - 0x34]
jmp 0x45c956
cmp dword [esi + 0x14], 0x10
jb 0x45c946
mov eax, dword [esi]
jmp 0x45c948
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x45c965
add esi, 0x18
cmp esi, dword [ebp - 0x30]
jne 0x45c93c
lea ecx, [ebp - 0x34]
call fcn.004044a7
jmp 0x45c96f
lea ecx, [ebp - 0x34]
call fcn.004044a7
xor ebx, ebx
test ebx, ebx
lea ecx, [ebp - 0x28]
push 0
sete bl
or dword [ebp - 4], 0xffffffff
xor esi, esi
inc esi
push esi
call fcn.00404b60
test bl, bl
je 0x45c98e
xor eax, eax
jmp 0x45c9e9
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push esi
mov edx, edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0045c9ef
pop ecx
test eax, eax
je 0x45c9db
mov esi, dword [ebp - 0x34]
jmp 0x45c9c3
mov ecx, esi
call fcn.0045c8f0
test eax, eax
je 0x45c9db
add esi, 0x18
cmp esi, dword [ebp - 0x30]
jne 0x45c9b5
cmp dword [edi + 0x14], 0x10
jb 0x45c9d0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x45c9de
mov dword [ebp - 0x38], ebx
lea ecx, [ebp - 0x34]
call fcn.004044a7
mov eax, dword [ebp - 0x38]
call fcn.004a9f22
ret
Function at 0x45c9ef
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1c8
mov eax, 0x4d257d
call fcn.004a9f73
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.004038e5
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, 0x4ecf28
mov ecx, dword [edi + 0x10]
dec ecx
cmp eax, ecx
je 0x45ca55
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004042ee
mov esi, 0x4ef7bc
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004042ee
lea eax, [ebp - 0x28]
mov edx, edi
push eax
lea ecx, [ebp - 0x40]
call fcn.00447bba
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 0x45cbfa
cmp dword [ebp + 8], 0
jne 0x45cab5
test byte [ebp - 0x1c8], 2
jne 0x45cbd8
test byte [ebp - 0x1c8], 0x10
je 0x45cbd8
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404860
mov byte [ebp - 4], 2
or ebx, 1
mov edx, 0x4e8250
mov dword [ebp - 0x1d0], ebx
mov ecx, eax
call fcn.00403ab4
test al, al
jne 0x45cb24
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404860
mov dword [ebp - 4], 3
or ebx, 2
mov edx, 0x4ef7c0
mov dword [ebp - 0x1d0], ebx
mov ecx, eax
call fcn.00403ab4
mov byte [ebp - 0x1cc], 1
test al, al
je 0x45cb2b
mov byte [ebp - 0x1cc], 0
test bl, 2
je 0x45cb3f
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.00404b60
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, bl
je 0x45cb57
push 0
push eax
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffe
call fcn.00404b60
cmp byte [ebp - 0x1cc], 0
je 0x45cbd8
push 0x4ecf28
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.00403ad6
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403ba6
push 0x4ecf28
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00403ba6
add esp, 0xc
mov ecx, dword [ebp - 0x1d4]
push eax
mov byte [ebp - 4], 6
call fcn.004037b4
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00404b60
lea eax, [ebp - 0x1c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45caa2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x45cbfc
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00404b60
mov eax, esi
call fcn.004a9f22
ret
Function at 0x45cc1c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1dc
mov eax, 0x4d25db
call fcn.004a9f73
mov ebx, edx
mov dword [ebp - 0x1e8], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00404769
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x45cc63
mov esi, 0x4ef7c4
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004047ca
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.004a5be0
add esp, 0xc
test eax, eax
cmovne edi, eax
cmp edi, esi
jne 0x45ccc8
lea eax, [ebp - 0x28]
mov edx, 0x4e8250
push eax
lea ecx, [ebp - 0x70]
call fcn.00403b3f
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004036f5
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00404b60
push ecx
push ecx
lea eax, [ebp - 0x1e4]
mov byte [ebp - 0x1e4], 0x5c
push eax
mov ecx, ebx
call fcn.004038e5
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 0x45cd10
mov esi, 0x4ecf28
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004042ee
mov esi, 0x4dd12c
push esi
call fcn.00404843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004042ee
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.00447bba
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403bd8
pop ecx
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00404b60
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 0x45ce0c
mov edi, dword [ebp - 0x1e8]
cmp dword [ebp + 0xc], 0
jne 0x45cd91
test byte [ebp - 0x1e0], 2
jne 0x45cdee
test byte [ebp - 0x1e0], 0x10
jne 0x45cdee
mov edx, ebx
lea ecx, [ebp - 0xa0]
call fcn.0045cfb1
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403ba6
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004037b4
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.00404b60
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45cd82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x45ce0e
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00404b60
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00404b60
mov eax, esi
call fcn.004a9f22
ret
Function at 0x45ce3a
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 0x45ce47
mov eax, dword [esi]
jmp 0x45ce49
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45ce71
test al, 1
jbe 0x45ce71
cmp dword [esi + 0x14], 0x10
jb 0x45ce63
mov eax, dword [esi]
jmp 0x45ce65
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x14], 0x10
jb 0x45ce79
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 0x45dfab
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.004aa670
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x45dfe4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5154b0]
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 0x4dce30
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004a52b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x45e02c
xor al, al
jmp 0x45e12b
push esi
push 2
push ebx
push edi
call fcn.004a5d1c
push edi
call fcn.004a612f
push ebx
push ebx
push edi
mov esi, eax
call fcn.004a5d1c
push esi
call fcn.004a619b
push edi
push esi
push 1
push eax
mov dword [ebp - 0x44], eax
call fcn.004a5614
mov ecx, dword [ebp - 0x40]
add esp, 0x30
push esi
mov esi, dword [ebp - 0x44]
push esi
call fcn.0045e13d
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push eax
call fcn.0045e203
test esi, esi
je 0x45e080
push esi
call fcn.004a41ee
pop ecx
push edi
call fcn.004a572c
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.004c76f4
add esp, 0xc
cmp byte [ebp - 0x3b], 0
jne 0x45e0e6
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e0b9
mov ax, word [0x4eb7a4]
lea edx, [ebp - 0x3c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x45e0cf
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e0dc
jmp 0x45e100
lea edx, [ebp - 0x3c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x45e0eb
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e0f8
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 0x45e09b
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 0x45e11f
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a41df
mov esp, ebp
pop ebp
ret 8