joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024d0
Capabilities:
Get disk size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esi], 0
push ecx
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40250d
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push 0
push edx
call fcn.0040dfa0
mov dword [esi], eax
mov eax, edx
mov dword [esi + 4], edx
mov ecx, dword [esi]
mov edx, dword [esp + 4]
push eax
push ecx
push 0
push edx
call fcn.0040dfa0
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402600
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
test edi, edi
jne 0x402629
push 0x57
call fcn.00412210
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp byte [edi], 0
mov esi, edi
je 0x4026cb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x402652
cmp al, 0x5c
je 0x402652
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x402646
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x402665
mov eax, 0x105
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00410250
cmp eax, 0x104
jae 0x40261c
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402690
cmp byte [esi], 0
je 0x4026cb
jmp 0x4026ba
call ebx
cmp eax, 0xb7
je 0x4026a2
cmp eax, 5
jne 0x40261c
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x40261c
test al, 0x10
je 0x40261c
cmp byte [esi], 0
je 0x4026cb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x402640
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x40371d
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [0x45b2b8]
test bl, 1
push esi
push edi
jne 0x40372f
test ebx, ebx
jne 0x403731
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, 1
jne 0x403766
test ebx, ebx
je 0x403766
lea esi, [ebx + 0x10c]
push esi
call edi
cmp eax, 0xffffffff
je 0x403761
push esi
call fcn.004037c0
push eax
call fcn.004038b0
add esp, 8
test eax, eax
je 0x4037a3
mov ebx, dword [ebx + 4]
jmp 0x403737
mov ebx, dword [0x45d700]
test bl, 1
jne 0x403775
test ebx, ebx
jne 0x403777
xor ebx, ebx
test bl, 1
jne 0x4037aa
test ebx, ebx
je 0x4037aa
lea esi, [ebx + 8]
push esi
call edi
cmp eax, 0xffffffff
je 0x40379e
push esi
call fcn.004037c0
push eax
call fcn.004038b0
add esp, 8
test eax, eax
je 0x4037a3
mov ebx, dword [ebx + 4]
jmp 0x403777
xor ebp, ebp
call fcn.00403920
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret
Function at 0x4073c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push 0x104
call fcn.004030f0
push eax
lea eax, [esp + 8]
push eax
call fcn.00410250
mov al, byte [esp]
test al, al
jne 0x4073f7
push 0x104
push 0x441460
lea ecx, [esp + 8]
push ecx
call fcn.00410250
push 0x104
push str.d2exp.mpq
lea edx, [esp + 8]
push edx
call fcn.0040ea40
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, 0x439470
jne 0x407425
mov eax, 0x439460
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
push edx
push 2
push eax
push str.Diablo_II
call fcn.00407450
add esp, 0x118
ret

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

Disassembly:
sub esp, 0x104
push 0x104
call fcn.004030f0
push eax
lea eax, [esp + 8]
push eax
call fcn.00410250
mov al, byte [esp]
test al, al
jne 0x407557
push 0x104
push 0x441460
lea ecx, [esp + 8]
push ecx
call fcn.00410250
push 0x104
push str.icons_WAR3.bni
lea edx, [esp + 8]
push edx
call fcn.0040ea40
lea eax, [esp]
push eax
call fcn.004020b0
add esp, 4
push 0x104
call fcn.004030f0
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00410250
mov al, byte [esp]
test al, al
push 0x104
push str.war3x.mpq
jne 0x4075ab
lea edx, [esp + 8]
push edx
call fcn.00410250
jmp 0x4075b5
lea eax, [esp + 8]
push eax
call fcn.0040ea40
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov ecx, 0x439488
mov eax, edx
test eax, eax
jne 0x4075d8
mov ecx, 0x439480
mov edx, dword [esp + 0x10c]
neg eax
push edx
mov edx, dword [esp + 0x10c]
sbb eax, eax
push edx
and eax, 2
inc eax
push eax
push ecx
push str.Warcraft_III
call fcn.00407450
add esp, 0x118
ret

Function at 0x407b30
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0x45d710
push 0x45d710
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x40af60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
test eax, eax
je 0x40af73
mov dword [0x45d97c], eax
mov eax, dword [esp + 0x104]
test eax, eax
je 0x40af86
inc dword [0x45d870]
jmp 0x40af90
mov dword [0x45d870], 0
mov eax, dword [0x45d97c]
mov ecx, dword [0x45d870]
push eax
push ecx
lea edx, [esp + 8]
push str._d__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x45d86c]
add esp, 0x10
lea eax, [esp]
push eax
push 0x427
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov al, byte [0x45d878]
test al, al
jne 0x40afee
mov edx, dword [0x45d86c]
push 0x104
push 0x45d878
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0x100
ret

