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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffed1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65b500]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x5a2804
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5a27c5
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5a27b7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5a27c5
add eax, 0x10
push 0x6682ac
push eax
mov dword [ebp - 0x20], eax
call fcn.004da5d2
mov esi, eax
add esp, 8
test esi, esi
je 0x5a27c5
push dword [ebp - 0x20]
push 0
push esi
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5a277a
push esi
call fcn.004da3d2
add esp, 4
jmp 0x5a27c5
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a2780
sub ecx, edx
sar ecx, 1
je 0x5a27ae
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a2796
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00408d30
push esi
call fcn.004da3d2
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a27c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5a27e4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004da36e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004064e0
int3
Function at 0x5a2810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5a2834
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x5a2896
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x5a2896
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5a28b1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5e900d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x66b060]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5e904e
cmp byte [edx], 0xa
jne 0x5e904e
or byte [eax + edi + 0x28], 4
jmp 0x5e9053
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x5e9144
mov al, byte [ebx]
cmp al, 0x1a
je 0x5e9125
cmp al, 0xd
je 0x5e907c
mov byte [esi], al
inc esi
inc ebx
jmp 0x5e911a
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x5e909c
cmp byte [eax], 0xa
jne 0x5e9091
push 2
mov byte [esi], 0xa
pop eax
jmp 0x5e9097
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x5e911a
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e9113
cmp dword [ebp - 0x14], 0
je 0x5e9113
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x66b060]
test byte [eax + edi + 0x28], 0x48
je 0x5e90ea
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x5e90da
mov byte [esi], dl
jmp 0x5e9116
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x66b060]
mov byte [eax + edi + 0x2a], dl
jmp 0x5e9116
cmp byte [ebp - 1], 0xa
jne 0x5e90fc
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x5e90fc
mov byte [esi], 0xa
jmp 0x5e9099
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005dc06f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5e9117
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x5e9065
jmp 0x5e9144
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x66b060]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5e913f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5e9144
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e914f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x66b060]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x5e9193
cmp word [edx], bx
jne 0x5e9193
or byte [edi + eax + 0x28], 4
jmp 0x5e9198
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x5e92ec
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x5e92cc
cmp ax, word [ebp - 0x10]
je 0x5e91d1
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x5e92c1
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x5e91f7
push 0xa
pop ecx
cmp word [eax], cx
jne 0x5e91e7
push ecx
pop eax
push 4
jmp 0x5e91ec
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x5e92bb
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e92b2
cmp dword [ebp - 0x18], 0
je 0x5e92b2
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x66b060]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x5e927e
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x5e9242
mov word [esi], ax
jmp 0x5e9276
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x66b060]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x66b060]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x66b060]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x5e92c1
cmp word [ebp - 4], ax
jne 0x5e9293
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x5e9293
mov word [esi], ax
add esi, 2
jmp 0x5e92c1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005dc06f
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5e92be
jmp 0x5e92b5
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x5e91b1
jmp 0x5e92ec
mov ecx, dword [ecx*4 + 0x66b060]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x5e92e3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x5e92ec
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ebfcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ebe4a

Function at 0x5ed0f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ecd9a
Function at 0x404060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.00407ae7
add esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret

Function at 0x40d36c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d00e
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
imul byte [ebp + 0x261347d6]
mov dh, 0x7d
call 0xbde4991b
add esi, ebx
int3
salc
inc edi
adc ebp, dword [ebx - 0x7a]
xchg edi, eax
in al, dx
or edi, 0xffffff9e
jge 0x41537e
invalid
Function at 0x401450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x4014cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014cb
cmp eax, 5
jne 0x40148a
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004013f0
add esp, 8
test eax, eax
je 0x4014c0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00401450
add esp, 4
test eax, eax
jne 0x4014c0
push eax
push esi
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40eef8]
test eax, eax
je 0x4015db
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push eax
push 0x40c024
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x40eef8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push 0x40eaa8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4015f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push str.Dialog_d
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 0x8c]
lea eax, [ebp - 0x14]
push 0x104
push edx
push 0
push eax
call fcn.00401590
add esp, 0x10
test eax, eax
jne 0x401650
lea ecx, [ebp - 0x8c]
push 0x78
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x8c]
test al, al
je 0x4016ac
lea edx, [ebp - 0x8c]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4016ac
mov eax, dword [0x40ef30]
lea ecx, [ebp - 0x8c]
test eax, eax
push ecx
je 0x401697
mov edx, dword [0x40ef2c]
push eax
push str._s____s
push edx
call ebx
mov eax, dword [0x40ef2c]
add esp, 0x10
push eax
push 0
push 0x46f
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x4016f5
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff4
push esi
call edi
mov edx, dword [0x40ef2c]
push 0x104
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401590
add esp, 0x10
test eax, eax
je 0x4016e6
mov ecx, dword [0x40ef2c]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4016b6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401890
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100
push 0x8000
push edi
call fcn.00401250
mov ebx, dword [ebp + 0xc]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4018fb
mov cx, word [ebx + 0x1a]
mov dx, word [ebx + 0x18]
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x4018f4
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4018f4
lea edx, [ebp - 8]
lea eax, [ebp - 8]
push edx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebx + 0x1c]
and ecx, 0x27
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d20
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov ecx, dword [0x40ef54]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push 0x40c090
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea edx, [ebp - 0x104]
push 0x8101
push edx
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401dda
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push eax
push ecx
push esi
call fcn.004012f0
add esp, 0xc
push esi
call fcn.00401310
add esp, 4
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x104]
push 0
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18c]
push 0x1001
push ecx
push edx
mov esi, eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401e60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [0x40ef54]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push str.welcome
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.00401d20
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x401ef8
push edi
push 0x100
lea edx, [ebp - 0x104]
push 0x8000
push edx
call fcn.00401250
add esp, 0xc
mov edi, eax
lea eax, [esi + 1]
push eax
call fcn.004083b0
add esp, 4
mov dword [0x40eee8], eax
push esi
push eax
push edi
call fcn.004012d0
add esp, 0xc
push edi
call fcn.00401310
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
call fcn.004083b0
add esp, 4
mov dword [0x40eef8], eax
push eax
mov eax, dword [0x40ef54]
push 0
push 0x40c0a4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x40eef8]
push ecx
push edx
push eax
call fcn.00401d20
add esp, 0xc
test eax, eax
jne 0x401f5c
mov ecx, dword [0x40eef8]
push ecx
call fcn.00408460
add esp, 4
mov dword [0x40eef8], 0
xor eax, eax
pop ebp
ret
Function at 0x401f60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402028
mov edx, dword [0x40ef2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push 0x40c0d4
push ecx
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [0x40ef2c]
push edx
call esi
push eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401c30
mov edx, dword [0x40ef2c]
add esp, 8
lea ecx, [ebp - 4]
mov dword [0x40ef40], eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [ebp - 4], 0x104
call edi
mov edx, dword [0x40ef2c]
push edx
call esi
push eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401c30
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [0x40ef44], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x40ef2c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x40ef2c]
push eax
call esi
mov ecx, dword [0x40ef2c]
push eax
push ecx
call fcn.00401c30
mov edi, dword [0x40ef2c]
mov dword [0x40ef48], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov edx, dword [str.SYSTEM32]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x40c0f8]
mov dword [edi + 4], eax
mov cx, word [0x40c0fc]
mov word [edi + 8], cx
mov edx, dword [0x40ef2c]
push edx
call esi
push eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401c30
mov ecx, dword [0x40ef2c]
add esp, 8
mov dword [0x40ef50], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [0x40ef2c]
push edx
call esi
push eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401c30
mov ecx, dword [0x40ef2c]
add esp, 8
mov dword [0x40ef4c], eax
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x40ef2c]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4020fc
mov byte [eax + ecx - 1], 0
mov ecx, dword [0x40ef2c]
push 0x10
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40212e
mov edx, dword [0x40ef2c]
push edx
call esi
push eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401c30
add esp, 8
mov dword [0x40ef54], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x40ef48]
mov edx, dword [0x40ef2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x40ef2c]
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x40ef2c]
push ecx
call esi
mov edx, dword [0x40ef2c]
push eax
push edx
call fcn.00401c30
add esp, 8
mov dword [0x40ef54], eax
mov eax, dword [0x40ef2c]
push eax
call fcn.00401450
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
call fcn.00402750
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 4
push eax
push edi
call ebx
lea ecx, [ebp - 8]
mov dword [ebp + 8], eax
push ecx
push 0xd
push str.InstallShield
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [ebp + 8]
push edx
push edi
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004026f0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
cdq
sub eax, edx
lea ecx, [ebp - 0x18]
sar eax, 1
neg eax
add edi, eax
push ecx
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
add edx, 0xa
add eax, ecx
push 0xfffffffffffffffc
push esi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x402790
push 0xfffffffffffffffc
push esi
mov dword [0x40ea84], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x40ef88]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push 0
push edx
mov edx, dword [ebp - 0x14]
push 0x3ff
push esi
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x5000800b
push str.ISGlyph
push str.BUTTON
push 0
call ebx
mov ecx, dword [0x40ef88]
push 0
push ecx
push 0
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000001
push 0x40eab4
push str.tooltips_class32
push 0x88
mov edi, eax
call ebx
mov edx, dword [0x40ef2c]
mov ebx, eax
mov eax, dword [0x40ef88]
push 0x104
push edx
push 0x13
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x40ef2c]
lea eax, [ebp - 0x44]
push eax
push 0
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x404
push ebx
mov dword [ebp - 0x44], 0x2c
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], edx
call edi
push 0
push 1
push 0x401
push ebx
call edi
push esi
call fcn.004028b0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret