joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461259
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4f30b4
call fcn.004eadec
sub esp, 0x26c
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 0x14]
mov eax, edi
mov dword [ebx + 0x2c], 1
call fcn.00403266
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push dword [ebp + 8]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
je 0x46146f
push str..ttbl
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4612cf
push eax
push dword [ebp + 8]
push ebx
call fcn.004620b0
jmp 0x461471
push str..m3u
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4612e9
push eax
jmp 0x461305
push str..m3u8
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x46131e
push 0xfde9
push ebx
mov ebx, dword [ebp + 8]
call fcn.0046334c
jmp 0x461471
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x461364
and word [eax + 2], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebx + 0x10]
lea esi, [ebp - 0x220]
call fcn.0040318a
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 2
call fcn.004b411c
push 0
mov ecx, ebx
lea eax, [ebp - 0x278]
call fcn.00460b6a
mov edi, dword [edi]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x224]
push 0
push eax
mov eax, edi
call fcn.00401754
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x250]
call fcn.004b4130
test al, al
mov eax, dword [ebp - 0x224]
sete byte [ebp + 0xb]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4613e7
push eax
call fcn.004013aa
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.0046148a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0x4f7200
call fcn.004b3b85
cmp byte [ebp + 0xb], 0
mov eax, dword [ebp - 0x220]
jne 0x46145e
cmp dword [eax - 8], 0
je 0x46142f
lea edi, [ebp - 0x220]
lea eax, [ebx + 0x10]
call fcn.00403223
mov esi, ebx
call fcn.0045d5f6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46144d
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x461471
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46146f
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004eae3c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46334c
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4f2933
call fcn.004eadec
sub esp, 0x24c
test ebx, ebx
mov eax, dword [0x516ad4]
mov dword [ebp - 0x10], eax
je 0x463493
cmp word [ebx], 0
je 0x463493
and dword [ebp - 0x21c], 0
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, dword [ebp + 8]
push dword [ebp - 0x21c]
add esi, 0x10
mov eax, esi
call fcn.00403266
push 0x2e
call fcn.004032d3
cmp eax, 0xffffffff
je 0x4633e6
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.0040f41f
mov edi, eax
mov eax, esi
call fcn.00403223
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4633e6
push eax
call fcn.004013aa
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
je 0x463414
mov word [eax + 2], di
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x258]
call fcn.00413cf7
push 0x80
push 3
push 1
push SysReAllocStringLen
push ebx
lea eax, [ebp - 0x258]
mov dword [ebp - 4], edi
call fcn.00413d2f
test eax, eax
je 0x46347b
cmp dword [ebp - 0x22c], edi
je 0x463450
mov eax, dword [ebp - 0x230]
jmp 0x46345b
lea esi, [ebp - 0x258]
call fcn.00413b7e
cmp dword [ebp - 0x22c], edi
je 0x46347b
cmp eax, edi
je 0x46347b
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.00463dcd
mov edi, eax
lea esi, [ebp - 0x258]
call fcn.00413db9
mov eax, esi
call fcn.00413b4c
mov eax, edi
pop edi
pop esi
jmp 0x463495
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004eae3c
leave
ret 8
Function at 0x468f20
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4ef58f
call fcn.004eadec
sub esp, 0x2cc
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
push 0x4001
push 0x2b4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c4]
push eax
xor esi, esi
push esi
push 0x4f7548
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp + 8]
push eax
push 1
add edi, 4
push 0x1003
push dword [edi]
mov dword [ebp - 0x2c8], edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2000140
xor eax, eax
xor ecx, ecx
call fcn.00403f0e
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], esi
push 0x7c
push 5
lea eax, [ebp - 0x2d8]
push eax
push 0x815c
mov dword [ebp - 4], esi
call fcn.004ae899
add esp, 0x10
cmp dword [ebp - 0x2d4], esi
jbe 0x46903e
mov edi, dword [ebp - 0x2d8]
or ebx, 0xffffffff
push ebx
push esi
push dword [edi]
push esi
push dword [ebp - 0x2c8]
push 0x78
pop edx
call fcn.004061c9
cmp dword [ebp - 0x2d4], 1
jbe 0x46903e
push ebx
push esi
push dword [edi + 4]
push 1
push dword [ebp - 0x2c8]
push 0x64
pop edx
call fcn.004061c9
cmp dword [ebp - 0x2d4], 2
jbe 0x46903e
push ebx
push esi
push dword [edi + 8]
push 2
push dword [ebp - 0x2c8]
push 0x78
pop edx
call fcn.004061c9
cmp dword [ebp - 0x2d4], 3
jbe 0x46903e
push ebx
push esi
push dword [edi + 0xc]
push 3
push dword [ebp - 0x2c8]
push 0x32
pop edx
call fcn.004061c9
cmp dword [ebp - 0x2d4], 4
ja 0x469048
push 0x80070057
call fcn.004010ca
push ebx
push 0
push dword [edi + 0x10]
mov edi, dword [ebp - 0x2c8]
push 4
push edi
xor esi, esi
mov edx, 0x12c
call fcn.004061c9
mov esi, dword [ebp + 8]
push 0
push 0
push 0x101f
push dword [edi]
add esi, 0x48
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi], eax
push 4
xor eax, eax
xor ecx, ecx
mov edi, esi
call fcn.00403f0e
lea esi, [ebp - 0x2d8]
call fcn.0045d5de
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004eae3c
leave
ret 4
Function at 0x469ef0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ed4f2
call fcn.004eadec
sub esp, 0x220
mov eax, dword [0x516ad4]
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
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 0x469f40
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x469f39
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x46a0a4
push ebx
push esi
mov esi, dword [ebp + 8]
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 0x4f7364
lea edi, [ebp - 0x22c]
call fcn.004031b3
push 0x43
pop eax
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
mov dword [ebp - 0x228], eax
lea ebx, [ebp - 0x22c]
call fcn.004036a5
mov edi, dword [ebp - 0x22c]
mov ax, word [ebp + 8]
push edi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x46a044
mov eax, dword [ebp - 0x21c]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x224]
push edx
push ebx
push edi
push ebx
push ebx
mov dword [ebp - 0x224], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x46a044
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 - 0x224]
call fcn.0049eeb8
push ebx
push dword [ebp - 0x224]
xor ecx, ecx
inc ecx
call fcn.0049ef1c
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call fcn.0040623e
push dword [ebp - 0x228]
inc dword [ebp - 0x220]
push eax
push esi
call fcn.00423ff4
push dword [ebp - 0x224]
call dword [0x5215d0]
mov edi, dword [ebp - 0x22c]
inc dword [ebp + 8]
inc dword [ebp - 0x228]
cmp word [ebp + 8], 0x5a
jbe 0x469f7a
push 0xfffffffffffffffe
xor ebx, ebx
push ebx
push esi
call fcn.0041a9ba
push ebx
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push esi
call fcn.0041aa0a
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x46a088
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
pop esi
cmp eax, ebx
pop ebx
je 0x46a09e
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
call fcn.004eae3c
leave
ret 4
Function at 0x46a533
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x516ad4]
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.004af3be
push 0x4001
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
mov edi, 0x4f7548
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.004061c9
push ebp
call fcn.00469ef0
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
call fcn.004eae3c
add esp, 0x2b8
ret 4
Function at 0x46e01e
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4ed5e7
call fcn.004eadec
sub esp, 0x2c0
mov eax, dword [0x516ad4]
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 0x46e070
mov edi, dword [esi + 0x90]
test edi, edi
je 0x46e05f
lea eax, [ebx + 0x7f58]
push eax
call fcn.00477065
push 0x400
push ebx
push dword [ebp + 8]
call fcn.0043870c
add esp, 0xc
dec ebx
cmp ebx, 2
jge 0x46e049
lea ecx, [esi + 0x240]
or eax, 0xffffffff
xor edi, edi
call fcn.00479745
push 0x4001
mov ebx, 0x2b4
push ebx
lea eax, [ebp - 0x2c4]
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4f7548
call edi
cmp dword [esi + 0x90], 0
mov dword [ebp - 0x2cc], eax
je 0x46e13e
lea eax, [ebp - 0x2c8]
push eax
call fcn.004af02f
mov dword [esp], 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 [0x51a43c]
je 0x46e0f1
push eax
call fcn.004013aa
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 0x46e13e
mov edi, dword [esi + 0x90]
mov ebx, 0x7f58
push ebx
call fcn.00477065
mov eax, dword [esi + 0x90]
push ebx
push dword [ebp - 0x2c8]
call fcn.00478167
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.0046e1a0
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.0046e1a0
mov ecx, dword [ebp - 0xc]
add eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004eae3c
leave
ret 4
Function at 0x471235
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4f2bee
call fcn.004eadec
sub esp, 0xc
mov eax, dword [ebp + 8]
call fcn.0046c5d6
cmp eax, 0xffffffff
je 0x4712dc
push esi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 8]
call fcn.0046c7d5
cmp dword [ebp + 8], 0
je 0x4712db
mov eax, dword [0x51a438]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
call fcn.00404868
push dword [eax]
lea eax, [ebp - 0x10]
push str._e__select___s_
push eax
call fcn.004060d6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
add esp, 0xc
cmp eax, dword [0x51a43c]
je 0x4712a0
push eax
call fcn.004013aa
mov esi, dword [ebp - 0x10]
push 1
push 0
push esi
push str.explorer.exe
push 0x4fa5a0
push dword [0x522248]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4712cf
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
call fcn.00404842
pop esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret 4

Function at 0x471f2b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4eeebd
call fcn.004eadec
sub esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004af02f
mov dword [esp], str.Internet_Exploreriexplore.exe
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004033e6
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x471f6a
push eax
call fcn.004013aa
mov eax, dword [0x51a438]
mov dword [ebp - 0x10], eax
push 0x8298
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004017db
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_lrcsearch.html
push eax
call fcn.004060d6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
add esp, 0x10
cmp eax, dword [0x51a43c]
je 0x471faa
push eax
call fcn.004013aa
push esi
mov esi, dword [ebp - 0x10]
push edi
mov edi, dword [ebp - 0x18]
push 1
push 0
push esi
push edi
push 0x4fa5a0
push dword [0x522248]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004af112
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x471fdf
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
pop edi
pop esi
je 0x471ff2
push eax
call fcn.004013aa
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret
Function at 0x475396
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov si, word [eax + 0xc]
cmp si, 0x2e
push edi
mov edi, ecx
jne 0x4753bb
push 0
push 0x7f13
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4753e4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
and ax, 0xfffe
je 0x4753e4
or esi, 0x20
cmp si, 0x61
jne 0x4753e4
push 0xb
push 2
push 0xffffffffffffffff
add edi, 0x504
push edi
call fcn.0041a93a
pop edi
xor eax, eax
pop esi
ret
Function at 0x477e47
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 0x477eb5
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.0041b455
test eax, eax
je 0x477eaa
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.00403334
cmp dword [ebp - 8], edi
jge 0x477eda
and dword [ebp - 4], 0
jmp 0x477eca
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 0x477f18
push dword [ebp + 0xc]
lea esi, [ebx + 0x20]
push dword [ebp + 8]
call fcn.00457b5f
jmp 0x477f18
cmp dword [ebp + 0x10], 0
je 0x477f18
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov esi, dword [ebp + 0x14]
cmp edx, esi
jle 0x477f18
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.0043b102
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x47a0cd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 0x1a0]
mov ebx, ecx
push dword [ebx]
mov dword [ebp + 0x194], eax
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.00401247
mov edi, eax
cmp edi, esi
je 0x47a11d
cmp dword [ebp - 0x70], esi
je 0x47a119
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x47a187
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x47a138
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0047a0cd
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x47a19f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x47a125
cmp dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47a16b
push dword [ebp - 0x70]
call edi
mov dword [ebp - 0x70], esi
push dword [ebp + 0x1a0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x70], esi
mov ebx, eax
je 0x47a185
push dword [ebp - 0x70]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x198
leave
ret 4
cmp dword [ebp - 0x70], esi
je 0x47a1ad
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x47a187
Function at 0x47a806
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 0x10024
lea ebp, [esp - 0xffa4]
call fcn.004eae50
mov eax, dword [0x516ad4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push edi
mov dword [ebp + 0xffa0], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x7fa0]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x6c], edi
mov esi, 0x8000
push edi
jmp 0x47a8ee
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xffac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a904
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push 0x20006
push edi
lea eax, [ebp + 0x7fa0]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xffb0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47a98c
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.0047a806
pop ecx
pop ecx
push dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], edi
je 0x47a998
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x7fa0]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
push dword [ebp + 0xffac]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call ebx
test eax, eax
je 0x47a854
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3fa0]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x7fa0]
push eax
mov dword [ebp - 0x64], edi
push edi
jmp 0x47a971
push dword [ebp - 0x68]
lea eax, [ebp + 0x3fa0]
push eax
push dword [ebp - 0x70]
lea eax, [ebp + 0x7fa0]
push edi
push eax
push dword [ebp + 0xffb0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x47a987
inc dword [ebp - 0x64]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3fa0]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x7fa0]
push eax
push dword [ebp - 0x64]
push dword [ebp + 0xffac]
mov dword [ebp - 0x68], 0x4000
mov dword [ebp - 0x6c], esi
call ebx
test eax, eax
je 0x47a92b
xor eax, eax
inc eax
jmp 0x47a99a
push dword [ebp + 0xffac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0xffa0]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0xffa4
leave
ret
Function at 0x47ad07
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov dword [ebp + 0x79c], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x64], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x62]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0x7a8]
push 0x400
lea eax, [ebp - 0x64]
push eax
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp + 0x7a8], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x6c], eax
call edi
push 0x420
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x7a8]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi]
call edi
push 0xffffffffffffffec
push dword [esi]
mov dword [ebp + 0x7a8], eax
call edi
push eax
push ebx
push dword [ebp + 0x7a8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x7c]
call fcn.00403ebb
lea esi, [ebp - 0x6c]
call fcn.004111d4
mov ecx, dword [ebp + 0x79c]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x7a0
leave
ret 4
Function at 0x47fa66
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 0x47fb6e
lea eax, [ebx + ebx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.004eae50
cmp esp, edi
mov dword [ebp - 4], esp
je 0x47fb6e
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.0040408d
test eax, eax
je 0x47fb6e
push edi
push edi
push 0x184
push dword [esi + 0x240]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
call fcn.0047f69b
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 0x47fb34
lea ecx, [esi + 0x20]
or eax, 0xffffffff
call fcn.0045db50
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 0x47fb14
and word [esi + 0x34], ax
jmp 0x47fb34
or eax, 0xffffffff
lea ecx, [esi + 0x20]
call fcn.0045db50
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.0048d0e4
push dword [esi + 0x30]
mov eax, edi
call fcn.004522e0
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