joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046a988
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404568
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46b31e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5815b0]
mov dl, 1
mov eax, dword [0x46a880]
call fcn.0040f228
call fcn.00403b0c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46b328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404568
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x46b380
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5818b8]
mov dl, 1
mov eax, dword [0x46a880]
call fcn.0040f228
call fcn.00403b0c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046a9b8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46b7a8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
movzx eax, word [0x584ce4]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b80c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
test eax, eax
je 0x46b80c
xor edx, edx
push ebp
push 0x46b805
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax]
mov dword [ebx], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b80c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46b814
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
movzx eax, word [0x584ce6]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b878
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
test eax, eax
je 0x46b878
xor edx, edx
push ebp
push 0x46b871
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax]
mov dword [ebx], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b878
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x46b880
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x46b973
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b958
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
test ebx, ebx
je 0x46b958
xor edx, edx
push ebp
push 0x46b951
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.0040ce64
cmp eax, 6
jne 0x46b93a
lea eax, [ebp - 0x110]
mov edx, ebx
call fcn.00403094
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.0040432c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x46b98c
call fcn.004043f0
mov eax, dword [ebp - 0xc]
or edx, 0xffffffff
call fcn.0040c4f4
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
call fcn.0046a524
cmp eax, 0xffffffff
je 0x46b93a
mov dword [esi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b958
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b97a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040411c
ret

Function at 0x46b990
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
push 4
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46ba04
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
test eax, eax
je 0x46ba04
xor edx, edx
push ebp
push 0x46b9fd
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [eax], ebx
mov eax, dword [ebp - 8]
push eax
movzx eax, word [0x584ce4]
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ba04
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46ba0c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
push 4
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46ba80
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
test eax, eax
je 0x46ba80
xor edx, edx
push ebp
push 0x46ba79
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [eax], ebx
mov eax, dword [ebp - 8]
push eax
movzx eax, word [0x584ce6]
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ba80
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x46ba88
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x46bb4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0046a524
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x10]
mov eax, 6
call fcn.0040c478
push 7
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46bb37
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
test ebx, ebx
je 0x46bb37
xor eax, eax
push ebp
push 0x46bb30
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00404574
mov edx, ebx
mov ecx, 7
call fcn.00402bb8
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
test eax, eax
setne byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb37
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb54
lea eax, [ebp - 0x10]
call fcn.004040f8
ret

Function at 0x46d2d8
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
mov eax, ebx
call fcn.0046d358
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x46d318
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46d2f7
mov edx, eax
mov eax, ebx
call fcn.004442e4
mov byte [ebx + 0x36], 1
jmp 0x46d30d
mov ecx, 0x46d324
mov dl, 1
mov eax, dword [0x46cf88]
call fcn.0040f130
call fcn.00403b0c
add esp, 0x160
pop ebx
ret

Function at 0x46d40c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404558
xor eax, eax
push ebp
push 0x46d47f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0046d358
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404568
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46d466
mov ebx, dword [ebp - 0x160]
jmp 0x46d469
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d486
lea eax, [ebp - 4]
call fcn.004040f8
ret
Function at 0x46d490
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
xor ecx, ecx
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00404db4
xor eax, eax
push ebp
push 0x46d53f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x581898]
cmp dword [eax], 2
je 0x46d4e6
lea eax, [ebp - 0x2bc]
mov edx, dword [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 0x2bc]
mov eax, ebx
call fcn.0046d40c
mov ebx, eax
jmp 0x46d51e
mov eax, ebx
call fcn.0046d358
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x46d51b
mov ebx, dword [ebp - 0x2b4]
jmp 0x46d51e
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d546
lea eax, [ebp - 0x2bc]
call fcn.004040f8
lea eax, [ebp - 4]
call fcn.004047a8
ret

Function at 0x46d550
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404558
xor eax, eax
push ebp
push 0x46d5ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0046d358
or eax, 0x4000
or eax, 0x10
push eax
push 0x160
lea eax, [ebp - 0x164]
push eax
push esi
lea ecx, [ebp - 0x168]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046d368
mov eax, dword [ebp - 0x168]
call fcn.00404568
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46d5ca
mov ebx, dword [ebp - 0x160]
jmp 0x46d5cd
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d5f5
lea eax, [ebp - 0x168]
call fcn.004040f8
lea eax, [ebp - 4]
call fcn.004040f8
ret

Function at 0x46d600
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffe9c
mov ebx, eax
push esp
xor eax, eax
mov al, dl
mov eax, dword [eax*4 + 0x57b488]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, ebx
call fcn.0046d358
or eax, 0x4008
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46d64a
mov eax, dword [esp + 8]
jmp 0x46d64d
or eax, 0xffffffff
add esp, 0x164
pop ebx
ret

Function at 0x46fbe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x46fc3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5812f4]
cmp byte [eax], 0
je 0x46fc0a
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
jmp 0x46fc24
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004042f0
mov eax, dword [ebp - 4]
call fcn.00404568
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc41
lea eax, [ebp - 4]
call fcn.004040f8
ret
Function at 0x46fd88
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46fe5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5812f4]
cmp byte [eax], 0
je 0x46fde0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404900
mov eax, dword [ebp - 4]
call fcn.0046f740
push eax
push ebx
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
jmp 0x46fe3a
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
mov edx, dword [ebp + 0xc]
call fcn.004042f0
mov eax, dword [ebp - 8]
call fcn.0046f72c
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.004042f0
mov eax, dword [ebp - 0xc]
call fcn.0046f72c
push eax
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004042f0
mov eax, dword [ebp - 0x10]
call fcn.0046f72c
push eax
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004042f0
mov eax, dword [ebp - 0x14]
call fcn.0046f72c
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fe64
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040411c
lea eax, [ebp - 4]
call fcn.004047a8
ret

Function at 0x470220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408854
cmp ax, 0xffff
jne 0x470241
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x4702c2
push eax
push edi
call sub.KERNEL32.DLL_LoadResource
test eax, eax
je 0x4702c2
push eax
call sub.KERNEL32.DLL_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x470288
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x47027b
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x4702c2
cmp dword [ebp + 8], 0
jle 0x4702c2
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.00427d60
mov esi, eax
test esi, esi
jle 0x4702b9
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00408870
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x471248
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4712a4
push esp
push 0x40
push 6
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x471273
call fcn.0046e74c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402bb8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4712a4
call fcn.0046e74c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x47494c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x474a16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004040f8
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x474a00
xor eax, eax
push ebp
push 0x4749f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push edi
push esi
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4749de
mov eax, ebx
mov edx, 0x104
call fcn.004046d8
mov eax, dword [ebx]
call fcn.00404568
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4749d7
mov eax, dword [ebx]
call fcn.00404568
call fcn.0040ce64
mov edx, eax
mov eax, ebx
call fcn.004046d8
jmp 0x4749de
mov eax, ebx
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a00
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a1d
lea eax, [ebp - 4]
call fcn.00406798
ret

Function at 0x4758a4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4758fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x581898]
cmp dword [eax], 2
jne 0x4758ce
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
jmp 0x4758e8
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004042f0
mov eax, dword [ebp - 4]
call fcn.00404568
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475905
lea eax, [ebp - 4]
call fcn.004040f8
ret
Function at 0x47592c
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, edx
mov dword [esp], 0x3c
mov dword [esp + 4], 0x44c
mov dword [esp + 8], eax
mov eax, 0x475988
mov dword [esp + 0xc], eax
mov eax, ebx
call fcn.00404568
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
push esp
call sub.shell32.dll_ShellExecuteExA
neg eax
sbb eax, eax
neg eax
add esp, 0x3c
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049e4
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x475d21
test al, 0x10
jne 0x475d25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47df24
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e13a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040c988
mov eax, dword [ebp - 0x1d4]
call fcn.004640dc
push 1
push 0
push 0
push 0
mov cl, 1
mov dl, 1
mov eax, dword [0x47c768]
call fcn.0047c9e8
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040c6c4
test al, al
je 0x47dfc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040c6d4
mov edx, eax
and edx, 0xfffffff8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040c6e8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1d0]
call fcn.00406a9e
lea eax, [ebp - 0x1d0]
call fcn.00406bbe
call fcn.00402b2c
xor eax, eax
push ebp
push 0x47e0f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x47e150
lea eax, [ebp - 0x1d0]
call fcn.00404768
call fcn.00406c97
call fcn.00402b2c
push 0x47e168
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045aca0
push dword [ebp - 0x1dc]
push 0x47e17c
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00404464
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.00404768
call fcn.00406c97
call fcn.00402b2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
lea edx, [ebp - 0x1d0]
mov ecx, 0x47e190
mov eax, dword [ebp - 4]
call fcn.0047e1f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea edx, [ebp - 0x1d0]
mov ecx, 0x47e1a0
mov eax, dword [ebp - 4]
call fcn.0047e1f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
lea edx, [ebp - 0x1d0]
mov ecx, 0x47e1b0
mov eax, dword [ebp - 4]
call fcn.0047e1f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
lea edx, [ebp - 0x1d0]
mov ecx, 0x47e1c8
mov eax, dword [ebp - 4]
call fcn.0047e1f0
mov edx, 0x47e1e0
lea eax, [ebp - 0x1d0]
call fcn.00404768
call fcn.00406c97
call fcn.00402b2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e0fe
lea eax, [ebp - 0x1d0]
call fcn.00406b40
call fcn.00402b2c
ret
Function at 0x47e950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47eaee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax + 0x35], 0
jne 0x47ead3
mov eax, dword [ebp - 8]
mov byte [eax + 0x35], 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00404568
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x47ead3
mov eax, ebx
call fcn.004029f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47eac5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00404568
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47eaaf
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x47ea45
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x47eafc
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47ea45
cmp dword [ebp - 0x10], 4
jne 0x47ea45
mov ebx, dword [ebp - 4]
xor eax, eax
mov al, byte [ebx + 2]
xor edx, edx
mov dl, byte [ebx + 3]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebx]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 0x18
or eax, edx
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040c43c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, 8
call fcn.0040414c
xor esi, esi
mov ebx, 0x57b640
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x47eb20
mov eax, dword [ebp - 8]
push dword [eax + 8]
push 0x47eb3c
push dword [ebx]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404464
mov eax, dword [ebp - 0x1c]
call fcn.00404568
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47ea9a
mov eax, dword [ebp - 8]
lea eax, [eax + esi*4 + 0xc]
mov edx, dword [ebp - 4]
call fcn.004042c0
jmp 0x47eaa6
mov eax, dword [ebp - 8]
lea eax, [eax + esi*4 + 0xc]
call fcn.004040f8
inc esi
add ebx, 4
cmp esi, 0xa
jne 0x47ea4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eacc
mov eax, dword [ebp - 0xc]
call fcn.00402a0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eaf5
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040411c
ret