joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f6d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0042e37a
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0042e37a
or eax, 0xffffffff
push 0x4555f0
mov dword [ebx], method.CPtrArray.virtual_0
push edi
mov dword [esi], 0x4427a4
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404b60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43fb70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00435cb9
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004353ca
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.004357ca
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call fcn.00435816
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004357ca
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call fcn.00435816
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004357ca
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call fcn.00435816
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004357ca
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call fcn.00435816
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004357ca
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call fcn.00435816
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call fcn.004357ca
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call fcn.00435816
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call fcn.004357ca
push ebp
push ebx
mov ecx, esi
call fcn.00435816
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004353ca
lea ecx, [esp + 0x10]
call fcn.00435d10
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00435d10
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x405c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43fce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], vtable.CBrush.0
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401500
test eax, eax
je 0x405cde
push 0xf
jmp 0x405ce0
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x405d01
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402410
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00435cb9
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.00435d10
call fcn.004014f0
test eax, eax
je 0x405d59
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x405d7d
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404b60
jmp 0x405d95
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.004049e0
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.00435d10
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x4062b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0043c465
mov edi, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
and edi, 0xffff
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x4062eb
xor ebx, ebx
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x4062eb
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4062fc
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40630c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00406270
add esp, 4
cmp ax, 0x10
je 0x406322
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push ebx
call fcn.00436612
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4064e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x455610]
sub esp, 0x134
test eax, eax
jne 0x4065b5
lea eax, [esp]
mov dword [0x455610], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4065b5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4065a8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x4065a8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4065a8
mov dword [0x45560c], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x45560c]
add esp, 0x134
ret

