joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f136
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4b8d54]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.0043de6c
push 0x415244
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0043dea1
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x43f1b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43f1ee
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0043ee23
mov edi, eax
jmp 0x43f1ee
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0043f021
mov ebx, eax
test ebx, ebx
jns 0x43f1e0
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0043ee04
mov edi, ebx
jmp 0x43f1ee
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x43f1f8
push esi
call fcn.0043ee7b
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a79c0
mov esp, ebp
pop ebp
ret 8
Function at 0x45508f
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x4aab7c
call fcn.004a7f93
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call dword [0x4bb398]
mov byte [ebp - 4], 1
cmp dword [edi + 0xf0], esi
jne 0x4550c7
mov esi, 0x80070057
jmp 0x4551bc
lea eax, [ebx + 0xd4]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 8], esi
jne 0x4550ed
mov esi, 0x80004001
jmp 0x4551b3
mov eax, dword [edi + 0xb8]
lea edx, [ebp - 0x2c]
add eax, 0x5c
lea ecx, [ebp - 0x14]
push eax
call fcn.00451909
mov esi, eax
test esi, esi
jne 0x4551b3
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call dword [0x4bb3a0]
push dword [ebp - 0x14]
call sub.msvcrt.dll_free
pop ecx
lea eax, [ebp - 0x28]
push eax
push 0x12
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
mov esi, eax
test esi, esi
jne 0x4551b3
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004541e1
mov edx, eax
mov ecx, ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00454220
test edx, edx
jne 0x45515b
test eax, eax
jne 0x45515b
lea eax, [ebp - 0x18]
jmp 0x45515d
xor eax, eax
mov ecx, dword [edi + 0xb8]
mov edx, dword [edi + 0xf4]
push eax
push dword [ebp - 0x28]
mov ecx, dword [ecx + 0x60]
push 1
call fcn.00489ccc
xor edx, edx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00448c7a
mov eax, dword [ebp - 0x24]
cmp dword [eax - 8], 0
je 0x455193
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x4551b3
test byte [0x4ba140], 4
je 0x4551b1
lea eax, [ebp - 0x20]
mov edx, 0x415558
push eax
push 1
push ecx
call fcn.0044774b
xor esi, esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x28]
call fcn.0044620b
mov eax, esi
call fcn.004a7f42
ret 4
Function at 0x466063
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4b8d54]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push edx
call dword [sym.imp.MFC42u.dll_CDataExchange::PrepareEditCtrl]
cmp dword [ebx], 0
mov edi, eax
je 0x4660f5
push 0x40
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x8c], 0
je 0x4660ed
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.00479494
test eax, eax
jne 0x4660cd
push 0xffffffffffffffff
push 0x40
push 0x67
call dword [sym.imp.MFC42u.dll_AfxMessageBox]
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CDataExchange::Fail]
push ecx
push dword [esi]
lea eax, [ebp - 0x8c]
push 0x40
push eax
call fcn.00479589
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.00479494
jmp 0x46611c
mov dword [esi], SysReAllocString
jmp 0x46611c
cmp dword [esi], 0x7fffffff
je 0x46611c
push ecx
push dword [esi]
lea eax, [ebp - 0x8c]
push 0x40
push eax
call fcn.00479589
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a79c0
leave
ret 4

Function at 0x4665de
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b8d54]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4ba884], 0
jne 0x4666bc
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, ebx
mov esi, 0x4b957c
cmp dword [esi - 4], ebx
jne 0x4666a0
cmp dword [esi], ebx
je 0x4666a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x466682
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x466682
xor ecx, ecx
mov edx, 0x104
mov word [eax], cx
lea ecx, [ebp - 0x20c]
push dword [esi]
call fcn.0043dea1
movzx edi, ax
test edi, edi
jne 0x46669e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
and edi, 0x10
test edi, edi
jne 0x46669e
mov edx, dword [esi + 4]
lea eax, [ebp - 0x20c]
mov ecx, dword [esi]
push eax
call fcn.0043de6c
movzx edi, ax
test edi, edi
je 0x4666a0
mov dword [esi], ebx
add esi, 0x30
cmp esi, 0x4b984c
jl 0x466621
pop edi
pop esi
mov dword [0x4ba884], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79c0
leave
ret
Function at 0x47acd0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 8], esi
push edi
test ecx, ecx
je 0x47ad40
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47ad40
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47ad35
cmp dword [ebp - 8], 2
jne 0x47ad35
mov eax, 0xfeff
cmp word [ebp - 4], ax
je 0x47ad32
mov eax, 0xfffe
cmp word [ebp - 4], ax
jne 0x47ad35
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x47ad42
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x47dfaa
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4b8d54]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
push edi
push edi
push 0xffffffffffffffff
push eax
mov esi, ecx
mov ebx, edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00439e87
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x434
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x10], ebx
jbe 0x47e0ac
push 0x104
lea eax, [esp + 0x2c]
push eax
push edi
push dword [esp + 0x28]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x47e0a1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x437
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 1
call fcn.0048028b
test eax, eax
je 0x47e07d
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x30]
mov ecx, esi
push 0
push 1
push eax
call fcn.0043a050
jmp 0x47e081
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], 1
jne 0x47e091
xor ebx, ebx
test eax, eax
sete bl
jmp 0x47e0a1
test eax, eax
je 0x47e0a1
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0043b7ce
inc edi
cmp edi, dword [esp + 0x10]
jb 0x47e00e
lea eax, [esp + 0x14]
push eax
push 0
push 0x437
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x23c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a79c0
mov esp, ebp
pop ebp
ret 4
Function at 0x48b0b2
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 4], edi
push 0xc
mov esi, edx
mov ecx, edx
mov ebx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
movzx eax, word [ebx + 4]
mov dword [ebp - 0xc], eax
pop ebx
test eax, eax
je 0x48b129
mov eax, dword [edi + 0x18]
mov edi, dword [ebp + 8]
cmp dword [eax], edi
mov edi, dword [ebp - 4]
jne 0x48b121
cmp dword [ebp + 0xc], edx
je 0x48b110
cmp dword [edi + 0x20], edx
je 0x48b110
test byte [eax + 4], 1
jne 0x48b121
imul esi, ecx, 0xc
lea edi, [ebp - 0x20]
add esi, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x48b133
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
test byte [eax + 4], 1
jne 0x48b129
inc ecx
add eax, ebx
cmp ecx, dword [ebp - 0xc]
jb 0x48b0e8
mov eax, edx
test esi, esi
je 0x48b1f4
cmp dword [ebp + 0xc], edx
je 0x48b140
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], edx
jne 0x48b143
push 8
pop ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + eax]
test al, 4
je 0x48b156
and ecx, 0xffffcfff
test al, 2
je 0x48b160
and ecx, 0xfffff3ff
test al, 1
je 0x48b16a
and ecx, 0xfffffcff
test al, 8
je 0x48b179
and ecx, 0xc0ffffff
mov dword [ebp - 0xc], edx
jmp 0x48b17f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], edx
je 0x48b1f2
mov ebx, ecx
mov edi, ecx
shr ebx, 0xc
mov esi, ecx
shr edi, 0xa
mov eax, ebx
shr esi, 8
or eax, edi
or eax, esi
test al, 3
jne 0x48b1aa
test ecx, 0x3f000000
jne 0x48b1aa
test cl, 2
je 0x48b1f2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, ecx
mov edx, dword [ebp - 8]
shr eax, 0x1e
mov dword [edx + 8], eax
mov eax, ecx
shr eax, 0x18
and al, 0x3f
shr ecx, 1
mov byte [edx + 4], al
and ecx, 1
mov eax, edx
mov dword [eax + 0x14], ecx
and ebx, 3
je 0x48b1db
mov dword [eax], ebx
jmp 0x48b1eb
and edi, 3
je 0x48b1e4
mov dword [eax], edi
jmp 0x48b1eb
and esi, 3
je 0x48b1eb
mov dword [eax], esi
xor eax, eax
inc eax
xor edx, edx
jmp 0x48b1f4
mov eax, edx
mov edi, dword [ebp - 0x10]
mov esi, edx
mov ecx, dword [ebp - 4]
movzx edi, word [edi + 6]
mov ecx, dword [ecx + 0x1c]
test edi, edi
je 0x48b21b
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x48b218
inc esi
add ecx, 0x10
cmp esi, edi
jb 0x48b20a
jmp 0x48b21b
xor edx, edx
inc edx
mov ecx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x10], edx
leave
ret 8
Function at 0x48dd9d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, ecx
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
test esi, esi
js 0x48de1d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48dde6
xor esi, esi
inc esi
jmp 0x48de1d
push 4
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push str.Compatibility_Flags
push dword [ebp - 4]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48de1d
cmp dword [ebp - 0xc], ebx
jne 0x48de1d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
cmp dword [ebp - 4], 0
je 0x48de2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x48de3b
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x48de44
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4b8d54]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x444], edx
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x214]
xor ebx, ebx
mov dword [ebp - 0x434], edi
push 0x42fba0
mov edx, 0x104
mov dword [ebp - 0x430], edi
inc ebx
call fcn.0043de6c
test eax, eax
js 0x48e06d
push 0x419cc4
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.0043dea1
test eax, eax
js 0x48e06d
push str.KillbitList
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.0043dea1
test eax, eax
js 0x48e06d
lea eax, [ebp - 0x434]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x214]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e043
mov ecx, dword [ebp - 0x434]
lea eax, [ebp - 0x438]
push eax
mov edx, esi
call fcn.0048dd9d
test eax, eax
js 0x48e043
test dword [ebp - 0x438], 0x400
jne 0x48df22
mov ebx, edi
jmp 0x48e043
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x48e043
mov dword [ebp - 0x43c], edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x440], 0x4e
mov esi, 0x104
lea ecx, [ebp - 0x41c]
push eax
mov edx, esi
call fcn.0043de6c
test eax, eax
js 0x48e043
push 0x419cc4
mov edx, esi
lea ecx, [ebp - 0x41c]
call fcn.0043dea1
test eax, eax
js 0x48e043
push dword [ebp - 0x430]
mov edx, esi
lea ecx, [ebp - 0x41c]
call fcn.0043dea1
test eax, eax
js 0x48e043
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x41c]
push edi
push 0x20000002
push 0x430d68
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x48e043
mov esi, 0x414f1c
lea edi, [ebp - 0x42c]
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x430]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x48e043
mov ecx, dword [ebp - 0x434]
lea eax, [ebp - 0x438]
push eax
lea edx, [ebp - 0x42c]
call fcn.0048dd9d
test eax, eax
js 0x48e01a
test dword [ebp - 0x438], 0x400
je 0x48e033
mov esi, dword [ebp - 0x43c]
inc esi
mov dword [ebp - 0x43c], esi
cmp esi, 0xa
jge 0x48e043
xor edi, edi
jmp 0x48df3e
mov edi, dword [ebp - 0x444]
lea esi, [ebp - 0x42c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x434], 0
je 0x48e058
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x430], 0
je 0x48e06d
push dword [ebp - 0x430]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 8]
invalid
Function at 0x48e157
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b8d54]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], edx
push eax
push 0x20019
xor edi, edi
xor ebx, ebx
push edi
push 0x430d88
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x228], edi
inc ebx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e321
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
push eax
mov edx, esi
call fcn.0048dd9d
test eax, eax
js 0x48e321
test dword [ebp - 0x230], 0x400
jne 0x48e1dc
mov ebx, edi
jmp 0x48e321
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x48e321
mov ebx, edi
push 0x1d
pop ecx
mov esi, 0x430d88
lea edi, [ebp - 0x214]
rep movsd dword es:[edi], dword [esi]
push 0x192
lea eax, [ebp - 0x19e]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x234], 0x4e
mov esi, 0x104
lea ecx, [ebp - 0x214]
mov edx, esi
push 0x419cc4
call fcn.0043dea1
test eax, eax
js 0x48e31e
push dword [ebp - 0x228]
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0043dea1
test eax, eax
js 0x48e31e
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x214]
push 0
push 0x20000002
push 0x430d68
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x48e31e
mov esi, 0x414f1c
lea edi, [ebp - 0x224]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x48e31e
mov edi, dword [ebp - 0x238]
mov edx, edi
push ecx
lea ecx, [ebp - 0x224]
call fcn.0048de44
test eax, eax
jne 0x48e31e
lea ecx, [ebp - 0x224]
call fcn.0048e080
test eax, eax
jne 0x48e314
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x224]
call fcn.0048dd9d
test eax, eax
js 0x48e308
test dword [ebp - 0x230], 0x400
je 0x48e314
inc ebx
cmp ebx, 0xa
jl 0x48e1f4
jmp 0x48e31e
lea esi, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x22c], 0
je 0x48e336
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 0
je 0x48e34b
push dword [ebp - 0x228]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a79c0
leave
ret 4
Function at 0x48e437
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
xor esi, esi
push 0x20019
push esi
push 0x42fba0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e4a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x42fe40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e49c
cmp dword [ebp - 8], 4
jne 0x48e49c
cmp dword [ebp - 0xc], 1
jne 0x48e49c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4913a4
Capabilities:
Set registry value

Disassembly:
push 0x28
mov eax, 0x4ad150
call fcn.004a7f60
mov edi, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x415fa8
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ebx, 0x80004005
test edi, edi
je 0x491496
sub esp, 0x10
lea ecx, [ebp - 0x18]
mov edi, esp
mov esi, 0x430fb4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049170b
test eax, eax
js 0x491493
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
mov esi, dword [edi]
push eax
push eax
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
push 0xd
pop eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4bc1e4]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x34]
push ecx
sub esp, 0x10
mov edi, esp
mov eax, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 0xe8]
mov ecx, edi
mov esi, dword [ebp - 0x18]
push esi
call dword [0x4bc1e4]
call edi
test eax, eax
jne 0x491489
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov eax, dword [esi]
push ecx
push esi
mov edi, dword [eax + 0x88]
mov ecx, edi
call dword [0x4bc1e4]
call edi
lea ecx, [ebp - 0x34]
call fcn.004922e0
jmp 0x491496
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x430f58
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x491510
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov edi, dword [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4914c9
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push ebx
push 0x430f68
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4914fd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, edi
je 0x491510
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 3
test esi, esi
je 0x491534
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4bc1e4]
call esi
mov eax, ebx
call fcn.004a7f2e
ret
Function at 0x492255
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x430f68
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4922c2
cmp dword [ebp - 4], 1
je 0x492297
cmp dword [ebp - 4], 2
jne 0x4922b2
mov ecx, dword [ebp - 8]
test esi, esi
je 0x4922bc
test ecx, ecx
je 0x4922b7
test cl, 1
jne 0x4922b2
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4922bc
push 0xd
pop eax
jmp 0x4922c2
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc