joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1460
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x144], 1
jne 0x4a159f
lea ebx, [esi + 0x1d0]
lea eax, [esp + 8]
push eax
mov ecx, ebx
call fcn.00510700
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a14d0
mov dword [esi + 0x144], 0xfffffffe
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a159f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a159f
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop esi
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4a1520
mov eax, dword [esp + 8]
mov dword [esi + 0x144], 0xfffffffe
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a159f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a159f
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop esi
pop ebx
pop ecx
ret
push edi
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [esi + 0x144], 0
call fcn.004f5880
test eax, eax
je 0x4a1546
mov dword [esi + 0x10c], 0
mov eax, dword [esi + 0x38]
push 0
push 0x548954
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
push ecx
push esp
mov ecx, ebx
mov dword [esi + 0x158], eax
call fcn.00510700
mov ecx, edi
call fcn.004f5420
mov eax, dword [esp + 0xc]
mov edx, dword [0x546564]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a159f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a159f
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop esi
pop ebx
pop ecx
ret
Function at 0x4a2940
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 1
mov dword [esi + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x264]
test eax, eax
jne 0x4a296a
push 0x64
mov ecx, esi
call fcn.004a1420
pop esi
ret
lea eax, [esi + 0x244]
mov dword [esi + 0x264], 0
push eax
push 0
push esi
push 0x4a29b0
push 0
push 0
mov dword [eax], 0
mov dword [esi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x24c], eax
pop esi
ret
Function at 0x4a3c60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xe58
mov edx, dword [0x553d9c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x66c]
mov dword [esp + 0x668], edx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [esp + 0x26c]
mov dword [esp + 0x268], edx
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x93
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe6c]
lea ecx, [esp + 0x268]
push eax
push ecx
xor edi, edi
call fcn.005323da
lea edx, [esp + 0x270]
push 0x546f04
push edx
call fcn.005323da
lea eax, [esp + 0x278]
lea ecx, [esp + 0x678]
push eax
push ecx
call fcn.005323da
lea edx, [esp + 0x680]
push 0x54749c
push edx
call fcn.005323da
add esp, 0x20
lea eax, [esp + 0x18]
lea ecx, [esp + 0x668]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0xe78]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp dword [edx], 0
je 0x4a3e69
mov ebx, dword [esp + 0xe74]
mov ecx, esi
call fcn.004a49b0
test byte [esp + 0x18], 0x10
je 0x4a3e02
lea eax, [esp + 0x44]
push 0x547124
push eax
call fcn.00531809
add esp, 8
test eax, eax
je 0x4a3e1f
lea ecx, [esp + 0x44]
push 0x547128
push ecx
call fcn.00531809
add esp, 8
test eax, eax
je 0x4a3e1f
mov eax, dword [esp + 0x18]
mov edx, eax
not edx
shr edx, 4
and edx, 1
mov dword [esp + 0x10], edx
jne 0x4a3e1f
and eax, 0x400
mov dword [esp + 0x10], eax
jne 0x4a3e1f
mov edx, dword [esi + 0x25c]
lea eax, [esp + 0x268]
lea ecx, [esp + 0xa68]
inc edx
push eax
push ecx
mov dword [esi + 0x25c], edx
call fcn.00532404
lea edx, [esp + 0x4c]
lea eax, [esp + 0xa70]
push edx
push eax
call fcn.005323da
mov ecx, dword [esp + 0xe88]
mov edx, dword [esp + 0xe80]
add esp, 0x10
lea eax, [esp + 0xa68]
push ecx
push ebx
push edx
push eax
mov ecx, esi
call fcn.004a3c60
add edi, eax
adc ebp, edx
test ebx, ebx
je 0x4a3e1f
inc dword [ebx]
jmp 0x4a3e1f
mov eax, dword [esp + 0xe70]
test eax, eax
je 0x4a3e1f
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x25c]
inc eax
mov dword [esi + 0x25c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov ebx, dword [esp + 0x14]
add edi, ecx
lea ecx, [esp + 0x18]
adc ebp, edx
xor eax, eax
push ecx
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4a3e69
mov edx, dword [esp + 0xe78]
cmp dword [edx], 0
jne 0x4a3d2b
test ebx, ebx
je 0x4a3e74
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
mov edx, ebp
pop esi
pop ebp
pop ebx
add esp, 0xe58
ret 0x10
Function at 0x4ad070
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
lea edi, [esi + 0x14]
push edi
push 0x54ce40
push 0x17
push 0
push 0x54ce30
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], 0
test eax, eax
jl 0x4ad217
push 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov eax, dword [edi]
mov ecx, dword [eax]
push 0x40
push eax
call dword [ecx + 0x14]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4ad0eb
mov edi, dword [edi]
mov edx, dword [edi]
push 0
push edi
call dword [edx + 0x14]
push 1
call ebx
mov eax, dword [esi + 8]
lea edi, [esi + 4]
mov ecx, dword [eax]
push edi
push 0x542614
push eax
call dword [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [edi]
test edi, edi
je 0x4ad217
mov edx, dword [edi]
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [edx + 0x1c]
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x4ad217
push 1
call ebx
mov dword [esi], edi
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push esi
push 0x5423a4
push 1
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x4ad217
cmp dword [esi], edi
je 0x4ad217
push 0x2c
call fcn.00531ba5
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x4ad16d
push edi
mov ecx, eax
call fcn.00443a00
jmp 0x4ad16f
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, dword [esi]
push edx
mov ecx, eax
call fcn.004443a0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
add eax, 4
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004efa30
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x4ad210
cmp eax, edi
jl 0x4ad206
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
lea edx, [ebp - 0x28]
push edx
push edi
push esi
push 0x4ad240
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x4ad203
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4ad1eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x4ad210
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4b30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov cl, 0x74
mov eax, dword [0x546560]
mov byte [esp + 5], cl
mov byte [esp + 6], cl
mov cl, 0x77
push ebx
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
mov cl, 0x2e
mov byte [esp + 0x12], cl
mov byte [esp + 0x19], cl
lea ecx, [esp + 8]
push ebp
mov dl, 0x2f
push esi
test ecx, ecx
push edi
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0x68
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x3a
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x22], 0x66
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x26], 0x64
mov byte [esp + 0x27], 0x65
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0
je 0x4b4bc7
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x4b4bc9
xor esi, esi
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 1
cmp ecx, edi
jg 0x4b4be0
cmp esi, dword [eax - 4]
jle 0x4b4bfb
lea ecx, [esp + 0x10]
call fcn.00412670
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4b4c47
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
mov esi, eax
test ecx, ecx
jne 0x4b4c08
test eax, eax
jne 0x4b4c26
push ecx
push eax
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4b4c26
mov word [esi + eax*2 - 2], 0
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x4b4c65
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b4cc2
mov edx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [ebp], edx
jne 0x4b4c78
xor ebx, ebx
jmp 0x4b4c7d
push eax
call ebx
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], edi
jg 0x4b4c8a
cmp ebx, dword [eax - 4]
jle 0x4b4c9d
mov ecx, ebp
call fcn.00412670
push ebx
mov ecx, ebp
call fcn.00405530
test eax, eax
je 0x4b4cc2
mov edi, dword [ebp]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b4cf1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b4cf1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4b6a10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4b6a9f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
test eax, eax
je 0x4b6a9f
push ebx
push ebp
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push 0
mov ebp, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4b6a9a
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
lea eax, [eax + eax + 4]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b6a94
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call ebx
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4b6ab0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4b6c30
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 8], eax
je 0x4b6c24
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4b6c24
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x4b6b09
cmp esi, dword [eax - 4]
jle 0x4b6b72
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
je 0x4b6b37
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b6b2f
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [0x546560]
mov dword [ebx], ecx
test esi, esi
jne 0x4b6b45
mov edx, dword [0x546560]
mov dword [ebx], edx
jmp 0x4b6b72
lea eax, [esi + esi + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4b6c13
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
lea eax, [esi + 1]
mov esi, dword [ebx]
test eax, eax
jne 0x4b6b7f
test esi, esi
jne 0x4b6b99
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4b6b99
mov word [esi + eax*2 - 2], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x4b6bfd
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4b6bd4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b6bcc
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.00531732
add esp, 4
mov edx, dword [0x546560]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00405530
test eax, eax
je 0x4b6bfd
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
add esi, 0xc
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop edi
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4b8830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004b7110
mov ecx, dword [0x546560]
mov edx, str._help
add esp, 8
mov dword [esp + 0x10], ecx
test edx, edx
jne 0x4b885d
xor esi, esi
jmp 0x4b886a
push str._help
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebp - 8]
lea eax, [esi + ebx]
cmp eax, esi
jl 0x4b88c4
cmp eax, ebx
jl 0x4b88c4
test eax, eax
je 0x4b88c4
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4b88c4
mov edi, dword [esp + 0x10]
lea eax, [esi + esi]
mov ecx, eax
mov esi, str._help
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + ebx]
mov esi, ebp
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 3
push 0
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b8927
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4b8927
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b8952
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4b8952
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, dword [0x546564]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x4b8972
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4b8972
push esi
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4b9470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b94e8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4b94c0
call edi
cmp eax, 3
je 0x4b94c0
mov ecx, dword [0x546564]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4b94ba
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b94ba
push esi
call fcn.00531732
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [0x546564]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x4b94e3
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b94e3
push esi
call fcn.00531732
add esp, 4
pop edi
xor eax, eax
pop esi
ret
test al, 0x10
je 0x4b9517
mov eax, dword [0x546564]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x4b950f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b950f
push esi
call fcn.00531732
add esp, 4
pop edi
mov eax, 2
pop esi
ret
mov ecx, dword [0x546564]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4b953b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b953b
push esi
call fcn.00531732
add esp, 4
pop edi
mov eax, 1
pop esi
ret
Function at 0x4c2360
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [0x546560]
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push ebp
push esi
cmp ecx, 1
push edi
mov esi, 0x400
jg 0x4c2389
cmp dword [eax - 4], esi
jge 0x4c23ed
mov ebp, dword [eax - 8]
cmp ebp, esi
jle 0x4c2396
test ebp, ebp
mov esi, ebp
je 0x4c23c1
lea eax, [esi + esi + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4c24b4
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
lea ecx, [ebp + ebp + 2]
lea esi, [ebx + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x10], eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x400
push eax
mov edx, dword [ecx + 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4c2446
lea ecx, [esp + 0x10]
call fcn.00412670
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4c2446
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
push 1
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
mov word [ecx + eax*2], 0
mov ecx, esp
push edx
call fcn.00405440
call fcn.00520080
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4c24a8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c24a8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
xor eax, eax
jmp 0x4c23ed
Function at 0x4c24c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [0x546560]
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push ebp
push esi
cmp ecx, 1
push edi
mov esi, 0x400
jg 0x4c24e9
cmp dword [eax - 4], esi
jge 0x4c254d
mov ebp, dword [eax - 8]
cmp ebp, esi
jle 0x4c24f6
test ebp, ebp
mov esi, ebp
je 0x4c2521
lea eax, [esi + esi + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4c2614
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
lea ecx, [ebp + ebp + 2]
lea esi, [ebx + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x10], eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x400
push eax
mov edx, dword [ecx + 0x50]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4c25a6
lea ecx, [esp + 0x10]
call fcn.00412670
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4c25a6
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
push 1
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
mov word [ecx + eax*2], 0
mov ecx, esp
push edx
call fcn.00405440
call fcn.004ed330
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4c2608
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c2608
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
xor eax, eax
jmp 0x4c254d
Function at 0x4c2620
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [0x546560]
push ebx
mov dword [esp + 4], eax
push ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
mov dword [esp + 0xc], ecx
push esi
cmp edx, 1
push edi
mov ecx, 0x400
jg 0x4c2649
cmp dword [eax - 4], ecx
jge 0x4c26a1
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4c2652
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4c26a1
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov eax, dword [0x546564]
cmp ebx, eax
je 0x4c269d
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c269d
push ebx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x400
push eax
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
lea esi, [ecx - 0xc]
cmp eax, 1
jle 0x4c26fa
lea ecx, [esp + 0x10]
call fcn.00412670
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.00405530
test eax, eax
je 0x4c26fa
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
push 0
push 0x553d98
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x4c2763
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c2763
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
add esp, 8
ret 0x10