joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4044
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042de3c
cmp ebx, dword [ebp - 8]
jge 0x4c40a7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042e250
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042e250
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042e27c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4c406d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c40b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042de3c
cmp ebx, dword [ebp - 8]
jge 0x4c4113
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042e250
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042e250
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042e27c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4c40d9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c6598
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c664f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004059fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4c65da
call fcn.00404f68
jmp 0x4c6656
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004059fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4c6603
call fcn.00404f68
jmp 0x4c6656
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c6664
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4c6624
call fcn.00404f68
jmp 0x4c6656
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6656
mov eax, dword [ebp - 8]
call fcn.00402fb8
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c68b0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c6918
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00403af8
test ebx, ebx
jne 0x4c68ed
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c6924
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6c04
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x4c6db0
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c6da8
xor eax, eax
push ebp
push 0x4c6da1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4c6dbc
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x4c6c7c
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4c6dbc
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x4c6cbd
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.00428d08
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.00428d08
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.00428d08
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.00428d08
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x503764], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6da8
cmp dword [ebp - 4], 0
je 0x4c6da0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6dc0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004c658c
test al, al
je 0x4c6ded
cmp dword [0x50bd9c], 0x40047
jl 0x4c6ded
cmp byte [0x503764], 0
jne 0x4c6ded
call fcn.004c6c04
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x503768]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4c6e50
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4c6e45
mov word [esp], 0
mov eax, dword [esi*4 + 0x503768]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4e0458
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4e0460
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e05ad
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4e04b6
lea edx, [ebp - 4]
mov eax, dword [0x503e88]
call fcn.00407678
cmp ebx, 1
jbe 0x4e04ed
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e05c4
call fcn.0040b75c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405838
jmp 0x4e04ed
lea eax, [ebp - 4]
mov edx, 0x4e05d4
call fcn.00405604
cmp ebx, 1
jbe 0x4e04ed
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e05e4
call fcn.0040b75c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405838
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00405884
mov eax, dword [ebp - 0x18]
call fcn.004059fc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4e0575
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x4e0525
mov bl, 1
jmp 0x4e0585
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040de58
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x5043a8]
call fcn.00407678
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.004c7bec
mov eax, dword [ebp - 0x1c]
movzx ecx, word [0x4e05e8]
xor edx, edx
call fcn.00440c3c
mov bl, 2
jmp 0x4e0585
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.004055c0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e05b4
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00405590
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405590
ret

Function at 0x4e0c28
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x4e0c4a
mov edx, ebx
mov eax, dword [0x5043a4]
call fcn.00407678
jmp 0x4e0c81
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4e0c7a
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.004057dc
jmp 0x4e0c81
mov eax, ebx
call fcn.0040556c
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4e1604
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4e1637
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4e1630
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.004059ec
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401100]
call fcn.004062c0
xor eax, eax
push ebp
push 0x4e17c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4e178d
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x4e17ec
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00405900
mov eax, dword [ebp - 0x158]
call fcn.004059fc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e1781
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4e1766
test al, 2
jne 0x4e1766
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x4e17ec
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004057dc
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00405900
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.004c6714
call fcn.00410cf0
test al, al
je 0x4e1724
or edi, 0xffffffff
jmp 0x4e1733
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004c68b0
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004c6678
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004057dc
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e16b9
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4e167c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e17cc
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00405590
lea eax, [ebp - 8]
call fcn.0040556c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401100]
call fcn.00406180
ret
Function at 0x4e292c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e29f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e29dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x50456c]
cmp dword [eax + 4], 0x60000
jl 0x4e297c
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004e2a8c
mov eax, dword [ebp - 4]
call fcn.004e07dc
test al, al
je 0x4e29ac
mov eax, dword [ebp - 4]
call fcn.004059fc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4e29ac
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x468]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e29e3
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4e64f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004059fc
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4e6536
dec eax
je 0x4e6517
sub eax, 2
je 0x4e6536
jmp 0x4e6547
movzx eax, byte [ebx]
call fcn.004c8090
test al, al
je 0x4e6547
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404804
jmp 0x4e6547
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404804
pop esi
pop ebx
pop ebp
ret

Function at 0x4e654c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e65fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x430], 0
jne 0x4e659a
push 0x465
mov eax, dword [ebp - 4]
call fcn.0045828c
mov ecx, eax
mov dl, 1
mov eax, dword [0x4e2c28]
call fcn.004e2c94
mov edx, dword [ebp - 4]
mov dword [edx + 0x430], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.004e3174
lea eax, [ebp - 8]
mov edx, 0x4e6610
call fcn.00405604
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4e65e5
test bl, 1
je 0x4e65de
lea eax, [ebp - 8]
call fcn.00405a5c
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004e64f4
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4e65c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6602
lea eax, [ebp - 8]
call fcn.0040556c
ret
Function at 0x4e7198
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004059ec
xor eax, eax
push ebp
push 0x4e72b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e7289
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.004059fc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e7266
test byte [ebp - 0x14c], 0x10
jne 0x4e7249
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004057dc
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00409c30
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e720c
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x4e7272
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7290
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4ebe90
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x4ebe9f
je 0x4ebea4
jmp 0x4ebec8
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x4ebec3
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x5042dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4fbff8
Capabilities:
Terminate process

Disassembly:
push 0
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
ret

Function at 0x4fc128
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push edx
push 0
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_PostMessageA
cmp eax, 1
sbb eax, eax
inc eax
pop ebx
ret
Function at 0x4fd3e4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4fd3ec
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004059ec
mov esi, 0x50bf34
xor eax, eax
push ebp
push 0x4fd617
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [0x503e8c]
cmp byte [eax], 6
jbe 0x4fd441
lea edx, [ebp - 0x10]
mov eax, dword [0x503ea4]
mov eax, dword [eax]
call fcn.0040a9a8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4fd630
call fcn.00405884
jmp 0x4fd463
lea eax, [ebp - 0x14]
call fcn.00471ab4
push dword [ebp - 0x14]
push 0x4fd644
push 0x4fd630
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405900
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41a20c]
call fcn.0041f630
mov dword [ebp - 0xc], eax
cmp dword [esi], 0
je 0x4fd486
mov eax, dword [esi]
call fcn.00404608
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49874c]
call fcn.00475848
mov dword [esi], eax
xor eax, eax
push ebp
push 0x4fd4bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
call fcn.00498cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fd4e7
mov eax, dword [esi]
call fcn.0048a49c
mov eax, dword [esi]
call fcn.00404608
xor eax, eax
mov dword [esi], eax
mov esi, dword [0x503e68]
mov esi, dword [esi]
mov edx, dword [0x503e68]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x4fd678
call fcn.00405884
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.004059fc
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.004059fc
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x503e68]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.004fd360
test al, al
je 0x4fd581
mov edx, dword [0x503e68]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x4fd678
call fcn.00405884
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.004059fc
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4fd5c4
mov edx, dword [0x503e68]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x4fd678
call fcn.00405884
mov esi, dword [ebp - 0x28]
mov edi, dword [0x503e68]
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.004059fc
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.004059fc
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.00404608
mov eax, dword [ebp - 8]
call fcn.004059fc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd61e
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405590
lea eax, [ebp - 0x18]
call fcn.0040556c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405590
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405590
ret
Function at 0x4060b0
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x130
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x406109
cmp byte [esp + 0x2d], dl
jne 0x406109
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x406135
cmp cl, dl
je 0x406101
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x4060f0
jmp 0x406135
cmp byte [eax], 0
je 0x406135
inc eax
jmp 0x40610d
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x406135
cmp cl, dl
je 0x406128
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x406117
jmp 0x406135
cmp byte [eax], 0
je 0x406135
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40619f
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40619f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x406187
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shrd eax, ecx, 0xa
pop edi
pop esi
shr ecx, 0xa
add esp, 0x130
ret
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x4061ce
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x4064a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4064cb
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.00408060
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406505
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret