joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197bd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x428008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0
push dword [0x429688]
mov dword [edi + 0xc], eax
push eax
push dword [ebp + 0xc]
push 0
push 0x80000000
push 0
push 0x80000000
push 0x50000000
push 0x41f1ec
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x40205e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], edi
push eax
call fcn.00409210
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x24], xmm0
cmp byte [eax + 0xd], 0
jne 0x402088
cmp ebx, dword [eax + 0x10]
jae 0x4020e2
cmp dword [0x429ab8], 0xaaaaaaa
je 0x402132
mov esi, dword [0x429ab4]
mov dword [ebp - 0x18], 0x429ab4
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x14], 0
call fcn.00409ab9
add esp, 4
mov ecx, 0x429ab4
mov dword [eax + 0x10], ebx
push eax
push dword [ebp - 0x20]
mov dword [eax + 0x14], edi
push dword [ebp - 0x24]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00409680
push 0x401ef0
push 0xfffffffffffffffc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0x64
push 0x2001
push dword [edi + 4]
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401c30
int3
Function at 0x402510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x428880], 0
mov dword [ebx], vtable.COptionsDialog.0
je 0x402611
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 2
push 0
push 0
push 0
push str.SoftwareScreenshotX2Y7Z8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402611
mov edi, str.Rectangle
lea esi, [ebx + 0x18]
mov eax, dword [esi - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edi, 0x22
lea esi, [esi + 0xc]
cmp edi, str.LastSavedFormat
jl 0x402587
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push 0x429694
push 4
push 0
push str.LastSavedFormat
push dword [ebp - 0x20]
call esi
mov ecx, 0x429698
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025e0
sub ecx, edx
sar ecx, 1
je 0x402608
lea eax, [ecx + ecx]
push eax
push 0x429698
push 1
push 0
push str.LastSavedDir
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x401fd0
push 0x10
push 0x30
lea eax, [ebx + 0xec]
push eax
call fcn.00409ae9
push 0x401fd0
push 3
push 0x30
lea eax, [ebx + 0x5c]
push eax
call fcn.00409ae9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409972
mov esp, ebp
pop ebp
ret
Function at 0x402660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push 1
push 0
push str.SoftwareScreenshotX2Y7Z8
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4028cb
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esi, 0x14
push edi
mov edi, str.Rectangle
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 3
push 0
push eax
mov dword [ebp - 0x214], 0x208
call fcn.0040b1c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x218]
call ebx
test eax, eax
jne 0x40272d
cmp dword [ebp - 0x210], 3
jne 0x40272d
cmp dword [ebp - 0x214], 0xc
jne 0x40272d
mov eax, dword [ebp - 0x20c]
mov dword [esi], eax
mov eax, dword [ebp - 0x208]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x204]
mov dword [esi + 8], eax
mov ecx, dword [esi]
xor eax, eax
cmp dword [eax + 0x41f400], ecx
je 0x402747
add eax, 4
cmp eax, 0xc
jb 0x402731
mov dword [esi], 3
mov ecx, dword [esi + 4]
xor eax, eax
nop dword [eax]
cmp dword [eax + 0x41f40c], ecx
je 0x402767
add eax, 4
cmp eax, 0x28
jb 0x402750
mov dword [esi + 4], 0xc
mov ecx, dword [esi + 8]
cmp ecx, 0xff
je 0x40278b
xor eax, eax
cmp dword [eax + 0x41f3c0], ecx
je 0x40278b
add eax, 4
cmp eax, 0x40
jb 0x402774
mov dword [esi + 8], 0xff
add edi, 0x22
add esi, 0xc
cmp edi, str.LastSavedFormat
jl 0x4026b3
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 4
push 0
push eax
mov dword [ebp - 0x214], 0x208
call fcn.0040b1c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.LastSavedFormat
push dword [ebp - 0x218]
call ebx
test eax, eax
jne 0x402816
cmp dword [ebp - 0x210], 4
jne 0x402816
mov eax, dword [ebp - 0x20c]
mov dword [0x429694], eax
test eax, eax
js 0x40280c
cmp eax, 2
jle 0x402816
mov dword [0x429694], 0
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push 0
push eax
mov dword [ebp - 0x214], 0x208
call fcn.0040b1c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.LastSavedDir
push dword [ebp - 0x218]
call ebx
pop edi
pop ebx
test eax, eax
jne 0x4028bf
cmp dword [ebp - 0x210], 1
jne 0x4028bf
lea eax, [ebp - 0x20c]
push eax
push 0x208
push 0x429698
call fcn.0040d826
add esp, 0xc
push 0
push 0x2000010
push 3
push 0
push 0
push 0x40000000
push 0x429698
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4028b8
xor eax, eax
mov word [0x429698], ax
jmp 0x4028bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409972
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push esi
push edi
mov edi, ecx
push 0
cmp dword [edi + 0xc], 0x3ed
mov eax, dword [edi + 4]
jne 0x402afc
push 0x3fc
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3fd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x3fe
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 5
push 0x3ed
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0xa
push 5
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0
push eax
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
sub eax, 0x3e6
movq qword [ebp - 0x10], xmm0
lea eax, [eax + eax*2]
push dword [edi + eax*4]
call fcn.0040d7f3
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 0x14d
push 0x3ed
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402c0f
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x3fc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 5
push 0x3fd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 5
push 0x3fe
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov eax, dword [edi + 0xc]
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*4 - 0x2ecc]
cmp eax, 1
jne 0x402b65
mov dword [edi + 0x10], 0x3fc
jmp 0x402b7f
cmp eax, 3
jne 0x402b73
mov dword [edi + 0x10], 0x3fd
jmp 0x402b7f
cmp eax, 7
jne 0x402b7f
mov dword [edi + 0x10], 0x3fe
push 0
push 0
push dword [edi + 0x60]
mov dword [edi + 0x6c], 0
call ebx
push 0
push 0
push dword [edi + 0x90]
mov dword [edi + 0x9c], 0
call ebx
push 0
push 0
push dword [edi + 0xc0]
mov dword [edi + 0xcc], 0
call ebx
mov eax, dword [edi + 0x10]
cmp eax, 0x3fc
jne 0x402bd5
push 0
push 0
push dword [edi + 0x60]
mov dword [edi + 0x6c], 2
jmp 0x402c0d
cmp eax, 0x3fd
jne 0x402bf2
push 0
push 0
push dword [edi + 0x90]
mov dword [edi + 0x9c], 2
jmp 0x402c0d
cmp eax, 0x3fe
jne 0x402c0f
push 0
push 0
push dword [edi + 0xc0]
mov dword [edi + 0xcc], 2
call ebx
lea eax, [ebp - 0x20]
push eax
push 0x3ee
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409972
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x429ac0]
push edi
movzx edi, word [ebp + 8]
cmp edi, 2
jne 0x403780
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409972
mov esp, ebp
pop ebp
ret 8
lea eax, [edi - 0x3ed]
cmp eax, 0x11
ja case.0x403796.1006
movzx eax, byte [eax + 0x4038fc]
jmp dword [eax*4 + 0x4038f0]
cmp edi, dword [esi + 0x10]
je case.0x403796.1006
cmp edi, 0x3fc
jne 0x4037bd
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 1
jmp 0x4037f1
cmp edi, 0x3fd
jne 0x4037d8
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 3
jmp 0x4037f1
cmp edi, 0x3fe
jne 0x4037f1
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 7
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.00402c60
push 0
push edi
push 0x1403
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [edi - 0x406]
cmp eax, 0xf
ja 0x40388c
mov eax, dword [esi + 0xc]
mov ecx, dword [edi*4 + 0x41e3a8]
lea eax, [eax + eax*2]
cmp dword [esi + eax*4 - 0x2ec4], ecx
je 0x40388c
mov dword [esi + eax*4 - 0x2ec4], ecx
lea eax, [ebp - 0x14]
push eax
push 0x3ee
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push edi
push 0x1403
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00409972
mov esp, ebp
pop ebp
ret 8
push 0xa
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0
push eax
push 0x3ed
push dword [esi + 4]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d686
mov ecx, dword [esi + 0xc]
add esp, 4
sub ecx, 0x3e6
lea ecx, [ecx + ecx*2]
cmp eax, dword [esi + ecx*4]
je 0x40388c
mov dword [esi + ecx*4], eax
push 1
jmp 0x403876
Function at 0x4038a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x429ac0]
push edi
movzx edi, word [ebp + 8]
cmp edi, 2
jne 0x403780
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409972
mov esp, ebp
pop ebp
ret 8
lea eax, [edi - 0x3ed]
cmp eax, 0x11
ja case.0x403796.1006
movzx eax, byte [eax + 0x4038fc]
jmp dword [eax*4 + 0x4038f0]
cmp edi, dword [esi + 0x10]
je case.0x403796.1006
cmp edi, 0x3fc
jne 0x4037bd
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 1
jmp 0x4037f1
cmp edi, 0x3fd
jne 0x4037d8
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 3
jmp 0x4037f1
cmp edi, 0x3fe
jne 0x4037f1
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 - 0x2ecc], 7
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.00402c60
push 0
push edi
push 0x1403
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [edi - 0x406]
cmp eax, 0xf
ja 0x40388c
mov eax, dword [esi + 0xc]
mov ecx, dword [edi*4 + 0x41e3a8]
lea eax, [eax + eax*2]
cmp dword [esi + eax*4 - 0x2ec4], ecx
je 0x40388c
mov dword [esi + eax*4 - 0x2ec4], ecx
lea eax, [ebp - 0x14]
push eax
push 0x3ee
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push edi
push 0x1403
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00409972
mov esp, ebp
pop ebp
ret 8
push 0xa
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0
push eax
push 0x3ed
push dword [esi + 4]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d686
mov ecx, dword [esi + 0xc]
add esp, 4
sub ecx, 0x3e6
lea ecx, [ecx + ecx*2]
cmp eax, dword [esi + ecx*4]
je 0x40388c
mov dword [esi + ecx*4], eax
push 1
jmp 0x403876
Function at 0x403e10
Capabilities:
Set registry value

Disassembly:
mov dword [ecx], vtable.CToolbarDialog.0
mov dword [ecx + 0x5b8], 0x41f470
mov dword [ecx + 0x588], 0x41f470
mov dword [ecx + 0x558], 0x41f470
mov dword [ecx + 0x528], 0x41f470
mov dword [ecx + 0x4f8], 0x41f470
mov dword [ecx + 0x4c8], 0x41f470
mov dword [ecx + 0x498], 0x41f470
mov dword [ecx + 0x468], 0x41f470
mov dword [ecx + 0x438], 0x41f470
mov dword [ecx + 0x408], 0x41f470
add ecx, 0xc
jmp fcn.00402510
Function at 0x406800
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 1
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40688f
mov eax, dword [esi + 0x6f8]
test eax, eax
je 0x40688f
cmp eax, 1
jne 0x406827
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 2
jne 0x406834
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 3
jne 0x406841
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 4
jne 0x40684e
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 5
jne 0x40685b
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 6
jne 0x406868
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 8
jne 0x406875
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 7
jne 0x406882
mov dword [esi + 0x6f4], eax
pop esi
ret
cmp eax, 9
jne 0x406899
mov dword [esi + 0x6f4], eax
pop esi
ret
mov dword [esi + 0x6f4], 0
pop esi
ret
Function at 0x406c00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push 0x18
push edi
movsd qword [ebp - 0x60], xmm2
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x3c], eax
call edi
push ebx
mov dword [ebp - 0x40], eax
call esi
push dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [ebp - 0x38]
push eax
push ebx
mov dword [ebp - 0x34], eax
call edi
push 0xcc0020
push 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [ebp - 0x54]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2c], esi
imul esi, eax
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x30], 0x28
shl esi, 2
push esi
push 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x200001
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov edi, eax
push 0
push edi
call fcn.0040b1c0
add esp, 0xc
lea eax, [ebp - 0x30]
push 0
push eax
push edi
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, esi
cdq
and edx, 3
lea esi, [edx + eax]
xor edx, edx
sar esi, 2
test esi, esi
jle 0x406d75
movsd xmm1, qword [ebp - 0x60]
nop dword [eax]
movzx eax, byte [edi + edx*4 + 2]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ecx, al
movzx eax, byte [edi + edx*4 + 1]
shl ecx, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx eax, al
or ecx, eax
movzx eax, byte [edi + edx*4]
shl ecx, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x41f540]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx eax, al
or ecx, eax
mov dword [edi + edx*4], ecx
inc edx
cmp edx, esi
jl 0x406d10
push 0
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_SetDIBits]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 0x38]
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00409972
mov esp, ebp
pop ebp
ret 8
Function at 0x4079c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x428008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x80
push dword [0x429ab0]
mov dword [ebx + 4], eax
push dword [0x429690]
push dword [0x429aac]
push dword [0x429aa8]
push 0xffffffffffffffff
push eax
call esi
mov ecx, ebx
call fcn.004051e0
push 0x57
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0xc8]
lea esi, [ebx + 0xc4]
test eax, eax
jne 0x407a5f
mov eax, dword [0x429abc]
push esi
push 0x403e90
push dword [eax + 4]
push 0x68
push dword [0x429688]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [esi + 4], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Msftedit.dll
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push dword [0x429688]
lea edi, [ebx + 0xac]
push 0x44c
push dword [ebx + 4]
push 0
push 0x80000000
push 0
push 0x80000000
push 0x50001044
push 0x41f1ec
push str.RICHEDIT50W
push 0x20
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 4], eax
test eax, eax
je 0x407b87
push 0x40001
push 0
push 0x445
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp + 8], esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00409210
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
cmp byte [eax + 0xd], 0
jne 0x407b03
cmp esi, dword [eax + 0x10]
jae 0x407b60
cmp dword [0x429ab8], 0xaaaaaaa
je 0x407bf6
mov esi, dword [0x429ab4]
mov dword [ebp - 0x14], 0x429ab4
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x10], 0
call fcn.00409ab9
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, 0x429ab4
push eax
push dword [ebp - 0x1c]
mov dword [eax + 0x14], edi
push dword [ebp - 0x20]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00409680
push 0x401ef0
push 0xfffffffffffffffc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [edi + 4]
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
movss xmm0, dword [0x428884]
mulss xmm0, dword [0x41f524]
push 0x86
cvttss2si eax, xmm0
movss xmm0, dword [0x428888]
mulss xmm0, dword [0x41f530]
push eax
cvttss2si eax, xmm0
push eax
push 0
push 0
push 0
push dword [ebx + 0xb0]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [ebx + 0xb0]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebx + 0xbc], 0
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 0xc
call fcn.00401c30
int3