Function at 0x40deb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440219
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x80], 0
jne 0x40dfe7
mov ecx, 1
test ecx, ecx
je 0x40def0
mov dword [ebp - 0x24], 0
jmp 0x40df00
push str.loading_from_IDC_HAND_n
call fcn.004035e0
add esp, 4
mov dword [ebp - 0x24], eax
call fcn.0043c465
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x80], 0
jne 0x40dfe7
mov eax, 1
test eax, eax
je 0x40df43
mov dword [ebp - 0x28], 0
jmp 0x40df53
push str.loading_from_winhlp32_n
call fcn.004035e0
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [0x4515c0]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0042f339
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0042f388
push str.winhlp32.exe
lea ecx, [ebp - 0x14]
call fcn.0042f2e5
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40dfd8
push 0x6a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40dfce
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_CopyIcon]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042f057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e060
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440238
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, dword [esp + 0x20]
xor ebp, ebp
lea edi, [ebx + 0x14]
mov ecx, 5
mov dword [ebx + 4], ebp
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0xc], 1
mov eax, 0x7a120000
xor edx, edx
mov dword [esp + 0x18], ebp
rep movsd dword es:[edi], dword [esi]
div dword [ebx + 0x24]
mov dword [ebx + 8], eax
shl eax, 4
push eax
call fcn.0042f4d9
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [ebx + 0x28], edi
jne 0x40e0d3
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042f057
xor eax, eax
jmp 0x40e132
mov ecx, dword [ebx + 8]
xor eax, eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x2c], ebp
push eax
call fcn.0040e580
add esp, 4
cmp eax, ebp
mov dword [ebx + 0x10], eax
jne 0x40e11c
mov ecx, ebx
call fcn.0040e150
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042f057
xor eax, eax
jmp 0x40e132
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042f057
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x40e1b6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xa0
push esi
mov esi, ecx
push edi
push str.AVI
mov eax, dword [esi + 0x10]
push str.RIFF
push eax
call fcn.0040e700
mov ecx, dword [esi + 0x10]
push str.hdrl
push str.LIST
push ecx
call fcn.0040e700
mov eax, 0xf4240
xor edx, edx
div dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x98], edx
mov edx, dword [esi + 0x10]
xor edi, edi
push str.avih
push edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], 0x10
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x1c]
add eax, 0x800
mov dword [esp + 0x94], eax
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0xb0], eax
call fcn.0040e7a0
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x90]
push 0x38
push eax
push ecx
call fcn.0040e830
mov edx, dword [esi + 0x10]
push edx
call fcn.0040e960
mov eax, dword [esi + 0x10]
push str.strl
push str.LIST
push eax
call fcn.0040e700
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 0x10]
add eax, 0x800
push str.strh
push ecx
mov dword [esp + 0x74], 0x73646976
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0x32315659
mov word [esp + 0x80], di
mov word [esp + 0x82], di
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 1
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
call fcn.0040e7a0
add esp, 0x44
push 0x40
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0040e830
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040e960
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x10]
push str.strf
push edx
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], 1
mov word [esp + 0x2e], 0xc
mov dword [esp + 0x30], 0x32315659
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0040e7a0
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x20]
push 0x28
push eax
push ecx
call fcn.0040e830
mov edx, dword [esi + 0x10]
push edx
call fcn.0040e960
mov eax, dword [esi + 0x10]
push eax
call fcn.0040e960
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040e960
mov edx, dword [esi + 0x10]
push edi
push 0x800
push edx
call fcn.0040e650
mov eax, dword [esi + 0x10]
push str.movi
push str.LIST
push eax
call fcn.0040e700
mov ecx, dword [esi + 0x10]
add esp, 0x48
push ecx
call fcn.0040e870
add esp, 4
mov dword [esi + 0x30], eax
add eax, 0xfffffffc
mov dword [esi + 0xc], edi
mov dword [esi + 0x2c], eax
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
Function at 0x4150f0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x15c]
mov eax, dword [ecx + 0xf0]
test eax, eax
je 0x412b16
mov eax, dword [ecx]
push edi
call dword [eax + 0x58]
mov ecx, dword [esi + 0x154]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x400
push 2
mov edx, dword [ecx + 4]
push edx
call edi
mov eax, dword [esi + 0x154]
push 0
push 0x801b
mov ecx, dword [eax + 4]
push ecx
call edi
pop edi
mov ecx, esi
call fcn.00414980
mov edx, dword [0x45570c]
push edx
call sub.HikPlayM4.dll_Hik_PlayM4_CloseFile
mov dword [esi + 0x190], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x70], 0
pop esi
ret
push ecx
push esi
push edi
mov esi, ecx
call fcn.00414980
mov eax, dword [0x45570c]
push eax
call sub.HikPlayM4.dll_Hik_PlayM4_CloseStream
mov eax, dword [esi + 0x130]
xor edi, edi
cmp eax, edi
je 0x412dce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x130], edi
cmp dword [esi + 0x12c], edi
je 0x412e51
mov ecx, dword [esi + 0x124]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x12c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x412e21
cmp edi, 4
je 0x412e21
cmp dword [esp + 0x10], 0x103
jne 0x412e36
mov ecx, dword [esi + 0x124]
push ecx
call ebx
push 2
call ebp
jmp 0x412e30
mov edx, dword [esi + 0x12c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc edi
cmp edi, 5
jl 0x412ded
mov eax, dword [esi + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov dword [esi + 0x12c], 0
xor edi, edi
pop ebx
mov eax, dword [esi + 0x128]
cmp eax, edi
je 0x412e68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x128], edi
mov eax, dword [esi + 0x124]
cmp eax, edi
je 0x412e7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x124], edi
mov dword [esi + 0x190], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ecx
ret
mov eax, dword [ecx + 0x8c]
test eax, eax
je 0x41510b
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x415106
jmp 0x412da0
jmp 0x412ad0
ret
Function at 0x4256e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x454bb8
cmp edx, dword [eax]
je 0x425702
add eax, 8
inc ecx
cmp eax, 0x454c48
jl 0x4256f3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x454bb8]
jne 0x425830
mov eax, dword [0x4577a4]
cmp eax, 1
je 0x42580a
test eax, eax
jne 0x425733
cmp dword [0x452420], 1
je 0x42580a
cmp edx, 0xfc
je 0x425830
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42576a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426070
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423c40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4257ad
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423c40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x447180
push edi
call fcn.00423b40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426070
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426080
lea eax, [ebp - 0xa0]
push 0x447160
push eax
call fcn.00426080
push dword [esi + 0x454bbc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426080
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004279c4
add esp, 0x2c
pop edi
jmp 0x425830
lea eax, [ebp + 8]
lea esi, [esi + 0x454bbc]
push 0
push eax
push dword [esi]
call fcn.00423c40
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 0x42c340
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.0041e970
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42c40b
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 0x42c40b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42c3be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42c3c9
or bh, 8
and edi, 0x8000000
je 0x42c3e4
mov eax, dword [0x458f3c]
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 0x42c40b
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 0x42c7e0
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 0x42c80b
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 0x42c82f
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 0x42c84a
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 0x430481
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4304b9
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.0042f3b0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042f388
jmp 0x4304c5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x431bd5
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 0x431c17
call fcn.0043c465
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x431c17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x431c0e
xor eax, eax
jmp 0x431c1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00431c25
pop edi
pop esi
pop ebx
ret 4

Function at 0x43344f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x433471
cmp dword [edi + 0x3c], 0
jne 0x433471
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043c465
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0043349e
pop edi
pop esi
pop ebx
ret 8

Function at 0x4365ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x441304
call fcn.0041f908
push ecx
push ecx
push esi
push 0x10
call fcn.0042f4d9
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4365fa
mov ecx, esi
call fcn.004343e2
mov eax, dword [0x4515c0]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.0042f1e0
jmp 0x4365fc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x44c020
push eax
mov dword [ebp - 0x10], esi
call fcn.0041f729
pop esi