joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43da9e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x118], 0x114
push edi
lea eax, [ebp - 0x118]
xor edi, edi
push eax
or dword [esi + 8], 0xffffffff
mov dword [esi], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43daf2
cmp dword [ebp - 0x114], 5
jb 0x43daf2
cmp dword [ebp - 0x110], 1
jb 0x43daf2
xor eax, eax
inc eax
jmp 0x43daf4
mov eax, edi
mov dword [esi + 4], eax
test eax, eax
je 0x43db03
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jmp 0x43db41
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ecx
push ecx
push edi
push ecx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
call fcn.0043da1f
push ecx
push ecx
push 1
push ecx
lea ecx, [ebp - 0x11c]
mov dword [esi + 0x10], eax
call fcn.0043da1f
push dword [ebp - 0x11c]
mov dword [esi + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret

Function at 0x43ebe6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x24]
push dword [eax]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x43ece7
lea ecx, [ebx*2 + 2]
push ecx
call fcn.00505e8b
mov edi, eax
pop ecx
test edi, edi
je 0x43ece7
lea ecx, [ebx + 1]
push ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x3f6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
neg eax
push 0x3f2
push dword [esi + 4]
sbb ebx, ebx
inc ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43ec57
or ebx, 4
push 0x3f4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43ec6c
or ebx, 2
lea eax, [ebp - 0x10]
push eax
push 0
push 0x434
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c], edi
test bl, 1
je 0x43ec91
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x20], 0xffffffff
jmp 0x43ec98
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x47c
push dword [esi + 0x20]
call ebx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x43ecc1
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x43ecd1
lea eax, [ebp - 0x18]
push eax
push 0
push 0x437
push dword [esi + 0x20]
call ebx
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0043ef67
push edi
call fcn.0050524d
mov eax, dword [ebp - 8]
pop ecx
jmp 0x43ecea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f1c2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jne 0x43f1f1
push 1
call fcn.0043ecef
push 1
push dword [esi + 0x28]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x43f2bc
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x434
push dword [esi + 0x20]
call edi
push 0x3f6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43f233
push ebx
push ebx
push 0xe
push dword [esi + 0x20]
call edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp ecx, eax
jge 0x43f22e
inc ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
jmp 0x43f241
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x43f23e
dec eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x437
push dword [esi + 0x20]
call edi
mov ecx, esi
call fcn.0043ebe6
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x43f2b8
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
lea ecx, [eax*2 + 2]
push ecx
call fcn.00505e8b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43f2b8
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push ebx
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push 1
push 0xc2
push dword [esi + 0x20]
call edi
mov edx, ebx
lea ecx, [esi + 0x28]
call fcn.0043ef67
push ebx
call fcn.0050524d
pop ecx
mov ecx, esi
call fcn.0043ebe6
mov eax, dword [ebp - 8]
jmp 0x43f2bb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43f2c2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x43f32d
lea ecx, [ebx*2 + 2]
push ecx
call fcn.00505e8b
mov edi, eax
mov dword [ebp - 0xc], edi
pop ecx
test edi, edi
je 0x43f32d
lea ecx, [ebx + 1]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
push ecx
push edi
push dword [esi + 0x24]
call ebx
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
lea ecx, [eax*2 + 2]
push ecx
call fcn.00505e8b
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x43f337
push edi
call fcn.0050524d
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp - 4]
inc eax
push eax
push ecx
push dword [esi + 0x28]
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
push 0
push 0x434
push dword [esi + 0x20]
call ebx
push 0x3f8
push dword [esi + 4]
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43f380
xor eax, eax
push eax
push eax
push 0xe
push dword [esi + 0x20]
mov dword [ebp - 0x28], eax
call ebx
mov dword [ebp - 0x24], eax
jmp 0x43f39e
push 0x3f9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43f39e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
push 0x3f2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 5
pop ecx
xor ebx, ebx
inc ebx
test eax, eax
push 0x3f4
push dword [esi + 4]
cmovne ebx, ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x43f3cc
or ebx, 2
mov ecx, dword [ebp - 8]
call fcn.0043ef47
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0043ef47
sub dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x47c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x43f452
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x437
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0xc2
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp ecx, eax
jge 0x43f44f
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x47c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43f3fc
mov edi, dword [ebp - 0xc]
push edi
call fcn.0050524d
push dword [ebp - 8]
call fcn.0050524d
pop ecx
pop ecx
xor eax, eax
jmp 0x43f330
Function at 0x44082f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, ecx
push 0xffffffffffffffff
push 0x100c
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20a
mov ebx, eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.0043fe0f
push dword [eax]
lea eax, [ebp - 0x210]
push eax
call fcn.00504cbe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x4408a4
call fcn.00407965
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x210]
push 0x40
mov dword [ebp - 0x22c], eax
pop eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x230], 3
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x222], ecx
mov dword [ebp - 0x21e], ecx
mov dword [ebp - 0x21a], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x440910
cmp dword [ebp - 0x222], eax
jne 0x440910
push eax
push ebx
push 0x1008
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0x10

Function at 0x44167a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
lea esi, [ecx + 0x54]
je 0x441693
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x44169d
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00443333
push 0
push dword [ebp + 8]
push 0x402
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebp
ret 8

Function at 0x442518
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x104]
and dword [esi + 0x104], 0
cmp dword [ebp + 8], 0
jne 0x44255d
mov ebx, dword [esi + 0x64]
test edi, edi
je 0x44254e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
mov eax, 0xff
je 0x442550
mov eax, ebx
push 5
push eax
mov ecx, esi
call fcn.00443d9b
mov dword [esi + 0x64], ebx
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
mov ebx, dword [esi + 0x64]
je 0x44259e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test edi, edi
mov ecx, 0xff
mov eax, ebx
cmovne eax, ecx
mov ecx, esi
push eax
push 5
call fcn.00443d9b
mov dword [esi + 0x64], ebx
jmp 0x4425a8
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00443d9b
mov dword [esi + 0x104], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44c452
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 2
push dword [ebp + 8]
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret

Function at 0x44de28
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 4], edi
mov dword [esi + 8], esi
mov dword [esi + 0xc], 7
mov dword [esi + 0x10], 0x7e8
mov dword [esi + 0x14], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44de7c
cmp dword [esi + 0x14], ebx
jne 0x44de6a
push ebx
push ebx
push 0x7f
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x14], eax
add esi, 0x18
cmp word [esi], bx
jne 0x44de7c
push 0x40
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0x14

Function at 0x44e027
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004e0bc0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44e0ae
xor eax, eax
inc eax
cmp dword [ebp - 0x108], eax
jne 0x44e08e
cmp dword [ebp - 0x114], 4
jb 0x44e08a
cmp dword [ebp - 0x110], 0x5a
jae 0x44e0b0
mov eax, esi
jmp 0x44e0b0
cmp dword [ebp - 0x108], 2
jne 0x44e0ae
cmp dword [ebp - 0x114], 5
ja 0x44e0aa
jne 0x44e08a
cmp dword [ebp - 0x110], eax
jb 0x44e08a
mov esi, eax
jmp 0x44e08a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret
Function at 0x44e54e
Capabilities:
Delete file
Get http content length
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
mov ebx, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
mov dword [ebp - 0x101c], ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1010], esi
mov dword [ebp - 0x100c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x44e6ae
push dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x101c]
push 0x84000200
push 0xffffffffffffffff
push esi
push dword [ebp - 0x1014]
call fcn.00422056
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x44e6a3
mov ecx, SysReAllocString
mov dword [ebp - 0x100c], 4
push esi
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x100c]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x1010]
test eax, eax
mov eax, SysReAllocString
cmove ecx, eax
mov dword [ebp - 0x1010], ecx
jmp 0x44e65e
push esi
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1014], esi
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e697
add ebx, dword [ebp - 0x1014]
cmp ebx, dword [ebp - 0x1010]
jae 0x44e694
mov ecx, 0x1000
cmp dword [ebp - 0x100c], ecx
mov eax, ecx
mov ecx, dword [ebp - 0x101c]
cmovb eax, dword [ebp - 0x100c]
push 0xea60
push dword [ebp - 0x1018]
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00422636
test eax, eax
jne 0x44e62f
xor esi, esi
inc esi
push dword [ebp - 0x1020]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x44e6ba
push dword [ebp - 0x1024]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0xc
Function at 0x4500e3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x450114
xor ebx, ebx
cmp word [esi], bx
je 0x450114
cmp dword [0x673404], ebx
jne 0x45011d
mov ecx, esi
call fcn.00414841
test eax, eax
je 0x450114
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
or dword [ebp - 0x44], 0xffffffff
xorps xmm0, xmm0
push ecx
push 2
push 1
push 0xc0000000
push esi
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0x1000
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00430cc6
test eax, eax
je 0x45025e
push 3
push 0x668324
lea ecx, [ebp - 0x44]
call fcn.0043bce1
call fcn.00445522
mov dword [ebp - 0xc], eax
test eax, eax
je 0x450255
mov esi, 0x668010
mov eax, dword [0x668294]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445552
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 8]
push 0xffffffffffffffff
call fcn.004137fa
mov eax, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x44]
push dword [eax - 8]
push eax
call fcn.0043bce1
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push str._d
push eax
call fcn.0042ef7b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
add esp, 0xc
push dword [eax - 8]
push eax
call fcn.0043bce1
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
mov edx, edi
call fcn.004137fa
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.0040cd2a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x450202
call fcn.00407965
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push dword [esi - 8]
push esi
call fcn.0043bce1
push 2
push 0x638e18
lea ecx, [ebp - 0x44]
call fcn.0043bce1
lea ecx, [esi - 0xc]
mov esi, 0x668010
cmp ecx, esi
je 0x450231
call fcn.00407965
lea ecx, [edi - 0xc]
cmp ecx, esi
je 0x45023d
call fcn.00407965
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x45024c
call fcn.00407965
cmp dword [ebp - 0xc], ebx
jne 0x45017b
mov dword [0x673430], ebx
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x44]
call fcn.00430d21
mov eax, ebx
jmp 0x450116
Function at 0x451288
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push ecx
push 0
mov ebx, ecx
call fcn.004511ea
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebx + 4]
push 0x453
push dword [esi]
call edi
push 0x3f1
push dword [esi]
mov dword [ebx + 0x6c], eax
call edi
push 0x3fd
push dword [esi]
mov dword [ebx + 0x70], eax
call edi
push 0x401
push dword [esi]
mov dword [ebx + 0x74], eax
call edi
lea edi, [ebx + 0x78]
mov dword [edi], eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x70]
push eax
call fcn.00451044
cmp dword [ebx + 0x20], 0
je 0x451466
mov eax, dword [0x668294]
push 0x7f3b
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0041129f
mov edi, dword [esp + 0x10]
test eax, eax
je 0x451324
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x451368
cmp esi, dword [ebx + 0x70]
je 0x45134e
cmp esi, dword [ebx + 0x6c]
je 0x45134e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x45133b
mov edi, dword [esp + 0x10]
push 0x41c
lea esi, [ebx + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
push 0x3f1
call fcn.00450fb8
push 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xa
push eax
push 0
lea ecx, [ebx + 0x70]
call fcn.00403895
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
push 0x3ea
call fcn.00450fb8
push 0x14
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [ebx + 0x6c]
call fcn.00403895
push 0
push 0x453
push 0x401
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x14]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x18]
push 0xffffffffffffffec
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x28], eax
call esi
push eax
push 0
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [ebx + 4]
call fcn.00403895
mov eax, dword [ebx + 0x24]
cmp dword [eax - 8], 0
je 0x451454
push 0
push 0x503f1
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x45147d
call fcn.00407965
jmp 0x45147d
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebx + 0x74]
push eax
call fcn.00451044
lea eax, [ebx + 0x5c]
push eax
push edi
call fcn.00451044
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.004da623
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45593c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], edi
je 0x455a6e
push esi
push 0x2e
push eax
call fcn.004e0fe2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0040d2ee
mov esi, dword [ebp - 0xc]
push str..png
push esi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x45599e
mov edi, dword [ebp - 4]
xor ebx, ebx
mov ecx, dword [ebp + 8]
inc ebx
mov dword [edi + 0x1798], ebx
call fcn.00545bd0
mov dword [edi + 0x179c], eax
jmp 0x455a58
push edi
push 0x80
push 3
mov dword [ebx + 0x1798], 2
xor ebx, ebx
push edi
inc ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x455a5a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4559ea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455a5a
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x455a5a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x455a5a
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0x176c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ecx + 0x1784]
call fcn.00452728
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
lea ecx, [esi - 0xc]
pop esi
cmp ecx, 0x668010
je 0x455a6b
call fcn.00407965
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x668010
je 0x455a7e
call fcn.00407965
mov eax, edi
pop edi
pop ebx
leave
ret 4