joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x130
mov eax, dword [esp + 0x13c]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x13c]
push eax
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edi, dword [esp + 0x140]
mov ecx, dword [esi + 0x40]
test edi, edi
mov dword [esp + 0x20], ecx
je 0x42ca11
push edi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x42cbbc
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42ca25
test byte [esi + 0x54], 2
jne 0x42ca25
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov al, byte [esi + 0x80]
mov dword [esi + 0x40], edi
test al, 2
jne 0x42cbbc
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 0
push 0
push 0xb
push edx
call ebx
mov eax, dword [esi + 4]
push 0
push 0
push 0x418
push eax
call ebx
test eax, eax
jle 0x42ca71
mov edi, eax
mov ecx, dword [esi + 4]
push 0
push 0
push 0x416
push ecx
call ebx
dec edi
jne 0x42ca5f
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42cb96
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebp, ebp
mov dword [esp + 0x24], eax
test eax, eax
jle 0x42cb96
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x2c]
push eax
push 1
xor edi, edi
push ebp
push ecx
mov dword [esp + 0x3c], 0x2c
mov dword [esp + 0x40], 0x15
mov dword [esp + 0x44], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x64
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x63
jle 0x42cb05
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x2c]
push eax
push 1
push ebp
push ecx
mov dword [esp + 0x44], 4
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov word [esp + 0x78], di
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x14], edx
and al, 3
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
neg al
mov dword [esp + 0x1c], edx
push ecx
sbb al, al
mov dword [esp + 0x24], edx
mov edx, dword [esi + 4]
and al, 0xfc
push 0xffffffffffffffff
add al, 4
push 0x443
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x18
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call ebx
mov edx, dword [esi + 4]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x78]
push ecx
push ebp
push 0x440
push edx
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x6c], 2
mov dword [esp + 0x80], eax
call ebx
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x42ca91
mov eax, dword [esi + 4]
push 0
push 1
push 0xb
push eax
call ebx
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
pop ebx
mov ecx, esi
call fcn.0042ec80
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x130
ret 0x10
Function at 0x42f9c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, ecx
mov dword [ebx], 0
push edi
mov eax, dword [esi + 0xa4]
cmp eax, 0x12
je 0x42f9f9
cmp eax, 0x79
jne 0x42f9ec
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 0x80
je 0x42f9f9
cmp dword [esi + 0xa4], 0x20
jne 0x42fb91
cmp dword [esp + 0x18], 0xf100
jne 0x42fb91
mov ebp, dword [sym.imp.USER32.dll_GetFocus]
mov edi, dword [esi + 4]
call ebp
cmp eax, edi
jne 0x42faf1
mov al, byte [esi + 0x80]
mov ebx, 4
test al, 0x80
je 0x42fa65
mov al, byte [esi + 0x54]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
test bl, al
je 0x42fa4c
mov eax, dword [esi + 0xa8]
push eax
call edi
test eax, eax
je 0x42fa4c
mov ecx, dword [esi + 0xa8]
push ecx
jmp 0x42fa5f
test byte [esi + 0x54], bl
jne 0x42fa65
mov edx, dword [esi + 0x58]
push edx
call edi
test eax, eax
je 0x42fa65
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x449
push ecx
mov dword [esi + 0xa8], 0
call edi
mov al, byte [esi + 0x81]
test al, 2
je 0x42faca
test bl, al
je 0x42faca
and al, 0xfb
mov edx, dword [esi + 4]
mov byte [esi + 0x81], al
not al
and eax, ebx
shl eax, 0x12
push eax
push 0x100000
push 0x446
push edx
call edi
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov bl, byte [esi + 0x81]
mov edx, dword [esi + 4]
push 0
push 0xffffffffffffffff
and bl, 0x7f
push 0x448
push edx
mov byte [esi + 0x81], bl
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x42fb91
mov eax, dword [esi + 0xa4]
cmp eax, 0x20
je 0x42fb91
test byte [esi + 0x80], 0x40
jne 0x42fb86
mov al, byte [esi + 0x81]
mov ebx, 4
test al, 2
je 0x42fb59
test bl, al
jne 0x42fb59
test al, 8
je 0x42fb59
or al, bl
mov byte [esi + 0x81], al
not al
and eax, ebx
shl eax, 0x12
push eax
push 0x100000
push 0x446
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
test byte [esi + 0x54], bl
je 0x42fb70
mov eax, dword [esi + 0xa8]
test eax, eax
jne 0x42fb70
call ebp
mov dword [esi + 0xa8], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x20]
mov dword [eax], 1
jmp 0x42fb91
cmp eax, 0x20
je 0x42fb91
mov dword [ebx], 1
mov al, byte [esi + 0x80]
pop edi
and al, 0xbf
mov byte [esi + 0x80], al
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x4314d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0x522
mov al, byte [0x4e5124]
cmp al, bl
jne 0x43159f
mov eax, dword [0x4e3a24]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4e5124], bl
jne 0x43158f
lea ecx, [esp + 8]
push edi
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x431579
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x431575
cmp eax, 4
jne 0x431579
cmp dword [esp + 0x18], 0x5a
jb 0x431579
xor eax, eax
jmp 0x43157e
mov eax, 1
cmp al, bl
mov byte [0x4e5124], 1
sete al
mov byte [0x4e3a0c], al
mov ecx, dword [0x4e3a24]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edx
mov eax, esi
pop esi
pop ebx
add esp, 0x11c
ret
Function at 0x434980
Capabilities:
Terminate thread

Disassembly:
mov dword [ecx], 0x4d3f88
jmp fcn.00428fe0

Function at 0x43a370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [0x4d9540]
mov ecx, str.SoftwareMicrosoftWindows_DefenderWindows_Defender_Exploit_GuardControlled_Folder_AccessAllowedApplications
push esi
push edi
test ecx, ecx
mov dword [esp + 8], eax
je 0x43a3c1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x43a3c1
push esi
lea ecx, [esp + 0xc]
call fcn.004012f0
test eax, eax
je 0x43a3c1
mov edx, dword [esp + 8]
inc esi
push esi
push str.SoftwareMicrosoftWindows_DefenderWindows_Defender_Exploit_GuardControlled_Folder_AccessAllowedApplications
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 8]
push 0xffffffffffffffff
call fcn.00401970
mov edx, dword [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
xor esi, esi
push eax
push ecx
push esi
push 1
push esi
push esi
push esi
push edx
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43a3ef
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 2
push eax
call fcn.0043a1b0
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push ecx
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x43a4ab
mov ecx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43a46a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x43a46a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
test esi, esi
je 0x43a475
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43a4a0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x43a4a0
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
mov edx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43a4d8
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x43a4d8
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test esi, esi
je 0x43a4e3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43a50e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x43a50e
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x43ead0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [eax], 0
push esi
mov eax, dword [ebp + 0x24]
lea ebx, [ebp + 0x24]
push edi
mov esi, 0x400
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x14], edi
jg 0x43eb02
cmp dword [eax - 4], esi
jge 0x43eb64
mov eax, dword [eax - 8]
cmp eax, esi
mov dword [esp + 0x10], eax
jle 0x43ebfe
test eax, eax
mov esi, eax
jne 0x43ebfe
mov ecx, dword [0x4d9540]
mov dword [ebx], ecx
lea ecx, [eax + eax + 2]
lea esi, [edi + 0xc]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x14]
mov dword [ecx - 8], edx
mov eax, dword [0x4d9544]
cmp esi, eax
je 0x43eb64
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43eb64
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [ebx]
push 0x400
push eax
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebx]
cmp dword [esi - 0xc], 1
jle 0x43ebab
mov ecx, ebx
call fcn.0040e950
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebx
call fcn.004012f0
test eax, eax
je 0x43ebab
mov edx, dword [esi - 8]
mov edi, dword [ebx]
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx]
push 0x3ed
mov dword [edx - 8], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x28]
and esi, 0xffff
push esi
mov dword [eax], 1
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
lea edx, [esi + esi + 0xe]
push edx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x43ec30
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
jmp 0x43eb23
xor eax, eax
jmp 0x43eb66
Function at 0x43fe50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [eax], 0
push esi
mov eax, dword [ebp + 0x24]
lea ebx, [ebp + 0x24]
push edi
mov esi, 0x400
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x14], edi
jg 0x43fe82
cmp dword [eax - 4], esi
jge 0x43fee4
mov eax, dword [eax - 8]
cmp eax, esi
mov dword [esp + 0x10], eax
jle 0x43ff7e
test eax, eax
mov esi, eax
jne 0x43ff7e
mov ecx, dword [0x4d9540]
mov dword [ebx], ecx
lea ecx, [eax + eax + 2]
lea esi, [edi + 0xc]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x14]
mov dword [ecx - 8], edx
mov eax, dword [0x4d9544]
cmp esi, eax
je 0x43fee4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43fee4
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [ebx]
push 0x400
push eax
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebx]
cmp dword [esi - 0xc], 1
jle 0x43ff2b
mov ecx, ebx
call fcn.0040e950
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebx
call fcn.004012f0
test eax, eax
je 0x43ff2b
mov edx, dword [esi - 8]
mov edi, dword [ebx]
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx]
push 0x3ed
mov dword [edx - 8], eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x2c]
mov word [ecx + eax*2], 0
mov dword [edx], 1
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
and esi, 0xffff
mov dword [ebp + 0x34], eax
push esi
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
lea edx, [esi + esi + 0xe]
push edx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x43ffb0
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
jmp 0x43fea3
xor eax, eax
jmp 0x43fee6
Function at 0x440ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00441060
mov eax, dword [0x4e9484]
test eax, eax
jne 0x440ef2
mov eax, dword [ebx]
push str.GdipLoadImageFromStream
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4e9484], eax
jne 0x440ef2
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x440f14
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x440f29
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x440f45
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebx + 4]
test eax, eax
je 0x440f64
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], 0
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebx + 4], eax
je 0x440fc7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x440fc7
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], 0
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x440fc7
mov edx, dword [esp + 0x18]
add ebx, 0xc
push ebx
push edx
call dword [0x4e9484]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc

Function at 0x4410b0
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], 0x4d41c4
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4e96bc]
cmp eax, ebx
jne 0x441140
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, 0x45
xor eax, eax
mov edi, 0x4e95a8
rep stosd dword es:[edi], eax
push 0x4e95a8
mov dword [0x4e96bc], 1
mov dword [0x4e95a8], 0x114
call ebp
cmp dword [0x4e95ac], 5
jb 0x441140
mov ecx, 0x47
xor eax, eax
mov edi, 0x4e9488
push 0x4e9488
rep stosd dword es:[edi], eax
mov dword [0x4e9488], 0x11c
call ebp
mov eax, dword [0x4e948c]
mov ecx, dword [0x4e9490]
mov dword [0x4e95ac], eax
mov dword [0x4e95b0], ecx
mov dword [esi + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x441e50
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4ee0bc]
sub esp, 0x6c
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
push 0
push eax
push 0
push ebp
push 0x14
push 0xb4
push 0
push 0
push ecx
push 0
push 0x4da0e8
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov eax, dword [0x4e96c0]
test eax, eax
jne 0x441ed6
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, eax
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
push ecx
mov byte [esp + 0x37], 1
mov byte [esp + 0x3a], 2
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4e96c0], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x30
push esi
call edi
push 0
push 0x14
push 0x41e
push esi
call edi
push 0xc0000
push 0
push 0x420
push esi
call edi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x441f72
push eax
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov edi, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edx
push edx
push edi
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0xc]
push ecx
push ebp
call edi
lea edx, [esp + 0x14]
push edx
push ebp
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
sub ecx, eax
push 0x18
push ecx
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
Function at 0x4421c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x18
mov eax, dword [0x4d9540]
push ebx
mov word [esp + 0xc], 0
mov dword [esp + 4], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push ebp
mov ebp, ecx
cmp edx, 1
push esi
mov ecx, 0x400
jg 0x4421ed
cmp dword [eax - 4], ecx
jge 0x44224f
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x10], esi
jle 0x4421fa
mov ecx, esi
push ecx
lea ecx, [esp + 0x10]
call fcn.004012f0
test eax, eax
je 0x44224f
lea ecx, [esi + esi + 2]
push edi
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [ebx + 0xc]
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [ecx - 8], edx
mov eax, dword [0x4d9544]
cmp ebx, eax
je 0x44224b
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44224b
push ebx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0xc]
push 0x400
push eax
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0xc]
call fcn.00401380
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0xc]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0xc]
mov word [ecx + eax*2], 0
mov eax, dword [ebp + 0x40]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4422fd
mov edx, dword [eax - 8]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea esi, [esp + 0x14]
mov ecx, dword [ebp + 0x40]
push esi
lea esi, [esp + 0x18]
mov edx, dword [ecx]
push esi
lea esi, [esp + 0x1c]
push esi
lea esi, [esp + 0x20]
push esi
push eax
push ecx
call dword [edx + 0x2c]
mov edx, dword [0x4d9544]
mov esi, eax
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4422e9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4422e9
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x442328
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x442328
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret