joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba0a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4ba10c.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x4ba1ac]
jmp dword [ecx*4 + 0x4ba1a4]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x4ba13c
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e7e30
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00439860
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423e75
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ba113
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4ba10c.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x4ba1ac]
jmp dword [ecx*4 + 0x4ba1a4]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x4ba13c
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e7e30
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00439860
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423e75
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4be365
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x657e63
call fcn.004249e9
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004e7e30
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x4be413
push eax
lea ecx, [ebp - 0x40]
call fcn.00403360
cmp dword [ebp - 0x30], esi
je 0x4be413
push 0x65e580
lea ecx, [ebp - 0x28]
call fcn.00403360
push ebx
lea ecx, [ebp - 0x28]
call fcn.00410070
push 0x66ad70
lea ecx, [ebp - 0x28]
call fcn.00410070
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00410220
jmp 0x4be41c
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403360
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4be44d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4be47b
cmp byte [ebp + 0x10], 0
je 0x4be468
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.00401860
lea ecx, [ebp - 0x28]
call fcn.00401860
mov eax, esi
call fcn.00424993
ret

Function at 0x4be67a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4be700
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004e7e30
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4be700
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4be6f5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004eb4a1
pop ecx
pop ecx
test eax, eax
je 0x4be710
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4be6d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423e75
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4be702
Function at 0x4bec2f
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4c0111
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x658044
call fcn.004249e9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.004c05af
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c0141
sub ecx, edx
sar ecx, 1
je 0x4c01dc
push 0x6d6d7c
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004fc2be
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004fc2be
push 0x6d6d7c
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004fc2be
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c01ce
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004c0ce1
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.00410010
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403360
call fcn.00424993
ret 8
Function at 0x4c01e4
Capabilities:
Check if file exists

Disassembly:
push 0xc7c
mov eax, 0x658082
call fcn.004249e9
mov esi, ecx
mov dword [ebp - 0xc88], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0xc84], edi
call fcn.004e7e30
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004e7e30
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e7e30
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004e7e30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e7e30
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004e7e30
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, esi
call fcn.004c05af
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004f8bf9
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004e7511
add esp, 0x14
test eax, eax
jne 0x4c02e0
mov ecx, esi
jmp 0x4c044f
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.004f8bf9
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.004fc2be
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.004f8bf9
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004fc2be
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor ecx, ecx
test eax, eax
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc84], ecx
push 0x104
push eax
call fcn.004f8bf9
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.004fc2be
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x4c0449
cmp dword [ebp - 0xc84], 0
je 0x4c0449
test ecx, ecx
je 0x4c0449
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x66b04c
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00415fd0
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c0435
and dword [ebp - 0xc5c], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004c0ce1
pop ecx
pop ecx
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], 0
call fcn.00410010
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00403360
jmp 0x4c045c
mov ecx, dword [ebp - 0xc88]
push ebx
lea eax, [ebp - 0xc58]
push eax
call fcn.004c0111
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.0040fe70
lea ecx, [ebp - 0xc58]
call fcn.00401860
mov eax, edi
call fcn.00424993
ret 8
Function at 0x4c0ce1
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4c0cf6
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c0d18
mov al, 1
jmp 0x4c0da9
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004244d3
push esi
mov ebx, eax
push 0
push ebx
call fcn.00401460
push dword [ebp + 8]
push esi
push ebx
call fcn.004f8bf9
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4c0d57
cmp eax, 0x2f
jne 0x4c0d93
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c0d8c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c0d9a
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4c0d8c
push ebx
mov ecx, eax
call fcn.004c0cc4
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4c0d49
jmp 0x4c0d9e
mov byte [ebp - 1], 0
push ebx
call fcn.00423e86
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4c0e43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004e7e30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4c0eae
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4c0ebc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403390
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00423e75
leave
ret
Function at 0x4c3645
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x6586cb
call fcn.004249e9
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004c3363
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c3677
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x66b25c
call fcn.00410070
push 0x66b260
mov ecx, esi
call fcn.00410070
push 0x6d6d7c
mov ecx, esi
call fcn.00410070
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00410220
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c36cc
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c3764
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e7e30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c3237
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c3723
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00410070
push 0x6d6d7c
mov ecx, esi
call fcn.00410070
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00410220
cmp dword [esi + 0x14], 8
jb 0x4c376c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c3784
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x66b25c
call fcn.00410070
push 0x66b260
mov ecx, esi
call fcn.00410070
push 0x6d6d7c
mov ecx, esi
call fcn.00410070
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004c33c2
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004100a0
lea ecx, [ebp - 0x248]
call fcn.00401860
lea ecx, [ebp - 0x230]
call fcn.00401860
call fcn.00424993
ret
Function at 0x4c49f3
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x65888e
call fcn.004249e9
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4c4a14
push dword [esi + 0x1c]
call fcn.00501a96
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c3e0d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004fc35b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4c4a98
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004c3e0d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c3e0d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401860
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401860
sub edi, 1
jns 0x4c4a42
mov ecx, esi
call fcn.004c48d2
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401860
call fcn.00424993
ret

Function at 0x4c4ab1
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x65888e
call fcn.004249e9
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4c4ad2
push dword [esi + 0x1c]
call fcn.00501a96
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c3e0d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004fc35b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4c4b56
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004c3e0d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c3e0d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401860
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401860
sub edi, 1
jns 0x4c4b00
mov ecx, esi
call fcn.004c4969
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401860
call fcn.00424993
ret
Function at 0x4c55d1
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00425210
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.004e7e30
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e7e30
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408cb0
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c5667
mov al, 1
jmp 0x4c5770
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.004e7e30
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.004e7e30
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.004e7e30
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4c56e9
mov bl, 2
jmp 0x4c5767
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004c577f
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004c577f
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c572a
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004bf402
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c574b
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004bf402
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423e75
leave
ret
Function at 0x4c5a7f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x4c5b90
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4c5b8f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4c5aae
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4c5b8f
push 0x6fa5b6
push eax
call fcn.0042472a
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4c5b8f
cmp dword [esi + 0x14], 0x10
jb 0x4c5ae3
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x4c5b7d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4c5b7d
mov eax, dword [ebp - 0x10]
push 0x6fa5b6
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.0042472a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c5b7d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4c5b46
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00408cb0
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4c5b7b
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.0040aa80
mov bl, 1
push esi
call fcn.00423e86
pop ecx
test edi, edi
je 0x4c5b8f
push edi
call fcn.00423e86
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x4c5be1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004e7e30
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004c5b96
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4c5c60
cmp dword [ebp - 0x118], ebx
jbe 0x4c5ca6
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4c5ca6
cmp eax, 6
jne 0x4c5c8b
cmp byte [ebp - 6], 1
jne 0x4c5c86
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4c5c82
sub eax, 1
je 0x4c5c7e
push 7
jmp 0x4c5c88
push 5
jmp 0x4c5c88
push 3
jmp 0x4c5c88
push 4
pop ebx
jmp 0x4c5ca6
push 0xa
pop ecx
cmp eax, ecx
jne 0x4c5ca3
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4c5ca6
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00423e75
leave
ret