joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49af54
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x49b0d9
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebx + 0x2be]
sub al, 2
jb 0x49b0be
cmp byte [ebx + 0x2b0], 0
je 0x49b0be
mov eax, dword [ebp - 4]
call fcn.00492808
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x49b0b7
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp - 6]
sub ax, 8
je 0x49affb
dec ax
je 0x49afd1
sub ax, 0x12
jne 0x49b015
call fcn.00404b00
jmp 0x49b0be
cmp byte [ebx + 0x2b1], 0
je 0x49b09d
mov eax, ebx
call fcn.00439c60
test al, al
je 0x49b09d
xor edx, edx
mov eax, ebx
call fcn.00439c84
jmp 0x49b09d
mov eax, dword [esi]
call fcn.00405a20
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00405c14
jmp 0x49b09d
cmp byte [ebx + 0x2b1], 0
je 0x49b032
mov eax, ebx
call fcn.00439c60
test al, al
jne 0x49b032
mov dl, 1
mov eax, ebx
call fcn.00439c84
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x49b04a
mov eax, esi
call fcn.00405834
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 6]
call fcn.00405950
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00405a8c
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0049ad68
test al, al
je 0x49b09d
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 6]
call fcn.00405950
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00405a2c
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b0be
mov eax, dword [ebp - 4]
movzx edx, word [ebp - 6]
call fcn.0049283c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b0e0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040584c
ret

Function at 0x49d520
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
xor eax, eax
push ebp
push 0x49d598
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x49d5b0
call fcn.004052f4
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403920
mov dword [ebp - 0x1e], 3
mov eax, dword [ebp - 4]
call fcn.004054ec
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x54
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d59f
lea eax, [ebp - 4]
call fcn.00405028
ret
Function at 0x49d5b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
xor eax, eax
push ebp
push 0x49d62c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x49d644
call fcn.004052f4
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403920
mov dword [ebp - 0x1e], 3
mov eax, dword [ebp - 4]
call fcn.004054ec
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x14
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d633
lea eax, [ebp - 4]
call fcn.00405028
ret

Function at 0x49d648
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
mov eax, dword [ebp - 8]
call fcn.004054dc
xor eax, eax
push ebp
push 0x49d703
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403920
mov dword [ebp - 0x22], 2
lea eax, [ebp - 0x2c]
mov ecx, 0x49d71c
mov edx, dword [ebp - 4]
call fcn.00405338
mov eax, dword [ebp - 0x2c]
call fcn.004054ec
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x30]
mov ecx, 0x49d71c
mov edx, dword [ebp - 8]
call fcn.00405338
mov eax, dword [ebp - 0x30]
call fcn.004054ec
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x14
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d70a
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040504c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040504c
ret

Function at 0x49e280
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, edx
push esp
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x49e2b6
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004059e4
jmp 0x49e2bd
mov eax, ebx
call fcn.00405834
add esp, 0x20c
pop ebx
ret

Function at 0x49e2c8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push esp
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x49e2fe
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00405298
jmp 0x49e305
mov eax, ebx
call fcn.00405028
add esp, 0x108
pop ebx
ret
Function at 0x49e810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor edx, edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49e8a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20e]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.004059e4
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0048c908
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 4]
call fcn.00405898
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e8a7
lea eax, [ebp - 0x214]
call fcn.00405834
lea eax, [ebp - 4]
call fcn.00405834
ret

Function at 0x49f100
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov byte [ebp - 5], 0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004035cc
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403ae0
call fcn.00402eec
xor eax, eax
push ebp
push 0x49f1f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [edi + 4]
mov ecx, 6
lea eax, [ebp - 0x154]
call fcn.00403748
call fcn.00402eec
movzx esi, word [edi + 8]
dec esi
test esi, esi
jl 0x49f18f
inc esi
xor ebx, ebx
push 0
mov eax, ebx
add eax, eax
lea edx, [edi + eax*8 + 0xc]
mov ecx, 0x10
lea eax, [ebp - 0x154]
call fcn.00403748
call fcn.00402eec
inc ebx
dec esi
jne 0x49f16c
movzx esi, word [edi + 8]
dec esi
test esi, esi
jl 0x49f1c0
inc esi
xor ebx, ebx
push 0
mov eax, ebx
add eax, eax
mov ecx, dword [edi + eax*8 + 0x14]
mov edx, dword [edi + ebx*4 + 0x20c]
lea eax, [ebp - 0x154]
call fcn.00403748
call fcn.00402eec
inc ebx
dec esi
jne 0x49f19b
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f1fd
lea eax, [ebp - 0x154]
call fcn.00403768
call fcn.00402eec
cmp byte [ebp - 5], 0
jne 0x49f1f5
mov eax, dword [ebp - 4]
call fcn.004054ec
push eax
call sub.kernel32.dll_DeleteFileA
ret
Function at 0x4af430
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4af45e
mov eax, ebx
call fcn.004afee4
cmp dword [ebx + 0x40], 0
je 0x4af457
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4af4cf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4af4c1
cmp dword [ebx + 8], 0
je 0x4af480
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4af492
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4af4c1
cmp dword [ebx + 8], 0
je 0x4af473
cmp eax, 3
je 0x4af4a5
dec eax
jne 0x4af473
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4af473
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4af473
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4af4ed
cmp dword [ebx + 0x14], 0xcc
je 0x4af4ed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004af4f8
pop ebx
ret

Function at 0x4bff68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, 1
test esi, esi
je 0x4bff8c
mov eax, esi
call fcn.004054ec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
test al, 0x10
setne al
and bl, al
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4c3408
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004054dc
mov eax, dword [ebp - 8]
call fcn.004054dc
xor eax, eax
push ebp
push 0x4c3588
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x4c3455
lea eax, [ebp - 4]
mov edx, 0x4c35a0
call fcn.004050c0
cmp dword [ebp - 8], 0
jne 0x4c3468
lea eax, [ebp - 8]
mov edx, 0x4c35ac
call fcn.004050c0
xor edx, edx
push ebp
push 0x4c3559
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x4c3485
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c34ad
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.00402d90
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x4c3505
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xe4]
mov dl, 1
call fcn.004c001c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xe4]
call fcn.0040507c
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x4c34da
sub eax, 4
mov eax, dword [eax]
add eax, 0xd
call fcn.00402d90
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x4c34f4
sub eax, 4
mov eax, dword [eax]
lea ecx, [eax + 1]
mov edx, dword [ebx + 0xe4]
mov eax, dword [ebp - 0xc]
call fcn.0040b2dc
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004054ec
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4c3543
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405220
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.0040ac0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3560
mov eax, dword [ebp - 0xc]
call fcn.00402dac
ret

Function at 0x4c3be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c3c85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
mov edx, esi
call fcn.00405438
je 0x4c3c6a
test esi, esi
je 0x4c3c5d
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040acd4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4c3c9c
call fcn.00405338
mov eax, dword [ebp - 4]
call fcn.004054ec
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
setne dl
cmp eax, 6
setne al
and dl, al
je 0x4c3c5d
push esi
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c18e0
call fcn.00404a54
lea eax, [ebx + 0xe4]
mov edx, esi
call fcn.0040507c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3c8c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040504c
ret
Function at 0x4c4a48
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
xor eax, eax
push ebp
push 0x4c4d60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
test eax, eax
jbe 0x4c4a8a
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 0xc]
call fcn.004c4488
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4c4c2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004054ec
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x100], ebx
cmp ebx, 0x20
jbe 0x4c4bad
push 0x4c4d70
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x118], esi
test esi, esi
je 0x4c4b03
push 0x4c4d7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x120], 0
je 0x4c4b2c
push 0x4c4d88
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x11c], 0
je 0x4c4b55
push 0x4c4d94
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x110], 0
je 0x4c4b7e
push 0x4c4da4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xec], 0
je 0x4c4c18
push 0x4c4db0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x108], eax
jmp 0x4c4c18
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0xea]
mov edx, dword [ebp - 0xc]
or al, byte [edx + 0xe8]
je 0x4c4c18
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040e098
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0x4c4dc0
call fcn.0040b924
mov eax, dword [ebp - 8]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 0xc]
call fcn.004c35b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4c36
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4c5c84
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0x4c5de0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x4c5d14
push 0x4c5dec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x4c5d0e
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x158]
call fcn.004054ec
push eax
call ebp
test eax, eax
jne 0x4c5d0e
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0x4c5d9f
cmp dword [esp + 0x10], 0xffffffff
jne 0x4c5d9f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x158]
call fcn.004054ec
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4c5d9f
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.004062e4
call fcn.004062e4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.004062e4
call fcn.004062e4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0x4c5dbb
mov eax, dword [esp + 0x10]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x184], eax
test edi, 2
je 0x4c5dd7
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1e8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1ec], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c7408
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c75cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
lea eax, [esi + 0x20c]
call fcn.00405028
mov byte [ebp - 0x114], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x158]
call fcn.00409988
mov eax, dword [ebp - 0x118]
movzx ebx, byte [eax]
cmp bl, 0x5c
je 0x4c74f8
cmp bl, 0x41
setb al
cmp bl, 0x5a
seta dl
or al, dl
je 0x4c74c4
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c18e0
call fcn.00404a54
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0x4c74d9
bt edi, eax
jb 0x4c74f8
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c18e0
call fcn.00404a54
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [esi + 0x158]
call fcn.004054ec
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4c7556
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
sete al
test byte [esi + 0x12e], 2
setne dl
and al, dl
je 0x4c754e
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0x4c75b4
lea eax, [esi + 0x20c]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00405298
test byte [ebp - 6], 8
setne al
mov byte [esi + 0x210], al
mov edx, 3
mov eax, esi
call fcn.004c5c84
push edi
call sub.kernel32.dll_SetErrorMode
cmp dword [esi + 0x1ec], 0xffffffff
jne 0x4c759b
cmp dword [esi + 0x1e8], 0xffffffff
setne al
cmp bl, 0x5c
setne dl
and al, dl
cmp bl, 0x5c
sete dl
or al, dl
je 0x4c75b4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c75d4
lea eax, [ebp - 0x118]
call fcn.00405028
ret
Function at 0x4cd5e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff750
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004054dc
mov eax, dword [ebp - 8]
call fcn.004054dc
mov eax, dword [ebp + 0x10]
call fcn.004054dc
xor eax, eax
push ebp
push 0x4cd824
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xa4], 6
jb 0x4cd743
push 0x4cd838
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
cmp edi, 0x20
jb 0x4cd801
push 0x4cd848
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je case.0x4cd6ec.0
lea edx, [ebp - 0x8aa]
mov ecx, 0x802
mov eax, dword [ebp - 4]
call fcn.00406260
lea edx, [ebp - 0x10ac]
mov ecx, 0x802
mov eax, dword [ebp - 8]
call fcn.00406260
lea edx, [ebp - 0x18ae]
mov ecx, 0x802
mov eax, dword [ebp + 0x10]
call fcn.00406260
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x18ae]
push eax
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x8aa]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x14]
mov ebx, 1
mov eax, dword [ebp - 0x10]
cmp eax, 8
ja case.0x4cd6ec.0
jmp dword [eax*4 + 0x4cd6f3]
mov ebx, 2
jmp case.0x4cd6ec.0
mov ebx, 4
jmp case.0x4cd6ec.0
mov ebx, 6
jmp case.0x4cd6ec.0
mov ebx, 7
jmp case.0x4cd6ec.0
mov ebx, 3
push edi
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4cd801
movzx ebx, word [0x4cd854]
mov eax, esi
and eax, 1
dec eax
jne 0x4cd75e
movzx eax, word [0x4cd858]
or ax, bx
mov ebx, eax
mov eax, esi
and eax, 2
cmp eax, 2
jne 0x4cd774
movzx eax, word [0x4cd85c]
or ax, bx
mov ebx, eax
mov eax, esi
and eax, 4
cmp eax, 4
jne 0x4cd78a
movzx eax, word [0x4cd860]
or ax, bx
mov ebx, eax
mov eax, esi
and eax, 8
cmp eax, 8
jne 0x4cd7a0
movzx eax, word [0x4cd864]
or ax, bx
mov ebx, eax
mov eax, esi
and eax, 0x10
cmp eax, 0x10
jne 0x4cd7b6
movzx eax, word [0x4cd868]
or ax, bx
mov ebx, eax
and esi, 0x20
cmp esi, 0x20
jne 0x4cd7ca
movzx eax, word [0x4cd86c]
or ax, bx
mov ebx, eax
mov al, 4
mov edx, dword [ebp + 8]
sub edx, 0x51
je 0x4cd7ef
sub edx, 3
je 0x4cd7e3
sub edx, 0xe
je 0x4cd7eb
dec edx
je 0x4cd7e7
jmp 0x4cd7f1
xor eax, eax
jmp 0x4cd7f1
mov al, 3
jmp 0x4cd7f1
mov al, 1
jmp 0x4cd7f1
mov al, 2
push 0
mov ecx, ebx
mov edx, eax
mov eax, dword [ebp + 0x10]
call fcn.004441d8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd82b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040504c
lea eax, [ebp + 0x10]
call fcn.00405028
ret
Function at 0x4cea9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cebfd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.004054ec
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4cebda
mov eax, dword [ebp - 8]
call fcn.00402d90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4cebd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4cec0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x14], 0
je 0x4ceb74
push 0x4cec30
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.0040a4b4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
shr eax, 0x10
movzx eax, ax
mov edx, 4
call fcn.0040a4b4
push dword [ebp - 0x24]
push 0x4cec4c
lea eax, [ebp - 4]
mov edx, 4
call fcn.004053ac
jmp 0x4ceb81
lea eax, [ebp - 4]
mov edx, 0x4cec58
call fcn.004050c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
mov ecx, dword [0x4e2738]
mov edx, dword [ebp - 4]
call fcn.00405338
mov eax, dword [ebp - 0x28]
call fcn.004054ec
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4cebba
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.00405220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cebda
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00402dac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cec04
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040504c
lea eax, [ebp - 4]
call fcn.00405028
ret