joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1b6d
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x488f48
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x488e8c
cmp dword [esi + 0x1c], edi
jb 0x488e7e
mov edx, dword [esi + 8]
jmp 0x488e81
lea edx, [esi + 8]
movzx eax, byte [esi]
push eax
mov ecx, ebx
call fcn.00487af0
cmp dword [esi + 0x34], 0
je 0x488ea6
cmp dword [esi + 0x38], edi
jb 0x488e9c
mov ecx, dword [esi + 0x24]
jmp 0x488e9f
lea ecx, [esi + 0x24]
mov eax, ebx
call fcn.00487730
cmp dword [esi + 0x54], 0
je 0x488ec8
cmp dword [esi + 0x58], edi
jb 0x488eb6
mov eax, dword [esi + 0x44]
jmp 0x488eb9
lea eax, [esi + 0x44]
movzx ecx, byte [esi + 0x3c]
push ecx
push eax
push 1
mov ecx, ebx
call fcn.00487a10
cmp dword [esi + 0x90], 0
je 0x488ef6
cmp dword [esi + 0x94], edi
jb 0x488ee1
mov eax, dword [esi + 0x80]
jmp 0x488ee7
lea eax, [esi + 0x80]
movzx edx, byte [esi + 0x78]
push edx
push eax
push 2
mov ecx, ebx
call fcn.00487a10
mov eax, dword [esi + 0xb4]
mov edi, dword [ebx + 0x1a4]
cmp eax, 0xffffffff
je 0x488f09
mov edi, eax
mov eax, dword [esi + 0xb8]
cmp eax, 0xffffffff
je 0x488f1b
mov ecx, ebx
call fcn.00487960
mov eax, dword [ebx + 0x1a0]
push eax
push edi
push ebx
call fcn.00487d60
push 0x417f90
push 3
push 0x3c
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00446e81
push esi
call fcn.0044556f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x488f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1bab
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0041a410
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
lea edi, [esi + 0x54]
push edi
mov dword [esi + 0x188], ebx
mov byte [esi + 0x18c], bl
mov byte [esi + 0x18d], 1
call fcn.00477d60
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CMsgBox_.0
mov dword [esi], vtable.CMsgBox.0
mov dword [esi + 0x2c], vtable.CMsgBox.1.0
mov dword [esi + 0x50], vtable.CMsgBox.2.0
mov dword [edi], vtable.CMsgBox.3.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.CMsgBox.4.0
mov dword [esi + 0x194], ebx
mov eax, 2
mov byte [ebp - 4], al
mov dword [esi + 0x198], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], eax
mov byte [esi + 0x1ac], bl
mov byte [esi + 0x1ad], bl
mov byte [esi + 0x1ae], bl
mov byte [esi + 0x1af], bl
mov dword [esi + 0x1b0], 1
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1d8], ebx
mov dword [esi + 0x1dc], ebx
mov dword [esi + 0x1e0], ebx
lea ecx, [esi + 0x1f0]
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x1e8], ebx
push ecx
mov dword [esi + 0x1ec], ebx
call fcn.00418790
mov dword [esi + 0x208], ebx
mov byte [esi + 0x20c], bl
mov byte [esi + 0x20d], bl
mov byte [esi + 0x20e], 1
mov dword [esi + 0x210], ebx
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
add eax, 0x10
mov dword [esi + 0x214], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4890d0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x489144
mov eax, dword [0x4ea738]
cmp dword [eax - 0xc], 0
je 0x489107
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x48912c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x489133
push 0
push 1
push esi
mov byte [0x4e9878], 1
call fcn.00487d60
lea edx, [esi + 0x188]
push edx
call fcn.004184c0
mov eax, dword [esi + 0x1a8]
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x30], 0
mov eax, 2
pop ecx
ret
Function at 0x489790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x4e9e80], 0
jne 0x4897d0
lea eax, [ebp - 4]
push eax
push 0x4e9e80
lea ecx, [ebp - 8]
push ecx
push 0x4b212c
push 0x4b2138
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [0x4ea088], 0
jne 0x4897f6
push 0x4e9e80
push 0x4b21c0
push 0x104
push 0x4ea088
call fcn.00410f40
add esp, 0x10
cmp word [0x4ea290], 0
jne 0x489847
mov edx, 0x104
mov eax, 0x4ea290
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x48983b
movzx ecx, word [eax - 0x410]
test cx, cx
je 0x48983b
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x489810
sub eax, 2
mov word [eax], dx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x489842
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esp, ebp
pop ebp
ret
Function at 0x48a1d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0044e180
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x48a29f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0044b7d0
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x48a29f
cmp eax, 0x1fff
ja 0x48a29f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48a28e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4b2740
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48a28e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x48a2d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x104], 0
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x48a334
test byte [ebp - 0xf2], 0x80
jne 0x48a334
push esi
push 1
push esi
push 0x12
call ebx
mov esi, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, eax
test esi, esi
je 0x48a34b
push 0
push 3
push 0
push 0x12
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x48a3b0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x48a3cb
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x48a3e5
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x48a4ba
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x48a43a
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.0048a360
add esp, 4
test eax, eax
je 0x48a4a0
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x48a480
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x48a487
push esi
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48eb90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x48ebe6
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x48ebe8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x48ec00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0044b7d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x48ec57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
push 0x4be220
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x48ec47
push 0x4be234
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x48ed40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x48edeb
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x48ed75
push eax
call fcn.00445f81
add esp, 4
push esi
call fcn.00445dc6
add esp, 4
mov dword [edi + 0x20c], eax
test eax, eax
je 0x48edeb
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48edeb
mov eax, dword [edi + 0x20c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push str.VarFileInfoTranslation
push eax
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48edeb
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x208
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48efc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0044e180
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x48f08f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0044b7d0
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x48f08f
cmp eax, 0x1fff
ja 0x48f08f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48f07e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4bd2f0
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48f07e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x48f1d0
Capabilities:
Terminate process

Disassembly:
cmp eax, 0xffffffff
jne 0x48f1d8
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x48f20d
test esi, esi
je 0x48f20d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x48f207
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
Function at 0x48f550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4e9cf8], 0
push esi
mov esi, eax
jne 0x48f6f8
push 0x4e9cfc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4e9cf8], 0
je 0x48f58a
push 0x4e9cfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push ecx
push 0x28
push 0x4e98e0
xor eax, eax
push ecx
mov dword [0x4e9ae8], 0
mov dword [0x4e9cf4], 0
mov word [0x4e98e0], ax
mov word [0x4e9aec], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48f5db
push str.:windows_
push 0x4e98e0
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x48f65d
xor edi, edi
call fcn.00475270
test al, al
jne 0x48f6ec
test esi, esi
je 0x48f6ec
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x48f64d
test eax, eax
je 0x48f64d
lea edx, [ebp - 4]
push edx
push 8
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48f64d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x4e98e0
push ecx
mov dword [ebp - 8], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x48f643
mov edi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.00434d00
test edi, edi
je 0x48f6ec
push 0x4e98e0
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x4e98e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48f670
push 0x104
sub eax, edx
push 0x4e9aec
sar eax, 1
push 0x4e98e0
mov dword [0x4e9ae8], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x48f6a4
cmp eax, 0x104
jb 0x48f6ac
xor eax, eax
mov word [0x4e9aec], ax
push 0x4e9aec
push 0x4e98e0
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x48f6c9
xor ecx, ecx
mov word [0x4e9aec], cx
mov eax, 0x4e9aec
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48f6d1
sub eax, edx
sar eax, 1
mov dword [0x4e9cf4], eax
mov byte [0x4e9cf8], 1
push 0x4e9cfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48fb20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov ecx, 0x4bc910
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0048f890
test al, al
jne 0x48fb6b
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x48fb62
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x48fb95
cmp eax, 0xffffffff
je 0x48fb95
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.Codepage
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x48fbbb
test ebx, ebx
je 0x48fbbb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push 0x4bc2f4
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
cmp dword [ebx - 0xc], 0
je 0x48fbe4
test ebx, ebx
je 0x48fbe4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x48fc0d
test ebx, ebx
je 0x48fc0d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x18]
cmp dword [ebx - 0xc], 0
je 0x48fc36
test ebx, ebx
je 0x48fc36
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x48fc5b
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ShowSearchSuggestions
push esi
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x48fc81
test ebx, ebx
je 0x48fc81
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x48fcaa
test ebx, ebx
je 0x48fcaa
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x4bc3a8
push esi
call edi
test esi, esi
je 0x48fcb5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48fcc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [edx]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
xor esi, esi
push esi
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4bc720
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0048f890
test al, al
jne 0x48fd06
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x48fcfb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x48fd30
cmp eax, 0xffffffff
je 0x48fd30
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Codepage
push esi
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x48fd56
test ebx, ebx
je 0x48fd56
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push 0x4bc2f4
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x10]
cmp dword [ebx - 0xc], 0
je 0x48fd7f
test ebx, ebx
je 0x48fd7f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x48fda8
test ebx, ebx
je 0x48fda8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x18]
cmp dword [ebx - 0xc], 0
je 0x48fdd1
test ebx, ebx
je 0x48fdd1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x48fdf6
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.ShowSearchSuggestions
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x48fe1c
test ebx, ebx
je 0x48fe1c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x48fe45
test ebx, ebx
je 0x48fe45
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push 0x4bc3a8
push esi
call edi
test esi, esi
je 0x48fe50
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4