Function at 0x40c030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40c12a
test edi, edi
je 0x40c12a
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
push 0
je 0x40c0a8
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x45d9d8]
lea eax, [edx + ecx]
jmp 0x40c0d1
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x45d9d4]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
pop ebp
je 0x40c10b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x40c123
jmp 0x40c111
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
call esi
test eax, eax
jne 0x40c123
push 2
push ebx
call esi
test eax, eax
je 0x40c12a
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40e720
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40e736
push 0x57
call fcn.00412210
xor eax, eax
pop esi
pop ecx
ret
call fcn.0040e520
test eax, eax
je 0x40e74e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
pop ecx
ret
push ebp
xor ebp, ebp
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e7f7
mov ecx, dword [0x45dc60]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [0x45dc5c]
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push esi
call ebx
test eax, eax
je 0x40e7df
cmp edi, dword [esp + 0x10]
jne 0x40e7df
mov eax, dword [0x45dc6c]
test eax, eax
je 0x40e7da
push ebp
lea edx, [esp + 0x14]
push edx
push 0x40
push str._r_n_r_n
push esi
call ebx
test eax, eax
je 0x40e7df
mov ecx, dword [0x45dc70]
mov edx, dword [0x45dc6c]
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
call ebx
test eax, eax
je 0x40e7df
mov eax, dword [0x45dc70]
cmp eax, dword [esp + 0x10]
jne 0x40e7df
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop edi
pop ebx
jne 0x40e7f7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
pop ebp
pop esi
pop ecx
ret

Function at 0x40e800
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jne 0x40e814
push 0x57
call fcn.00412210
xor eax, eax
pop ecx
ret
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x40e8ce
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e8c2
push edi
push 0xba
push str.E:ProjectsLegacyToolsPatchercommonlogfile.cpp
lea eax, [esi + 1]
push eax
call fcn.0040ff20
push edi
lea ecx, [esp + 0x10]
push ecx
push esi
push eax
push ebx
mov dword [0x45dc6c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e8c2
cmp esi, dword [esp + 0xc]
jne 0x40e8c2
mov eax, dword [0x45dc6c]
push ebp
lea ebp, [eax + esi]
xor edx, edx
cmp eax, ebp
mov ecx, eax
mov esi, eax
jae 0x40e8b0
cmp edx, 9
jae 0x40e8b0
mov bl, byte [ecx]
inc ecx
cmp bl, 0x3d
je 0x40e8a1
xor edi, edi
mov esi, ecx
jmp 0x40e8a8
inc edi
cmp edi, 0x3c
jne 0x40e8a8
inc edx
cmp ecx, ebp
mov ebx, dword [esp + 0x18]
jb 0x40e88e
sub esi, eax
mov dword [0x45dc70], esi
mov byte [esi + eax], 0
mov edi, 1
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop esi
jne 0x40e8f3
mov eax, dword [0x45dc6c]
test eax, eax
je 0x40e8f3
push 0
push 0xdd
push str.E:ProjectsLegacyToolsPatchercommonlogfile.cpp
push eax
call fcn.00410070
mov dword [0x45dc6c], 0
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x40eb60
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
lea eax, [ebp + 4]
push eax
push ecx
push edx
call fcn.004183d0
test eax, eax
jne 0x40ebd5
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push esi
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call fcn.004183d0
test eax, eax
jne 0x40ebd5
test edi, edi
je 0x40ebaf
test esi, esi
je 0x40ebaf
mov byte [esi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40ebc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ebce
push 0
push ebx
push ebp
call fcn.0040eab0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40ebe0
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
push esi
lea eax, [ebx + 4]
push eax
push ebp
push ecx
call fcn.004185c0
test eax, eax
jne 0x40ec4b
push edi
push esi
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call fcn.004185c0
test eax, eax
jne 0x40ec4b
test edi, edi
je 0x40ec25
test esi, esi
je 0x40ec25
mov byte [esi], al
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40ec38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ec44
push 0
push ebp
push ebx
call fcn.0040eab0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40ec60
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push esi
lea eax, [ebp + 4]
push eax
push edi
push ebx
call fcn.004186f0
test eax, eax
jne 0x40ecbd
push esi
push ebp
push edi
push ebx
call fcn.004186f0
test eax, eax
jne 0x40ecbd
test esi, esi
je 0x40ec97
mov dword [esi], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40ecaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ecb6
push 0
push edi
push ebx
call fcn.0040eab0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x437ed0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
push 0x104
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
je 0x437efd
cmp byte [esp + 0x11], 0x3a
je 0x437f0d
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x14], 0x200
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp]
add esp, 0x114
ret

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
test eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
push edi
pop ecx
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
test eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x402570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x3c]
test edi, edi
mov esi, ecx
jne 0x4025be
lea ecx, [esi + 0xd0]
mov dword [esi + 0xb8], edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xd8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xe0]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xe8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret 0x18
push ebx
lea ebx, [esi + 0xd0]
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::DeleteObject
movzx eax, di
push eax
push 2
push eax
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::Attach
test eax, eax
jne 0x4025f4
pop ebx
pop edi
pop esi
add esp, 0x30
ret 0x18
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40261a
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
lea eax, [esi + 0xd8]
push eax
push ebx
mov ecx, esi
call fcn.00402130
push ebp
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x4026ab
lea edi, [esi + 0xe0]
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
movzx eax, bp
push eax
push 2
push eax
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::Attach
test eax, eax
jne 0x402679
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40266d
lea ecx, [esi + 0xd8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 0x18
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40269f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
lea ecx, [esi + 0xe8]
push ecx
push edi
mov ecx, esi
call fcn.00402130
mov dword [esi + 0xa4], 1
jmp 0x4026b5
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xd4]
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x10]
push edx
push 0x18
push eax
call edi
mov eax, dword [esi + 0xa4]
test eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
je 0x4026f3
mov ecx, dword [esi + 0xe4]
lea eax, [esp + 0x28]
push eax
push 0x18
push ecx
call edi
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
push 6
push edx
push eax
push 0
push 0
push 0
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowPos
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x4c]
pop ebp
mov dword [esi + 0xac], eax
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0xb8], eax
pop esi
add esp, 0x30
ret 0x18
Function at 0x402740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x3c]
test edi, edi
mov esi, ecx
jne 0x402799
lea ecx, [esi + 0xf0]
mov dword [esi + 0xb4], edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xf8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x100]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x108]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x110]
call sub.MFC71.DLL_CGdiObject::DeleteObject
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret 0x18
push ebx
lea ebx, [esi + 0xf0]
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::DeleteObject
movzx eax, di
push eax
push 2
push eax
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::Attach
test eax, eax
jne 0x4027cf
pop ebx
pop edi
pop esi
add esp, 0x30
ret 0x18
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4027f5
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
lea eax, [esi + 0xf8]
push eax
push ebx
mov ecx, esi
call fcn.00402130
push ebp
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x402886
lea edi, [esi + 0x100]
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
movzx eax, bp
push eax
push 2
push eax
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::Attach
test eax, eax
jne 0x402854
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x402848
lea ecx, [esi + 0xf8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 0x18
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40287a
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
lea ecx, [esi + 0x108]
push ecx
push edi
mov ecx, esi
call fcn.00402130
mov dword [esi + 0xa8], 1
jmp 0x402890
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x10]
push edx
push 0x18
push eax
call ebx
mov eax, dword [esi + 0xb8]
test eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], edx
jne 0x4028e2
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x64]
push edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
sub ecx, edx
mov dword [esi + 0x78], ecx
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov dword [esi + 0x74], edx
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x4028fc
mov ecx, dword [esi + 0x104]
lea eax, [esp + 0x28]
push eax
push 0x18
push ecx
call ebx
mov edx, dword [esp + 0x4c]
pop ebp
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0xb0], edx
mov dword [esi + 0xb4], eax
pop esi
add esp, 0x30
ret 0x18
Function at 0x403270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40aaa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 8]
call dword [0x40c338]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403670
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x6db80]
test eax, eax
je 0x4036a0
mov eax, dword [0x4112c4]
push eax
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, dword [esi + 0x6db84]
mov edx, dword [ecx*4 + 0x4110f4]
push edx
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov eax, dword [esi + 0x6db4c]
test eax, eax
je 0x40371d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [esp + 0xc], 0x32
mov eax, dword [esi + 0x6db50]
push 0
push 0
push 0x12
push eax
call edi
mov edx, dword [esi + 0x6db4c]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
cmp dword [esp + 0x10], 0x103
jne 0x403704
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0xc]
jne 0x4036c0
mov eax, dword [esi + 0x6db4c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x6db4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x6db4c], 0
pop ebx
mov ecx, esi
call dword [sym.imp.MQAV.dll_protected:_void___thiscall_IAVIOCustomBase::DestroyCodec_void_]
pop esi
add esp, 8
ret