joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006538
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6debec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10017ad3
mov dword [esi], 0x6e14dc
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x6e0918
call fcn.10004220
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.10004220
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.10004220
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.10004220
mov dword [edi], 0x6e0910
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.100161ad
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x6e09e0
mov eax, dword [0x6e7f3c]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.10004220
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.100161ad
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x6e0920
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10006750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6decb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x6e0920
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.100161d6
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x6e04d4
call fcn.10004420
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.1001780e
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x6e125c
mov byte [esp + 0x18], 6
call fcn.1001c1c7
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.100161d6
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x6e04d4
call fcn.10004420
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x6e04d4
call fcn.10004420
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x6e04d4
call fcn.10004420
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x6e04d4
call fcn.10004420
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10015eb7
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10001a50
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1004eca8], eax
jne 0x10001a77
push str.Create_NetTransEvent_Failed_
call fcn.10003300
add esp, 4
xor eax, eax
ret
push 0
push 0
push 0x10003360
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [0x10066144], eax
test eax, eax
jne 0x10001aa2
push str.Create_NetTransThread_Failed_
call fcn.10003300
add esp, 4
xor eax, eax
ret
mov dword [0x10066144], 0
mov eax, 1
ret
Function at 0x10003300
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x1006801c]
sub esp, 0x400
test eax, eax
je 0x10003354
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40c]
push eax
push ecx
push 0x400
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x100056a0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
jne 0x100056cb
push str.No_Find_Shell_TrayWnd_Window
jmp 0x100058a4
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call edi
mov esi, eax
test esi, esi
jne 0x100056f0
push str.No_Find_TrayNotifyWnd_Window
jmp 0x100058a4
push 0
push str.SysPager
push 0
push esi
call edi
test eax, eax
jne 0x1000570f
push str.No_Find_Syspager_Window
call fcn.10003300
add esp, 4
mov eax, esi
push 0
push str.ToolbarWindow32
push 0
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x1000589f
xor eax, eax
mov ecx, 0x20
push eax
lea edi, [esp + 0x41]
push eax
mov byte [esp + 0x44], 0
push 0x418
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x24]
mov ebp, eax
push ecx
push ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x24]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
mov edi, eax
push 0x80
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x100057ab
push 0x10010404
call fcn.10003300
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb0
ret
test ebp, ebp
mov dword [esp + 0x14], 0
jle 0x10005879
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor eax, eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
push 0x417
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push 0x14
push edx
push esi
push edi
call ebp
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push edx
push edi
call ebp
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x18]
mov eax, dword [0x10066150]
cmp edx, eax
jne 0x10005864
mov eax, dword [esp + 0x2c]
push esi
push eax
push 0x42d
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push 0x80
push edx
push esi
push edi
call ebp
mov eax, dword [0x10066158]
sub eax, 3
je 0x10005857
dec eax
jne 0x10005864
lea eax, [esp + 0x3c]
push eax
jmp 0x1000585c
lea ecx, [esp + 0x3c]
push ecx
call fcn.100058c0
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x100057c1
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb0
ret
push str.No_find_ToolbarWindow32_window
call fcn.10003300
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
Function at 0x100075a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push esi
push str.Enter_HookProc_QQ2009
call fcn.10003300
add esp, 4
push 0x100118f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.Enter_HookProc_QQ2009_after_lock
call fcn.10003300
mov esi, dword [esp + 0x2c]
add esp, 4
test esi, esi
jne 0x10007605
push 0x10010cb0
call fcn.10003300
push str.Leave_HookProc_QQ2009_before_lock
call fcn.10003300
add esp, 8
push 0x100118f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.Leave_HookProc_QQ2009
call fcn.10003300
add esp, 4
pop esi
add esp, 0x20
ret
push ebx
push esi
call fcn.10005cd0
add esp, 4
test eax, eax
je 0x10007678
push esi
call fcn.100076b0
mov ebx, eax
add esp, 4
test ebx, ebx
jl 0x1000766b
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0xc]
push ecx
call fcn.10005b30
lea edx, [esp + 0x10]
push edx
push str.cuttitle
call fcn.10003300
push ebx
call fcn.100077c0
add esp, 0x10
pop edi
jmp 0x10007678
push str.Get_Talk_Window_Index_Failed_
call fcn.10003300
add esp, 4
push str.Leave_HookProc_QQ2009_before_lock
call fcn.10003300
add esp, 4
push 0x100118f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.Leave_HookProc_QQ2009
call fcn.10003300
add esp, 4
pop ebx
pop esi
add esp, 0x20
ret
Function at 0x1000ad70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
xor esi, esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.32770
push eax
push ecx
call edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x1000ae5f
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000ad8f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push str.32770
push edx
push eax
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x1000ad8f
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000adbf
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push 0
push str.Static
push esi
push ecx
call edi
mov esi, eax
test esi, esi
je 0x1000adbf
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000ade7
test ebp, ebp
jne 0x1000ae1e
mov edx, dword [esp + 0x20]
push 0x20
push edx
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
inc ebp
jmp 0x1000ade7
cmp ebp, 1
jne 0x1000ae36
mov eax, dword [esp + 0x24]
push 0x20
push eax
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
inc ebp
jmp 0x1000ade7
cmp ebp, 2
jne 0x1000ae56
mov edi, dword [esp + 0x28]
push 0x20
push edi
push esi
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1000ae56
mov ebp, 1
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
inc ebp
jmp 0x1000ade7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1000c6f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Entry_GetSkypeAccountInfo__
stosb byte es:[edi], al
call fcn.10003300
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
add esp, 4
push 0
push str.tSkMainForm.UnicodeClass
call esi
test eax, eax
jne 0x1000c755
push eax
push str.TZapMainForm.UnicodeClass
call esi
test eax, eax
jne 0x1000c755
push eax
push str.tSkMainForm
call esi
test eax, eax
jne 0x1000c755
push eax
push str.TZapMainForm
call esi
test eax, eax
je 0x1000c7f1
lea ecx, [esp + 8]
push 0x80
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.10003300
lea eax, [esp + 0xc]
push 0x2d
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1000c7f1
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
jne 0x1000c7f1
inc edx
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x3c
jle 0x1000c7a7
mov esi, 0x3c
mov ecx, 0x21
xor eax, eax
mov edi, 0x100660c0
push esi
push edx
push 0x10066104
rep stosd dword es:[edi], eax
mov dword [0x100660c0], 1
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x10011780
call fcn.10003300
push 0x10066104
call fcn.10003300
add esp, 0x14
mov eax, 1
pop edi
pop esi
add esp, 0x80
ret
push 0x10011768
call fcn.10003300
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x80
ret
Function at 0x40ac2a
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x668a0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ac5c
xor eax, eax
jmp 0x40ad8f
lea ecx, [ebp - 0x3c]
call fcn.00438a3f
and dword [ebp - 4], 0
push dword [ebp + 8]
push str._s.
lea eax, [ebp - 0x454]
push eax
call fcn.0040ec66
add esp, 0xc
push 0
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00438b91
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ad4f
lea ecx, [ebp - 0x3c]
call fcn.00438d4a
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x3c]
call fcn.004390ee
test eax, eax
jne 0x40ad4a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00438df1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.004030d5
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0060fd00
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00402c92
lea ecx, [ebp - 0x3c]
call fcn.00408e45
test eax, eax
je 0x40ad1f
lea eax, [ebp - 0x13c]
push eax
push dword [ebp + 8]
push str._s_s
lea eax, [ebp - 0x23c]
push eax
call fcn.0040ec66
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
call 0x40ac28
pop ecx
jmp 0x40ad4a
lea eax, [ebp - 0x13c]
push eax
push dword [ebp + 8]
push str._s_s
lea eax, [ebp - 0x33c]
push eax
call fcn.0040ec66
add esp, 0x10
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ac93
lea ecx, [ebp - 0x3c]
call fcn.00438b37
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40ad79
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00438a6e
mov eax, dword [ebp - 0x1c]
jmp 0x40ad8f
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00438a6e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x42091a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov edi, eax
test edi, edi
je 0x4209a6
cmp dword [ebp + 8], esi
je 0x4209a6
push esi
lea eax, [ebp - 8]
push eax
push 2
push esi
push 0x693674
push SysReAllocStringLen
call fcn.00486602
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x42096f
push dword [ebp - 4]
call fcn.00487038
mov esi, eax
push dword [ebp + 8]
call fcn.0060fe00
pop ecx
push eax
push dword [ebp + 8]
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTreatAsClass]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x42251a
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.00602a90
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0063f76e
push eax
call fcn.00403538
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x69f8a8]
je 0x422678
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42268c
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42268c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4225d6
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4225ca
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004221be
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4225d1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4225d8
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0042285e
test eax, eax
je 0x4225ff
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00421f83
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x422603
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042285e
test eax, eax
je 0x42262a
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00421f83
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x42262e
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0042285e
test eax, eax
je 0x422656
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00421f83
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x422658
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x42266a
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x422678
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f1450
leave
ret 4
xor eax, eax
jmp 0x42267b
Function at 0x4228a6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4228e7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4228f6
push str.SetFileAttributesTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4228f6
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x68dd90]
call edi
jmp 0x4228f8
cmp dword [esi + 4], 0
je 0x4228f6
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4228fe
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x42293f
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004221be
neg eax
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
jmp 0x422948
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422a73
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x422980
test bl, 1
je 0x422980
push ecx
push edi
test esi, esi
je 0x42296f
mov ecx, esi
call fcn.004228a6
jmp 0x422975
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x422a73
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x422a3a
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.0042200d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 0x10]
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x4229bc
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.0042200d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x4229d5
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.0042200d
pop ecx
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x38], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edi
test esi, esi
je 0x4229f5
mov ecx, esi
call fcn.004220b4
jmp 0x4229fb
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x422a73
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x422a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
jmp 0x422a7b
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x422a73
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x20], ebx
je 0x422a62
test bl, 1
jne 0x422a62
push dword [eax + 0x20]
push edi
test esi, esi
je 0x422a58
mov ecx, esi
call fcn.004228a6
jmp 0x422a5e
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x422a73
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f1450
leave
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048b02a
int3
Function at 0x42919a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4291d9
call fcn.00439739
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4291d9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4291e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00425f66
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42a207
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42a293
cmp dword [esi + 0x20], 0
je 0x42a293
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42a293
cmp dword [ebp + 8], 0
je 0x42a293
xor edi, edi
mov ebx, edi
call fcn.00439739
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x42a277
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a293
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0049456b
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42a28f
mov ecx, esi
call fcn.00429f23
mov eax, edi
jmp 0x42a295
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42f8a0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x66acae
call fcn.005f1490
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x42f8c6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42f920
lea ecx, [ebp - 0x10]
call fcn.004026b1
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x68dd90]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0063f76e
push eax
call fcn.00403538
add esp, 0x14
test esi, esi
je 0x42f913
push esi
call fcn.0060fe00
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406421
mov eax, ebx
call fcn.005f145e
ret 8