joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45123e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x238]
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.004ef550
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4512ae
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004ef550
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push ebx
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x451312
dec eax
jne 0x451327
cmp dword [ebp - 0x74], 4
jbe 0x4512f0
cmp dword [ebp - 0x74], 5
jne 0x4512db
cmp dword [ebp - 0x70], eax
je 0x4512f0
push ebx
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
add esp, 0x10
jmp 0x4512fe
push ebx
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
add esp, 0xc
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x234]
call fcn.00450558
jmp 0x451324
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x234]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x228
leave
ret 0xc
Function at 0x4517e3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x54], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x48], eax
test eax, eax
je 0x45191f
push ebx
push eax
call fcn.004dcd28
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x48]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x451917
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x516d4c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x451917
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4518f9
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push eax
lea eax, [ebp - 0x44]
push 0x519650
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4518b2
push dword [ebp - 0x48]
lea eax, [esi + 0x10]
push 0x100
push eax
call fcn.00450b87
add esp, 0xc
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x44]
push 0x519628
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4518f9
push dword [ebp - 0x48]
lea eax, [esi + 0x110]
push 0x100
push eax
call fcn.00450b87
add esp, 0xc
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
push ebx
call fcn.004dcd33
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004edcb6
leave
ret 8
Function at 0x45ad07
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push str.setupapi.dll
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x48], edi
cmp edi, ebx
je 0x45ae97
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push edi
call esi
push str.SetupDiEnumDeviceInfo
push edi
mov dword [ebp - 0x24], eax
call esi
push str.SetupDiGetDeviceRegistryPropertyA
push edi
mov dword [ebp - 0x38], eax
call esi
push str.SetupDiOpenDevRegKey
push edi
mov dword [ebp - 0x2c], eax
call esi
push str.SetupDiDestroyDeviceInfoList
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x24], ebx
je 0x45aea9
cmp dword [ebp - 0x38], ebx
je 0x45aea9
cmp dword [ebp - 0x2c], ebx
je 0x45aea9
cmp dword [ebp - 0x40], ebx
je 0x45aea9
cmp eax, ebx
je 0x45aea9
push 2
push ebx
push ebx
push 0x5599a8
call dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x45aea9
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x34], ebx
call dword [ebp - 0x38]
test eax, eax
je 0x45ae8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, str.EDID
push 1
push 1
push ebx
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x45ae6f
lea ecx, [ebp - 0x30]
push ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
call esi
test eax, eax
jne 0x45ae66
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call esi
push 0xa0
call fcn.004dccf9
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ebx
mov dword [ebp - 0x28], eax
call fcn.0045a6af
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
call fcn.0045aa1e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 1
xor ebx, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call dword [ebp - 0x38]
test eax, eax
jne 0x45ade1
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x24]
call dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x45ae9a
Function at 0x46340e
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
mov esi, dword [ebp + 0x1bc]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, esi
mov dword [ebp - 0x60], edi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
xor ebx, ebx
test dword [edi + 8], 0x2000000
je 0x46345e
lea eax, [ebp - 0x64]
push eax
push esi
mov ecx, edi
call fcn.00463342
jmp 0x463476
cmp dword [esi + 0x44], 1
jne 0x463474
lea eax, [ebp - 0x64]
push eax
push esi
mov ecx, edi
call fcn.00463342
test eax, eax
jne 0x46347e
xor eax, eax
test eax, eax
je 0x46359f
xor eax, eax
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x50]
push eax
push 0xc
lea eax, [ebp - 0x5c]
push eax
push 0x2d1400
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46353d
cmp dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x5c], eax
jne 0x463538
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4634f1
cmp eax, dword [ebp - 0x4c]
jae 0x4634f1
mov ecx, dword [ebp - 0x60]
lea ebx, [ebp + eax - 0x50]
push ebx
call fcn.00463318
push ebx
push edi
push dword [esi + 0x18]
call fcn.004ef010
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x463538
cmp eax, dword [ebp - 0x4c]
jae 0x463538
mov ecx, dword [ebp - 0x60]
lea ebx, [ebp + eax - 0x50]
push ebx
call fcn.00463318
mov eax, dword [esi + 0x18]
cmp byte [eax], 0
je 0x46352d
push 0x51cd94
push edi
push eax
call fcn.00450c1b
push ebx
push edi
push dword [esi + 0x18]
call fcn.00450c1b
add esp, 0x18
jmp 0x463538
push ebx
push edi
push eax
call fcn.004ef010
add esp, 0xc
xor ebx, ebx
inc ebx
jmp 0x463543
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x60], 0
push 0x18
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004ef550
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0x18
lea ecx, [ebp - 0x80]
push ecx
push eax
push eax
push 0x74080
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x463586
mov eax, dword [ebp - 0x7c]
shr eax, 2
and eax, 1
mov dword [esi + 0x40], eax
jmp 0x46358c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46359f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x1b4
leave
ret 4
Function at 0x46bfa2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x214]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x46c00b
lea ecx, [esi + 0x224]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x220]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7d0
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46bff2
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x46bff5
xor ebx, ebx
inc ebx
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
jne 0x46c00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x46c014
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x218]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x46c07d
lea ecx, [esi + 0x224]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x21c]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x7d0
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46c064
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x46c067
xor ebx, ebx
inc ebx
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
jne 0x46c07d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x481971
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
push 7
pop ebx
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.004815f9
movzx ecx, byte [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
shl edx, 0x1c
or ecx, edx
or ecx, 0x8000000
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00481ce9
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
and ecx, ebx
or ecx, 0xffffffa0
shl ecx, 8
or ecx, dword [ebp + 0x10]
shl ecx, 0x10
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 4
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00481ce9
mov dword [ebp + 8], 0x186a0
mov edi, 0x10000000
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.004815f9
mov eax, dword [ebp - 4]
test edi, eax
jne 0x481a55
test eax, 0xa0000000
jne 0x481a5a
dec dword [ebp + 8]
jns 0x481a22
mov ecx, eax
and ecx, 0xa0000000
cmp ecx, 0x80000000
je 0x481b46
mov dword [ebp + 8], 0x3e8
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.004815f9
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x20]
xor ecx, 0x8000000
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00481ce9
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.004815f9
mov eax, dword [ebp - 4]
and eax, 0xb0000000
cmp eax, edi
je 0x481b07
dec dword [ebp + 8]
jns 0x481a75
mov dword [ebp + 8], 0x3e8
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.004815f9
mov eax, dword [ebp - 4]
test edi, eax
jne 0x481b41
test eax, 0xa0000000
jne 0x481b46
dec dword [ebp + 8]
jns 0x481b0e
mov ecx, eax
pop edi
and ecx, 0xa0000000
pop esi
pop ebx
cmp ecx, 0x80000000
jne 0x481b6b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
shr eax, 8
mov byte [ecx], al
xor eax, eax
inc eax
jmp 0x481b6d
xor eax, eax
leave
ret 0x14
Function at 0x499947
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x108]
test ecx, ecx
jne 0x499956
xor eax, eax
ret 4
jmp fcn.0046bfa2

Function at 0x4da6c7
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov dword [ebp - 0x18], eax
call esi
push str.SMBiosData
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
push 2
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4da864
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x4da736
cmp eax, 0x80010119
jne 0x4da819
lea eax, [ebp - 4]
push eax
push 0x53271c
push 1
push esi
push 0x5327dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4da819
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4da819
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x4da819
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xfa0
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], 1
jne 0x4da819
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x38]
push edx
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
mov eax, 0x2011
cmp word [ebp - 0x38], ax
jne 0x4da819
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x4da818
cmp edi, 0x4000
jle 0x4da7ff
push dword [ebx + 0xc]
call fcn.004dcd33
push edi
call fcn.004dcd28
pop ecx
pop ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x24]
push edi
push dword [eax + 0xc]
push dword [ebx + 0xc]
call fcn.004efcc0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov word [eax + 6], di
pop edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4da829
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4da839
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4da849
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4dfc10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4dfc34
cmp dword [edi + 0x54], 0
jne 0x4dfc34
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004dd713
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004dfbd1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4e0034
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51125a
call fcn.004ef9e2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4e0059
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4e009f
lea ecx, [ebp - 0x10]
call fcn.004022d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dd7e2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402690
mov eax, esi
call fcn.004efaba
ret 8

Function at 0x4e7ee5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4e7f2c
call fcn.004dd713
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e7f2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4e7f48
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e7a5d
mov esi, eax
test edi, edi
je 0x4e7f46
test ebx, ebx
je 0x4e7f46
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4e7f4f
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
call esi
push dword [0x570a50]
call esi
mov ebx, eax
push dword [0x570a54]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
rol byte [edx + 0x51], 1
add bh, bh
xor eax, 0x570a00
Function at 0x4e7f73
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
rol byte [edx + 0x51], 1
add bh, bh
xor eax, 0x570a00
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [esp + 0x10], ebp
mov esi, dword [0x570a4c]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push 0x104
add byte [eax], al
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call edi
mov edi, eax
mov esi, dword [0x5709f4]
cmp dword [esi], ebp
je 0x4e7ffe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [esi], al
je 0x4e7fd1

Function at 0x4e7fc8
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
cmp byte [esi + 1], al
jne 0x4e80d0
movzx ecx, word [edi]
xor eax, eax
test cx, cx
je 0x4e7ff0
lea edx, [edi + 2]
xor eax, eax
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4e7fe0
cmp eax, dword [esi + 4]
je 0x4e7ffe
cmp eax, dword [esi + 8]
jne 0x4e80d0
test edx, edx
add byte [eax], al
invalid
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
push dword [0x570a5c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x570a60]
pushal
or dl, byte [edi]
push eax
call edi
mov esi, eax
push dword [0x5709f8]
push ebx
call edi
mov dword [esp + 0xc], eax
push dword [0x570a28]
push ebx
call edi
mov ebx, eax
mov dword [esp], ebp
and al, 0x55
push ebp
push ebp
push 1
push dword [0x570a20]
call esi
test eax, eax
je 0x4e80d0
xor ecx, ecx
push ecx
push dword [0x570a48]
push ecx
push ecx
push dword [0x570a18]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x4e80d0
mov edx, dword [esp + 8]
add edx, 0x20a
ret 0x20a
add byte [eax], al
mov ecx, esp
push ecx
push dword [0x570a4c]
mov esi, edx
push edx
push eax
call ebx
test eax, eax
je 0x4e80d0
mov eax, dword [esp]
test eax, eax
je 0x4e80d0
add eax, esi
mov ecx, dword [esi]
mov edx, 0xfffffffc
mov esi, dword [0x570a34]
mov esi, dword [esi + edx + 4]
add esi, ecx
mov dword [eax + edx + 4], esi
add edx, 4
cmp edx, 0x1c
jb 0x4e8098
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e80d0
xor ecx, ecx
lea edx, [esp + 0x10]
push ecx
push ecx
push dword [0x570a10]
push edx
call eax
xor esi, esi
push 0x10
push dword [0x570a58]
push edi
add bh, bh
xor eax, 0x570a6c
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]