joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f787
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x4d6df4
call fcn.004bed19
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
xor esi, esi
push 0x52756c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.0040f54b
test eax, eax
jne 0x48f7ca
xor edi, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, edi
call fcn.004bed9c
ret
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea edi, [ebp - 0x224]
push ebx
call fcn.00416053
mov edi, eax
cmp edi, esi
je 0x48f7ff
lea ecx, [ebp - 0x224]
call fcn.0041608f
jmp 0x48f7b7
xor eax, eax
lea edi, [ebp - 0x234]
push 0x206
mov dword [ebp - 0x238], esi
stosd dword es:[edi], eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x228], 0x100
call fcn.004be850
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call edi
test eax, eax
jne 0x48f906
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004024df
push 0x52756c
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040f54b
mov ebx, eax
neg ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x230]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004027b0
test bl, bl
jne 0x48f900
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.004024df
push dword [ebp - 0x224]
call fcn.0048f787
add esp, 0xc
cmp eax, esi
jne 0x48f900
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x100
call edi
test eax, eax
je 0x48f863
mov ebx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.0041608f
call fcn.0047380a
test al, al
je 0x48f96c
test byte [0x587c68], 1
jne 0x48f946
or dword [0x587c68], 1
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x587c64], eax
mov eax, dword [0x587c64]
cmp eax, esi
je 0x48f95b
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call eax
jmp 0x48f965
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x48f7f2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x48f7f2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x48f965
Function at 0x48fd8c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x4d6dae
call fcn.004bed19
and dword [ebp - 4], 0
and dword [ebp - 0x278], 0
mov edi, ecx
mov dword [ebp - 0x274], edi
call fcn.00499991
push eax
lea ecx, [ebp - 0x26c]
call fcn.004727f7
xor esi, esi
inc esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00402792
mov dword [ebp - 0x278], esi
call fcn.00499991
push eax
lea ecx, [ebp - 0x264]
call fcn.004727f7
and dword [ebp - 0x268], 0
mov byte [ebp - 4], 2
call fcn.00407202
push dword [ebx + 0x24]
lea eax, [ebp - 0x26c]
push 0x5575a0
push eax
call fcn.00402967
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x48ff28
mov ecx, 0x5231e4
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48fe5d
test dx, dx
je 0x48fe59
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48fe5d
add eax, 4
add ecx, 4
test dx, dx
jne 0x48fe37
xor eax, eax
jmp 0x48fe62
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48fefc
mov ecx, 0x547160
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48fe9b
test dx, dx
je 0x48fe97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48fe9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x48fe75
xor eax, eax
jmp 0x48fea0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48fefc
test byte [ebp - 0x260], 0x10
jne 0x48fefc
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.004026bd
mov eax, dword [ebp - 0x264]
mov edi, dword [eax - 0xc]
push 0x5575ac
xor ecx, ecx
lea esi, [ebp - 0x264]
call fcn.004072a5
add edi, 0xfffffffd
cmp eax, edi
jne 0x48fefc
lea eax, [ebp - 0x234]
push eax
call fcn.004ba70f
cmp dword [ebp - 0x268], eax
pop ecx
jg 0x48fefc
mov dword [ebp - 0x268], eax
call fcn.00407202
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x48fe2c
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
inc eax
push eax
push dword [ebx + 0x24]
push str._s_.8d
push dword [ebp - 0x274]
call fcn.00402967
mov ecx, dword [ebp - 0x264]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x274]
call fcn.004bed9c
ret
Function at 0x491b35
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x270
mov eax, 0x4d6d4e
call fcn.004bed19
xor ebx, ebx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], ebx
call fcn.004a451b
mov byte [ebp - 4], 1
call fcn.00499991
push eax
lea ecx, [ebp - 0x268]
call fcn.004727f7
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], ebx
jle 0x491bf6
mov ecx, esi
lea eax, [ebp + 8]
call fcn.00402afd
cmp ax, 0x5c
je 0x491ba2
mov ecx, esi
lea eax, [ebp + 8]
call fcn.00402afd
movzx eax, ax
push eax
lea ecx, [ebp - 0x268]
call fcn.00445f11
jmp 0x491bca
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x27c]
call fcn.004a4959
push 0x526790
lea ecx, [ebp - 0x268]
call fcn.00415cf1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
cmp esi, eax
jne 0x491bed
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x27c]
call fcn.004a4959
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x491b77
xor esi, esi
inc esi
cmp dword [ebp - 0x274], esi
jle 0x491c44
push esi
lea ecx, [ebp - 0x27c]
call fcn.0041090f
push eax
lea ecx, [ebp - 0x268]
call fcn.0040257e
push ebx
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x491c3b
push 0x80
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, dword [ebp - 0x274]
jl 0x491c01
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x27c]
mov esi, eax
call fcn.004a459c
cmp dword [ebp - 0x264], 0x10
push esi
jne 0x491ca8
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004027b0
xor esi, esi
inc esi
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.004a47f7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
call fcn.004bed9c
ret 4
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004027b0
xor esi, esi
jmp 0x491c85
Function at 0x491cc0
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x4d688f
call fcn.004becb0
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00499991
push eax
lea ecx, [ebp - 0x10]
call fcn.004727f7
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004be850
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x70], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0xc], bl
je 0x491d15
lea eax, [ebp - 0x18]
push eax
call fcn.004580ac
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.regedit.exe__s___s_
push eax
call fcn.00402967
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00406d40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004160af
cmp edi, ebx
je 0x491d76
push 0x2328
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x14], ebx
je 0x491d84
push dword [ebp - 0x18]
call fcn.004580e2
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, edi
call fcn.004bed88
ret 8

Function at 0x491e62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x491e86
xor esi, esi
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
pop esi
ret 4
test al, 0x10
je 0x491e8f
push 2
pop esi
jmp 0x491e74
xor esi, esi
inc esi
jmp 0x491e74

Function at 0x491fa2
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x49223b
Capabilities:
Access peb ldr_data
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db967
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404bc7
call fcn.0049a417
fld qword [0x5595a0]
mov eax, dword [eax + 0xc]
push ecx
push ecx
fstp qword [esp]
push 0x1b1
push dword [esi + 0x20]
lea ecx, [esi + 0x258]
mov edx, eax
call fcn.0040b29e
push 0x523938
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.RESOURCESTRING
call fcn.004024df
and dword [esp + 0x30], 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x558100
call fcn.004024df
or dword [esp + 0x34], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.004068e2
mov dword [esp + 0x28], 1
push dword [eax]
lea ecx, [esi + 0x26c]
call fcn.0049a629
or dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
push 0x29
mov edi, 0x163
push edi
push 0x22
push 0xc
pop ebx
push ebx
push 0x169
mov ecx, esi
call fcn.00457a9e
push 0xd
push edi
push 0x4e
push ebx
push 0x17b
mov ecx, esi
call fcn.00457a9e
push 0xd
push edi
push 0x5f
push ebx
push 0x15d
mov ecx, esi
call fcn.00457a9e
push 0xd
push edi
push 0x71
push ebx
push 0x17f
mov ecx, esi
call fcn.00457a9e
push 0x14
push 0x14
push 0xd7
push 0x15e
push 0x1d4
mov ecx, esi
call fcn.00457a9e
call fcn.0049a417
mov eax, dword [eax + 0xc]
push 0xd9
lea edi, [esi + 0x2e0]
push eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x467
push dword [edi]
call ebx
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push dword [edi]
call ebx
lea edi, [esi + 0x170]
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.0049a70d
push ebx
mov ecx, edi
call fcn.0049a6cb
add esi, 0x74
push ebx
mov ecx, esi
call fcn.0049a6cb
push ebx
mov ecx, esi
call fcn.0049a70d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494ec1
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0x480
mov eax, 0x4db551
call fcn.004bed19
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48c], eax
call fcn.00499991
push eax
lea ecx, [ebp - 0x47c]
call fcn.004727f7
and dword [ebp - 4], 0
call fcn.00499991
push eax
lea ecx, [ebp - 0x488]
call fcn.004727f7
mov byte [ebp - 4], 1
call fcn.00499991
push eax
lea ecx, [ebp - 0x470]
call fcn.004727f7
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.004be850
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call fcn.00473873
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x478]
call fcn.004024df
mov byte [ebp - 4], 3
push dword [ebp - 0x478]
lea eax, [ebp - 0x47c]
push str._s.
push eax
call fcn.00402967
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
je 0x495109
mov ecx, 0x5231e4
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494fbd
test dx, dx
je 0x494fb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494fbd
add eax, 4
add ecx, 4
test dx, dx
jne 0x494f97
xor eax, eax
jmp 0x494fc2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4950e2
mov ecx, 0x547160
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494ffb
test dx, dx
je 0x494ff7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494ffb
add eax, 4
add ecx, 4
test dx, dx
jne 0x494fd5
xor eax, eax
jmp 0x495000
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4950e2
test byte [ebp - 0x46c], 0x10
jne 0x4950e2
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x470]
call fcn.004026bd
mov eax, dword [ebp - 0x470]
mov edi, dword [eax - 0xc]
push 0x5578cc
xor ecx, ecx
lea esi, [ebp - 0x470]
call fcn.004072a5
add edi, 0xfffffffd
cmp eax, edi
jne 0x4950e2
call fcn.00499991
push eax
lea ecx, [ebp - 0x474]
call fcn.004727f7
lea eax, [ebp - 0x440]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x478]
lea eax, [ebp - 0x474]
push 0x5291b8
push eax
call fcn.00402967
add esp, 0x10
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x484]
call fcn.0040228a
mov esi, dword [ebp - 0x484]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esi - 0x10]
cmp eax, 0xffffffff
jne 0x4950b1
call fcn.004027b0
jmp 0x4950d0
test al, 0x10
jne 0x4950aa
call fcn.004027b0
mov ecx, dword [ebp - 0x48c]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x474]
push edx
push eax
call fcn.004a4959
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.004027b0
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x494f8c
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x488]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
call fcn.004027b0
call fcn.004bed9c
ret 4
Function at 0x496412
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e2584
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404bc7
call fcn.0049a417
fld qword [0x5595a0]
mov eax, dword [eax + 0xc]
push ecx
push ecx
fstp qword [esp]
push 0x1ab
push dword [esi + 0x20]
lea ecx, [esi + 0x344]
mov edx, eax
call fcn.0040b29e
push 1
push 0
push 0x21
push 0x18
lea edi, [esi + 0x3ac]
push 0x18
mov ecx, edi
call fcn.004a6f79
call fcn.0049a417
push 0x1b2
call fcn.00445e19
push eax
mov eax, edi
call fcn.00445ef5
push 0xffffffffffffffff
push 0x1c2
push 0
mov ebx, 0x523938
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov edi, str.RESOURCESTRING
push edi
call fcn.004024df
and dword [esp + 0x44], 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x559088
call fcn.004024df
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x28]
push eax
call fcn.004068e2
mov dword [esp + 0x3c], 1
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x358]
push 0
call fcn.004a6b02
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
push 0xffffffffffffffff
push 0
push 0
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.004024df
push ecx
mov dword [esp + 0x48], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push str.IDS_UNDO_FILE
call fcn.004024df
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.004068e2
mov dword [esp + 0x3c], 3
push dword [eax]
lea ecx, [esi + 0x358]
push 1
call fcn.004a6b02
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
push 0
push 0
push 0x1037
push dword [esi + 0x378]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi + 0x358]
test ecx, ecx
je 0x496590
mov ecx, dword [ecx + 0x20]
or eax, 0x520
push eax
push 0
push 0x1036
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
mov dword [esp + 0x20], eax
call fcn.004024df
push ecx
mov dword [esp + 0x40], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.IDS_BTN_RESTORE
call fcn.004024df
mov eax, dword [esp + 0x20]
or dword [esp + 0x40], 0xffffffff
push eax
call fcn.004068e2
push ecx
mov ebx, esp
mov dword [esp + 0x38], 5
mov dword [esp + 0x28], esp
push 0x523938
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.004024df
push ecx
mov byte [esp + 0x44], 6
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.IDS_BTN_DELETE
call fcn.004024df
push ebx
mov byte [esp + 0x48], 5
call fcn.004068e2
or dword [esp + 0x38], 0xffffffff
lea eax, [esi + 0x358]
push eax
lea edi, [esi + 0x1dc]
lea ecx, [esi + 0x74]
call fcn.00494111
add esp, 0xc
mov ecx, esi
call fcn.00496ee2
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497dd3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4d6b89
call fcn.004becb0
mov ebx, ecx
mov esi, edx
xor edi, edi
cmp dword [ebp + 8], edi
je 0x497f7f
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 0x5593b8
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x400000
call fcn.0040f56d
push 0x5593b0
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edi
call fcn.0040210c
add esp, 0x18
lea edi, [esi + 8]
mov byte [ebp - 4], 1
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
call fcn.004a4959
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x497f7f
call fcn.00499991
push eax
lea ecx, [ebp + 8]
call fcn.004727f7
mov dword [ebp - 4], 2
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
lea ecx, [ebp + 8]
jne 0x497e98
push 0x550b00
call fcn.004026bd
jmp 0x497e9e
push ebx
call fcn.0040257e
call fcn.00499991
push eax
lea ecx, [ebp + 0xc]
call fcn.004727f7
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
dec eax
je 0x497f05
sub eax, 3
je 0x497ee1
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.0040228a
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.0049820f
add esp, 0x14
jmp 0x497f36
mov eax, dword [esi + 4]
movzx esi, byte [eax]
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
lea ebx, [ebp + 0xc]
call fcn.0040228a
push esi
mov ecx, ebx
call fcn.00497f89
pop ecx
pop ecx
jmp 0x497f36
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.0040228a
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [esi + 4]
call fcn.004024df
mov byte [ebp - 4], 3
call fcn.0049810d
add esp, 0xc
test al, al
mov eax, dword [ebp + 0xc]
je 0x497f6c
cmp dword [eax - 0xc], 0
je 0x497f6c
lea eax, [ebp + 0xc]
push eax
push dword [edi + 8]
mov ecx, edi
call fcn.004a4959
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
inc eax
jmp 0x497f81
lea ecx, [eax - 0x10]
call fcn.004027b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
call fcn.004bed88
ret 8
Function at 0x49acbb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4e865b
call fcn.004becb0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x49ace0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x49ad26
lea ecx, [ebp - 0x10]
call fcn.00402792
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004728a4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004027b0
mov eax, esi
call fcn.004bed88
ret 8

Function at 0x4a0612
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a0659
call fcn.0049a417
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a0659
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a0675
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a018a
mov esi, eax
test edi, edi
je 0x4a0673
test ebx, ebx
je 0x4a0673
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a18f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4a1917
cmp dword [edi + 0x54], 0
jne 0x4a1917
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0049a417
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a18b4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a9306
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4a934e
call fcn.0049a417
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a934e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a9391
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4a937a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4a937a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4a938e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4b96ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57b750]
jne 0x4b9709
repz ret
jmp fcn.004c213a