joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a517d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
mov ebx, 0x104
push ebx
push eax
push 0x868
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test eax, eax
jne 0x4a51ba
mov word [ebp - 0x414], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x58
pop esi
push esi
lea eax, [ebp - 0x46c]
push 0
push eax
call fcn.004f5a90
mov eax, dword [0x5a2c8c]
add esp, 0xc
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], esi
push eax
mov dword [ebp - 0x460], str.Processors__cmd.exe_tcc.exe_
mov dword [ebp - 0x454], 1
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x43c], str.Choose_command_processor
mov dword [ebp - 0x438], 0x88180c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4a52b1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x5a23ec]
add eax, 0x2e
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push 0x868
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test esi, esi
je 0x4a52b1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x5a23ec]
push ebx
add eax, 0x2e
push eax
call fcn.00401a0b
mov eax, dword [0x5a23ec]
mov dword [eax + 0x1a], 3
mov eax, 0x867
push eax
push eax
push 0x864
push edi
call fcn.0043928d
mov ecx, dword [0x5a22a0]
add esp, 0x10
call fcn.00412b20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4a5934
Capabilities:
Get common file path

Disassembly:
push 0x4d4
mov eax, 0x5112fd
call fcn.004f41e2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x20a
xor ebx, ebx
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x428]
mov esi, 0x105
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [0x5a23ec]
lea ecx, [ebp - 0x484]
mov eax, dword [eax + 0x10fd8]
mov dword [ebp - 0x488], eax
call fcn.004e25a1
push ebx
lea eax, [ebp - 0x484]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.004e55bb
add esp, 0xc
test eax, eax
jne 0x4a59c4
push esi
lea ecx, [ebp - 0x484]
call fcn.0044612f
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x54
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4e0], 0x58
push ebx
push eax
call fcn.004f5a90
mov eax, dword [0x5a2c8c]
add esp, 0xc
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x4c4], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x4e0]
push eax
mov dword [ebp - 0x4d4], str.Executables__.exe_
mov dword [ebp - 0x4c8], 1
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4b0], str.Choose_file_editor
mov dword [ebp - 0x4a4], 0x55c8d0
mov dword [ebp - 0x4ac], 0x88080c
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4a5aa1
push dword [ebp - 0x488]
lea eax, [ebp - 0x21c]
push eax
call fcn.004e553c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4a5aa1
push esi
push 0x8cf
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [0x5a23ec]
mov eax, dword [ecx + 0x10fd8]
test eax, eax
je 0x4a5a9b
push eax
call fcn.004e1bea
mov eax, dword [0x5a23ec]
pop ecx
mov dword [eax + 0x10fd8], ebx
mov ecx, dword [0x5a23ec]
mov dword [ecx + 0x10fd8], esi
lea ecx, [ebp - 0x484]
call fcn.004e25e0
call fcn.004f418c
ret

Function at 0x4a5cd8
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
xor ecx, ecx
sub eax, ecx
je 0x4a5d14
sub eax, 1
je 0x4a5cfc
sub eax, 1
jne 0x4a5d2c
mov eax, dword [0x5a23ec]
mov byte [eax + 0x10fde], cl
pop ebp
ret
mov eax, dword [0x5a23ec]
mov byte [eax + 0x10fde], 1
mov ecx, dword [0x5a22a0]
pop ebp
jmp fcn.00419277
mov eax, dword [0x5a23ec]
push ecx
mov byte [eax + 0x10fde], 2
mov ecx, dword [0x5a22a0]
call fcn.0041c491
pop ebp
ret
Function at 0x4a6b33
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x105
push eax
mov eax, dword [0x5a23ec]
push dword [eax + 0x1163c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x54
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x470], 0x58
push 0
push eax
call fcn.004f5a90
mov eax, dword [0x5a2c8c]
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov edi, 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x464], str.Packages
mov dword [ebp - 0x458], 1
push str.ConEmuSetup.exe
push edi
push eax
call fcn.00401a0b
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x470]
push eax
mov dword [ebp - 0x440], str.Choose_download_path
mov dword [ebp - 0x434], 0x514870
mov dword [ebp - 0x43c], 0x88080c
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4a6c4a
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004f6844
pop ecx
pop ecx
test eax, eax
je 0x4a6c4a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push 0x80f
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
Function at 0x4adb11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x1fffe
call fcn.004e1c0a
mov esi, eax
pop ecx
test esi, esi
je 0x4adc7b
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1fffa
push eax
push esi
xor ebx, ebx
push ebx
push ebx
push 0x52aaec
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4adc65
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push edi
mov word [esi + eax*2], cx
cmp byte [ebp + 0xc], cl
je 0x4adc43
cmp word [esi], bx
je 0x4adc43
push str.ConEmuCmd_Autorun.cmd
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ebx, eax
test ebx, ebx
je 0x4adc41
mov edi, ebx
push 0x26
pop ecx
cmp ebx, esi
jbe 0x4adba0
cmp word [edi - 2], cx
je 0x4adba0
add edi, 0xfffffffe
cmp edi, esi
ja 0x4adb93
push ecx
push ebx
call fcn.004f5617
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4adbcc
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x4adbb4
sub ecx, edx
sar ecx, 1
push 0x26
pop edx
lea ecx, [ebx + ecx*2]
jmp 0x4adbd9
push 0x26
pop edx
jmp 0x4adbd4
add ecx, 2
cmp word [ecx], dx
je 0x4adbd1
movzx eax, word [ecx]
cmp edi, esi
ja 0x4adbec
test ax, ax
jne 0x4adc0d
xor eax, eax
mov word [esi], ax
jmp 0x4adc41
test ax, ax
jne 0x4adc0d
movzx ecx, word [edi - 2]
cmp cx, dx
je 0x4adbff
cmp ecx, 0x20
jne 0x4adc06
add edi, 0xfffffffe
cmp edi, esi
ja 0x4adbf1
xor eax, eax
mov word [edi], ax
jmp 0x4adc41
cmp edi, esi
jne 0x4adc1a
push ecx
call fcn.004e5a9d
pop ecx
mov ecx, eax
mov edx, ecx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 8]
jne 0x4adc1f
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push edi
call fcn.004f5d30
add esp, 0xc
xor ebx, ebx
push esi
call fcn.004e5a9d
pop ecx
pop edi
test eax, eax
je 0x4adc59
cmp word [eax], bx
je 0x4adc59
movzx eax, word [esi]
jmp 0x4adc60
xor eax, eax
mov word [esi], ax
mov eax, ebx
movzx eax, ax
jmp 0x4adc6a
xor eax, eax
mov word [esi], ax
test ax, ax
jne 0x4adc78
push esi
call fcn.004e1bea
pop ecx
mov esi, ebx
mov eax, esi
pop ebx
pop esi
leave
ret 8
Function at 0x4add75
Capabilities:
Persist via command processor registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x96b
push dword [esi + 4]
call fcn.0043936b
pop ecx
pop ecx
movzx eax, al
xor ebx, ebx
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x310]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftCommand_Processor
push SysReAllocString
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x310], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4adf84
push edi
mov edi, ebx
cmp byte [ebp + 8], bl
je 0x4adef8
push 1
push dword [ebp - 0x310]
mov ecx, esi
call fcn.004adb11
mov esi, eax
mov eax, dword [0x5a22a0]
add eax, 0xea4
mov ebx, esi
push eax
lea eax, [ebp - 0x30c]
push str.__sCmd_Autorun.cmd
push eax
call fcn.004adab2
xor eax, eax
push eax
lea eax, [ebp - 0x30a]
push eax
call fcn.004e2e74
add esp, 0x14
test al, al
je 0x4aded8
cmp dword [ebp - 0x314], edi
mov ecx, 0x524d9c
mov eax, str.____GHWNDNEW_
cmove eax, ecx
push eax
push 0x184
lea eax, [ebp - 0x30c]
push eax
call fcn.004019cd
test esi, esi
jne 0x4ade60
lea ebx, [ebp - 0x30c]
jmp 0x4adf1c
lea ecx, [ebp - 0x30c]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4ade6b
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x318]
jne 0x4ade7f
sub edx, edi
sar edx, 1
lea eax, [edx + 5]
add eax, ecx
mov dword [ebp - 0x314], eax
add eax, eax
push eax
call fcn.004e1c0a
mov edi, eax
pop ecx
test edi, edi
je 0x4adf1c
mov ebx, dword [ebp - 0x314]
lea eax, [ebp - 0x30c]
push eax
push ebx
push edi
call fcn.00401a0b
push 0x55dcd0
push ebx
push edi
call fcn.004019cd
push esi
push ebx
push edi
call fcn.004019cd
mov ebx, edi
jmp 0x4adf1c
push 1
push dword [0x5a2c8c]
lea eax, [ebp - 0x30c]
push str.File_not_found
push 0x10
push eax
call fcn.00421ef1
add esp, 0x14
jmp 0x4adf12
cmp byte [ebp + 0xc], bl
je 0x4adf01
mov esi, ebx
jmp 0x4adf12
push 1
push dword [ebp - 0x310]
mov ecx, esi
call fcn.004adb11
mov esi, eax
test esi, esi
mov ebx, 0x514870
cmovne ebx, esi
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x318]
jne 0x4adf21
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
xor eax, eax
push eax
push 0x52aaec
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4adf78
cmp edi, esi
je 0x4adf78
lea eax, [ebp - 0x30c]
cmp edi, eax
je 0x4adf78
push edi
call fcn.004e1bea
pop ecx
pop edi
test esi, esi
je 0x4adf84
push esi
call fcn.004e1bea
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 8
Function at 0x4b905a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
mov esi, 0x845
movzx ecx, ax
cmp cx, si
jb 0x4b91b5
push edi
lea edi, [esi + 1]
mov edx, 0x912
cmp cx, di
jbe 0x4b9090
cmp ax, dx
jne 0x4b91b4
cmp byte [ebx + 0x25], 0
jne 0x4b91b4
mov edi, dword [ebp + 8]
push 1
push 0x844
push edi
call fcn.004aa0d6
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
js 0x4b91b4
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call esi
push 0x912
push edi
mov dword [ebp - 8], eax
call esi
push 0x846
push edi
mov dword [ebp - 0xc], eax
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [ebp - 0x1c], edi
call esi
inc eax
push 2
push eax
mov dword [ebp - 0x10], eax
call fcn.004e1c42
pop ecx
pop ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
call esi
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
call fcn.004e1c42
pop ecx
pop ecx
push edi
mov dword [ebp - 4], eax
call esi
inc eax
push 2
push eax
mov dword [ebp - 0x18], eax
call fcn.004e1c42
mov edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4b919b
test edi, edi
je 0x4b9194
push dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
mov ecx, dword [0x5a23ec]
push SysReAllocString
push edi
push dword [ebp - 4]
push eax
push esi
call fcn.0045df77
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [ebp + 8]
mov byte [ebx + 0x26], 1
call dword [eax + 8]
push esi
push 0x844
push dword [ebp + 8]
call fcn.004aa2e6
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov byte [ebx + 0x26], 0
push eax
call fcn.004e1bea
pop ecx
test edi, edi
je 0x4b91a6
push edi
call fcn.004e1bea
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b91b4
push eax
call fcn.004e1bea
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x4c02c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa68], 0
je 0x4c02e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xa64]
cmp eax, 0x7d0
jbe 0x4c0313
cmp dword [esi + 0xa60], 0
jle 0x4c02f5
mov byte [esi + 0xa69], 1
pop esi
ret
mov byte [esi + 0xa68], 1
mov ecx, dword [0x5a22a0]
call fcn.00419fb5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xa64], eax
pop esi
ret
Function at 0x4c1212
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x110b1], 0
je 0x4c13b9
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x203
jne 0x4c12dd
mov ecx, dword [eax + 0x110c0]
xor esi, esi
inc esi
cmp ecx, 2
je 0x4c12a7
xor edi, edi
cmp ecx, esi
jne 0x4c1269
mov ecx, dword [0x5a22a0]
push edi
lea ecx, [ecx + 0x180]
call fcn.0043220a
test al, al
jne 0x4c12a7
mov eax, dword [0x5a23ec]
mov eax, dword [eax + 0x110c0]
cmp eax, 3
je 0x4c1296
cmp eax, esi
jne 0x4c13b7
mov ecx, dword [0x5a22a0]
push edi
lea ecx, [ecx + 0x180]
call fcn.0043220a
test al, al
jne 0x4c13b7
push esi
push esi
push str.ToolBar:_ReBar_double_click:_RecreateAction
call fcn.00421c79
jmp 0x4c1384
push esi
push esi
push str.ToolBar:_ReBar_double_click:_DoMaximizeRestore
call fcn.00421c79
mov eax, dword [0x5a22a0]
mov ecx, 0x200
add esp, 0xc
or word [eax + 0x3ebc], cx
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x180]
call fcn.0042a1e6
jmp 0x4c13b7
cmp esi, 0x205
jne 0x4c131f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
xor esi, esi
inc esi
push esi
push esi
push str.ShowSysmenu_called_from__TabBar_
call fcn.00421c79
mov ecx, dword [0x5a22a0]
add esp, 0xc
mov ecx, dword [ecx + 0x3e60]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045c4b0
jmp 0x4c13b7
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x180]
call fcn.0042cb04
cmp eax, 0x51f
jne 0x4c136b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx ecx, word [ebp - 4]
movzx eax, word [ebp - 8]
shl ecx, 0x10
or ecx, eax
lea eax, [esi - 0x160]
push ecx
mov ecx, dword [0x5a22a0]
push 2
push eax
push dword [0x5a22a4]
call fcn.0041d742
jmp 0x4c13b7
cmp esi, 0x208
jne 0x4c13b7
xor esi, esi
inc esi
push esi
push esi
push str.ToolBar:_ReBar_MBtnUp:_RecreateAction
call fcn.00421c79
xor edi, edi
mov eax, dword [0x5a23ec]
add esp, 0xc
cmp byte [eax + 0x111af], 0
jne 0x4c13a9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4c13a9
mov esi, edi
mov ecx, dword [0x5a22a0]
push edi
push esi
push edi
call fcn.0041897c
pop edi
pop esi
xor eax, eax
leave
ret 0xc
Function at 0x4c570b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [0x5a22cc], 6
push ebx
mov bl, 1
ja 0x4c572c
jne 0x4c5782
cmp dword [0x5a22d0], 0
jbe 0x4c5782
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c5782
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x562774
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c5779
cmp dword [ebp - 8], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x4c912c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3a9], 0
jne 0x4c916d
and dword [esi + 0x3b4], 0
lea eax, [esi + 0x18]
push 0x80
push eax
mov byte [esi + 0x3b0], 0
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [esi + 0x3a9], 1
pop esi
ret
pop esi
jmp fcn.004c9770

Function at 0x4c9246
Capabilities:
Get graphical window text

Disassembly:
cmp byte [ecx + 0x3a9], 0
je 0x4c925b
mov byte [ecx + 0x3a9], 0
jmp fcn.004c912c
ret
Function at 0x4c925c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
sub eax, 0x202
je 0x4c9297
sub eax, 3
je 0x4c93d6
sub eax, 0x1fd
je 0x4c93c5
dec eax
sub eax, 1
je 0x4c9351
sub eax, 1
jne 0x4c94fd
mov ecx, dword [0x5a23ec]
cmp byte [ecx + 0x10f91], 0
je 0x4c9463
xor esi, esi
push esi
call fcn.00467449
push dword [0x5a22a4]
movzx ebx, al
neg ebx
sbb ebx, ebx
add ebx, 6
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c944c
mov ecx, dword [0x5a22a0]
push esi
lea ecx, [ecx + 0x180]
call fcn.00432292
test al, al
jne 0x4c944c
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10fa6], 0
jne 0x4c944f
cmp byte [eax + 0x10f91], 2
je 0x4c944f
mov ecx, dword [0x5a22a0]
call fcn.0040f8f9
cmp eax, 0x50
jae 0x4c944f
cmp eax, 0xa
jb 0x4c944c
mov ecx, dword [0x5a22a0]
push esi
lea ecx, [ecx + 0x180]
call fcn.00432292
test al, al
jne 0x4c944c
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4c94c1
mov al, byte [edi + 0x3b0]
test al, al
jne 0x4c93ab
mov esi, dword [edi + 0x3b4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x4c937c
call ebx
sub eax, esi
cmp eax, 0x7d0
ja 0x4c93ab
mov al, byte [edi + 0x3b0]
test al, al
jne 0x4c94fd
test esi, esi
je 0x4c94fd
call ebx
sub eax, dword [edi + 0x3b4]
cmp eax, 0x7d0
jbe 0x4c94fd
mov byte [edi + 0x3b0], 1
jmp 0x4c94fd
xor esi, esi
mov ecx, 0x5a5150
push esi
push 1
mov dword [edi + 0x3ac], esi
call fcn.004c954c
jmp 0x4c94fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x3b4], eax
jmp 0x4c94fd
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x5a22a0]
push 1
lea ecx, [ecx + 0x180]
call fcn.00430302
push dword [0x5a22a4]
call fcn.004ea440
push 1
push 1
push str.ShowSysmenu_called_from__TSA_
call fcn.00421c79
mov ecx, dword [0x5a22a0]
add esp, 0x10
xor esi, esi
mov ecx, dword [ecx + 0x3e60]
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045c4b0
mov ecx, dword [0x5a22a0]
push esi
lea ecx, [ecx + 0x180]
call fcn.00430302
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c94fd
push 8
pop ebx
mov ecx, dword [0x5a22a0]
push ebx
lea ecx, [ecx + 0x180]
call fcn.0042a232
jmp 0x4c94c1
call fcn.00467237
test al, al
je 0x4c94b3
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c94b3
mov ecx, dword [0x5a23ec]
xor esi, esi
push esi
call fcn.00467449
push esi
test al, al
je 0x4c949b
mov ecx, 0x5a5150
call fcn.004c9173
jmp 0x4c94c1
push 0xf020
push 0x112
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c94c1
xor esi, esi
mov ecx, 0x5a5150
push esi
push esi
call fcn.004c954c
mov eax, dword [edi + 0x3ac]
sub eax, 1
je 0x4c94ea
sub eax, 4
jne 0x4c94fd
mov ecx, dword [0x5a22a0]
mov ecx, dword [ecx + 0x15d8]
call fcn.0047504b
mov dword [edi + 0x3ac], esi
jmp 0x4c94fd
mov dword [edi + 0x3ac], esi
mov ecx, dword [0x5a22a0]
push 2
call fcn.0040c851
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4c9770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x3a9], 0
je 0x4c982e
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4c982d
cmp dword [esi + 0x3ac], edi
jne 0x4c982d
push ebx
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x104]
mov ebx, 0x80
push ebx
push eax
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esi + 0x120], di
jne 0x4c9801
cmp word [esi + 0x324], di
jne 0x4c9801
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4c982c
xor eax, eax
mov word [esi + 0x120], ax
mov word [esi + 0x324], ax
lea eax, [ebp - 0x104]
push ebx
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
Function at 0x4cbac9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xb8], eax
lea eax, [ecx + 0x24e]
push eax
push 0x64
push edx
mov dword [ebp - 0xbc], edx
mov byte [ebp - 0xa9], 0
mov dword [ebp - 0xb0], eax
call fcn.00401a0b
xor eax, eax
mov dword [ebp - 0xa8], str.ConEmu_Stable_2
mov word [ebx], ax
lea edi, [ebp - 0xa0]
mov dword [ebp - 0xa4], str.stable:_t
mov dword [ebp - 0xa0], str._stable
mov dword [ebp - 0x9c], str.ConEmu_Preview_2
mov dword [ebp - 0x98], str._npreview:_t
mov dword [ebp - 0x94], str._preview
mov dword [ebp - 0x90], str.ConEmu_Devel_2
mov dword [ebp - 0x8c], str._nalpha:_t
mov dword [ebp - 0x88], str._alpha
mov word [esi], ax
mov dword [ebp - 0xb4], 3
push dword [edi - 4]
push 0x64
push ebx
call fcn.004019cd
push dword [ebp - 0xb8]
lea eax, [ebp - 0x84]
push 0x40
push eax
push 0x514870
push str.version
push dword [edi - 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4cbc9e
push dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
setns al
cmp byte [ebp - 0xa9], 0
mov byte [ebp - 0xaa], al
jne 0x4cbbfb
test al, al
je 0x4cbbfb
push dword [edi]
mov byte [ebp - 0xa9], 1
push 0x64
push dword [ebp - 0xbc]
call fcn.004019cd
xor eax, eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x84]
push eax
push 0x64
push ebx
call fcn.004019cd
push 0x564650
push 0x64
push esi
call fcn.004019cd
lea eax, [ebp - 0x84]
push eax
push 0x64
push esi
call fcn.004019cd
push dword [edi]
push 0x64
push esi
call fcn.004019cd
cmp byte [ebp - 0xaa], 0
je 0x4cbc95
push dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, str.__newer_
mov eax, str.__equal_
cmovle ecx, eax
push ecx
push 0x64
push ebx
call fcn.004019cd
push dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, str.__newer_
mov eax, str.__equal_
cmovle ecx, eax
push ecx
push 0x64
push esi
call fcn.004019cd
mov eax, esi
mov ecx, 0x524514
jmp 0x4cbca5
mov eax, ebx
mov ecx, str._Not_found_
push ecx
push 0x64
push eax
call fcn.004019cd
add edi, 0xc
sub dword [ebp - 0xb4], 1
jne 0x4cbb85
movzx eax, word [esi]
test ax, ax
jne 0x4cbcd3
push str._Not_found_
push 0x64
push esi
call fcn.00401a0b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0x10