joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da5b
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000080
push 2
push ebx
push ebx
mov esi, str.icremov.bat
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40db96
lea eax, [ebp - 0x15c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.0041ccf5
mov byte [eax], bl
lea eax, [ebp - 0x260]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x648]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x648]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x44
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0041c100
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], bx
push 0x44
pop eax
push ecx
lea ecx, [ebp - 0x58]
push ecx
push 0x427464
push ebx
push eax
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40db96
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dbf2
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp byte [0x42cd60], bl
push esi
push edi
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x10], ebx
je 0x40dd93
cmp dword [0x42b598], ebx
je 0x40dd93
mov esi, 0x427370
push esi
push 0x42cd60
call fcn.0041c91b
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x40dd93
push esi
push ebx
call fcn.0041c91b
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40dd93
push esi
push ebx
call fcn.0041c91b
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40dd93
lea eax, [ebp - 4]
push eax
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40dca9
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dd8a
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x128]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp - 0x18]
lea eax, [ebp - 0x128]
push eax
call fcn.00405453
lea eax, [ebp - 0x128]
push eax
call fcn.004060d0
add esp, 0xc
test eax, eax
ja 0x40dd93
push dword [0x42b598]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov cx, word [ebp - 8]
lea eax, [esi + 0x130a0]
push 0x180
push 0x8321
mov word [eax], cx
mov cx, word [ebp - 6]
mov word [eax + 2], cx
lea eax, [ebp - 0x128]
push eax
call fcn.0041b2bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dd93
push eax
call fcn.0041b9a8
pop ecx
lea eax, [ebp - 0x128]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dd93
push dword [0x42b59c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x10], ebx
je 0x40dd93
lea eax, [ebp - 0x20]
push 8
push eax
push 3
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dd98
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ddfa
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ddfa
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x40de58
Capabilities:
Get common file path
Persist via run registry key
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
xor ebx, ebx
cmp dword [0x42b570], ebx
push esi
push edi
je 0x40df83
lea eax, [ebp - 0x41c]
push eax
call fcn.0040d0fe
test eax, eax
pop ecx
je 0x40e0c9
lea eax, [ebp - 0x310]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041bb00
pop ecx
cmp eax, ebx
pop ecx
je 0x40dec2
inc eax
jmp 0x40dec8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00405453
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00404d6e
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
add esp, 0x10
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x310]
push eax
call edi
lea eax, [ebp - 0x310]
push str.__s
push eax
call fcn.0041bb40
pop ecx
lea eax, [ebp - 0x41c]
pop ecx
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0041bb40
lea eax, [ebp - 0x310]
push eax
push str.InstallConstruct
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call fcn.0040d963
add esp, 0x18
cmp dword [0x42b56c], ebx
je 0x40e0c9
cmp dword [0x42cc30], 3
jl 0x40df73
call fcn.0040dd98
jmp 0x40df7c
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
jmp 0x40e0cc
cmp dword [0x42b588], ebx
je 0x40df9a
push ebx
push ebx
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x42e1d8], ebx
je 0x40dfb5
cmp byte [0x42e0c8], bl
je 0x40dfb5
push 0x42e0c8
call fcn.00403c4c
pop ecx
call fcn.0040cf93
mov esi, eax
cmp esi, ebx
je 0x40e08d
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00403bc9
add esp, 0xc
push esi
call fcn.0040ddfd
test eax, eax
je 0x40e008
lea eax, [ebp - 0x104]
push eax
push dword [0x42d990]
push ebx
push ebx
push esi
call fcn.004050d5
add esp, 0x14
jmp 0x40e086
lea eax, [ebp - 0x318]
push eax
push esi
call fcn.0040c60d
pop ecx
test eax, eax
pop ecx
jne 0x40e035
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x40dfee
lea eax, [ebp - 0x318]
push 0x212
push eax
lea eax, [ebp - 0x318]
push eax
call edi
lea eax, [ebp - 0x318]
push 0x42782c
push eax
call fcn.0041bb40
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.0041bb40
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x318]
push dword [0x42d990]
push ebx
push ebx
push eax
call fcn.004050d5
add esp, 0x24
push esi
call fcn.0041b254
pop ecx
mov esi, 0x42eb00
push esi
call fcn.00404c94
test eax, eax
jne 0x40e0c4
cmp dword [0x42dfdc], ebx
je 0x40e0ad
cmp dword [0x42dfe0], 3
je 0x40e0bd
cmp dword [0x42e2f4], ebx
je 0x40e0c4
cmp byte [0x42e2f8], bl
je 0x40e0c4
push esi
call fcn.0041c580
pop ecx
call fcn.0040ceaf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x42d220
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
and byte [0x42e7e0], 0
mov esi, 0x42e7e0
push esi
push 0x13
mov edi, eax
call fcn.0040495c
cmp byte [0x42e7e0], 0
pop ecx
pop ecx
je 0x40eaeb
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0041bb30
lea eax, [ebp - 0x110]
push 0x5c
push eax
call fcn.0041bb00
add esp, 0x10
test eax, eax
je 0x40eaeb
push eax
push esi
call fcn.0041bb30
pop ecx
pop ecx
test edi, edi
jl 0x40ebdf
mov eax, dword [0x42b4f4]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, 0x424460
test eax, eax
je 0x40eb12
cmp eax, 2
jne 0x40eb8b
lea eax, [ebp - 4]
push eax
push 0x11
call ebx
push eax
call edi
test eax, eax
jl 0x40ebdf
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x40ebdf
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x40ebdf
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040e85a
mov eax, dword [0x42d220]
add esp, 0x10
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x42b4f4]
cmp dword [0x42ab7c], 0
jne 0x40ebea
cmp eax, 1
je 0x40ebab
cmp eax, 2
jne 0x40ec22
cmp byte [0x42cfa0], 0
jne 0x40ec22
lea eax, [ebp - 4]
push eax
push 0x12
call ebx
push eax
call edi
test eax, eax
jl 0x40ebdf
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x40ebdf
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x40ebee
mov eax, dword [0x42d220]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
jmp 0x40ec38
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040e85a
mov eax, dword [0x42d220]
add esp, 0x10
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x42d220]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
cmp byte [0x42cfa0], al
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ec3d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0041bb30
push dword [ebp + 8]
lea eax, [ebp - 0x348]
push eax
call fcn.00405453
mov ebx, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
push 0x2b0d
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x348]
push eax
call fcn.004060d0
pop ecx
push 1
pop esi
cmp eax, esi
jne 0x40ecb4
push edi
push 0x42cfa0
call fcn.0041bb30
pop ecx
mov dword [0x42b594], esi
pop ecx
jmp 0x40ed70
cmp dword [0x42b4fc], 0
je 0x40ee27
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0041bb30
lea eax, [ebp - 0x348]
push 0x427460
push eax
call fcn.00405453
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40ee27
test byte [ebp - 0x140], 0x10
je 0x40ed77
lea eax, [ebp - 0x114]
push 0x427458
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40ed77
lea eax, [ebp - 0x114]
push 0x42745c
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40ed77
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0041bb30
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.00405453
lea eax, [ebp - 0x348]
push ebx
push eax
push dword [ebp + 8]
call fcn.0040ec3d
add esp, 0x1c
test eax, eax
je 0x40ed77
mov eax, esi
jmp 0x40ee29
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x40ee27
push ebx
call fcn.0040e6df
cmp dword [0x42ab7c], 0
pop ecx
jne 0x40ee27
test byte [ebp - 0x140], 0x10
je 0x40ee13
lea eax, [ebp - 0x114]
push 0x427458
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40ee13
lea eax, [ebp - 0x114]
push 0x42745c
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40ee13
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0041bb30
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.00405453
lea eax, [ebp - 0x348]
push ebx
push eax
push dword [ebp + 8]
call fcn.0040ec3d
add esp, 0x1c
test eax, eax
jne 0x40ee22
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
jmp 0x40ed87
push 1
pop eax
jmp 0x40ee29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ef57
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [0x42cc30], 3
push esi
push edi
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
jge 0x40ef86
push 1
pop eax
jmp 0x40f065
lea eax, [ebp - 8]
push eax
push ebx
push 8
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 0x40efc4
call esi
cmp eax, 0x3f0
jne 0x40f029
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f029
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40f029
call esi
cmp eax, 0x7a
jne 0x40f029
mov eax, dword [ebp - 4]
add eax, 3
and al, 0xfc
call fcn.0041c160
mov esi, esp
cmp esi, ebx
je 0x40f029
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x40f029
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40f02d
xor eax, eax
jmp 0x40f065
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40f059
lea ebx, [esi + 4]
push dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40f052
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40f039
jmp 0x40f059
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f06d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push dword [ebp + 8]
and dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40f1c0
push ebx
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f1b9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x40f1b9
push esi
push edi
push ebx
call fcn.0041c080
mov edi, eax
pop ecx
test edi, edi
je 0x40f0ce
cmp byte [ebx + edi - 1], 0x20
jne 0x40f0ce
and byte [ebx + edi - 1], 0
dec edi
jne 0x40f0bf
push 0x2d
push ebx
call fcn.0041c440
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40f141
and dword [ebp - 0xc], 0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [ebp - 8], 0x3f2
cmp byte [esi], 0
je 0x40f125
push dword [ebp - 8]
and byte [esi], 0
push dword [ebp + 8]
call edi
push dword [ebp - 4]
push eax
call ebx
inc esi
push 0x2d
push esi
mov dword [ebp - 4], esi
call fcn.0041c440
inc dword [ebp - 0xc]
inc dword [ebp - 8]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x40f0f5
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x40f1a7
mov eax, dword [ebp - 0xc]
add eax, 0x3f2
push eax
push dword [ebp + 8]
call edi
push esi
push eax
call ebx
jmp 0x40f1a7
mov ecx, dword [0x427050]
cmp edi, ecx
jbe 0x40f1ae
mov eax, dword [0x42ec90]
mov edx, eax
imul edx, ecx
cmp edi, edx
jne 0x40f1ae
xor esi, esi
test eax, eax
jbe 0x40f1a7
lea eax, [esi + 0x3f2]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov eax, dword [0x427050]
push eax
imul eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bd20
mov eax, dword [0x427050]
add esp, 0xc
and byte [ebp + eax - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
inc esi
cmp esi, dword [0x42ec90]
jb 0x40f15f
mov dword [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4104b1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x2afa
push dword [ebp + 8]
call esi
mov ecx, dword [0x427050]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [0x42ec90]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.004047bb
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
push 0x3f2
push dword [ebp + 8]
call esi
push eax
call ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004047bb
pop ecx
cmp edi, 1
pop ecx
jne 0x410593
push 0x3f2
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, eax
push 0x40f1c5
push 0xfffffffffffffffc
push ebx
call edi
cmp dword [0x42e554], 0
mov dword [0x42d0a4], eax
jne 0x410553
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or al, 8
push eax
push 0xfffffffffffffff0
push ebx
call edi
mov eax, dword [ebp - 0x20]
push 0
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
pop edi
lea eax, [edi + 0x3f2]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc edi
cmp edi, 7
jl 0x410573
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00410424
mov ebx, eax
mov eax, dword [ebp - 0x14]
add ebx, 5
pop ecx
mov edx, ebx
pop ecx
imul edx, edi
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
cmp edx, ecx
jle 0x4105c6
lea ecx, [edi + edi*4]
sub eax, ecx
sub eax, dword [ebp - 0x1c]
add eax, 5
cdq
idiv edi
mov ebx, eax
and dword [ebp - 4], 0
test edi, edi
jle 0x410645
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
add eax, 0x3f2
push eax
push dword [ebp + 8]
call esi
push 0x40f1c5
push 0xfffffffffffffffc
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [0x42e554], 0
mov dword [0x42d0a4], eax
jne 0x410618
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or al, 8
push eax
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x28]
push 1
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add ecx, eax
push dword [ebp - 0x28]
push ecx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MoveWindow]
inc dword [ebp - 4]
lea eax, [ebx + 5]
add dword [ebp - 0xc], eax
cmp dword [ebp - 4], edi
jl 0x4105d2
cmp edi, 7
jge 0x41058e
lea eax, [edi + 0x3f2]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc edi
jmp 0x410645
Function at 0x41078f
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [esp + 0x18]
push 0x3024
push edi
call esi
push 2
push edi
mov dword [esp + 0x20], eax
call esi
cmp byte [0x42d360], 0
mov dword [esp + 0x10], eax
mov ebp, 0x42d3e0
mov ebx, 0x42d360
jne 0x4107e0
push 0x63
push ebp
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x63
push ebx
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esp + 0x14]
call ebx
push ebp
push dword [esp + 0x1c]
call ebx
cmp dword [0x42dff8], 1
jne 0x41081e
push 0x3025
push edi
call esi
push 4
push 0
push 0x470
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x410986
mov eax, dword [esp + 0x20]
cmp eax, 0xb
jne 0x41083d
xor eax, eax
cmp dword [0x42d890], eax
jne 0x410839
cmp dword [0x42d88c], eax
je 0x410893
push 5
jmp 0x410895
cmp eax, 2
jne 0x410855
and dword [0x42b5ac], 0
and dword [0x42b5b0], 0
jmp 0x4109b7
cmp eax, 9
jne 0x410870
xor eax, eax
cmp dword [0x42d890], eax
jne 0x41086c
cmp dword [0x42d894], eax
je 0x410893
push 2
jmp 0x410881
cmp eax, 0xa
jne 0x4108af
xor eax, eax
cmp dword [0x42d894], eax
je 0x410893
push 3
push eax
push 0x470
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4109b7
push 4
push eax
push 0x470
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3025
push edi
call esi
jmp 0x4109b7
mov ecx, dword [0x427054]
mov ebx, 0x3025
cmp eax, ecx
jne 0x4108e0
cmp eax, dword [0x427058]
jne 0x4108f1
push 4
push 0
push 0x470
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push edi
call esi
mov dword [esp + 0x18], eax
jmp 0x410922
cmp eax, dword [0x427058]
jne 0x4108f1
cmp eax, 8
je 0x4108c6
push 5
jmp 0x4108c8
cmp eax, ecx
jne 0x410907
push 2
push 0
push 0x470
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x410922
push 3
push 0
push 0x470
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [esp + 0x20], 8
jne 0x410986
xor ebp, ebp
cmp dword [0x42dff8], ebp
jne 0x4109b7
cmp dword [0x42b58c], ebp
jne 0x4109b7
cmp dword [0x427058], 8
jne 0x41094b
push ebx
jmp 0x410950
push 0x3024
push edi
call esi
push ebp
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3023
push edi
call esi
push ebp
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push ebp
push 0x400
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x42b58c], 1
cmp dword [esp + 0x20], 1
jne 0x4109b7
mov eax, dword [0x42e6b4]
cmp byte [eax], 0
je 0x4109a2
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42e738]
cmp byte [eax], 0
je 0x4109b7
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret