joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a26e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ee3fb
call fcn.004ebd20
sub esp, 0x224
mov eax, dword [0x517ad4]
push esi
push edi
xor eax, ebp
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x21c], edi
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, edi
jge 0x46a2c3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x46a2bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x46a42f
push edi
push edi
push 0xb
add esi, 0x58
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x220], edi
push 0x4f8364
lea edi, [ebp - 0x22c]
call fcn.00403098
push 0x43
pop eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x230], eax
push ebx
lea ebx, [ebp - 0x22c]
call fcn.0040358a
mov edi, dword [ebp - 0x22c]
mov ax, word [ebp - 0x224]
push edi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x46a3ca
mov eax, dword [ebp - 0x21c]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push ebx
push ebx
mov dword [ebp - 0x228], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x46a3ca
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
call fcn.0049f40a
push dword [ebp - 0x228]
xor edx, edx
xor ecx, ecx
inc edx
call fcn.0049f46e
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call fcn.00405cb9
push dword [ebp - 0x230]
inc dword [ebp - 0x220]
push eax
push esi
call fcn.00423c6c
push dword [ebp - 0x228]
call dword [0x5225d0]
mov edi, dword [ebp - 0x22c]
inc dword [ebp - 0x224]
inc dword [ebp - 0x230]
cmp word [ebp - 0x224], 0x5a
jbe 0x46a2fc
push 0xfffffffffffffffe
xor ebx, ebx
push ebx
push esi
call fcn.0041a45f
push ebx
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push esi
call fcn.0041a4af
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x46a414
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
pop ebx
je 0x46a429
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd70
leave
ret
Function at 0x46a8df
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x517ad4]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x2c4]
push esi
push edi
push 0x428
push dword [ebp + 4]
mov dword [esp + 0x2cc], eax
lea esi, [ebp + 0x58]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4020
push 0
push 0x1036
push eax
mov dword [esi], eax
call ebx
mov edi, dword [esi]
call fcn.004af99d
push 0x4001
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
mov edi, 0x4f8548
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 1
push 0x1003
push dword [esi]
call ebx
or ebx, 0xffffffff
push ebx
push 0
push edi
push 0
push esi
xor esi, esi
mov edx, 0x12c
call fcn.00405c44
mov ecx, ebp
call fcn.0046a26e
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004ebd70
add esp, 0x2b8
ret 4
Function at 0x46e4f2
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4ee4c9
call fcn.004ebd20
sub esp, 0x2c0
mov eax, dword [0x517ad4]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
push edi
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
jmp 0x46e546
mov edi, dword [esi + 0x90]
test edi, edi
je 0x46e535
lea eax, [ebx + 0x7f58]
push eax
call fcn.0047740d
push 0x400
push ebx
push dword [ebp + 8]
call fcn.004385db
add esp, 0xc
dec ebx
cmp ebx, 2
jge 0x46e51f
lea ecx, [esi + 0x240]
or eax, 0xffffffff
xor edi, edi
call fcn.0047a109
push 0x4001
mov ebx, 0x2b4
push ebx
lea eax, [ebp - 0x2c4]
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4f8548
call edi
cmp dword [esi + 0x90], 0
mov dword [ebp - 0x2cc], eax
je 0x46e611
lea ecx, [ebp - 0x2c8]
call fcn.004af611
push 0x4001
push ebx
lea ecx, [ebp - 0x2c4]
push ecx
push 0
push dword [eax]
call edi
mov eax, dword [ebp - 0x2c8]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46e5c4
push eax
call fcn.004013b2
push 0
push dword [ebp - 0x2c0]
push dword [ebp - 0x2cc]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
test eax, eax
mov dword [ebp - 0x2c8], eax
je 0x46e611
mov edi, dword [esi + 0x90]
mov ebx, 0x7f58
push ebx
call fcn.0047740d
mov eax, dword [esi + 0x90]
push ebx
push dword [ebp - 0x2c8]
call fcn.004513f6
push dword [ebp - 0x2c8]
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebp - 0x2cc]
mov ecx, esi
push 0x60
push 9
push 0x7f59
push dword [ebp + 8]
call fcn.0046e675
push 0
push 0
push 0x800
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.USER32.dll_AppendMenuW]
push dword [ebp - 0x2cc]
lea eax, [edi + 0x7f59]
push 0x20
push 0x11
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0046e675
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
add eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 4
Function at 0x47153a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4f3134
call fcn.004ebd20
sub esp, 0xc
mov eax, dword [ebp + 8]
call fcn.0046ca4b
cmp eax, 0xffffffff
je 0x4715e1
push esi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 8]
call fcn.0046cc4a
cmp dword [ebp + 8], 0
je 0x4715e0
mov eax, dword [0x51b438]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
call fcn.004042f5
push dword [eax]
lea eax, [ebp - 0x10]
push str._e__select___s_
push eax
call fcn.00405b51
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
add esp, 0xc
cmp eax, dword [0x51b43c]
je 0x4715a5
push eax
call fcn.004013b2
mov esi, dword [ebp - 0x10]
push 1
push 0
push esi
push str.explorer.exe
push 0x4fb5a0
push dword [0x523248]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4715d4
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
call fcn.004042cf
pop esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret 4

Function at 0x472238
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ef365
call fcn.004ebd20
sub esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004af611
push str.Internet_Exploreriexplore.exe
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004032df
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x472274
push eax
call fcn.004013b2
mov eax, dword [0x51b438]
mov dword [ebp - 0x10], eax
push 0x8298
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401692
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_lrcsearch.html
push eax
call fcn.00405b51
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
add esp, 0x10
cmp eax, dword [0x51b43c]
je 0x4722b4
push eax
call fcn.004013b2
push esi
mov esi, dword [ebp - 0x10]
push edi
mov edi, dword [ebp - 0x18]
push 1
push 0
push esi
push edi
push 0x4fb5a0
push dword [0x523248]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004af6f1
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4722e9
push eax
call fcn.004013b2
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
pop edi
pop esi
je 0x4722fc
push eax
call fcn.004013b2
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret
Function at 0x475707
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov si, word [eax + 0xc]
cmp si, 0x2e
push edi
mov edi, ecx
jne 0x47572c
push 0
push 0x7f13
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x475755
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
and ax, 0xfffe
je 0x475755
or esi, 0x20
cmp si, 0x61
jne 0x475755
push 0xb
push 2
push 0xffffffffffffffff
add edi, 0x504
push edi
call fcn.0041a3df
pop edi
xor eax, eax
pop esi
ret
Function at 0x4782d6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
mov esi, eax
lea eax, [ebx - 0x20]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [ebp + 0xc], 0
push edi
mov dword [ebp - 4], 1
je 0x478344
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or dword [ebp - 8], 0xffffffff
mov edi, eax
call fcn.0041b004
test eax, eax
je 0x478339
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 8], eax
or eax, 0xffffffff
mov ecx, esi
call fcn.0040322d
cmp dword [ebp - 8], edi
jge 0x478369
and dword [ebp - 4], 0
jmp 0x478359
push dword [esi]
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4783a7
push dword [ebp + 0xc]
lea esi, [ebx + 0x20]
push dword [ebp + 8]
call fcn.0043a868
jmp 0x4783a7
cmp dword [ebp + 0x10], 0
je 0x4783a7
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov esi, dword [ebp + 0x14]
cmp edx, esi
jle 0x4783a7
push 6
pop ecx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
mov dword [ebp - 0x2c], 1
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], edx
add ebx, 0x20
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
call fcn.0041b8c7
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4785a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x52164c]
push edi
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47862e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47862e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x47862e
movzx ecx, word [edi + 2]
lea eax, [edi + 8]
mov dword [ebp - 0xc], eax
movzx eax, word [edi + 6]
mov dword [ebp - 8], eax
movzx eax, word [edi + 4]
mov esi, ebx
call fcn.00478f1b
xor esi, esi
cmp dword [ebx + 0x48], esi
jne 0x478637
push dword [ebp + 8]
call fcn.0043ace0
pop ecx
shl al, 5
lea ecx, [ebx + 0x85]
xor al, byte [ecx]
mov esi, ebx
and al, 0x20
xor byte [ecx], al
movzx eax, word [edi + 6]
push eax
call fcn.004547b6
test eax, eax
jne 0x478635
xor eax, eax
jmp 0x4786f5
xor esi, esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x47865b
push dword [ebp + 0x18]
movzx eax, word [ebp + 0x10]
push dword [ebp + 0x14]
push eax
movsx eax, word [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00458d20
jmp 0x478694
test byte [ebx + 0x85], 0x20
je 0x478680
push 0x2040
push esi
push esi
push esi
push dword [ebp + 8]
push dword [0x52164c]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 4], eax
jmp 0x478694
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea eax, [ebp - 4]
mov dword [ebp + 0xc], esp
push eax
call fcn.00405a09
cmp dword [ebp - 4], esi
je 0x4786eb
push dword [ebx + 0xa0]
push dword [ebp - 4]
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
je 0x4786eb
mov eax, dword [ebp - 8]
cmp eax, esi
jle 0x4786d4
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
cmp word [edi], si
je 0x4786cd
push edi
lea esi, [ebx + 0x4c]
call fcn.0040cf3b
xor esi, esi
inc edi
inc edi
dec dword [ebp + 0xc]
jne 0x4786bd
push dword [ebx + 0x48]
mov esi, dword [ebx + 0x50]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, esi
je 0x4786e8
xor esi, esi
jmp 0x4786eb
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.004059f0
mov eax, esi
pop edi
pop esi
leave
ret 0x14
Function at 0x47aa91
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x517ad4]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push 0x2001f
push eax
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 0x78], eax
xor esi, esi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
call fcn.0040124f
mov edi, eax
cmp edi, esi
je 0x47aae7
cmp dword [ebp - 0x6c], esi
je 0x47aae3
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x47ab4e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x47ab02
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0047aa91
cmp eax, esi
mov dword [ebp - 0x74], eax
jne 0x47ab68
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x100
call edi
test eax, eax
je 0x47aaef
cmp dword [ebp - 0x6c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47ab35
push dword [ebp - 0x6c]
call edi
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x6c], esi
mov ebx, eax
je 0x47ab4c
push dword [ebp - 0x6c]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x19c
leave
ret 4
cmp dword [ebp - 0x6c], esi
je 0x47ab76
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x47ab4e
Function at 0x47acaa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 0x1002c
lea ebp, [esp - 0xffac]
call fcn.004ebd80
mov ecx, dword [ebp + 0xffb8]
mov eax, dword [0x517ad4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push edi
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
xor eax, ebp
lea ecx, [ebp - 0x58]
push ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp + 0x7fa8]
push ecx
mov dword [ebp + 0xffa8], eax
mov eax, dword [ebp + 0xffb4]
push edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], edi
mov esi, 0x8000
push eax
jmp 0x47ada7
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
lea eax, [ebp + 0x7fa8]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47adb7
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push 0x20006
push edi
lea eax, [ebp - 0x58]
push eax
push edi
lea eax, [ebp + 0x7fa8]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47ae30
push dword [ebp - 0x68]
push dword [ebp - 0x74]
call fcn.0047acaa
pop ecx
pop ecx
push dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c], edi
je 0x47ae39
inc dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x7fa8]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call ebx
test eax, eax
je 0x47ad0d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xbfa8]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], edi
push edi
jmp 0x47ae18
push dword [ebp - 0x60]
lea eax, [ebp + 0xbfa8]
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x58]
push edi
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x47ae2b
inc dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xbfa8]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x6c]
mov dword [ebp - 0x60], 0x4000
mov dword [ebp - 0x64], esi
call ebx
test eax, eax
je 0x47addb
xor eax, eax
inc eax
jmp 0x47ae3b
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0xffa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0xffac
leave
ret
Function at 0x47b1b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x517ad4]
and word [ebp - 0x60], 0
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x7a0], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
lea eax, [ebp - 0x60]
push eax
lea esi, [ebx + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x68], eax
call edi
push 0x420
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x78]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [esi]
call edi
push eax
push ebx
push 0xfffffffffffffff0
push dword [esi]
call edi
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x78]
call fcn.00403dd0
lea esi, [ebp - 0x68]
call fcn.0043acf5
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x7a4
leave
ret
Function at 0x47b4cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x52164c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
push 0x412b7c
push eax
mov esi, 0xf0
push esi
xor edi, edi
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 8], 0x804
jne 0x47b518
mov dword [ebp - 4], 0x3a8
jmp 0x47b527
cmp word [ebp - 8], 0x404
jne 0x47b527
mov dword [ebp - 4], 0x3b6
movzx eax, word [ebp + 0xc]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x47b547
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x47b54e
xor eax, eax
jmp 0x47b62a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x47b61e
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov ax, word [ebx]
cmp ax, di
mov dword [ebp - 0xc], eax
je 0x47b61e
inc ebx
inc ebx
mov ax, word [ebx]
inc ebx
inc ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ax, 0x180
mov dword [ebp - 0x14], ecx
je 0x47b5d3
cmp ax, 0x401
je 0x47b5d3
cmp ax, 0x143
je 0x47b59d
cmp ax, 0x403
jne 0x47b615
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x143
jmp 0x47b607
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x180
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add ebx, dword [ebp - 0x14]
jne 0x47b565
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47fdde
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [esi + 0x23c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x47fee6
lea eax, [ebx + ebx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
cmp esp, edi
mov dword [ebp - 4], esp
je 0x47fee6
inc ebx
push ebx
push dword [ebp - 4]
push dword [esi + 0x23c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 4]
call fcn.00403fa2
test eax, eax
je 0x47fee6
push edi
push edi
push 0x184
push dword [esi + 0x240]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
call fcn.0047fa09
mov ebx, dword [sym.imp.SHELL32.dll_ExtractIconExW]
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jle 0x47feac
lea ecx, [esi + 0x20]
or eax, 0xffffffff
call fcn.0045d5c6
mov eax, dword [esi + 0x20]
push edi
push 0
push eax
push 0
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x47fe8c
and word [esi + 0x34], ax
jmp 0x47feac
or eax, 0xffffffff
lea ecx, [esi + 0x20]
call fcn.0045d5c6
push 0x104
push dword [ebp - 4]
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push edi
lea edi, [esi + 0x240]
mov eax, edi
call fcn.0048d5ef
push dword [esi + 0x30]
mov eax, edi
call fcn.00451d96
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0x30]
push 0x10428
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop ebx
leave
ret