joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44628e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x488347
call fcn.0046746c
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44636b
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x4462f8
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x48b920
mov esi, 0x48b918
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00402d70
push 0x4a1de4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043c393
lea ecx, [ebp - 0x40]
call fcn.00445ed3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4463ba
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x48b920
mov esi, 0x48b918
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00402d70
push 0x4a1de4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0043c393
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00402438
cmp dword [ebp - 0x10], 0
je 0x4463d3
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4463d3
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x446f03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x446f19
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446f4e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x446f56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x446f6c
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446fa1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x446fa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x446fbd
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x446ff1
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x447024
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x447024
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44a891
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44a8f8
call esi
cmp eax, 0x3f0
jne 0x44a8eb
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x44a8f4
push 1
jmp 0x44a917
cmp eax, ebx
je 0x44a916
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x44a916
call esi
cmp eax, 0x7a
je 0x44a926
push ebx
push dword [ebp - 4]
call fcn.0044a882
pop ecx
pop ecx
jmp 0x44aa1d
push dword [ebp - 8]
call fcn.004675be
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x44a96c
push ebx
push dword [ebp - 4]
call fcn.0044a882
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x44a964
push esi
call fcn.00439080
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x44aa1d
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x44a9b6
push ebx
push dword [ebp - 4]
call fcn.0044a882
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x44a9b1
push esi
call fcn.00439080
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x44aa1d
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x44a9f5
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44a9e2
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x44a9c5
jmp 0x44a9f5
cmp byte [ebp + 0xc], bl
je 0x44a9f1
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x44a9f5
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0044a882
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x44aa1a
push esi
call fcn.00439080
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b319
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040ddd7
xor ebx, ebx
cmp eax, 1
jne 0x44b3b6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44b3a3
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x44b37a
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x44b3a3
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x44b3b6
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x44b3b6
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044adf5
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x44badb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x44bb13
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x44bb1f
mov eax, dword [esi + 0x5c]
jmp 0x44bb68
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x44bb66
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x44bb44
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x44bb28
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x44c04d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0044afd1
add esp, 0x14
test eax, eax
je 0x44c08b
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x44c08f
cmp eax, 0x12c
jae 0x44c08f
mov al, 1
jmp 0x44c0a5
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x44d01e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x44d070
push eax
call fcn.004675be
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x44d070
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4a2548
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x44d074
xor al, al
jmp 0x44d0d5
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x44d0d3
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004675be
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x44d0d3
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x44d0c1
mov al, 1
pop ebx
leave
ret 4
Function at 0x44d7a5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44d877
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004675be
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x44d877
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.0044df35
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.0044dedf
mov edi, 0x4aa144
push edi
call fcn.00467800
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404325
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.0044d2c9
push eax
push 0
mov ecx, esi
call fcn.0044d43e
test eax, eax
je 0x44d877
mov ecx, esi
call fcn.0044d2c9
push eax
push 9
mov ecx, esi
call fcn.0044d43e
test eax, eax
je 0x44d877
push esi
mov ecx, esi
call fcn.0044d719
test eax, eax
jne 0x44d87b
xor eax, eax
jmp 0x44d885
push edi
call fcn.00439080
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44d9aa
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x488d98
call fcn.0046746c
sub esp, 0x5c
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp edi, eax
je 0x44da9b
push ebx
push esi
and dword [ebp - 0x14], 0
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
test eax, eax
jne 0x44d9e2
mov eax, 0x48b6b4
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401884
mov ecx, dword [ebp + 0xc]
push 0xf003f
mov byte [ebp - 4], 1
mov esi, dword [ecx]
mov ecx, eax
call fcn.00401a14
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00417058
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401093
test bl, bl
jne 0x44da77
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0044d9aa
cmp dword [edi + 0x14], 0
jne 0x44da77
mov eax, dword [edi + 4]
test eax, eax
jne 0x44da44
mov eax, 0x48b6b4
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00401884
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov esi, dword [ecx]
mov ecx, eax
call fcn.00401a14
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x44da8a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add edi, 0x38
cmp edi, dword [eax + 0x30]
jne 0x44d9ce
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x44fb2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x44fb51
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x4c]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0044ee40
add esp, 0x18
test eax, eax
je 0x44fbf6
push dword [edi]
call fcn.004675be
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x44]
call fcn.004432e9
cmp byte [ebp - 0xc], bl
je 0x44fb9a
push dword [ebp - 8]
call fcn.00439080
pop ecx
mov eax, dword [esi + 0x48]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0044ee40
add esp, 0x18
test eax, eax
je 0x44fbf6
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x48]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x44fc03
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.0044f090
add esp, 0x18
test eax, eax
jne 0x44fc03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor al, al
jmp 0x44fc1d
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x44fc1b
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x452490
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4892b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4524fe
lea ecx, [esp + 0x14]
call fcn.00405f3e
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x452531
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0041116e
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00410bd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00405f3e
xor al, al
jmp 0x452644
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x45255f
cmp eax, ebx
je 0x452559
cmp edi, ebx
je 0x452559
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x452596
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x45258e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x45258e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x45258e
cmp edi, ebx
je 0x45258e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x4525e1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4525c3
cmp eax, ebx
je 0x4525bd
cmp ebp, ebx
je 0x4525bd
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x4525ee
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4525da
cmp edi, ebx
je 0x4525da
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4525ea
cmp edi, ebx
je 0x4525ea
push eax
call edi
xor al, al
jmp 0x452644
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.00452220
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45261f
cmp ebp, ebx
je 0x45261f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x452632
cmp edi, ebx
je 0x452632
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x452642
cmp edi, ebx
je 0x452642
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x45af20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x7c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 0xa
push 0x50
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x28]
test al, al
je 0x45b0c8
push 0x4aa144
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x48]
push esi
push eax
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x45b0c8
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x8c], eax
call ebp
push 0x45ae60
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push str.PROP_STAT_PSKIN
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropA]
push ebp
push str.PROP_STAT_OLDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x45b09d
mov edx, dword [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.0045b0d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret