joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497410
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x49743f
xor eax, eax
jmp 0x4974cd
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
push ecx
call fcn.004f8626
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x497478
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4974cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.004f8090
add esp, 0xc
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4974c0
mov edx, dword [ebp - 8]
push edx
call fcn.004f84cf
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4974e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x49750c
xor eax, eax
jmp 0x497559
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x49754c
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x497560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 1
push 0
push 0
xor eax, eax
cmp dword [ebp + 0x14], 0
setne al
add eax, 2
push eax
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4975b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
xor eax, eax
jmp 0x4976cf
cmp dword [ebp + 0x14], 0
je 0x4975ca
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4975ee
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x18]
je 0x4975f5
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 3
cmp dword [ebp - 8], 0
jne 0x4976cc
cmp dword [ebp + 0x14], 0
jne 0x4976cc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x497632
mov dword [ebp - 0x34], 0
jmp 0x4976c0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x497654
mov dword [ebp - 0x38], 0
jmp 0x4976ba
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x2c], esp
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x2c], 0
je 0x497673
cmp dword [ebp - 0x10], 0
jne 0x49767c
mov dword [ebp - 0x38], 0
jmp 0x4976ba
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4976b4
mov dword [ebp - 0x38], 0
jmp 0x4976ba
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fdfac
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret

Function at 0x497750
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x497774
xor eax, eax
jmp 0x497799
cmp dword [ebp - 4], 0x80
jne 0x497784
mov dword [ebp - 8], 1
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x497a10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe68
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa64], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5668c0
lea edx, [ebp - 0xa60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xa60]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x545040
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa64], eax
mov edx, dword [ebp - 0x660]
and edx, 0x10
je 0x497b53
push 0x548c24
lea eax, [ebp - 0x634]
push eax
call fcn.004f937f
add esp, 8
test eax, eax
je 0x497ae3
push 0x545060
lea ecx, [ebp - 0x634]
push ecx
call fcn.004f937f
add esp, 8
test eax, eax
jne 0x497ae5
jmp 0x497b51
lea edx, [ebp - 0xa60]
push edx
lea eax, [ebp - 0xe68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0xe68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xe68]
push edx
call fcn.00497a10
add esp, 0xc
add eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
adc ecx, edx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], ecx
cmp dword [ebp + 0x10], 0
je 0x497b51
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x497b66
cmp dword [ebp + 0xc], 0
je 0x497b66
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x640]
xor eax, eax
add edx, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
adc ecx, eax
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], ecx
lea edx, [ebp - 0x660]
push edx
mov eax, dword [ebp - 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x497aa4
mov ecx, dword [ebp - 0xa64]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x498080
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa60], 0xffffffff
mov dword [ebp - 0xa58], 0
push 0x24c
push 0
lea eax, [ebp - 0xa54]
push eax
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0xa5c], 0
xor ecx, ecx
mov word [ebp - 0x808], cx
push 0x7fe
push 0
lea edx, [ebp - 0x806]
push edx
call fcn.004f8090
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4980fb
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x4980fb
xor eax, eax
jmp 0x4982ba
push 0x400
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jge 0x49812a
xor eax, eax
jmp 0x4982ba
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx edx, word [ebp + eax*2 - 0x80a]
cmp edx, 0x5c
je 0x498156
push 0x5668c0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x553504
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0xa58]
push edx
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa60], eax
cmp dword [ebp - 0xa60], 0xffffffff
jne 0x498192
xor eax, eax
jmp 0x4982ba
mov ecx, dword [ebp - 0xa58]
and ecx, 0x10
mov dword [ebp - 0xa5c], ecx
je 0x4981d6
push 0x548c24
lea edx, [ebp - 0xa2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4981cf
push 0x545060
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4981d4
jmp 0x49828c
jmp 0x4981e9
cmp dword [ebp + 0x1c], 0
je 0x4981e9
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [ebp - 0xa2c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0xa64], 0
cmp dword [ebp + 0x10], 0
je 0x49823f
cmp dword [ebp + 0x14], 0
je 0x49823f
lea ecx, [ebp - 0xa64]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0xa58]
push eax
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x49824f
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x49824f
jmp 0x4982a8
cmp dword [ebp - 0xa64], 0
je 0x49825a
jmp 0x49828c
cmp dword [ebp + 0xc], 0
je 0x49828c
cmp dword [ebp - 0xa5c], 0
je 0x49828c
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00498080
add esp, 0x18
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0xa60]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x498192
mov eax, dword [ebp - 0xa60]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x499650
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ce5b
mov eax, dword fs:[0]
push eax
sub esp, 0xac4
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x824], ax
push 0x400
push 0
lea ecx, [ebp - 0x822]
push ecx
call fcn.004f8090
add esp, 0xc
xor edx, edx
mov word [ebp - 0x41c], dx
push 0x400
push 0
lea eax, [ebp - 0x41a]
push eax
call fcn.004f8090
add esp, 0xc
push 0x200
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x5c
lea eax, [ebp - 0x824]
push eax
call fcn.004f8f45
add esp, 8
mov dword [ebp - 0xa78], eax
cmp dword [ebp - 0xa78], 0
je 0x4996fb
xor ecx, ecx
mov edx, dword [ebp - 0xa78]
mov word [edx + 2], cx
lea eax, [ebp - 0x824]
push eax
push str._sRC.tmp
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0xa74], 0
push 0x24c
push 0
lea edx, [ebp - 0xa70]
push edx
call fcn.004f8090
add esp, 0xc
lea eax, [ebp - 0xa74]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x49984e
push 0x548c24
lea edx, [ebp - 0xa48]
push edx
call fcn.004f937f
add esp, 8
test eax, eax
je 0x49978e
push 0x545060
lea eax, [ebp - 0xa48]
push eax
call fcn.004f937f
add esp, 8
test eax, eax
jne 0x499793
jmp 0x499825
mov ecx, dword [ebp - 0xa74]
and ecx, 0x10
jne 0x499825
lea edx, [ebp - 0xa48]
push edx
lea eax, [ebp - 0x824]
push eax
push 0x548c34
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x41c]
push edx
lea ecx, [ebp - 0xa80]
call fcn.00470200
mov dword [ebp - 0xacc], eax
mov eax, dword [ebp - 0xacc]
mov dword [ebp - 0xad0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xad0]
mov edx, dword [ecx]
push edx
push str.CleanRCXTempFile_Delete_File:__s.
call fcn.0047c040
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.00470c90
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xa74]
push ecx
mov edx, dword [ebp - 0xa7c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49975e
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x4a5500
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28d8
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28d8], 0
mov dword [ebp - 0x2890], 0x2880
lea eax, [ebp - 0x2890]
push eax
lea ecx, [ebp - 0x2888]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x28d4], eax
lea edx, [ebp - 0x2888]
mov dword [ebp - 0x288c], edx
push str.Not_found
lea eax, [ebp - 0x28d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x288c]
movzx edx, byte [ecx + 0x194]
cmp edx, 0xffffffff
jne 0x4a55ff
mov eax, dword [ebp - 0x288c]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0xffffffff
jne 0x4a55ff
mov edx, dword [ebp - 0x288c]
movzx eax, byte [edx + 0x196]
cmp eax, 0xffffffff
jne 0x4a55ff
mov ecx, dword [ebp - 0x288c]
movzx edx, byte [ecx + 0x197]
cmp edx, 0xffffffff
jne 0x4a55ff
mov eax, dword [ebp - 0x288c]
movzx ecx, byte [eax + 0x198]
cmp ecx, 0xffffffff
jne 0x4a55ff
mov edx, dword [ebp - 0x288c]
movzx eax, byte [edx + 0x199]
cmp eax, 0xffffffff
jne 0x4a55ff
mov ecx, dword [ebp - 0x288c]
cmp dword [ecx + 0x1a0], 6
je 0x4a55ff
mov edx, dword [ebp - 0x288c]
cmp dword [edx], 0
je 0x4a55ff
mov eax, dword [ebp - 0x288c]
mov ecx, dword [eax]
mov dword [ebp - 0x288c], ecx
jmp 0x4a5562
cmp dword [ebp - 0x288c], 0
je 0x4a5679
movzx edx, byte [ebp - 0x26ef]
push edx
movzx eax, byte [ebp - 0x26f0]
push eax
movzx ecx, byte [ebp - 0x26f1]
push ecx
movzx edx, byte [ebp - 0x26f2]
push edx
movzx eax, byte [ebp - 0x26f3]
push eax
movzx ecx, byte [ebp - 0x26f4]
push ecx
push str._02x_02x_02x_02x_02x_02x
lea edx, [ebp - 0x28d0]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
push 0x20
lea eax, [ebp - 0x28d0]
push eax
call fcn.004fbb1d
add esp, 8
lea ecx, [ebp - 0x28d0]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x28d8], 1
mov eax, dword [ebp - 0x28d8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret

Function at 0x4a5830
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret
Function at 0x4a70f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
jmp 0x4a7122
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jge 0x4a7198
mov ecx, dword [ebp - 0xc]
add ecx, 1
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movsx edx, byte [ebp - 1]
add edx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx], al
movsx ecx, byte [ebp - 1]
movsx edx, byte [ebp - 0x11]
add ecx, edx
movzx eax, cl
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ecx + eax]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x4a7119
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x4a7270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xb8], 0
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x4a72ae
xor eax, eax
jmp 0x4a743f
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.004f8626
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x4a72d3
xor eax, eax
jmp 0x4a743f
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xb0]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x4a7311
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004f84cf
add esp, 4
xor eax, eax
jmp 0x4a743f
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc0]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xb8]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x4a7359
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp - 0xb4]
jmp 0x4a743f
mov dword [ebp - 0xc4], 0
jmp 0x4a7374
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xac]
shr edx, 2
cmp dword [ebp - 0xc4], edx
jae 0x4a742a
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0xa8]
push eax
call fcn.004fbc08
add esp, 0x10
push 0x5668c0
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x4a7425
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004fb939
add esp, 8
jmp 0x4a742a
jmp 0x4a7365
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x4a7a60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x408], ax
lea ecx, [ebp - 0x408]
push ecx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4a7bc6
mov edx, dword [0x554120]
mov dword [ebp - 0x414], edx
mov ax, word [0x554124]
mov word [ebp - 0x410], ax
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
mov ax, word [edx]
mov word [ebp - 0x414], ax
push 0x200
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4a7b8e
lea eax, [ebp - 0x818]
push eax
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0x200
jae 0x4a7b8e
mov ecx, dword [ebp - 0x820]
push ecx
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004fddb6
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x81c], eax
je 0x4a7b8e
mov ecx, dword [ebp - 0x820]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x414]
push ecx
push 0x548c34
lea edx, [ebp - 0xc20]
push edx
call fcn.004fbc08
add esp, 0x10
push 0x200
lea eax, [ebp - 0xc20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fbbbe
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x40c]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x40c]
add ecx, 2
mov dword [ebp - 0x40c], ecx
test eax, eax
je 0x4a7bac
jmp 0x4a7b8e
cmp dword [ebp - 0x81c], 0
jne 0x4a7bc6
mov edx, dword [ebp - 0x40c]
movzx eax, word [edx]
test eax, eax
jne 0x4a7acc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x4a8c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d858
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1c]
call fcn.0044f320
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
push str.ProcessPPTW_Win7__s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00451560
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xd]
call fcn.004a7c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044f320
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0x5489ac
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xd]
call fcn.004a7d20
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
push 0x4a8bf0
push 0x2dc6c0
push str.PPCORE.DLL
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a7f10
add esp, 0x18
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd]
call fcn.004a7c40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044f990
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret