joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401061
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [0x425020]
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4010c9
lea eax, [ebp - 0x20c]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4010c9
lea eax, [ebp - 0x20c]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010c9
push 1
pop eax
jmp 0x4010cb
xor eax, eax
pop esi
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
sbb esi, esi
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
neg esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40117d
test esi, esi
je 0x40117d
push 1
pop eax
jmp 0x40117f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40120e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
mov dword [ebp - 4], 2
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.update
push str.SOFTWARE360Safe_setting
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x401252
cmp eax, 3
jbe 0x401255
push 2
pop eax
leave
ret

Function at 0x401257
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
call fcn.00401061
cmp dword [ebp + 8], eax
jne 0x401272
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x208]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x208]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012bf
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040269f
pop ecx
pop ecx
jmp 0x4012c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x401874
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
push 0x208
and dword [eax], 0
lea eax, [ebp - 0x21c]
mov edi, ecx
push eax
call fcn.004010ce
test eax, eax
je 0x4019ab
lea eax, [ebp - 0x21c]
push str.AntiAdwa.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4019ab
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4019ab
push ebx
push esi
push str.AdLib_InitEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 8], eax
je 0x4019a0
mov ebx, 0x104
lea esi, [edi + 4]
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
push esi
mov dword [esi], ebx
call dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x4019a0
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 0x10], esi
call fcn.004017fd
test eax, eax
je 0x4019a0
mov ecx, edi
xor ebx, ebx
mov dword [ebp - 8], esi
call fcn.0040180e
mov dword [ebp - 4], esi
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401818
test eax, eax
je 0x401985
push esi
push esi
push dword [ebp - 0xc]
mov ecx, edi
push esi
push esi
call fcn.0040182e
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 1
jne 0x401940
cmp dword [eax + 4], 1
jne 0x401975
inc dword [ebp - 8]
jmp 0x401940
push eax
push esi
mov ecx, edi
call fcn.00401850
test eax, eax
jne 0x401940
inc ebx
jmp 0x401940
mov ecx, edi
call fcn.0040186a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], 1
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 8

Function at 0x4034a9
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403505
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403505
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4034f4
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x404303
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0041f330
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x404424
cmp dword [ebp + 0xc], esi
je 0x404424
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x4256a0
push 0x200
push eax
call fcn.004040ce
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404410
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404404
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.004029f2
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404099
test eax, eax
jne 0x404404
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x40441d
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x404332
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x404426
xor eax, eax
pop esi
leave
ret
Function at 0x4049d1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x404b29
cmp dword [ebp + 0xc], ebx
je 0x404b29
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x404b09
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404b00
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x404af8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404aef
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00404b2e
add esp, 0x18
test eax, eax
je 0x404aef
cmp byte [ebp - 0x7c], bl
je 0x404add
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x404aef
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.00404099
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x404a23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x404b29
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404099
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x404b2b
xor eax, eax
pop ebx
leave
ret
Function at 0x40519b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x4052a4
cmp dword [ebp + 0xc], 0x20
jb 0x4052a4
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x4258a4
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4052a4
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x4052a4
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.004052a9
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00404099
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00405005
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x4052a4
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404099
neg eax
sbb eax, eax
inc eax
jmp 0x4052a6
xor eax, eax
pop esi
leave
ret

Function at 0x405469
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40539a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x405c7c
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x42b9cc], 0
push esi
mov esi, ecx
je 0x405c9c
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00405c52
pop esi
ret
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x40685c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x19c], ebx
je 0x406889
push 0x40
push dword [0x42b934]
push 0x4259d4
push dword [esi + 4]
jmp 0x406a6e
call fcn.00411da1
mov eax, dword [eax + 0x30]
mov edx, 0x81
mov ecx, edx
lea edi, [ebp - 0x61a]
inc dword [eax + 0x48]
xor eax, eax
mov word [ebp - 0x61c], bx
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20a]
push 0x3f7
push dword [esi + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x103
lea ecx, [ebp - 0x61c]
push ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x61c]
push eax
push 0x425548
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call edi
add esp, 0x14
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x40692f
lea eax, [ebp - 0x20c]
push eax
call edi
and word [ebp + eax*2 - 0x20e], 0
pop ecx
and word [ebp - 0x414], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00411da1
mov eax, dword [eax + 0x30]
lea ecx, [ebp - 0x414]
push ebx
push ecx
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.004116fe
lea eax, [ebp - 0x414]
push 0x4259cc
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
je 0x406a5e
lea eax, [ebp - 0x414]
push eax
call fcn.00415a35
test eax, eax
pop ecx
je 0x406a5e
lea eax, [ebp - 0x414]
push eax
call fcn.00415ab9
test al, al
pop ecx
jne 0x4069ba
push 0x30
push dword [0x42b934]
push 0x425990
jmp 0x406a6b
lea eax, [ebp - 0x414]
push eax
call fcn.00411da1
mov ecx, eax
call fcn.00412199
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ebx, 0xf0
push 0
push ebx
push dword [esi + 0x178]
call edi
mov dword [ebp - 4], eax
call fcn.00411da1
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x28], ecx
call fcn.00411da1
cmp dword [eax + 4], 9
jge 0x406a1f
push 0
push 0
push ebx
push dword [esi + 0x180]
call edi
mov dword [ebp - 4], eax
call fcn.00411da1
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x2c], ecx
push 0
push 0
push ebx
push dword [esi + 0x188]
call edi
mov edi, eax
call fcn.00411da1
mov eax, dword [eax + 0x30]
mov dword [eax + 0x24], edi
call fcn.0040928c
mov ecx, eax
call fcn.00409678
mov edi, eax
test edi, edi
je 0x406a74
push dword [esi + 4]
mov ecx, edi
call fcn.004080ed
mov ecx, edi
call fcn.00407fa0
jmp 0x406a74
push 0x40
push dword [0x42b934]
push 0x425964
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406b02
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
mov esi, ecx
push edi
push 0x425a0c
lea ecx, [ebp - 4]
call fcn.00407334
and word [ebp - 0x230], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
rep stosd dword es:[edi], eax
and word [ebp - 0x43c], 0
mov ebx, 0x3f7
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x43a]
push ebx
push dword [esi + 4]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
lea ecx, [ebp - 0x43c]
push 0x104
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x1041
mov dword [ebp - 0x14], 0x406a7d
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
mov dword [ebp - 8], eax
je 0x406be0
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 4]
call fcn.00403e55
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x406bf1
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00411da1
mov eax, dword [eax + 0x30]
inc dword [eax + 0x4c]
call fcn.00411da1
mov eax, dword [eax + 8]
test eax, eax
je 0x406c44
cmp eax, 3
je 0x406c2a
call fcn.0040928c
mov ecx, eax
call fcn.00409dd9
mov esi, dword [esi + 4]
lea ecx, [eax + 0x20]
push esi
call fcn.00407232
jmp 0x406c5c
call fcn.0040928c
mov ecx, eax
call fcn.00409ffb
mov esi, dword [esi + 4]
lea ecx, [eax + 0x20]
push esi
call fcn.004072b3
jmp 0x406c5c
call fcn.0040928c
mov ecx, eax
call fcn.004092c3
mov esi, dword [esi + 4]
lea ecx, [eax + 0x20]
push esi
call fcn.004071b1
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c70
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x407c9f
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x42b9cc], 0
push esi
push edi
mov esi, ecx
je 0x407ccc
call fcn.00411da1
mov eax, dword [eax + 0x30]
push 0
and dword [eax + 0x38], 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00407b95
jmp 0x407ced
mov edi, dword [esp + 0xc]
lea ecx, [esi + 0x20]
push edi
call fcn.00407e15
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407ced
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x40809e
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040928c
mov ecx, eax
call fcn.00409b15
mov edi, eax
test edi, edi
je 0x4080e6
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [esi + 4]
lea ecx, [edi + 0x20]
push esi
call fcn.004081ca
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4080df
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00406691
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x4080ed
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x42b9cc], 0
push esi
je 0x4080fe
push 0
push dword [ecx + 4]
jmp 0x408119
mov esi, dword [esp + 8]
add ecx, 0x20
push esi
call fcn.00408149
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40811f
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4

Function at 0x408488
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4084fb
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 0x10

Function at 0x408dc3
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00411da1
mov eax, dword [eax + 0x30]
inc dword [eax + 0x44]
call fcn.0040928c
mov ecx, eax
call fcn.00409b15
mov edi, eax
test edi, edi
je 0x408e0b
mov esi, dword [esi + 4]
lea ecx, [edi + 0x20]
push esi
call fcn.004081ca
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408e04
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00406691
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x408e5c
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x42b9cc], 0
push esi
mov esi, ecx
je 0x408e7c
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00408e32
pop esi
ret
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x4091d9
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040928c
mov ecx, eax
call fcn.00409b15
mov esi, dword [esi + 4]
mov edi, eax
push esi
lea ecx, [edi + 0x20]
call fcn.004081ca
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40920b
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00406691
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x409243
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x42b9cc], 0
push esi
mov esi, ecx
je 0x409263
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00409219
pop esi
ret
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x4093e2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x44]
xor ebx, ebx
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x4c], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x85a]
mov word [ebp - 0x85c], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x85c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
push ebx
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x4c]
call edi
push dword [esi + 0x20]
mov dword [ebp - 4], eax
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x40947c
push 1
jmp 0x409482
test al, 2
je 0x409483
push 2
pop ebx
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
or ebx, 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
lea eax, [ebp - 0x85c]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp - 0x4c]
call edi
lea ecx, [ebp - 0x4c]
call fcn.0040a45c
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b466
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x80]
cmp eax, 0xffffffff
jne 0x40b49c
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call ebx
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x40b523
lea edi, [eax + 1]
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0041f330
mov dword [ebp - 4], esp
push edi
push dword [ebp - 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40b523
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x40b4fd
push 1
jmp 0x40b503
test al, 2
je 0x40b504
push 2
pop ecx
test al, 0xb
je 0x40b50b
push 0x24
pop ecx
or cx, 0x210
lea eax, [ebp - 0x18]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40cbc5
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cc0c
push 0x427760
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
mov dword [ebp + 8], 0xfeff
je 0x40cc0c
push esi
push 1
lea eax, [ebp + 8]
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
pop ebp
ret 4