joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1740058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017401a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x174007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x174006a
add dl, dl
jne 0x1740089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17400dc
xor eax, eax
add dl, dl
jne 0x1740096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x174017d
add dl, dl
jne 0x17400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1740075
mov eax, 1
add dl, dl
jne 0x17400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17400e1
sub eax, ebx
mov ebx, 1
jne 0x1740128
mov ecx, 1
add dl, dl
jne 0x174010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1740119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1740105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1740075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x174013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x174014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1740136
cmp eax, 0x7d00
jae 0x174016d
cmp eax, 0x500
jb 0x1740168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1740075
cmp eax, 0x7f
ja 0x1740170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1740075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x174019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1740075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4018fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401955
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x401a91
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
mov ebx, ecx
call esi
mov edi, eax
mov ecx, ebx
call fcn.00401ac3
test eax, eax
je 0x401abd
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
sub eax, edi
cmp eax, dword [esp + 0x10]
jbe 0x401aa0
pop edi
pop esi
pop ebx
ret 4

Function at 0x40535e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b012c
call fcn.0048a7d0
sub esp, 0x110
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x4eea5c
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004a5c9b
mov ecx, esi
call fcn.004056ed
cmp eax, 1
jne 0x405455
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4eeb60
call fcn.004a5c9b
mov ecx, esi
call fcn.004058bf
lea eax, [ebp - 0x11c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004a5f94
push str.MacromedFlashFlash.ocx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004a5f94
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004a633e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jae 0x405411
xor esi, esi
jmp 0x40542d
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x405423
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004a5f26
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004a5f26
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004a5f26
mov eax, esi
jmp 0x405463
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004a5f26
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4058bf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4b0178
call fcn.0048a7d0
sub esp, 0x58
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x64]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0048a7f0
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x64], esi
call fcn.0048a7f0
add esp, 0x18
lea ecx, [ebp - 0x10]
push str.RUNDLL32.EXE_SETUPAPI.DLL_InstallHinfSection_DefaultInstall_132
call fcn.004a5f94
push 0x4eeb60
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004a633e
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a6356
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x40594f
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004a5f26
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004a5f26
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408b32
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7ec0
push 0x48c384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
push dword [ebp - 0x28]
call fcn.0048c850
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
jmp 0x408bb1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4b04c8
call fcn.0048a7d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x20
xor eax, eax
pop edx
mov dword [ebp - 4], eax
push 1
mov dword [esi], 0x4b7ee8
pop ecx
mov dword [esi + 0x20], edx
push eax
push edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], ecx
push 8
push 8
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], eax
mov dword [esi + 0x30], eax
call fcn.00408d37
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40c77d
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
and dword [esi + 0x20], 0
and byte [edi], 0
cmp dword [esi + 0x24], 0
je 0x40c914
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call ebp
mov ebx, 0x8000
and ax, bx
cmp ax, bx
je 0x40c7c5
push 0xa1
call ebp
and ax, bx
cmp ax, bx
je 0x40c7c5
xor cl, cl
jmp 0x40c7c7
mov cl, 1
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
sub eax, 8
mov byte [edi], 1
je 0x40c8a4
sub eax, 0x1b
je 0x40c88a
dec eax
je 0x40c876
dec eax
je 0x40c84f
dec eax
dec eax
je 0x40c824
sub eax, 7
je 0x40c7ff
and byte [edi], bl
jmp 0x40c8fa
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jne 0x40c8ae
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
cmp eax, dword [edx - 8]
jge 0x40c8ee
push 1
push eax
jmp 0x40c8dc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
cmp eax, dword [edx - 8]
jge 0x40c83a
inc eax
test cl, cl
mov dword [esi + 0x10], eax
jne 0x40c83a
mov dword [esi + 0x14], eax
cmp dword [esi + 0x64], ebx
je 0x40c8fa
mov dword [esi + 0x1c], 3
jmp 0x40c8fa
mov eax, dword [esi + 0x10]
cmp eax, ebx
jle 0x40c861
dec eax
test cl, cl
mov dword [esi + 0x10], eax
jne 0x40c861
mov dword [esi + 0x14], eax
cmp dword [esi + 0x64], ebx
je 0x40c8fa
mov dword [esi + 0x1c], 2
jmp 0x40c8fa
cmp dword [esi + 0x64], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
je 0x40c8fa
mov dword [esi + 0x1c], 4
jmp 0x40c8fa
mov eax, dword [esi + 8]
cmp dword [esi + 0x64], ebx
mov eax, dword [eax - 8]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
je 0x40c8fa
mov dword [esi + 0x1c], 5
jmp 0x40c8fa
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp ecx, eax
je 0x40c8cb
push ecx
push eax
mov ecx, esi
call fcn.0040c91b
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jle 0x40c8c6
mov dword [esi + 0x14], ecx
jmp 0x40c8ee
mov dword [esi + 0x10], eax
jmp 0x40c8ee
cmp eax, ebx
jle 0x40c8ee
dec eax
push 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push eax
lea ecx, [esi + 8]
call fcn.0049fd6b
push 1
lea ecx, [esi + 0xc]
push dword [esi + 0x10]
call fcn.0049fd6b
cmp dword [esi + 0x64], ebx
je 0x40c8fa
mov dword [esi + 0x1c], 6
mov eax, dword [esp + 0x18]
add esi, 0x38
push 1
push esi
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
pop eax
pop ebp
pop ebx
jmp 0x40c916
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40f0ad
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4b0ecf
call fcn.0048a7d0
sub esp, 0x1a0
cmp byte [0x4eec2d], 0
push ebx
je 0x40f0d1
mov al, byte [0x4eec2c]
jmp 0x40f1cf
mov eax, dword [0x4ea054]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x40f102
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x10]
push eax
call fcn.004a60af
push str.swflash.cab
lea ecx, [ebp - 0x10]
call fcn.004a6302
call fcn.00409e38
push 0
push dword [ebp - 0x10]
push str.http:__download.macromedia.com_pub_shockwave_cabs_flash_swflash.cab
call fcn.0040f203
add esp, 0xc
call fcn.0040f1dc
test eax, eax
je 0x40f15a
push 0
lea ecx, [ebp - 0xac]
call fcn.00409b9e
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.004a6a62
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00409c00
call fcn.0040f250
call fcn.00409fbb
lea ecx, [ebp - 0x14]
call fcn.00405332
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004a5c9b
lea ecx, [ebp - 0x14]
call fcn.0040535e
test eax, eax
je 0x40f19f
call fcn.0040f4e2
test eax, eax
mov dword [0x4ddfc8], eax
setg al
mov byte [0x4eec2c], al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov bl, byte [0x4eec2c]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov byte [0x4eec2d], 1
call fcn.00405357
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f282
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4b0eec
call fcn.0048a7d0
sub esp, 0x5c
push ebx
xor ebx, ebx
cmp byte [0x4eec2e], bl
push edi
mov edi, ecx
je 0x40f2a7
mov al, byte [0x4eec2c]
jmp 0x40f3f4
call fcn.0040f4e2
push dword [ebp + 8]
mov ecx, edi
mov dword [0x4ddfc8], eax
call fcn.0040f959
mov ecx, dword [0x4ddfc8]
mov edx, eax
cmp ecx, ebx
setg al
cmp edx, ebx
mov byte [0x4eec2c], al
jle 0x40f2d9
cmp ecx, edx
jge 0x40f3f4
cmp al, bl
jne 0x40f3f4
mov eax, dword [0x4ea054]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0040f789
test eax, eax
je 0x40f3d9
cmp byte [edi + 0x49], bl
je 0x40f314
push str.__Q:A__R:N
lea ecx, [ebp - 0x10]
call fcn.004a6302
push esi
push 0x44
pop esi
lea eax, [ebp - 0x68]
push esi
push ebx
push eax
call fcn.0048a7f0
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.0048a7f0
add esp, 0x18
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a6356
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
call fcn.0040f4e2
cmp eax, ebx
mov dword [0x4ddfc8], eax
setg byte [0x4eec2c]
cmp eax, ebx
pop esi
jge 0x40f3d9
mov eax, dword [0x4ea054]
mov dword [ebp + 8], eax
push 0x65be
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004a6ff7
push str.Flash_Player_installation
lea ecx, [ebp - 0x14]
call fcn.004a5f94
push 0x2030
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040e425
lea ecx, [ebp - 0x14]
mov byte [0x4eec2d], 1
call fcn.004a5f26
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004a5f26
mov bl, byte [0x4eec2c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [0x4eec2e], 1
call fcn.004a5f26
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40f4e2
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, 0x4b0f30
call fcn.0048a7d0
sub esp, 0x128
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x18]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f51c
or eax, 0xffffffff
jmp 0x40f68f
mov eax, dword [0x4ea054]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
mov edi, 0x4eea58
push ebx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
je 0x40f54d
or esi, 0xffffffff
jmp 0x40f67f
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call fcn.004a63cd
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call esi
cmp eax, ebx
jne 0x40f545
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004a6356
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push 1
push esi
call fcn.0048caf1
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40f545
push edi
push esi
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004a6356
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x40f5c5
or esi, 0xffffffff
jmp 0x40f678
xor esi, esi
test dword [ebp - 0x24], 0xfffffffc
jbe 0x40f675
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + esi*4 + 2]
lea eax, [eax + esi*4]
push ecx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x134]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x40f675
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.004a5f94
push ebx
push 0x2c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004a6422
cmp eax, 0xffffffff
jg 0x40f649
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004a5f26
mov eax, dword [ebp - 0x24]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40f5d4
jmp 0x40f675
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004a0194
push dword [ebp - 0x1c]
call fcn.0048cae6
pop ecx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.004a5f26
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004a5f26
mov esi, dword [ebp - 0x28]
push edi
call fcn.0048b453
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41a586
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4b1d9c
call fcn.0048a7d0
sub esp, 0x58
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x68], ebx
mov dword [ebp - 4], ebx
je 0x41a63d
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00483904
mov word [ebp - 0x64], bx
push 8
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00483651
mov esi, 0x4eea58
push 8
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00483651
push 8
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00483651
push 3
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00483702
lea eax, [ebp - 0x3c]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.00447ff2
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
call esi
pop esi
jmp 0x41a660
call fcn.004116fa
cmp eax, ebx
jne 0x41a64a
xor eax, eax
jmp 0x41a64d
mov eax, dword [eax + 0x1c]
push 5
push ebx
push ebx
push dword [ebp + 8]
push 0x4de21c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004a5f26
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4274e3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ebx, ebx
push str.DDRAW.DLL
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42750c
push str.Couldnt_LoadLibrary_DDraw_r_n
jmp 0x427548
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.DirectDrawCreate
push eax
call esi
cmp eax, ebx
jne 0x42752e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreate_r_n
jmp 0x427548
lea ecx, [ebp - 0xc]
push ebx
push ecx
push ebx
call eax
test eax, eax
jge 0x427555
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x42765c
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x4ba198
push 1
push ebx
push 0x4ba1a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x427598
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_CLSID_DirectMusic_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x600
jmp 0x42765c
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.DirectDrawCreateEx
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x4275c5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreateEx_r_n
jmp 0x4275e4
push ebx
lea ecx, [ebp - 0x10]
push 0x4ba1b8
push ecx
push ebx
call eax
test eax, eax
jge 0x4275f1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_DirectDrawCreateEx_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x601
jmp 0x42765c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.D3D8.DLL
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x427623
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_D3D8.DLL_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x700
jmp 0x42765c
push str.dpnhpast.dll
call edi
cmp eax, ebx
jne 0x427647
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_dpnhpast.dll_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x800
jmp 0x42765c
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
call esi
push dword [ebp - 0x14]
call esi
mov eax, 0x801
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ca2b
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4b3093
call fcn.0048a7d0
sub esp, 0x11c
push ebx
push esi
push edi
xor edi, edi
push 0x4eea58
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.004a5f94
push 1
lea eax, [ebp - 0x128]
pop ebx
push 0x104
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
ja 0x42ca81
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004a5c9b
mov dword [ebp - 0x18], ebx
jmp 0x42cb69
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x128]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [ebp - 0x14], eax
jbe 0x42cb5a
push eax
call fcn.004a64f5
mov esi, eax
pop ecx
cmp esi, edi
je 0x42cb5a
push esi
lea eax, [ebp - 0x128]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42cb53
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x20], edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42cb53
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42cb53
cmp dword [ebp - 0x20], 4
jb 0x42cb53
movzx ecx, word [eax]
mov edx, dword [0x4ea054]
movzx eax, word [eax + 2]
mov dword [ebp - 0x14], edx
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xComments
push eax
mov byte [ebp - 4], 2
call fcn.004a05b4
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004a6356
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42cb48
cmp dword [ebp - 0x20], edi
jbe 0x42cb48
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.004a60af
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004a5f26
push esi
call fcn.004a651e
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004a5c9b
mov dword [ebp - 0x18], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4