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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xc], ebp
jne 0x415405
call fcn.00415130
mov eax, dword [esi + 0x84]
cmp eax, ebp
je 0x41528c
push eax
call fcn.00431c6a
add esp, 4
mov eax, dword [esi + 0x8c]
cmp eax, ebp
je 0x41529f
push eax
call fcn.00431c6a
add esp, 4
mov eax, dword [esi + 0x9c]
cmp eax, ebp
je 0x4152b6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x9c], ebp
mov eax, dword [esp + 0x2c]
push ebp
push 0x8000080
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415405
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x4153fe
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x20]
push 0xd
push eax
push edi
call ebx
cmp dword [esp + 0x10], 0xd
jne 0x4153fe
cmp byte [esp + 0x18], 0x47
jne 0x4153fe
cmp byte [esp + 0x19], 0x49
jne 0x4153fe
cmp byte [esp + 0x1a], 0x46
jne 0x4153fe
cmp byte [esp + 0x1b], 0x38
jne 0x4153fe
mov al, byte [esp + 0x1c]
cmp al, 0x37
je 0x415367
cmp al, 0x39
jne 0x4153fe
cmp byte [esp + 0x1d], 0x61
jne 0x4153fe
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x23]
and ecx, 0xffff
mov dword [esi + 0xa0], ecx
mov cl, byte [esp + 0x22]
and edx, 0xffff
and eax, 0xff
test cl, 0x80
mov dword [esi + 0xa4], edx
mov dword [esi + 0x4c], eax
je 0x415411
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
mov dword [esi + 0x5c], eax
lea ecx, [eax + eax*2]
push ecx
call fcn.00431c41
mov ecx, dword [esi + 0x5c]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x84], eax
push ebp
lea ecx, [ecx + ecx*2]
push edx
push ecx
push eax
push edi
call ebx
mov eax, dword [esi + 0x5c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x415411
mov eax, dword [esi + 0x84]
push eax
call fcn.00431c6a
add esp, 4
mov dword [esi + 0x84], ebp
mov dword [esi + 0x5c], ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esi + 0x5c]
add eax, 4
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
sub eax, ecx
push eax
mov dword [esi + 0x50], eax
call fcn.00431c41
mov ecx, dword [esi + 0x50]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x8c], eax
push ebp
push edx
push ecx
push eax
push edi
mov dword [esi + 0x90], eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x423d6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4490e0
cmp edx, dword [eax]
je 0x423d8f
add eax, 8
inc ecx
cmp eax, 0x449170
jl 0x423d80
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4490e0]
jne 0x423ebd
mov eax, dword [0x44bb60]
cmp eax, 1
je 0x423e97
test eax, eax
jne 0x423dc0
cmp dword [0x4487f8], 1
je 0x423e97
cmp edx, 0xfc
je 0x423ebd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423df7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00425de0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004219f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423e3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004219f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43f50c
push edi
call fcn.00427790
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00425de0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00425df0
lea eax, [ebp - 0xa0]
push 0x43f4ec
push eax
call fcn.00425df0
push dword [esi + 0x4490e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00425df0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00427707
add esp, 0x2c
pop edi
jmp 0x423ebd
lea eax, [ebp + 8]
lea esi, [esi + 0x4490e4]
push 0
push eax
push dword [esi]
call fcn.004219f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42c050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00420580
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42c11b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42c11b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42c0ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42c0d9
or bh, 8
and edi, 0x8000000
je 0x42c0f4
mov eax, dword [0x44d2fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42c11b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42c51b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42c53f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42c55a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42f130
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42f168
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00431bd1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00431ba9
jmp 0x42f174
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4306b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4306f4
call fcn.0043636e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4306f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4306eb
xor eax, eax
jmp 0x4306fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00430702
pop edi
pop esi
pop ebx
ret 4

Function at 0x436a47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x436a75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x436a93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004369ad
jmp 0x436a93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436a93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004369ad
test edi, edi
mov eax, edi
jne 0x436a7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404270
mov eax, dword [ebp - 0x10]
jmp 0x4042fb
mov eax, dword [ebp + 0x18]
shl eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4042c2
cmp dword [ebp - 0x10], 0xea
jne 0x4042b3
mov eax, dword [ebp - 4]
shr eax, 1
add eax, 1
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x4042fb
cmp dword [ebp + 0x14], 0
je 0x4042e1
cmp dword [ebp - 8], 1
je 0x4042df
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3f1
jmp 0x4042fb
jmp 0x4042ee
mov ecx, dword [ebp - 4]
shr ecx, 1
add ecx, 1
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push esi
push edi
mov dword [ebp - 0x2d8], ecx
mov ecx, 0x13
mov esi, 0x460658
lea edi, [ebp - 0x2d4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x12
mov esi, 0x4606a4
lea edi, [ebp - 0x274]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x4606f0]
mov dword [ebp - 0x21c], eax
mov ecx, dword [0x4606f4]
mov dword [ebp - 0x218], ecx
mov dx, word [0x4606f8]
mov word [ebp - 0x214], dx
mov dword [ebp - 0x210], 0x104
mov dword [ebp - 0x224], 1
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x64
call fcn.00405240
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x78
call fcn.004051d0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x2d8]
add eax, 0x60
push eax
push 0x4567e8
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x228]
push edx
push 0x4567f8
call dword [sym.imp.CTIntrfu.dll_enum_tagCTINTRFCRESULT___stdcall_CTCreateInstance_struct__GUID_const___struct_IUnknown___unsigned_long_int__struct__GUID_const___void___]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0
je 0x404f16
jmp 0x405090
lea eax, [ebp - 0x27c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x2d4]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x404fc2
mov dword [ebp - 4], 1
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x404fc0
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x404fc0
push 0x4606fc
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x64
call fcn.004052a0
push 3
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x78
call fcn.00405210
jmp 0x404fc9
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x405090
lea eax, [ebp - 0x278]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x274]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x405083
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x405083
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x405083
push str.PlayCenter2
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x64
call fcn.004052a0
push 2
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x78
call fcn.00405210
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405c85
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [ebp + 8], 0
je 0x405c9d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x405ca4
xor eax, eax
jmp 0x405e31
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 1
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5c
jne 0x405d5d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5c
jne 0x405d44
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x405d42
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x405e31
jmp 0x405d5d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x405e31
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
jmp 0x405d7a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x405e10
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5c
jne 0x405e0b
cmp dword [ebp - 0x10], 0
je 0x405e04
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 4]
mov word [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405df8
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x405e31
mov eax, dword [ebp - 4]
mov cx, word [ebp - 0x18]
mov word [eax], cx
jmp 0x405e0b
mov dword [ebp - 0x10], 1
jmp 0x405d6d
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp dword [ebp - 8], 0
je 0x405e2f
mov eax, 1
jmp 0x405e31
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4086e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408706
mov eax, 1
jmp 0x4087af
mov edx, dword [ebp - 8]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408750
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 2
jmp 0x4087af
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408798
cmp dword [ebp - 0x14], 4
jb 0x408798
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov ax, word [ebp - 0x1c]
mov word [edx], ax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4087af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 3
mov esp, ebp
pop ebp
ret
Function at 0x41555f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x218], ecx
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Wtsapi32.dll
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41560f
cmp dword [ebp + 8], 0
je 0x4155e0
push str.WTSRegisterSessionNotification
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4155de
push 0
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0x20]
push edx
call dword [ebp - 0x214]
jmp 0x415605
push str.WTSUnRegisterSessionNotification
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x415605
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0x20]
push edx
call dword [ebp - 4]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret 4
Function at 0x4163ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4524db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov dword [ebp - 0x284], ecx
lea ecx, [ebp - 0x14]
call fcn.0043d7b0
mov dword [ebp - 4], 0
push 0
push 0x454eac
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416572
push 0
push 0x461ffc
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043fe33
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28c]
call fcn.00402b00
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043fde3
test eax, eax
je 0x416570
push 0x44
push 0
lea ecx, [ebp - 0x274]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x274], 0x44
push str.Audio_Converter_Ready_U
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x274]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x416570
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
jne 0x416570
push 0
push 0x454eac
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x10], eax
jmp 0x416586
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x280], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7be
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret