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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x428e2d
cmp dword [edi + 0x54], 0
jne 0x428e2d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00433371
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00428dd4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42c7ef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42c828
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c829
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004053eb
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42dd46
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4637fc
mov ecx, edi
call fcn.00401639
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42dd99
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42ddac
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040c829
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004053eb
jmp 0x42ddac
mov ecx, esi
call fcn.00428ed8
test eax, eax
je 0x42ddac
push edi
mov ecx, eax
call fcn.0042c7ef
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42e28a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42e2cd
call fcn.00433371
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42e2cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e2e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042de44
test ebx, ebx
mov esi, eax
je 0x42e2e6
test edi, edi
je 0x42e2e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x434ce5
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x477cb0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x434d83
push 0x46013c
push 4
push eax
call fcn.0043cf2a
push eax
call fcn.004015e5
add esp, 0x10
push ebx
push edi
call fcn.0043f5d6
mov edi, dword [eax]
call fcn.0043f5d6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043f57c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043f5d6
cmp dword [eax], ebx
je 0x434d9a
call fcn.0043f5d6
push dword [eax]
call fcn.0041abb0
pop ecx
jmp 0x434da1
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x434d34
jmp 0x434e13
call fcn.0043f5d6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x434e0f
cmp dword [ebp - 0x40], esi
jae 0x434e0f
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043a060
add esp, 0xc
push 0x45f780
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x434e01
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x434e01
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x434e01
push ebx
push ebx
push esi
jmp 0x434e07
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x434e11
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0043917f
add ebp, 0x1f4
leave
ret
Function at 0x43917f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477cb0]
jne 0x439189
repz ret
jmp fcn.004419e3
Function at 0x43e55a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43e597
cmp dword [ebp + 0x14], edi
je 0x43e597
cmp ecx, edi
jne 0x43e59e
call fcn.0043f5d6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043d554
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43e5b2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43e5d3
cmp ebx, 0xffffffff
je 0x43e5c2
push ebx
push edi
push ecx
call fcn.0043a060
add esp, 0xc
cmp esi, edi
je 0x43e57f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43e57f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43e5ef
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43e5f6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43e6e7
test word [esi + 0xc], 0x10c
je 0x43e64a
mov eax, dword [esi + 4]
test eax, eax
je 0x43e64a
jl 0x43e748
cmp ebx, eax
mov edi, ebx
jb 0x43e61b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43e6ef
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004397c9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43e6df
cmp ebx, dword [ebp - 0xc]
jb 0x43e6b7
cmp dword [ebp - 0xc], 0
je 0x43e674
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43e669
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43e670
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43e67f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43e67f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43e71b
push eax
push dword [ebp - 8]
push esi
call fcn.0043fafa
pop ecx
push eax
call fcn.0044b236
add esp, 0xc
test eax, eax
je 0x43e75a
cmp eax, 0xffffffff
je 0x43e748
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43e6df
push esi
call fcn.0044898c
cmp eax, 0xffffffff
pop ecx
je 0x43e74c
cmp dword [ebp - 4], 0
je 0x43e71b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43e5fe
mov eax, dword [ebp + 0x14]
jmp 0x43e599
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e706
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043a060
add esp, 0xc
call fcn.0043f5d6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43e58f
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e731
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043a060
add esp, 0xc
call fcn.0043f5d6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43e58f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43e599
or dword [esi + 0xc], 0x10
jmp 0x43e74c
Function at 0x440757
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x477e40]
je 0x440772
inc edi
cmp edi, 0x17
jb 0x440763
cmp edi, 0x17
jae 0x4408f2
push ebp
push 3
call fcn.0044dffc
cmp eax, 1
pop ecx
je 0x4408be
push 3
call fcn.0044dffc
test eax, eax
pop ecx
jne 0x4407a6
cmp dword [0x4779f8], 1
je 0x4408be
cmp ebx, 0xfc
je 0x4408f1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47c088
push ebp
call fcn.00447c40
add esp, 0xc
test eax, eax
je 0x4407dc
push esi
push esi
push esi
push esi
push esi
call fcn.0043d458
add esp, 0x14
push 0x104
mov esi, 0x47c0a1
push esi
push 0
mov byte [0x47c1a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x440820
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00447c40
add esp, 0xc
test eax, eax
je 0x440820
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043d458
add esp, 0x14
push esi
call fcn.0043d8b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x440865
push esi
call fcn.0043d8b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47c39c
push 0x4615ac
sub ecx, eax
push ecx
push eax
call fcn.0044df49
add esp, 0x14
test eax, eax
je 0x440865
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043d458
add esp, 0x14
jmp 0x440867
xor esi, esi
push 0x4615a8
push ebx
push ebp
call fcn.0044ded8
add esp, 0xc
test eax, eax
je 0x440887
push esi
push esi
push esi
push esi
push esi
call fcn.0043d458
add esp, 0x14
push dword [edi*8 + 0x477e44]
push ebx
push ebp
call fcn.0044ded8
add esp, 0xc
test eax, eax
je 0x4408a9
push esi
push esi
push esi
push esi
push esi
call fcn.0043d458
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044dd1b
add esp, 0xc
jmp 0x4408f1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4408f1
cmp ebp, 0xffffffff
je 0x4408f1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x477e44]
push dword [esi]
call fcn.0043d8b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44dd1b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044131b
xor ebx, ebx
cmp dword [0x47cb8c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44ddf1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44ded1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44ded1
push eax
call fcn.004412ad
mov dword [esp], 0x461a58
push edi
mov dword [0x47cb8c], eax
call esi
push eax
call fcn.004412ad
mov dword [esp], 0x461a44
push edi
mov dword [0x47cb90], eax
call esi
push eax
call fcn.004412ad
mov dword [0x47cb94], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043c8a9
test eax, eax
pop ecx
pop ecx
je 0x44ddbf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043d458
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44ddf1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004412ad
cmp eax, ebx
pop ecx
mov dword [0x47cb9c], eax
je 0x44ddf1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004412ad
pop ecx
mov dword [0x47cb98], eax
mov eax, dword [0x47cb98]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44de76
cmp dword [0x47cb9c], ecx
je 0x44de76
push eax
call fcn.00441324
push dword [0x47cb9c]
mov esi, eax
call fcn.00441324
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44de76
cmp edi, ebx
je 0x44de76
call esi
cmp eax, ebx
je 0x44de43
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44de43
test byte [ebp - 0x18], 1
jne 0x44de76
lea eax, [ebp - 0x10]
push eax
call fcn.0043c8e0
test eax, eax
pop ecx
je 0x44de5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043d458
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44de6d
or dword [ebp + 0x10], 0x200000
jmp 0x44deb1
or dword [ebp + 0x10], 0x40000
jmp 0x44deb1
mov eax, dword [0x47cb90]
cmp eax, dword [ebp - 8]
je 0x44deb1
push eax
call fcn.00441324
cmp eax, ebx
pop ecx
je 0x44deb1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44deb1
mov eax, dword [0x47cb94]
cmp eax, dword [ebp - 8]
je 0x44deb1
push eax
call fcn.00441324
cmp eax, ebx
pop ecx
je 0x44deb1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47cb8c]
call fcn.00441324
cmp eax, ebx
pop ecx
je 0x44ded1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ded3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x64], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea ecx, [esp + 0x44]
call fcn.0043093e
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 1
call fcn.004308f6
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x434c24
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
mov byte [esp + 0x5c], 3
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edi
sub ecx, edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
push 1
push ecx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.00407ac0
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
test edi, edi
je 0x4076c1
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x34]
push edi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x64]
mov dword [esp + 0x18], 0x434c10
mov dword [esi], ebp
mov dword [esi + 4], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0x434bfc
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CWindowDC::CWindowDC
lea ecx, [esp + 0x68]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 8
Function at 0x4098a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, eax
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x434c10
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x41842d
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x418495
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x4184ef
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x418478
push 5
jmp 0x4184e6
cmp eax, 5
jne 0x4184e7
cmp dword [edi + 8], 0
jne 0x418487
push 6
jmp 0x4184e6
cmp eax, 5
jne 0x4184e7
cmp dword [edi + 8], ebx
jne 0x4184e7
push 7
jmp 0x4184e6
cmp al, 4
jae 0x41849d
xor ebx, ebx
jmp 0x4184ef
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x4184ef
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x4184e7
cmp dword [edi + 8], 0xa
jne 0x4184da
push 3
jmp 0x4184e6
cmp eax, 4
jne 0x4184e7
cmp dword [edi + 8], 0x5a
jne 0x4184e7
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41a41f
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41a437
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x41d367
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x43c66c
mov esi, ecx
push dword [esp + 0x18]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
je 0x41d3f3
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebp
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
mov edi, eax
mov ecx, esi
push edi
call fcn.0041d3fc
test al, al
jne 0x41d3ad
xor bl, bl
jmp 0x41d3d4
push 0
push 0
push ebp
call ebx
push ebp
push edi
push 1
pop ebx
push ebx
push dword [esi + 0xc]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x41d3e0
and dword [esi + 8], 0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, bl
jmp 0x41d3f5
and dword [esi + 4], 0
and dword [esi + 8], 0
push ebp
mov dword [esi + 0x10], edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x422c47
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea eax, [ebp - 0xe8]
mov esi, ecx
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
add eax, 0x90
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [eax + 0xcc]
push dword [ebp + 8]
call ebx
push 1
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 8], eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
xor esi, esi
and ecx, 2
cmp cl, 2
jne 0x422ce4
push 2
pop esi
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x422cf1
push 1
pop esi
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x422d01
or esi, 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x422d0e
or esi, 0x20
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x422d20
or esi, 0x800
and eax, 0xb
cmp al, 0xb
jne 0x422d2a
or esi, 0x20
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xe8]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x10]
push esi
call ebx
push dword [ebp - 0xc]
push esi
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4256ed
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
mov eax, dword [esi + 0xd8]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0042cb9a
push 0
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push 1
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call fcn.004174a7
add esp, 0x14
lea eax, [ebp - 0xd4]
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 4]
and byte [ebp - 0xd], 0
add eax, 0x398
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 8], eax
call ebx
mov esi, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [esi + 0x3d4]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push edi
call esi
push 1
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x25
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd4]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 0xc]
push edi
call esi
push dword [ebp + 8]
push edi
call ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [ebp - 4], 0
je 0x4257e4
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc