joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2398
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c23b2
test al, 0x10
jne 0x4c23b2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c2528
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0xe84], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x24c
mov dword [ebp - 0xe88], eax
lea eax, [ebp - 0xe80]
push 0
push eax
call fcn.004dbc00
xor eax, eax
mov ebx, 0x40e
push ebx
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004dbc00
xor eax, eax
push ebx
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.004dbc00
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004dbc00
push edi
call fcn.004c2398
add esp, 0x34
test eax, eax
je 0x4c25d5
test esi, esi
je 0x4c2733
lea eax, [ebp - 0xe84]
push eax
push edi
call esi
jmp 0x4c2733
push edi
lea eax, [ebp - 0xc34]
push 0x5368f8
push eax
call fcn.004dee96
add esp, 0xc
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xe8c], ebx
cmp ebx, 0xffffffff
je 0x4c2733
test byte [ebp - 0xe84], 0x10
lea eax, [ebp - 0xe58]
je 0x4c26e0
push 0x54ae00
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4c270e
lea eax, [ebp - 0xe58]
push 0x54ae04
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4c270e
lea eax, [ebp - 0xe58]
push eax
push edi
lea eax, [ebp - 0x414]
push 0x536904
push eax
call fcn.004dee96
mov eax, dword [ebp - 0xe88]
add esp, 0x10
test eax, eax
je 0x4c26c6
lea ecx, [ebp - 0xe84]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
test eax, eax
jne 0x4c26c0
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004db2c2
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4c2726
push ebx
call fcn.004db28a
add eax, eax
push eax
push 0
push ebx
call fcn.004dbc00
mov ebx, dword [ebp - 0xe8c]
add esp, 0x10
mov eax, dword [ebp - 0xe88]
push eax
push esi
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004c2528
add esp, 0x10
jmp 0x4c270e
push eax
push edi
lea eax, [ebp - 0x824]
push 0x536904
push eax
call fcn.004dee96
add esp, 0x10
test esi, esi
je 0x4c270e
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
je 0x4c272c
lea eax, [ebp - 0xe84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c260f
jmp 0x4c272c
mov ebx, dword [ebp - 0xe8c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4c2a37
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4c2a45
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jl 0x4c2b02
push edi
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
dec edi
jne 0x4c2a68
pop edi
test esi, esi
je 0x4c2b1b
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536918]
inc edx
dec esi
jne 0x4c2b06
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4c426f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
push edi
mov edi, ecx
test esi, esi
jne 0x4c42a1
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.004c6a9c
xor al, al
jmp 0x4c43db
call fcn.004c39d1
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.004df9fe
push esi
call fcn.004dfe11
push ebx
push ebx
push esi
mov dword [ebp - 0x24], eax
call fcn.004df9fe
mov esi, dword [ebp - 0x24]
add esp, 0x1c
test esi, esi
jne 0x4c42dd
push ebx
push ebx
push ebx
push 0xd
mov ecx, edi
jmp 0x4c4295
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.004178d0
lea eax, [esi + 1]
push eax
call fcn.004db0c5
push dword [ebp - 0x2c]
mov esi, eax
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
push esi
mov byte [esi], bl
call fcn.004df8c3
add esp, 0x14
cmp eax, 1
je 0x4c4331
push esi
call fcn.004db0ce
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.004c6a9c
jmp 0x4c43c4
mov edx, dword [ebp - 0x24]
mov ecx, esi
mov eax, ecx
mov byte [eax + edx], bl
cmp byte [eax], bl
je 0x4c4391
mov al, byte [esi]
cmp al, 0xa
jne 0x4c4357
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f40
inc esi
jmp 0x4c4388
cmp al, 0xd
jne 0x4c438c
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x4c436d
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f40
push 0xa
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405030
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x4c4386
add esi, 2
jmp 0x4c4388
mov esi, eax
mov ecx, esi
jmp 0x4c438d
inc esi
cmp byte [esi], bl
jne 0x4c433f
sub esi, ecx
je 0x4c439f
push esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f40
push dword [ebp - 0x28]
call fcn.004db0ce
cmp dword [ebp - 8], 0x10
mov eax, dword [edi]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ebx
push ecx
mov ecx, edi
call dword [eax + 8]
cmp byte [edi + 0x40], bl
je 0x4c43c9
mov byte [ebp - 0x1d], bl
jmp 0x4c43cd
mov byte [ebp - 0x1d], 1
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405280
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret 8
Function at 0x4c81e5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.004b1dd6
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c8292
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4c8291
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.004b228a
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c8291
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4c8291
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4c8246
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.004c7eaa
test esi, esi
je 0x4c828e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c885c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x248], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x230], ebx
call fcn.004dbc00
add esp, 0xc
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c88cd
xor eax, eax
jmp 0x4c8a43
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4c8a21
test esi, esi
je 0x4c88fc
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x234], 0
je 0x4c8914
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004ddca4
pop ecx
pop ecx
test eax, eax
jne 0x4c89de
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4c89de
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x240], eax
jne 0x4c89de
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4c89de
lea eax, [ebp - 0x234]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c89de
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
and dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 1
push dword [ebp - 0x234]
call fcn.004c8642
add esp, 0x10
test eax, eax
je 0x4c89de
mov eax, dword [ebp - 0x238]
push dword [eax]
call fcn.004c8772
pop ecx
push dword [ebp - 0x238]
test eax, eax
je 0x4c89f5
call fcn.004c85c4
and dword [ebp - 0x238], 0
pop ecx
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c88f3
jmp 0x4c8a1a
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x244], 1
mov dword [ecx], eax
call fcn.004c85c4
and dword [ebp - 0x238], 0
pop ecx
test esi, esi
je 0x4c8a21
push esi
call edi
cmp dword [ebp - 0x234], 0
je 0x4c8a39
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
push ebx
call edi
mov eax, dword [ebp - 0x244]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4cbfb0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x264], esi
call fcn.004dbc00
add esp, 0xc
lea ecx, [ebp - 0x260]
push esi
call fcn.004af106
call fcn.004afc69
push eax
lea ecx, [ebp - 0x258]
call fcn.004af046
push 0x5380c4
mov edi, 0x104
lea ecx, [ebp - 0x260]
push edi
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.004b5fc5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4cc08a
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004b05d5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
mov edi, 0x104
push esi
lea ecx, [ebp - 0x258]
call fcn.004b071e
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x258]
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004b5fc5
push dword [ebp - 0x268]
lea ecx, [ebp - 0x25c]
call fcn.004af106
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004b5fc5
test byte [ebp - 0x254], 0x10
mov edi, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
je 0x4cc186
lea eax, [ebp - 0x228]
push 0x54ae00
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4cc149
lea eax, [ebp - 0x228]
push 0x54ae04
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4cc149
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4cc154
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
jmp 0x4cc193
cmp dword [ebp + 0x10], 0
je 0x4cc190
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cc16c
push esi
call fcn.004cc270
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4cc190
push dword [ebp + 0x10]
push esi
push edi
call fcn.004cbfb0
add esp, 0xc
jmp 0x4cc190
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esi - 0x10]
call fcn.004b05d5
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x264]
test eax, eax
jne 0x4cc085
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4cc05c
Function at 0x4cc1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004af106
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004af106
lea eax, [ebp - 8]
push eax
call fcn.004d0d1a
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4cc1fe
mov esi, dword [ebp - 4]
jmp 0x4cc256
push ebx
push edi
call fcn.004d096b
pop ecx
pop ecx
test eax, eax
jne 0x4cc251
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cc251
lea eax, [ebp - 4]
push eax
call fcn.004d0d8d
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], ebx
je 0x4cc257
push esi
call fcn.004cc1c0
pop ecx
test eax, eax
je 0x4cc257
push ebx
push edi
call fcn.004d096b
pop ecx
pop ecx
test eax, eax
jne 0x4cc254
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cc254
jmp 0x4cc257
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.004b05d5
lea ecx, [esi - 0x10]
call fcn.004b05d5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ccc02
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
neg esi
mov dword [ebp - 0x410], ecx
push eax
sbb esi, esi
xor edi, edi
and esi, 0x100
mov eax, esi
or eax, 0xf003f
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cccbd
jmp 0x4ccc6f
push dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.004ccc02
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4cccce
lea eax, [ebp - 0x418]
mov dword [ebp - 0x40c], 0x200
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4ccc51
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
push dword [ebp - 0x410]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4cccbd
Function at 0x4ccd06
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
mov edx, dword [ebp - 0x10]
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret

Function at 0x4cd331
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004af616
add eax, 0x10
mov dword [esp], 0x54ade8
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], eax
call fcn.004af3f9
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x4cd3c0
xor eax, eax
mov ecx, edi
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004d2be2
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.004b05d5
lea ecx, [ebp + 0x10]
call fcn.004d3c5d
lea ecx, [ebp + 0x10]
call fcn.004d3c5d
jmp 0x4cd4f7
xor eax, eax
lea ecx, [ebp - 0x260]
push ebx
push eax
push eax
mov dword [ebp - 0x25c], eax
call fcn.004d2be2
mov ebx, eax
mov dword [ebp - 0x260], ebx
test byte [ebp - 0x254], 0x10
je 0x4cd492
cmp dword [ebp + 0x20], 0
lea eax, [ebp - 0x228]
push eax
jne 0x4cd41e
lea ecx, [ebp - 0x258]
call fcn.004af106
lea eax, [ebp - 0x258]
push eax
push ebx
lea ecx, [ebp - 0x260]
call fcn.004c9655
mov ecx, dword [ebp - 0x258]
jmp 0x4cd484
lea ecx, [ebp - 0x268]
call fcn.004af106
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4cd509
mov eax, dword [ecx]
lea edx, [ebp - 0x268]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x268]
mov bl, al
add ecx, 0xfffffff0
call fcn.004b05d5
test bl, bl
je 0x4cd48c
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x264]
call fcn.004af106
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.004c9655
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cd3de
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x260]
mov ecx, edi
push eax
call fcn.004cae12
lea ecx, [ebp - 0x260]
call fcn.004d3f21
push dword [ebp - 0x260]
call fcn.004daf7e
pop ecx
lea ecx, [esi - 0x10]
call fcn.004b05d5
lea ecx, [ebp + 0x10]
call fcn.004d3c5d
lea ecx, [ebp + 0x10]
call fcn.004d3c5d
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
call fcn.00511167
int3
Function at 0x4cd89a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5610ec]
push esi
xor esi, esi
test al, 1
jne 0x4cd8e4
or eax, 1
mov dword [0x5610e8], 7
mov dword [0x5610ec], eax
xor eax, eax
push 0x532760
mov dword [0x5610e4], esi
mov word [0x5610d4], ax
call fcn.004db0b0
pop ecx
cmp dword [0x5610e4], esi
je 0x4cd8f6
mov eax, 0x5610d4
jmp 0x4cd9b2
push ebx
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004dbc00
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x5610d4
test eax, eax
je 0x4cd9ae
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004db19e
pop ecx
pop ecx
push esi
push esi
push esi
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x210]
push esi
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4cd9ae
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x537ee4
push ebx
push eax
call fcn.004d1da8
add esp, 0x10
cmp word [ebp - 0x20c], si
je 0x4cd99f
lea eax, [ebp - 0x20c]
push eax
call fcn.004db28a
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, edi
call fcn.004063e0
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret

Function at 0x4ce396
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4ce41d
push esi
push edi
call fcn.004db0c5
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4ce411
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x549ba8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4ce411
cmp dword [ebp - 8], ebx
je 0x4ce411
mov ecx, dword [ebp - 0xc]
mov bl, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x4ce41c
push esi
call fcn.004db0ce
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret