joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00414d20
mov edi, eax
test edi, edi
jne 0x4044b7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [ebp + 8]
push 0x43c84c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004288d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x404555
xor esi, esi
jmp 0x40455f
lea ecx, [ebp - 0x20]
call fcn.004031c0
mov esi, eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [eax], edi
movzx eax, word [ebp + 0xc]
push 0x43c84c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004288d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x405940
xor esi, esi
jmp 0x40598a
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [ebp - 0x1c]
call sub.gdiplus.dll_GdipCloneImage
mov ecx, dword [ebp - 0x18]
test eax, eax
push 0x10
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x40597d
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], vtable.Gdiplus::Image.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x40597f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov esi, 1
mov dword [ecx + 4], eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x150]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4080cb
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0xc]
mov esi, edx
mov eax, dword [ebp - 8]
add edx, 0x12c
mov ecx, dword [ebp - 0x10]
sub eax, ecx
push 0x40
push eax
mov eax, dword [edi + 0x150]
mov dword [ebp - 0xc], edx
sub edx, esi
push edx
push ecx
push esi
push 0
mov dword [ebp - 0x14], esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x150]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4

Function at 0x4080f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [eax + 0x6be0]
mov dword [ebp - 0x58], eax
mov ecx, esi
lea eax, [ebp - 0x54]
push eax
push 0x11
call fcn.00403470
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push 0xf
call fcn.00403470
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push 0x13
call fcn.00403470
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0xc]
test edi, edi
jle 0x4081fb
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x4081fb
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + 0x7994]
sub eax, dword [ebp - 0x24]
sub edi, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 1
jne 0x408180
add edi, 0xffffffec
jmp 0x408186
sub edi, dword [ebp - 0x5c]
sub edi, 0x1e
push 0x40
lea eax, [ebx - 0x82]
push eax
push edi
push dword [ebp - 0x30]
lea ecx, [esi + 0x3680]
push dword [ebp - 0x34]
push 0
call fcn.00422600
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x3680]
call fcn.00422600
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 0x668c]
call esi
push 0
push dword [ebx + 0x6734]
call esi
push 0
push dword [ebx + 0xf28]
call esi
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebx + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_SetOverlayRect]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
Function at 0x408410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi], 1
jne 0x408485
push 0
push 0
push 0x7f9
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x7e8
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [edi + 0x11c], 1
cmp dword [0x447da8], 8
jne 0x4084f1
push 0
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00428770
add esp, 0xc
mov ecx, 0x4482b8
push 0
push 0
push str.STRING
push str.IDS_WARN
call fcn.00402e40
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042cd27
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, 0x4482b8
push 0x30
push eax
push 0
push 0
push str.STRING
push str.IDS_VIDEO
call fcn.00402e40
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4

Function at 0x408540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x7994]
mov ecx, esi
mov eax, dword [edi + 0x102c]
mov ebx, dword [edi + 0x18bc]
mov dword [ebp - 8], eax
mov eax, dword [esi]
call dword [eax + 8]
cmp eax, 1
jne 0x408574
test ebx, ebx
je 0x40866b
cmp dword [ebp - 8], 1
je 0x408592
mov eax, dword [edi + 0x5444]
lea ecx, [edi + 0x5444]
call dword [eax + 8]
cmp eax, 1
jne 0x4085a9
test ebx, ebx
jne 0x4085a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
jne 0x4085a9
mov eax, dword [esi]
mov ecx, esi
push 1
push dword [ebp + 8]
call dword [eax + 4]
push 0
lea ecx, [edi + 0x1708]
call fcn.004158b0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0x1708]
call fcn.004158b0
push eax
lea ecx, [edi + 0x7d10]
call fcn.00403e50
lea ecx, [edi + 0x1708]
mov esi, eax
call fcn.004158b0
push eax
lea ecx, [edi + 0x16f0]
call fcn.00403e50
xor ecx, ecx
mov edx, edi
test esi, esi
setne cl
mov dword [edx + 0x1730], ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx + 0x1734], ecx
lea ecx, [edi + 0x1708]
call fcn.004158b0
mov esi, edi
push eax
lea ecx, [esi + 0x7d10]
call fcn.00403ac0
mov ecx, esi
lea ecx, [ecx + 0xfb0]
call fcn.00422600
mov ecx, esi
push eax
lea ecx, [ecx + 0x2318]
call fcn.00403ac0
lea ecx, [edi + 0x1708]
call fcn.004158b0
push eax
lea ecx, [edi + 0x16f0]
call fcn.00403ac0
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00426630
push ebx
lea ecx, [esi + 0x7d10]
call fcn.00403bc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov edi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x55f0]
lea ecx, [edi + 0x55f0]
push 1
call dword [eax]
push 1
push 0
push dword [edi + 0x4680]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [edi + 0x1708]
call fcn.004158b0
push eax
lea ecx, [edi + 0x7d10]
call fcn.00403e50
lea ecx, [edi + 0x1708]
mov esi, eax
call fcn.004158b0
lea ecx, [edi + 0x16f0]
push eax
call fcn.00403e50
test esi, esi
mov dword [ebp + 0xc], eax
lea esi, [edi + 0x1708]
je 0x4088b2
mov ecx, esi
call fcn.004158b0
push eax
lea ecx, [edi + 0x7d10]
call fcn.00403ac0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1730], 1
jmp 0x4088bc
mov dword [edi + 0x1730], 0
test eax, eax
je 0x4088f6
lea ecx, [edi + 0xfb0]
call fcn.00422600
push eax
lea ecx, [edi + 0x2318]
call fcn.00403ac0
mov ecx, esi
call fcn.004158b0
push eax
lea ecx, [edi + 0x16f0]
call fcn.00403ac0
mov dword [edi + 0x1734], 1
jmp 0x408900
mov dword [edi + 0x1734], 0
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00426630
push esi
lea ecx, [edi + 0x7d10]
call fcn.00403bc0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x408920
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x7994]
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 0x102c]
mov ecx, edi
mov esi, dword [ebx + 0x18bc]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call dword [eax + 8]
lea eax, [ebx + 0xfb0]
push 0
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00422600
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, 1
je 0x408982
mov eax, dword [ebx + 0x55f0]
lea ecx, [ebx + 0x55f0]
call dword [eax + 8]
cmp eax, 1
jne 0x408999
cmp dword [ebp - 8], 0
jne 0x408999
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
jne 0x408999
mov eax, dword [edi]
mov ecx, edi
push 1
push dword [ebp + 8]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
add ebx, 0x7d10
call fcn.00422600
push eax
mov ecx, ebx
call fcn.00403e50
mov ecx, dword [ebp - 0xc]
mov esi, eax
call fcn.00422600
mov edi, dword [ebp - 4]
push eax
lea ecx, [edi + 0x2318]
call fcn.00403e50
xor ecx, ecx
test esi, esi
mov esi, edi
setne cl
xor edx, edx
test eax, eax
mov dword [esi + 0xfd8], ecx
setne dl
lea ecx, [esi + 0xfb0]
mov dword [esi + 0xfdc], edx
call fcn.00422600
push eax
mov ecx, ebx
call fcn.00403ac0
lea ecx, [esi + 0xfb0]
call fcn.00422600
push eax
lea ecx, [edi + 0x2318]
call fcn.00403ac0
lea ecx, [esi + 0x1708]
call fcn.004158b0
push eax
lea ecx, [esi + 0x16f0]
call fcn.00403ac0
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.00426630
push edi
mov ecx, ebx
call fcn.00403bc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408be0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov edi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x5444]
lea ecx, [edi + 0x5444]
push 1
call dword [eax]
push 1
push 0
push dword [edi + 0x4680]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [edi + 0xfb0]
call fcn.00422600
push eax
lea ecx, [edi + 0x7d10]
call fcn.00403e50
lea ecx, [edi + 0xfb0]
mov esi, eax
call fcn.00422600
lea ecx, [edi + 0x2318]
push eax
call fcn.00403e50
test esi, esi
mov dword [ebp + 0xc], eax
lea esi, [edi + 0xfb0]
je 0x408c72
mov ecx, esi
call fcn.00422600
push eax
lea ecx, [edi + 0x7d10]
call fcn.00403ac0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xfd8], 1
jmp 0x408c7c
mov dword [edi + 0xfd8], 0
test eax, eax
je 0x408cb6
mov ecx, esi
call fcn.00422600
push eax
lea ecx, [edi + 0x2318]
call fcn.00403ac0
lea ecx, [edi + 0x1708]
call fcn.004158b0
push eax
lea ecx, [edi + 0x16f0]
call fcn.00403ac0
mov dword [edi + 0xfdc], 1
jmp 0x408cc0
mov dword [edi + 0xfdc], 0
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00426630
push esi
lea ecx, [edi + 0x7d10]
call fcn.00403bc0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x40bdc0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b37a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [esi], 0
mov dword [esi + 0x20], 0
call fcn.00417eb0
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 0
call fcn.004211f0
lea ecx, [esi + 0x210]
mov byte [ebp - 4], 1
call fcn.004211f0
lea ecx, [esi + 0x3bc]
mov byte [ebp - 4], 2
call fcn.004211f0
lea ecx, [esi + 0x568]
mov byte [ebp - 4], 3
call fcn.004211f0
lea ecx, [esi + 0x714]
mov byte [ebp - 4], 4
call fcn.004211f0
lea ecx, [esi + 0x8c0]
mov byte [ebp - 4], 5
call fcn.004211f0
lea ecx, [esi + 0xa6c]
mov byte [ebp - 4], 6
call fcn.004211f0
lea ecx, [esi + 0xc18]
mov byte [ebp - 4], 7
call fcn.004211f0
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push str.NotoSans_Bold
push 0x12
mov ecx, 0x3ff
push 0
and ax, cx
push 0
push 0
cmp ax, 0x12
jne 0x40beb5
push 0x81
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xe
jmp 0x40bec7
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x20], eax
mov eax, esi
mov dword [esi + 0x24], str.MENU_VIEW_WINDOWS
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00414d20
mov edi, eax
test edi, edi
je 0x40da39
push 0x43c84c
push 0x548
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004288d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412440
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push esi
push edi
push eax
push ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
push eax
call esi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov dword [eax + 0x40], 0x1b
call esi
mov ecx, dword [ebp - 0x50]
mov ebx, eax
sub ecx, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp - 0x5c]
push ecx
push edi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0x70], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x68]
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [ebp - 0x64]
push dword [eax + 0x78]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x50]
mov esi, eax
sub ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
push 0xcc0020
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
push ecx
push eax
push 0
push 0
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push dword [ebp - 0x60]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
push esi
push ebx
call edi
push dword [ebp - 0x60]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x78], ecx
add eax, 0x60
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
Function at 0x414930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b578
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx*4 + 0x450588], 0
jne 0x414aad
mov eax, dword [0x450584]
mov esi, dword [eax + 0x6410]
test esi, esi
je 0x414a54
push 0x43c84c
movzx edi, bx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4149bc
mov eax, dword [0x450584]
push 0x2000
push 0
push 0
push 0
push edi
push dword [eax + 0x6410]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebx*4 + 0x450588], eax
jmp 0x414aad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004288d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x414a68
push dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.004031c0
mov esi, eax
mov dword [ebp - 0x14], 0
push 0xff363636
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x414a91
mov dword [esi + 8], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
mov dword [ebx*4 + 0x450588], eax
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [ebx*4 + 0x450588]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b578
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x447150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x450584]
mov dword [ebp - 0x14], 0
mov esi, dword [eax + 0x6410]
test esi, esi
je 0x414bf1
movzx edi, word [ebp + 8]
push 0x43c84c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x414b59
mov eax, dword [0x450584]
push 0x2000
push 0
push 0
push 0
push edi
push dword [eax + 0x6410]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004288d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x414c05
push dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.004031c0
mov esi, eax
lea eax, [ebp - 0x14]
push 0xff000000
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x414c27
mov dword [esi + 8], eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret